@exchanges/binance
Version:
Exchange provider for Binance API
21 lines (20 loc) • 691 B
TypeScript
import { BinanceKeyClient } from '../../../clients';
import { coinM } from '../../../info';
export interface TakerBuySellVolumePayload {
pair: string;
contractType: coinM.ContractType;
period: coinM.InterestPeriod;
limit?: number;
startTime?: Date | number;
endTime?: Date | number;
}
export interface TakerBuySellVolumeResponse {
pair: string;
contractType: coinM.ContractType;
takerBuyVol: number;
takerSellVol: number;
takerBuyVolValue: number;
takerSellVolValue: number;
timestamp: Date;
}
export declare function takerBuySellVolume(client: BinanceKeyClient, payload: TakerBuySellVolumePayload): Promise<TakerBuySellVolumeResponse[]>;