@exchanges/binance
Version:
Exchange provider for Binance API
37 lines (36 loc) • 1.06 kB
TypeScript
import { BinanceClient } from '../../../clients';
import { coinM } from '../../../info';
export interface LiquidationOrderStreamsResponse {
eventTime: Date;
symbol: string;
pair: string;
side: coinM.OrderSide;
orderType: coinM.OrderType;
timeInForce: coinM.TimeInForce;
originalQuantity: number;
price: number;
averagePrice: number;
orderStatus: coinM.OrderStatus;
orderLastFilledQuantity: number;
orderFilledAccumulatedQuantity: number;
orderTradeTime: Date;
}
export interface LiquidationOrderStreamsResponseRaw {
e: string;
E: number;
o: {
s: string;
ps: string;
S: coinM.OrderSide;
o: coinM.OrderType;
f: coinM.TimeInForce;
q: string;
p: string;
ap: string;
X: coinM.OrderStatus;
l: string;
z: string;
T: number;
};
}
export declare function liquidationOrderStreams(client: BinanceClient, symbol: string, callback: (data: LiquidationOrderStreamsResponse, error?: any) => any): () => any;