Skip to content

OrderStatus ​

Get the current status of a specific order by its order ID.

Endpoint URL ​

http
Local Host   :  POST http://127.0.0.1:5000/api/v1/orderstatus
Ngrok Domain :  POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/orderstatus
Custom Domain:  POST https://<your-custom-domain>/api/v1/orderstatus

Sample API Request ​

json
{
  "apikey": "<your_app_apikey>",
  "orderid": "250828000185002",
  "strategy": "Test Strategy"
}

Sample cURL Request ​

bash
curl -X POST http://127.0.0.1:5000/api/v1/orderstatus \
  -H 'Content-Type: application/json' \
  -d '{
  "apikey": "<your_app_apikey>",
  "orderid": "250828000185002",
  "strategy": "Test Strategy"
}'

Sample API Response ​

json
{
  "status": "success",
  "data": {
    "action": "BUY",
    "average_price": 18.95,
    "exchange": "NSE",
    "order_status": "complete",
    "orderid": "250828000185002",
    "price": 0,
    "pricetype": "MARKET",
    "product": "MIS",
    "quantity": "1",
    "symbol": "YESBANK",
    "timestamp": "28-Aug-2025 09:59:10",
    "trigger_price": 0
  }
}

Request Body ​

ParameterDescriptionMandatory/OptionalDefault Value
apikeyYour Tradeboard API keyMandatory-
orderidOrder ID to queryMandatory-
strategyStrategy identifierMandatory-

OrderStatusSchema declares exactly these three fields and all three are required. Omitting strategy returns HTTP 400, and any additional field returns HTTP 400 as well.

Response Fields ​

FieldTypeDescription
statusstring"success" or "error"
dataobjectOrder details object

Data Object Fields ​

FieldTypeDescription
orderidstringOrder ID
symbolstringTrading symbol
exchangestringExchange code
actionstringBUY or SELL
quantitystringOrder quantity
pricenumberOrder price (0 for MARKET orders)
trigger_pricenumberTrigger price for SL orders
pricetypestringMARKET, LIMIT, SL, SL-M
productstringMIS, CNC, NRML
order_statusstringCurrent order status
average_pricenumberAverage execution price
timestampstringOrder timestamp

Order Status Values ​

StatusDescription
completeOrder fully executed
openOrder pending execution
pendingTrigger order waiting for activation
rejectedOrder rejected by exchange
cancelledOrder cancelled by user

Notes ​

  • Use this endpoint to track order execution status
  • The response's data object is the matching entry from the order book, with average_price added. Any additional field a broker's order-book mapper emits therefore appears here too.
  • average_price is filled in from the trade book only when order_status is complete. For open, pending, rejected, and cancelled orders it is 0.0, including partially filled orders.
  • If no order matches the given orderid, the response is an error, not a success with an empty data
  • Timestamps are in IST (Indian Standard Time)

Back to: API Documentation