Namaskara,
Lets take an example: The response body of GetOrderDetails
{
“status”: “success”,
“data”: {
“exchange”: “NSE”,
“product”: “D”,
“price”: 571.0,
“quantity”: 1,
“status”: “complete”,
“tag”: null,
“instrument_token”: “NSE_EQ|INE062A01020”,
“placed_by”: “******”,
“trading_symbol”: “SBIN-EQ”,
“tradingsymbol”: “SBIN-EQ”,
“order_type”: “LIMIT”,
“validity”: “DAY”,
“trigger_price”: 0.0,
“disclosed_quantity”: 0,
“transaction_type”: “BUY”,
“average_price”: 570.95,
“filled_quantity”: 1,
“pending_quantity”: 0,
“status_message”: null,
“status_message_raw”: null,
“exchange_order_id”: “1300000025660919”,
“parent_order_id”: null,
“order_id”: “231019025562880”,
“variety”: “SIMPLE”,
“order_timestamp”: “2023-10-19 13:25:13”,
“exchange_timestamp”: “2023-10-19 13:25:13”,
“is_amo”: false,
“order_request_id”: “1”,
“order_ref_id”: “GTT-C23191000044253”
}
}
Here Json Key Exchange has value “NSE”, however the list of Exchanges as provided in the appendix is as follows:
Description:
data.exchange : Exchange to which the order is associated. Valid exchanges can be found in the Exchange Appendix
Kindly note the word used is Exchange instead of Exchange Segment.
Valid (major) exchanges in Bharatha are:
1. NSE
2. BSE
3. MCX
However the list as per /appendix/exchange is as follows:
Value | Description |
---|---|
NSE | Represents equities traded on the National Stock Exchange. |
NFO | Futures and options segment of the National Stock Exchange. |
CDS | Currency derivatives segment for forex futures and options. |
BSE | Equities listed on the Bombay Stock Exchange. |
BFO | Futures and options segment of the Bombay Stock Exchange. |
BCD | Currency derivatives trading on the Bombay Stock Exchange. |
MCX | Commodity futures trading on the Multi Commodity Exchange. |
NSCOM | Commodity derivatives trading on National Stock Exchange. |
Here the entities are mixed leading to confusion…
Let me put this way, the relation between Exchange and Exchange Segments.
Exchange CONTAINS Exchange Segments.
So they are distinct entities. That leads to following combination:
Exchange | Exchange_Segment
- NSE | NSE_EQ (NSE cash segment)
- NSE | NSE_FO (NSE Derivative segment)
- NSE | NSE_NSCOM (NSE Commodity segment)
- NSE | NSE_CDS (NSE Currency derivative segment)
- BSE | BSE_EQ
- BSE | BSE_FO
- BSE | BSE_BCD
- MCX | MCX_FO
Here we have segregated the entities to their respective sets.
This results in a clearer data representation, for ex:
“exchange”: “NSE”,
“exchange_segment”: “NSE_FO”,
I hope it gets implemented.
Regards
Rathnadhar K V