-
Notifications
You must be signed in to change notification settings - Fork 29
CIM: paper_trade_table
Captures a live trade for storage in a database.
"paper_trade_table": {
"strategy": "String defining strategy",
"exchange": "String defining the exchange being used",
"trade_type": "String of the type of trade: BUY / SELL / BUY_STOP / SELL_STOP",
"trade_stage": "Stage of trade: order / position",
"symbol": "String of the symbol",
"volume": "Float of the volume",
"stop_loss": "Float of the stop loss value",
"take_profit": "Float of the take profit value",
"comment": "String of the comment",
"status": "String of the status: CANCELLED / PLACED ",
"price": "Float of the executed price",
"order_id": "String of a unique identifier for the order"
}
String specifying which strategy initiated trade action
String specifying which exchange trade initiated on. Current defined options:
- MT5 -> MetaTrader 5 Client
String specifying the current stage of the order. Options are:
- order
- position
String specifying the type of trade initiated. Options available as follows:
String, including options:
- BUY -> at market buy order initiated
- SELL -> at market sell order initiated
- BUY_STOP -> Buy Stop order initiated
- SELL_STOP -> Sell Stop order initiated
String including options:
- trailing_stop_update -> trailing stop updated
- take_profit_update -> take profit value updated (applies only when trailing stop not also updated)
- cancel -> cancel open position
String of the financial instrument being used. Must comply with relevant trading platform requirements.
Float of the volume of the financial instrument being purchased. Required for all orders.
Float of the Stop Loss price for the financial instrument. Required for all orders.
Float of the Take Profit price for the financial instrument. Required for all orders.
String to include any relevant profits
String of the status of order / position. Options include:
- placed -> Only applies when order_stage = order
- canceled -> Applies to all order_stage options
- cancel_failed -> applies when an order cancel was not successful
Float of the price being offered. Not used when a MARKET BUY order is executed.
String of the unique identifier of the order as used by relevant trading platform.