@proton/ccxt
Version:
A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges
78 lines (77 loc) • 3.15 kB
TypeScript
import binanceRest from '../binance.js';
import { Int } 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<any>;
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;
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
parseTrade(trade: any, market?: any): import("../base/types.js").Trade | {
id: any;
timestamp: number;
datetime: string;
symbol: any;
order: string;
type: any;
takerOrMaker: any;
side: any;
amount: number;
price: number;
cost: number;
fee: {
currency: any;
cost: number;
};
info: any;
};
handleTrade(client: Client, message: any): void;
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
handleOHLCV(client: Client, message: any): void;
watchTicker(symbol: string, params?: {}): Promise<any>;
watchTickers(symbols?: string[], params?: {}): Promise<any>;
parseWsTicker(message: any, marketType: any): {
symbol: any;
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;
authenticate(params?: {}): Promise<void>;
keepAliveListenKey(params?: {}): Promise<void>;
setBalanceCache(client: Client, type: any): any;
loadBalanceSnapshot(client: any, messageHash: any, type: any): Promise<void>;
watchBalance(params?: {}): Promise<any>;
handleBalance(client: Client, message: any): void;
watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
handleOrderUpdate(client: Client, message: any): void;
watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
handleMyTrade(client: Client, message: any): void;
handleOrder(client: Client, message: any): void;
handleMessage(client: Client, message: any): any;
}