UNPKG

@jalmonter/ccxt

Version:

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges

86 lines (85 loc) 4.75 kB
import binanceRest from '../binance.js'; import type { Int, OrderSide, OrderType, Str, Strings, Trade, OrderBook, Order, Ticker, Tickers, OHLCV, Position, Balances } from '../base/types.js'; import Client from '../base/ws/Client.js'; export default class binance extends binanceRest { describe(): any; requestId(url: any): any; stream(type: any, subscriptionHash: any): string; watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>; watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>; fetchOrderBookSnapshot(client: any, message: any, subscription: any): Promise<void>; handleDelta(bookside: any, delta: any): void; handleDeltas(bookside: any, deltas: any): void; handleOrderBookMessage(client: Client, message: any, orderbook: any): any; handleOrderBook(client: Client, message: any): void; handleOrderBookSubscription(client: Client, message: any, subscription: any): void; handleSubscriptionStatus(client: Client, message: any): any; watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>; watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>; parseTrade(trade: any, market?: any): Trade; handleTrade(client: Client, message: any): void; watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>; handleOHLCV(client: Client, message: any): void; watchTicker(symbol: string, params?: {}): Promise<Ticker>; watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>; parseWsTicker(message: any, marketType: any): { symbol: string; timestamp: any; datetime: string; high: number; low: number; bid: number; bidVolume: number; ask: number; askVolume: number; vwap: number; open: number; close: number; last: number; previousClose: number; change: number; percentage: number; average: any; baseVolume: number; quoteVolume: number; info: any; }; handleTicker(client: Client, message: any): void; handleTickers(client: Client, message: any): void; signParams(params?: {}): any; authenticate(params?: {}): Promise<void>; keepAliveListenKey(params?: {}): Promise<void>; setBalanceCache(client: Client, type: any): any; loadBalanceSnapshot(client: any, messageHash: any, type: any): Promise<void>; fetchBalanceWs(params?: {}): Promise<Balances>; handleBalanceWs(client: Client, message: any): void; watchBalance(params?: {}): Promise<Balances>; handleBalance(client: Client, message: any): void; checkIsSpot(method: string, symbol: string, params?: {}): void; createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>; handleOrderWs(client: Client, message: any): void; handleOrdersWs(client: Client, message: any): void; editOrderWs(id: string, symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>; handleEditOrderWs(client: Client, message: any): void; cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>; cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<any>; fetchOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>; fetchOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>; fetchOpenOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>; watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>; parseWsOrder(order: any, market?: any): Order; handleOrderUpdate(client: Client, message: any): void; watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>; setPositionsCache(client: Client, type: any, symbols?: Strings): void; loadPositionsSnapshot(client: any, messageHash: any, type: any): Promise<void>; handlePositions(client: any, message: any): void; parseWsPosition(position: any, market?: any): Position; fetchMyTradesWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>; handleTradesWs(client: Client, message: any): void; watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>; handleMyTrade(client: Client, message: any): void; handleOrder(client: Client, message: any): void; handleAcountUpdate(client: any, message: any): void; handleWsError(client: Client, message: any): void; handleMessage(client: Client, message: any): any; }