Skip to content

Function: roundToTickSize() ​

ts
function roundToTickSize(price: number, tickSize: string): number;

Rounds a price to the correct number of decimal places based on the symbol's tick size

Parameters ​

ParameterType
pricenumber
tickSizestring

Returns ​

number

Built by Siebly. Open source SDKs for exchange APIs.