Used to subscribe to all or specific types (e.g., fast buy / sell, limit orders, etc.) of trade results (available for Plus / Pro / Enterprise
URL
wss://api-bot-v1.dbotx.com/trade/ws/
Header: X-API-KEY
(Please do not disclose your API Key to anyone. If you are at risk of losing it, please refresh it.)
Notes
1. X-API-KEY can be obtained in your "Dashboard", go to check:
2. To ensure the availability and stability of the WebSocket connection, a heartbeat subscription must be sent at least once every minute (recommended every 30–55 seconds), otherwise the system will automatically disconnect the timeout link
method: Currently fixed as "subscribeTradeResults"
tradeTypeFilter: Trade types to subscribe: An empty array [] subscribes to all trade types, including any added in the future, "swap_buy_success" indicates a successful fast buy, "swap_buy_fail" indicates a failed fast buy, "swap_sell_success" indicates a successful fast sell, "swap_sell_fail" indicates a failed fast sell