UNPKG

@exchanges/binance

Version:

Exchange provider for Binance API

40 lines (39 loc) 1.5 kB
import { RefType } from '../utils'; export declare type SymbolFilterType = 'PRICE_FILTER' | 'LOT_SIZE' | 'MARKET_LOT_SIZE' | 'MAX_NUM_ORDERS' | 'MAX_NUM_ALGO_ORDERS' | 'PERCENT_PRICE' | 'MIN_NOTIONAL'; export declare type SymbolFilter = SymbolFilterPriceFilter | SymbolFilterPercentPrice | SymbolFilterLotSize | SymbolFilterMinNotional | SymbolFilterMarketLotSize | SymbolFilterMaxNumOrders | SymbolFilterMaxNumAlgoOrders; export interface SymbolFilterPriceFilter { filterType: RefType<SymbolFilterType, 'PRICE_FILTER'>; minPrice: string; maxPrice: string; tickSize: string; } export interface SymbolFilterLotSize { filterType: RefType<SymbolFilterType, 'LOT_SIZE'>; minQty: string; maxQty: string; stepSize: string; } export interface SymbolFilterMarketLotSize { filterType: RefType<SymbolFilterType, 'MARKET_LOT_SIZE'>; minQty: string; maxQty: string; stepSize: string; } export interface SymbolFilterMaxNumOrders { filterType: RefType<SymbolFilterType, 'MAX_NUM_ORDERS'>; limit: number; } export interface SymbolFilterMaxNumAlgoOrders { filterType: RefType<SymbolFilterType, 'MAX_NUM_ALGO_ORDERS'>; limit: number; } export interface SymbolFilterPercentPrice { filterType: RefType<SymbolFilterType, 'PERCENT_PRICE'>; multiplierUp: string; multiplierDown: string; multiplierDecimal: number; } export interface SymbolFilterMinNotional { filterType: RefType<SymbolFilterType, 'MIN_NOTIONAL'>; notional: string; }