private/bot/update-trading-bot (DCA)
POSTUpdates settings for a running or paused DCA (Dollar-Cost Averaging) Trading Bot./private/bot/update-trading-bot
Updatable settings for DCA bots include allocations, order type, price, max_order, stop/take-profit prices, auto_stake, investment parameters, and quantity.
Request
Body
required
- DCA: Dollar Cost Averaging
- TWAP: Time-Weighted Average Price
- GRID: Grid trading
- FUNDING_ARBITRAGE: Funding arbitrage
- Array [
- ]
Request id (echoed in response)
Must be "private/bot/update-trading-bot"
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
Trading Bot ID
Possible values: [DCA, TWAP, GRID, FUNDING_ARBITRAGE]
Trading bot type:
Whether to receive push notifications on bot state changes
Updated display name for the bot. 4-15 characters; letters, numbers,
settings object
allocations object[]
Instrument name
Percentage allocated (must sum to 100 across all allocations)
Possible values: [MARKET, LIMIT]
MARKET or LIMIT
Limit price
Maximum number of orders to place
Stop-loss price
Take-profit price
Whether to automatically stake earned tokens
Total duration. In number of months when investment_frequency_mode is MONTHLY; in milliseconds when FIXED_DURATION.
Interval between orders in milliseconds
Quantity per order
Schema
Original request identifier
Method name
0 for success; error code otherwise
Error message for non-zero codes