v3.9.9: feat() support demo trading apis

This commit is contained in:
tiagosiebler
2024-04-09 17:47:46 +01:00
parent 185f02aa10
commit cc362c469b
9 changed files with 160 additions and 22 deletions

View File

@@ -88,6 +88,13 @@ export interface WSClientConfigurableOptions {
secret?: string;
testnet?: boolean;
/**
* Set to `true` to connect to Bybit's V5 demo trading: https://bybit-exchange.github.io/docs/v5/demo
*
* Only the "V5" "market" is supported here.
*/
demoTrading?: boolean;
/**
* The API group this client should connect to.
*
@@ -109,7 +116,6 @@ export interface WSClientConfigurableOptions {
}
export interface WebsocketClientOptions extends WSClientConfigurableOptions {
testnet?: boolean;
market: APIMarket;
pongTimeout: number;
pingInterval: number;