UNPKG

binance

Version:

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

50 lines (49 loc) 1.97 kB
import { FuturesExchangeInfo, FuturesSymbolExchangeInfo } from '../../types/futures'; export interface USDMFuturesNormalisedSymbolFilters { symbol: string; pricePrecision: number; quantityPrecision: number; triggerProtect: number; price?: { minPrice: number; maxPrice: number; tickSize: number; }; lotSize?: { minQty: number; maxQty: number; stepSize: number; }; marketLotSize?: { minQty: number; maxQty: number; stepSize: number; }; minNotional?: { notional: number; }; percentPrice?: { multiplierUp: number; multiplierDown: number; multiplierDecimal: number; }; maxOrders?: { limit: number; }; maxAlgoOrders?: { limit: number; }; maxPosition?: { maxPosition: number; }; } /** Normalise a USDM Futures symbol's raw exchange-info filters into numeric fields. */ export declare function normaliseUSDMFuturesSymbolFilters(symbolInfo: FuturesSymbolExchangeInfo): USDMFuturesNormalisedSymbolFilters; /** Get normalised USDM Futures filters for one symbol. */ export declare function getUSDMFuturesSymbolFilters(exchangeInfo: FuturesExchangeInfo, symbol: string): USDMFuturesNormalisedSymbolFilters | null; /** Returns an object where keys are USDM Futures symbols and values are normalised filters for that symbol. */ export declare function getUSDMFuturesSymbolFilterMap(exchangeInfo: FuturesExchangeInfo): Record<string, USDMFuturesNormalisedSymbolFilters>; /** Get min notional filter for a USDM futures symbol */ export declare function getUSDMFuturesSymbolMinNotional(exchangeInfo: FuturesExchangeInfo, symbol: string): number | null; /** Returns an object where keys are USDM Futures symbols and values are min notionals for that symbol */ export declare function getUSDMFuturesMinNotionalSymbolMap(exchangeInfo: FuturesExchangeInfo): Record<string, number>;