This API Function fetches the Orderbook details from the broker with basic orderbook statistics
Local Host : http://127.0.0.1:5000/api/v1/orderbook
Ngrok Domain : https://<your-ngrok-domain>.ngrok-free.app/api/v1/orderbook
Custom Domain: https://<your-custom-domain>/api/v1/orderbook
{
"apikey": "<your_app_apikey>"
}
{
"data": {
"orders": [
{
"action": "SELL",
"exchange": "NSE",
"order_status": "complete",
"orderid": "24120900000213",
"price": 1500,
"pricetype": "LIMIT",
"product": "MIS",
"quantity": 5,
"symbol": "INFY",
"timestamp": "09-Dec-2024 09:44:09",
"trigger_price": 0
},
{
"action": "BUY",
"exchange": "NSE",
"order_status": "complete",
"orderid": "24120900000212",
"price": 0,
"pricetype": "MARKET",
"product": "MIS",
"quantity": 10,
"symbol": "RELIANCE",
"timestamp": "09-Dec-2024 09:44:09",
"trigger_price": 0
}
],
"statistics": {
"total_buy_orders": 1,
"total_completed_orders": 2,
"total_open_orders": 0,
"total_rejected_orders": 0,
"total_sell_orders": 1
}
},
"status": "success"
}