Trade entity

The Trade is a sub-entity of SmartTrade. Each trade entity includes the conditions set for its specific trade type.

Attributes

31
idinteger

Unique Quentrade Trade entity ID.

average_pricestring or null

The weighted average price at which the asset was bought or sold during the execution of the trades.

follow_price_typestring

The type of price to follow for this trade: bid, ask or last.

initial_amountstring

The initial amount for this trade.

initial_totalstring

The initial total for this trade.

initial_pricenumber

The initial price for this trade.

order_pricestring or null

The limit price for this trade.

order_sidestring

The side of the order to be created by this trade: Buy or Sell.

order_typestring

The type of order used to open the position trade.

pairstring

Trading pair in Quentrade format for this trade.

position_percentagestring or null

Percentage of the step in Take Profit. This field is only filled if trade_purpose is take_profit.

realised_amountstring or null

Indicates the realized amount from the trade.

realised_totalstring or null

Indicates the total realized amount from the trade.

realised_percentagenumber

Indicates the realized percentage of the total trade amount.

realised_pricenumber or null

Indicates the realized price of the trade.

statusstring

Quentrade status for this Trade.

take_profit_percentagestring or null

The percentage price level for Take Profit for this Trade.

trade_purposestring

The type of trade.

trail_percentagestring or null

Indicates the percentage deviation from the price for this trade.

trail_valuestring or null

Indicates the deviation from the price calculated by Quentrade for this trade.

trailing_enabledboolean

Indicates whether the trailing settings for this trade can be edited.

trailing_last_pricestring or null

Indicates the last price used for trailing.

trailing_last_price_updated_atnumber or null

Indicates the timestamp of the last update to the trailing price.

trigger_conditionnumber or null

Indicates the condition under which the trigger is activated.

trigger_pricestring or null

Indicates the price at which the trigger is activated.

trigger_price_percentagestring or null

Indicates the percentage for the trigger price.

trigger_typestring

Indicates the type of trigger for the trade.

created_atstring

ISO 8601 datetime string of when this Trade entity was created.

updated_atstring

ISO 8601 datetime string of when this Trade entity was updated.

cancelableboolean

Indicates whether this trade can be canceled (true) or not (false).

force_processableboolean

Indicates whether this Trade can be closed by market (true) or not (false).

Example Response

trade_entity_response.json
200 OK
{
  "id": 1006258056,
  "average_price": null,
  "follow_price_type": "last",
  "initial_amount": "14.0",
  "initial_total": "1.4182",
  "order_price": null,
  "order_side": "sell",
  "order_type": "market",
  "pair": "USDT_DOGE",
  "position_percentage": "100.0",
  "realised_amount": "0.0",
  "realised_total": null,
  "status": "to_process",
  "take_profit_percentage": null,
  "trade_purpose": "stop_loss",
  "trail_percentage": null,
  "trail_value": null,
  "trailing_enabled": false,
  "trailing_last_price": null,
  "trailing_last_price_updated_at": null,
  "trigger_condition": "less_or_equal",
  "trigger_price": "0.1013",
  "trigger_price_percentage": null,
  "trigger_type": "conditional",
  "created_at": "2024-08-12T16:24:38.461Z",
  "updated_at": "2024-08-12T16:56:10.850Z",
  "realised_percentage": "0.0",
  "initial_price": "0.1013",
  "realised_price": null,
  "cancelable": true,
  "force_processable": true
}