private/bot/get-trading-bots
POSTReturns a list of Trading Bots filtered by type and state. Results are sorted by update time in descending order./private/bot/get-trading-bots
Request
Body
required
Request id (echoed in response)
Must be "private/bot/get-trading-bots"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1610905028000".
params objectrequired
Find by Trading Bot ID. When provided, state is not required.
Possible values: [DCA, TWAP, GRID, FUNDING_ARBITRAGE]
Filter by bot type
Possible values: [RUNNING, PAUSED, TERMINATED]
Filter by bot state. Required when bot_id is not provided.
Default value: 0
Page number
Default value: 20
Page size. Max 500.
Schema
- Array [
- DCA: Dollar Cost Averaging
- TWAP: Time-Weighted Average Price
- GRID: Grid trading
- FUNDING_ARBITRAGE: Funding arbitrage
- RUNNING: Bot is actively placing orders
- PAUSED: Bot is paused and not placing orders
- TERMINATED: Bot has been permanently stopped
- Array [
- ]
- FIXED_DURATION: Fixed interval in milliseconds
- MONTHLY: Monthly investment
- ]
Original request identifier
Method name
0 for success; error code otherwise
Error message for non-zero codes
result object
bot_list object[]
Trading Bot ID
Possible values: [DCA, TWAP, GRID, FUNDING_ARBITRAGE]
Trading bot type:
Display name of the trading bot
Possible values: [RUNNING, PAUSED, TERMINATED]
Trading bot state:
Termination reason (only present for terminated bots)
Create time in milliseconds (UTC)
Last update time in milliseconds (UTC)
End time in milliseconds (UTC). 0 if still active.
Whether the bot was migrated
settings object
Whether this is a basket DCA bot (multiple instruments)
allocations object[]required
Instrument name
Percentage allocated (must sum to 100 across all allocations)
Currency used for investment
Possible values: [BUY, SELL]
BUY or SELL. Required when is_basket is false
Possible values: [MARKET, LIMIT]
MARKET or LIMIT. Required when is_basket is false
Whether to automatically stake earned tokens. Required when is_basket is false
Limit price. Required when type is LIMIT
Quantity per order. Either quantity or total_investment is required
Total investment amount. Either quantity or total_investment is required
Possible values: [FIXED_DURATION, MONTHLY]
Investment frequency mode for DCA bots:
Interval between orders in milliseconds. Required when investment_frequency_mode is FIXED_DURATION
Unix timestamp in milliseconds for the first order
Total duration. In number of months when investment_frequency_mode is MONTHLY; in milliseconds when FIXED_DURATION.
Maximum number of orders to place
Stop-loss price. Not supported for basket bots
Take-profit price. Not supported for basket bots
Whether to use simplified mode
execution_summary object
Bot execution summary (varies by bot type)