Skip to content

Function: roundToStepSize() ​

ts
function roundToStepSize(quantity: number, stepSize: string): number;

Rounds a quantity to the correct step size

Parameters ​

ParameterType
quantitynumber
stepSizestring

Returns ​

number

Built by Siebly. Open source SDKs for exchange APIs.