Overview
The buy_or_sell field appears in Place Order, Modify Order, and order/trade book responses. It's a single-character code — not a full word.
Codes
| Code | Transaction Type | Description |
B | Buy | Buy order — opens or adds to a long position, or closes a short. |
S | Sell | Sell order — opens or adds to a short position, or closes a long. |
For Exit Order, the direction is inferred from the existing position, not passed explicitly.
Usage example
json
{
"buy_or_sell": "B",
"exch": "NSE",
"tsym": "CANBK-EQ",
"qty": "1"
}
See Order Type Codes for the paired price_type field, and Product Type Codes for product_type.
Overview
The
buy_or_sellfield appears in Place Order, Modify Order, and order/trade book responses. It's a single-character code — not a full word.Codes
BSFor Exit Order, the direction is inferred from the existing position, not passed explicitly.
Usage example
Related
See Order Type Codes for the paired
price_typefield, and Product Type Codes forproduct_type.