Skip to main content

getBinByPrice

@bidask-protocol/sdk


@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