@exchanges/binance
Version:
Exchange provider for Binance API
32 lines (31 loc) • 1.17 kB
TypeScript
import { BinanceSignedClient } from '../../../clients';
import { spot } from '../../../info';
export interface GetPurchaseRecordPayload<LendingType extends spot.FlexibleLendingType> {
lendingType: LendingType;
asset?: string;
startTime?: Date | number;
endTime?: Date | number;
current?: number;
size?: number;
}
export interface GetPurchaseRecordFlexibleResponse {
amount: number;
asset: string;
createTime: Date;
lendingType: spot.FlexibleLendingType;
productName: string;
purchaseId: number;
status: string;
}
export interface GetPurchaseRecordFixedActivityResponse {
amount: number;
asset: string;
createTime: Date;
lendingType: spot.FlexibleLendingType;
lot: number;
productName: string;
purchaseId: number;
status: string;
}
export declare function getPurchaseRecord(client: BinanceSignedClient, payload: GetPurchaseRecordPayload<'DAILY'>): Promise<GetPurchaseRecordFlexibleResponse[]>;
export declare function getPurchaseRecord(client: BinanceSignedClient, payload: GetPurchaseRecordPayload<'ACTIVITY' | 'CUSTOMIZED_FIXED'>): Promise<GetPurchaseRecordFixedActivityResponse[]>;