UNPKG

binance

Version:

Professional Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & end-to-end tests.

9 lines (8 loc) 319 B
/** * Rounds a price to the correct number of decimal places based on the symbol's tick size */ export declare function roundToTickSize(price: number, tickSize: string): number; /** * Rounds a quantity to the correct step size */ export declare function roundToStepSize(quantity: number, stepSize: string): number;