@exchanges/binance
Version:
Exchange provider for Binance API
32 lines (31 loc) • 1.08 kB
TypeScript
import type { BinanceClient } from '../../../clients';
import type { spot } from '../../../info';
export interface ExchangeInformationResponse {
timezone: string;
serverTime: Date;
rateLimits: spot.RateLimitType[];
exchangeFilters: spot.ExchangeFilterType[];
symbols: {
symbol: string;
status: spot.SymbolStatus;
baseAsset: string;
baseAssetPrecision: number;
quoteAsset: string;
quotePrecision: number;
quoteAssetPrecision: number;
baseCommissionPrecision: number;
quoteCommissionPrecision: number;
orderTypes: spot.OrderType[];
icebergAllowed: boolean;
ocoAllowed: boolean;
quoteOrderQtyMarketAllowed: boolean;
isSpotTradingAllowed: boolean;
isMarginTradingAllowed: boolean;
filters: spot.SymbolFilter[];
permissions: spot.PermissionType[];
}[];
}
/**
* Current exchange trading rules and symbol information
*/
export declare function exchangeInformation(client: BinanceClient): Promise<ExchangeInformationResponse>;