UNPKG

bybit-api

Version:

Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.

82 lines (81 loc) 1.96 kB
interface EarningDetailV5 { userId: string; bizType: 'SPOT' | 'DERIVATIVES' | 'OPTIONS' | 'CONVERT'; symbol: string; coin: string; earning: string; markupEarning: string; baseFeeEarning: string; orderId: string; execTime: string; } interface TotalEarningCategoryV5 { coin: string; earning: string; } export interface ExchangeBrokerEarningResultV5 { totalEarningCat: { spot: TotalEarningCategoryV5[]; derivatives: TotalEarningCategoryV5[]; options: TotalEarningCategoryV5[]; convert: TotalEarningCategoryV5[]; total: TotalEarningCategoryV5[]; }; details: EarningDetailV5[]; nextPageCursor: string; } export interface ExchangeBrokerAccountInfoV5 { subAcctQty: string; maxSubAcctQty: string; baseFeeRebateRate: { spot: string; derivatives: string; }; markupFeeRebateRate: { spot: string; derivatives: string; convert: string; }; ts: string; } export interface ExchangeBrokerSubAccountDepositRecordV5 { subMemberId: string; coin: string; chain: string; amount: string; txID: string; status: number; toAddress: string; tag: string; depositFee: string; successAt: string; confirmations: string; txIndex: string; blockHash: string; batchReleaseLimit: string; depositType: string; } export interface BrokerVoucherSpecV5 { id: string; coin: string; amountUnit: 'AWARD_AMOUNT_UNIT_USD' | 'AWARD_AMOUNT_UNIT_COIN'; productLine: string; subProductLine: string; totalAmount: { [key: string]: string; }; usedAmount: string; } export interface BrokerIssuedVoucherV5 { accountId: string; awardId: string; specCode: string; amount: string; isClaimed: boolean; startAt: string; endAt: string; effectiveAt: string; ineffectiveAt: string; usedAmount: string; } export {};