UNPKG

@exchanges/binance

Version:

Exchange provider for Binance API

15 lines (14 loc) 507 B
import { BinanceClient } from '../../../clients'; export declare type SymbolPriceTickerPayload = { symbol?: string; } | { pair?: string; }; export interface SymbolPriceTickerResponse { symbol: string; ps: number; price: number; time: Date; } export declare function symbolPriceTicker(client: BinanceClient): Promise<SymbolPriceTickerResponse[]>; export declare function symbolPriceTicker(client: BinanceClient, payload: SymbolPriceTickerPayload): Promise<SymbolPriceTickerResponse>;