Skip to Content

Grid Trigger History

Query the paged trigger history of a single grid order — the individual orders the grid has placed each time a trigger fired.

CLI
# Trigger history of a grid order
longbridge grid triggers 764609681686573056

Request

HTTP MethodGET
HTTP URL/v1/gridtrading/trigger_history_list

Parameters

Content-Type: application/json; charset=utf-8

NameTypeRequiredDescription
grid_order_idstringYESGrid order ID, example: 764609681686573056
pageint32NOPage number, starting from 1
limitint32NOPage size
Warning

This endpoint uses grid_order_id, not order_id like the other grid endpoints. Using order_id here will not resolve the grid order.

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

json
{
  "code": 0,
  "message": "success",
  "data": {
    "trigger_orders": [
      {
        "id": "764610000000000001",
        "status": "Filled",
        "name": "TENCENT",
        "symbol": "700.HK",
        "price": "294",
        "quantity": "100",
        "executed_price": "294",
        "executed_qty": "100",
        "submitted_at": "2024-08-12T10:35:00+08:00",
        "action": 1,
        "order_type": "GMO",
        "trigger_price": "294",
        "msg": "",
        "currency": "HKD",
        "last_done": "294",
        "updated_at": "2024-08-12T10:35:05+08:00",
        "time_in_force": 1,
        "gtd": "",
        "trigger_at": "2024-08-12T10:35:00+08:00",
        "trigger_status": 1
      }
    ],
    "has_more": false
  }
}

Response Status

StatusDescriptionSchema
200The trigger history was returned successfully.grid_trigger_history_rsp
400The request was rejected with an incorrect parameter.None

Schemas

grid_trigger_history_rsp

NameTypeRequiredDescription
trigger_ordersobject[]falseTriggered orders
∟ idstringtrueTrigger order ID
∟ statusstringtrueOrder status
∟ namestringtrueSecurity name
∟ symbolstringtrueSecurity symbol, ticker.region format
∟ pricestringtrueOrder price
∟ quantitystringtrueOrder quantity
∟ executed_pricestringtrueExecuted price
∟ executed_qtystringtrueExecuted quantity
∟ submitted_atstringtrueSubmission time, RFC3339 format
∟ actionint32trueBuy/sell direction
∟ order_typestringtrueOrder type
∟ trigger_pricestringtruePrice that triggered this order
∟ msgstringtrueAdditional message
∟ currencystringtrueOrder currency
∟ last_donestringtrueLast traded price at trigger time
∟ updated_atstringtrueLast update time, RFC3339 format
∟ time_in_forceint32trueTime in force

Enum Value:
0 - Day
1 - GTC
6 - GTD
∟ gtdstringtrueGood-Til-Date, YYYY-MM-DD format
∟ trigger_atstringtrueTrigger time, RFC3339 format
∟ trigger_statusint32trueTrigger status
has_morebooleanfalseWhether more pages are available