bybit-api
Version:
Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.
30 lines (29 loc) • 809 B
TypeScript
export type USDCAPICategory = 'PERPETUAL' | 'OPTION';
export type USDCOrderType = 'Limit' | 'Market';
export type USDCTimeInForce = 'GoodTillCancel' | 'ImmediateOrCancel' | 'FillOrKill' | 'PostOnly';
export type USDCOrderFilter = 'Order' | 'StopOrder';
export interface USDCKlineRequest {
symbol: string;
period: string;
startTime: number;
limit?: string;
}
export interface USDCTransactionLogRequest {
type: string;
baseCoin?: string;
startTime?: string;
endTime?: string;
direction?: string;
limit?: string;
cursor?: string;
category?: USDCAPICategory;
}
export interface USDCPositionsRequest {
category: USDCAPICategory;
symbol?: string;
baseCoin?: string;
expDate?: string;
direction?: string;
limit?: string;
cursor?: string;
}