getBinByPrice
@bidask-protocol/sdk / getBinByPrice
Function: getBinByPrice()
getBinByPrice(
price
,bps
):number
Gets the bin index by price
Parameters
price
number
The price
bps
bigint
The basis points
Returns
number
The bin index
@bidask-protocol/sdk / getBinByPrice
getBinByPrice(
price
,bps
):number
Gets the bin index by price
number
The price
bigint
The basis points
number
The bin index