DCA Bot entity

A DCA Bot entity contains the full operational configuration, order sizing rules, safety ladders, risk protection, strategy triggers, and performance statistics for a Dollar Cost Averaging bot on Quentrade.

Attributes

61
idinteger

Unique Quentrade ID for this DCA Bot entity.

General Information
account_idinteger

Unique Quentrade ID for the connected exchange account entity.

General Information
account_namestring

User-defined custom label for the exchange account (e.g., 'My Binance Spot').

General Information
namestring

Name assigned to the DCA Bot.

General Information
is_enabledboolean

Indicates whether the DCA Bot is currently enabled (true) or disabled (false).

General Information
typestring

Bot type based on pair count: Bot::SingleBot (single trading pair) or Bot::MultiBot (multiple trading pairs).

General Information
pairsarray[string]

List of trading pairs configured for this bot in Quentrade format (e.g., ['BNFCR_1INCHUSDT'], ['USDT_BTC', 'USDT_ETH']).

General Information
strategystring

Trading direction used by the bot: long (buy low, sell high) or short (sell high, buy back low).

General Information
start_order_typestring

Order execution type used to initiate new deals: limit or market.

General Information
profit_currencystring

Currency in which profit is accumulated: quote_currency or base_currency.

General Information
created_atstring

ISO 8601 timestamp representing when the DCA Bot entity was created.

General Information
updated_atstring

ISO 8601 timestamp of the most recent bot configuration update.

General Information
deletable?boolean

Indicates whether this DCA Bot entity can be safely deleted (true) or has active dependencies (false).

General Information
url_secretstring

Unique secret code used for sharing and copying this DCA Bot configuration.

General Information
base_order_volumenumber

The initial order volume executed when opening a new deal.

Base & Safety Orders Sizing
base_order_volume_typestring

Unit measurement for base order size: quote_currency, base_currency, or percent (of account balance).

Base & Safety Orders Sizing
safety_order_volumenumber / string

The starting volume for the first Safety Order in the averaging ladder.

Base & Safety Orders Sizing
safety_order_volume_typestring

Unit measurement for Safety Order size: quote_currency, base_currency, or percent.

Base & Safety Orders Sizing
max_safety_ordersinteger

Maximum total number of Safety Orders allowed per deal.

Base & Safety Orders Sizing
active_safety_orders_countinteger

Number of active Safety Orders placed simultaneously in the exchange orderbook at any given time.

Base & Safety Orders Sizing
safety_order_step_percentagenumber

Price deviation percentage from initial entry required to trigger the first Safety Order.

Base & Safety Orders Sizing
martingale_volume_coefficientnumber

Multiplier applied to increase order volume for each consecutive Safety Order (e.g., 2.0 doubles volume).

Base & Safety Orders Sizing
martingale_step_coefficientnumber

Multiplier applied to increase price step distance between each consecutive Safety Order.

Base & Safety Orders Sizing
custom_safety_stepsarray[object]

Direct array of custom Safety Order steps (alternative to Martingale multipliers). Example: [deviation: -1.1, size: 10].

Base & Safety Orders Sizing
take_profitnumber

Target profit percentage required to close a deal in profit.

Take Profit & Trailing
take_profit_typestring

Calculation method for Take Profit: base (percentage of base order volume) or total (percentage of total accumulated deal volume).

Take Profit & Trailing
trailing_enabledboolean / null

Indicates whether Trailing Take Profit is active to follow upward price trends.

Take Profit & Trailing
trailing_deviationnumber

Percentage deviation allowed from peak price before trailing take profit market order triggers.

Take Profit & Trailing
take_profit_stepsarray[object]

Configuration of multi-step Take Profit targets allowing partial deal closure at progressive price levels.

Take Profit & Trailing
min_profit_percentagenumber / string / null

Minimum profit percentage threshold required to complete a deal when using specific close strategies.

Take Profit & Trailing
min_profit_typestring / null

Basis for minimum profit calculation (quote_currency, base_currency, or percent).

Take Profit & Trailing
stop_loss_percentagenumber

Maximum allowable loss percentage before deal is closed (0.0 means Stop Loss is disabled).

Stop Loss & Risk Controls
stop_loss_typestring

Action executed when Stop Loss triggers: stop_loss (close deal only) or stop_loss_and_disable_bot (close deal and turn off bot).

Stop Loss & Risk Controls
stop_loss_timeout_enabledboolean

Indicates whether a countdown timer delay is enforced before executing Stop Loss to avoid false wick triggers.

Stop Loss & Risk Controls
stop_loss_timeout_in_secondsinteger

Duration in seconds for the Stop Loss confirmation timeout.

Stop Loss & Risk Controls
tsl_enabledboolean

Trailing Stop Loss status: automatically adjusts Stop Loss price upward as position moves in profit.

Stop Loss & Risk Controls
risk_reduction_percentagenumber / null

Percentage of loss reduction applied across deal averaging steps.

Stop Loss & Risk Controls
max_active_dealsinteger

Maximum number of simultaneous active deals this DCA Bot can manage (default: 1).

Deal Limits & Strategy Triggers
active_deals_countinteger / string

Current number of deals actively in progress for this bot.

Deal Limits & Strategy Triggers
allowed_deals_on_same_pairinteger / null

Number of concurrent deals allowed on the exact same pair (applicable only to Bot::MultiBot).

Deal Limits & Strategy Triggers
disable_after_deals_countinteger / null

Target number of completed deals after which the bot automatically disables itself (is_enabled: false).

Deal Limits & Strategy Triggers
deals_counterinteger / null

Tracks completed deals count towards disable_after_deals_count threshold.

Deal Limits & Strategy Triggers
deal_start_delay_secondsinteger / null

Delay in seconds before executing the first order of a newly triggered deal.

Deal Limits & Strategy Triggers
cooldownnumber

Mandatory cooldown period in seconds between closing a deal and opening a new deal on the same pair.

Deal Limits & Strategy Triggers
close_deals_timeoutinteger / null

Maximum lifespan of an open deal in seconds, after which it automatically closes.

Deal Limits & Strategy Triggers
strategy_listarray[json]

Array of deal-opening signal conditions (e.g., nonstop, RSI-7, TradingView webhook, MACD).

Deal Limits & Strategy Triggers
close_strategy_listarray[json]

Array of custom deal-closing signal conditions.

Deal Limits & Strategy Triggers
safety_strategy_listarray[json]

Array of conditions required before executing safety orders.

Deal Limits & Strategy Triggers
min_pricestring / null

Absolute minimum asset price required to allow opening a new deal.

Price/Volume Filters & Leverage
max_pricestring / null

Absolute maximum asset price allowable to open a new deal.

Price/Volume Filters & Leverage
min_price_percentagestring / null

Minimum 24h price change percentage required to open a deal (MultiBot only).

Price/Volume Filters & Leverage
max_price_percentagestring / null

Maximum 24h price change percentage allowable to open a deal (MultiBot only).

Price/Volume Filters & Leverage
min_volume_btc_24hnumber

Minimum 24h trading volume in BTC equivalent required for a trading pair to be traded.

Price/Volume Filters & Leverage
leverage_typestring

Leverage margin model: not_specified (spot), cross (entire balance collateral), or isolated (deal-specific margin).

Price/Volume Filters & Leverage
leverage_custom_valuestring / number / null

Custom leverage multiplier applied to futures margin positions (e.g., '10').

Price/Volume Filters & Leverage
reinvesting_percentagenumber / null

Percentage of realized deal profit automatically reinvested into subsequent deal base orders.

Price/Volume Filters & Leverage
reinvested_volume_usdnumber / null

Cumulative USD volume reinvested into bot order sizing from historical profits.

Price/Volume Filters & Leverage
finished_deals_profit_usdstring

Total realized cumulative net profit in USD from all completed deals.

Performance & Metrics
finished_deals_countstring / integer

Total number of deals successfully closed by this DCA Bot.

Performance & Metrics
active_deals_usd_profitstring

Current total unrealized PnL in USD across all active deals.

Performance & Metrics
active_dealsarray[object]

Full array of Deal entities currently active and managed by this DCA Bot.

Performance & Metrics

Example Entity JSON

dca_bot_entity.json
JSON Entity
{
  "id": 15564828,
  "account_id": 32833909,
  "is_enabled": false,
  "max_safety_orders": 4,
  "active_safety_orders_count": 1,
  "pairs": [
    "BNFCR_1INCHUSDT"
  ],
  "strategy_list": [
    {
      "strategy": "nonstop",
      "options": {}
    }
  ],
  "close_strategy_list": [],
  "safety_strategy_list": [],
  "max_active_deals": 1,
  "active_deals_count": 0,
  "deletable?": true,
  "created_at": "2024-10-24T19:57:43.635Z",
  "updated_at": "2024-10-24T19:57:43.635Z",
  "trailing_enabled": null,
  "tsl_enabled": false,
  "deal_start_delay_seconds": null,
  "stop_loss_timeout_enabled": false,
  "stop_loss_timeout_in_seconds": 0,
  "disable_after_deals_count": null,
  "deals_counter": null,
  "allowed_deals_on_same_pair": null,
  "easy_form_supported": false,
  "close_deals_timeout": null,
  "url_secret": "qnt_bot_sec_99a8b7c6",
  "take_profit_steps": [],
  "name": "test 24 oct",
  "take_profit": "2.0",
  "min_profit_percentage": null,
  "base_order_volume": "15.0",
  "safety_order_volume": "30.0",
  "safety_order_step_percentage": "1.0",
  "take_profit_type": "total",
  "min_profit_type": null,
  "type": "Bot::SingleBot",
  "martingale_volume_coefficient": "2.0",
  "martingale_step_coefficient": "4.0",
  "stop_loss_percentage": "0.0",
  "cooldown": "0",
  "btc_price_limit": "0.0",
  "strategy": "long",
  "min_volume_btc_24h": "0.0",
  "profit_currency": "quote_currency",
  "min_price": null,
  "max_price": null,
  "stop_loss_type": "stop_loss",
  "safety_order_volume_type": "quote_currency",
  "base_order_volume_type": "quote_currency",
  "account_name": "My Binance Spot",
  "trailing_deviation": "0.2",
  "finished_deals_profit_usd": "0.0",
  "finished_deals_count": "0",
  "leverage_type": "not_specified",
  "leverage_custom_value": null,
  "start_order_type": "limit",
  "active_deals_usd_profit": "0.0",
  "reinvesting_percentage": null,
  "risk_reduction_percentage": null,
  "reinvested_volume_usd": null,
  "min_price_percentage": null,
  "max_price_percentage": null
}