Trade

Grid Symbol Info

GEThttps://openapi.longbridge.com/v1/orders/info

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

Fetch the grid-trading information for a security: lot size, last done price, price steps, and authorization status. Use it to build a valid grid rule before calling Submit Grid Order. The channel_info.strategy_granted field tells you whether the strategy risk-disclosure consent has already been recorded — if it is false, submit the Strategy Questionnaire first.

>_ CLI
# Show the grid-trading info for 700.HK
longbridge grid info 700.HK

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredSecurity symbol in `ticker.region` format, e.g. `700.HK`.

Response

Response properties

NameTypeRequiredDescription
last_donestringRequiredLatest traded price
lot_sizestringRequiredBoard lot size
buy_lot_sizestringRequiredMinimum lot size for a buy order
sell_lot_sizestringRequiredMinimum lot size for a sell order
bid_sizesobject[]RequiredPrice-step tiers
└ str_proceedstringRequiredStart price of the tier
└ end_proceedstringRequiredEnd price of the tier
└ bid_sizestringRequiredMinimum price step within the tier
channel_infoobjectRequiredTrading-channel info and authorization. `strategy_granted` indicates whether the one-time strategy risk-disclosure consent has been recorded
└ strategy_grantedbooleanRequiredWhether the one-time strategy risk-disclosure consent has been recorded
└ support_rthbooleanRequiredWhether the security supports regular-trading-hours grids
└ currencystringRequiredTrading currency
└ settlement_currencystring[]RequiredSupported settlement currencies

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "name": "TENCENT",
    "last_done": "300.000",
    "lot_size": "100",
    "buy_lot_size": "100",
    "sell_lot_size": "100",
    "bid_sizes": [
      {
        "str_proceed": "0.010",
        "end_proceed": "500.000",
        "bid_size": "0.200"
      }
    ],
    "channel_info": {
      "strategy_granted": true,
      "support_rth": false,
      "currency": "HKD",
      "settlement_currency": [
        "HKD"
      ]
    }
  }
}

Error code

See the Error Codes page for the full list of error codes.