bybit-api
Version:
Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.
70 lines (69 loc) • 1.72 kB
TypeScript
import { AccountTypeV5, CategoryV5, TransactionTypeV5 } from '../shared-v5';
export interface GetWalletBalanceParamsV5 {
accountType: AccountTypeV5;
coin?: string;
}
export interface GetBorrowHistoryParamsV5 {
currency?: string;
startTime?: number;
endTime?: number;
limit?: number;
cursor?: string;
}
export interface GetFeeRateParamsV5 {
category: CategoryV5;
symbol?: string;
baseCoin?: string;
}
export interface GetTransactionLogParamsV5 {
accountType?: AccountTypeV5;
category?: CategoryV5;
currency?: string;
baseCoin?: string;
type?: TransactionTypeV5;
/**
* Transaction sub type, "movePosition", used to filter trans logs of Move Position only
*/
transSubType?: string;
startTime?: number;
endTime?: number;
limit?: number;
cursor?: string;
}
export interface MMPModifyParamsV5 {
baseCoin: string;
window: string;
frozenPeriod: string;
qtyLimit: string;
deltaLimit: string;
}
export interface RepayLiabilityParamsV5 {
coin?: string;
}
export interface SetCollateralCoinParamsV5 {
coin: string;
collateralSwitch: 'ON' | 'OFF';
}
export interface GetClassicTransactionLogsParamsV5 {
currency?: string;
baseCoin?: string;
type?: string;
startTime?: number;
endTime?: number;
limit?: number;
cursor?: string;
}
export interface SetLimitPriceActionParamsV5 {
category: CategoryV5;
modifyEnable: boolean;
}
export interface GetAccountInstrumentsInfoParamsV5 {
category: 'spot' | 'linear' | 'inverse';
symbol?: string;
limit?: number;
cursor?: string;
}
export interface ManualRepayParamsV5 {
coin?: string;
amount?: string;
}