UNPKG

bybit-api

Version:

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

86 lines (85 loc) 2.17 kB
export interface RFQTransactionV5 { category: 'spot' | 'linear' | 'inverse' | 'option'; symbol: string; side: 'buy' | 'sell'; qty: string; isLeverage?: boolean; } export interface CreateRFQParamsV5 { counterparties: string[]; rfqLinkId?: string; anonymous?: boolean; strategyType?: string; list: RFQTransactionV5[]; } export interface CancelRFQParamsV5 { rfqId?: string; rfqLinkId?: string; } export interface RFQQuoteV5 { category: 'spot' | 'linear' | 'option'; symbol: string; price: string; isLeverage?: boolean; } export interface CreateRFQQuoteParamsV5 { rfqId: string; quoteLinkId?: string; anonymous?: boolean; expiresIn?: number; quoteBuyList?: RFQQuoteV5[]; quoteSellList?: RFQQuoteV5[]; } export interface ExecuteRFQQuoteParamsV5 { rfqId: string; quoteId: string; quoteSide: 'buy' | 'sell'; } export interface CancelRFQQuoteParamsV5 { quoteId?: string; rfqId?: string; quoteLinkId?: string; } export interface GetRFQRealtimeParamsV5 { rfqId?: string; rfqLinkId?: string; traderType?: 'quote' | 'request'; } export interface GetRFQListParamsV5 { rfqId?: string; rfqLinkId?: string; traderType?: 'quoter' | 'request'; status?: 'Active' | 'Canceled' | 'PendingFill' | 'Filled' | 'Expired' | 'Failed'; limit?: number; cursor?: string; } export interface GetRFQQuoteRealtimeParamsV5 { rfqId?: string; quoteId?: string; quoteLinkId?: string; traderType?: 'quote' | 'request'; } export interface GetRFQHistoryParamsV5 { rfqId?: string; quoteId?: string; quoteLinkId?: string; traderType?: 'quote' | 'request'; status?: 'Active' | 'Canceled' | 'PendingFill' | 'Filled' | 'Expired' | 'Failed'; limit?: number; cursor?: string; } export interface GetRFQTradeListParamsV5 { rfqId?: string; rfqLinkId?: string; quoteId?: string; quoteLinkId?: string; status?: 'Filled' | 'Rejected'; limit?: number; cursor?: string; } export interface GetRFQPublicTradesParamsV5 { startTime?: number; endTime?: number; limit?: number; cursor?: string; }