Orders
This document describes how to manage orders using the SDK. You can create, modify, cancel, and retrieve order details.
Place Order
POST https://api.groww.in/v1/order/create
This API is used to place a new order in the market. You can specify various parameters such as trading symbol, quantity, price, trigger price, validity, exchange, segment, product type, order type, transaction type, and an optional user-defined order reference ID.
Request
Body parameter
Request schema
Name | Type | Description |
---|---|---|
trading_symbol * | string | Trading Symbol of the instrument as defined by the exchange |
quantity * | integer | Quantity of the instrument to order |
price | decimal | Price of the instrument in rupees case of Limit order |
trigger_price | decimal | Trigger price in rupees for the order |
validity * | string | Validity of the order |
exchange * | string | Stock exchange |
segment * | string | Segment of the instrument such as CASH, FNO etc. |
product * | string | Product type |
order_type * | string | Order type |
transaction_type * | string | Transaction type of the trade |
order_reference_id * | string | User provided 8 to 20 length alphanumeric string with atmost two hypens (-). |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
order_status | string | Current status of the placed order |
order_reference_id | string | User provided reference id to track the status of an order |
remark | string | Remark for the order |
Modify Order
POST https://api.groww.in/v1/order/modify
All pending and open orders can be modified using this API.
Request
Body parameter
Request schema
Name | Type | Description |
---|---|---|
quantity | integer | Quantity of the instrument to order |
price | decimal | Price of the instrument in rupees case of Limit order |
trigger_price | decimal | Trigger price in rupees for the order |
order_type * | string | Enumeration of order types with examples |
segment * | string | Segment of the instrument such as CASH, FNO etc. |
groww_order_id * | string | Order id generated by Groww for an order |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
order_status | string | Current status of the placed order |
Cancel Order
POST https://api.groww.in/v1/order/cancel
All pending and open orders can be cancelled using this API.
Request
Body parameter
Request schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
segment * | string | Segment of the instrument such as CASH, FNO etc.. |
groww_order_id * | string | Order id generated by Groww for an order |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
order_status | string | Current status of the placed order |
Get Trades for Order
GET https://api.groww.in/v1/order/trades/{groww_order_id}
An order may be executed at the exchange differently from how an order is placed based on market liquidity. A single order might get executed in a single fulfilment, or as multiple smaller fulfilments. For example, an order of 100 quantity can get executed as 20-50-30 or any other combination. Since each of these fulfilments is defined as a trade, an order can be assigned to one or more trades. You can use groww_order_id to retrieve all the trades assigned to that order
Request
Request schema
Name | Type | Description |
---|---|---|
groww_order_id * | string | Order id generated by Groww for an order |
segment * | string | Segment of the instrument such as CASH, FNO etc. |
page | integer | Page Number |
page_size | integer | Size of the page. Maximum size is 50. |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
price | decimal | Price of the instrument in rupees case of Limit order |
isin | string | ISIN (International Securities Identification number) |
quantity | integer | Quantity of the trade |
groww_order_id | string | Groww order ID |
groww_trade_id | string | Groww trade ID |
exchange_trade_id | string | Exchange trade ID |
exchange_order_id | string | Exchange order ID |
trade_status | string | Status of the trade |
trading_symbol | string | Trading symbol |
remark | string | Remark for the trade |
exchange | string | Stock exchange |
segment | string | Segment of the instrument such as CASH, FNO etc. |
product | string | Product type |
transaction_type | string | Transaction type of the trade |
created_at | string | Creation timestamp |
trade_date_time | string | Trade date and time |
settlement_number | string | Settlement number |
Get Order Status
GET https://api.groww.in/v1/order/status/{groww_order_id}
The API can be used to check the status of an order using the groww_order_id.
Request
Request schema
Name | Type | Description |
---|---|---|
groww_order_id * | string | Order id generated by Groww for an order |
segment * | string | Segment defines whether the instrument is equity, fno contract or commodityCASH FNO |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
order_status | string | Current status of the placed order |
remark | string | Remark for the order |
filled_quantity | integer | Quantity of the order which has been executed |
order_reference_id | string | User provided reference id to track the status of an order |
Get Order Status by Reference ID
GET https://api.groww.in/v1/order/status/reference/{order_reference_id}
The API can be used to check the status of an order using the orderReferenceId.
Request
Request schema
Name | Type | Description |
---|---|---|
order_reference_id * | string | User provided reference id to track the status of an order |
segment * | string | Segment defines whether the instrument is equity, fno contract or commodityCASH FNO |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
order_status | string | Current status of the placed order |
remark | string | Remark for the order |
filled_quantity | integer | Quantity of the order which has been executed. |
order_reference_id | string | User provided reference id to track the status of an order |
Get Order List
GET https://api.groww.in/v1/order/list
The API can be used to get the history of orders executed for the day. It includes all the orders for the day including open, pending, and executed ones.
Request
Request schema
Name | Type | Description |
---|---|---|
segment | string | Segment defines whether the instrument is equity or fno contract.CASH FNO |
page | integer | Page number |
page_size | integer | Size of the page. Max page size is 100 |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
trading_symbol | string | Groww specific trading symbol of the instrument |
order_status | string | Current status of the placed order |
remark | string | Remark for the order |
quantity | integer | Quantity of the instrument to order |
price | decimal | Price of the instrument in rupees case of Limit order |
trigger_price | decimal | Trigger price in rupees for the order |
filled_quantity | integer | Quantity of the order which has been executed |
remaining_quantity | integer | Quantity remained to be filled |
average_fill_price | decimal | Avg price of the order placed |
deliverable_quantity | integer | Deliverable quantity |
amo_status | string | Status of the order placed after market (Not applicable during market hours) |
validity | string | Validity of the order |
exchange | string | Stock exchange |
order_type | string | Order type |
transaction_type | string | Transaction type of the trade |
segment | string | Segment of the instrument such as CASH, FNO etc. |
product | string | Product type |
created_at | string | Order created at date and time |
exchange_time | string | Date and Time at which order was placed at exchange |
trade_date | string | Date on which trade has taken place |
order_reference_id | string | User provided reference id to track the status of an order |
Get Order Details
GET https://api.groww.in/v1/order/detail/{groww_order_id}
The api can be used to get the details of an order using the groww_order_id.
Request
Request schema
Name | Type | Description |
---|---|---|
groww_order_id * | string | Order id generated by Groww for an order |
segment * | string | Segment of the instrument such as CASH, FNO etc. |
*
required parameters
Response
Response Schema
Name | Type | Description |
---|---|---|
status | string | SUCCESS if request is processed successfully, FAILURE if the request failed |
groww_order_id | string | Order id generated by Groww for an order |
trading_symbol | string | Groww specific trading symbol of the instrument |
order_status | string | Current status of the placed order |
remark | string | Remark for the order |
quantity | integer | Quantity of the instrument to order |
price | decimal | Price of the instrument in rupees case of Limit order |
trigger_price | decimal | Trigger price in rupees for the order |
filled_quantity | integer | Quantity of the order which has been executed. |
remaining_quantity | integer | Quantity remained to be filled |
average_fill_price | decimal | Avg price of the order placed |
deliverable_quantity | integer | Deliverable quantity |
amo_status | string | Status of the order placed after market (Not applicable during market hours) |
validity | string | Validity of the order |
exchange | string | Stock exchange |
order_type | string | Order type |
transaction_type | string | Transaction type of the trade |
segment | string | Segment of the instrument such as CASH, FNO etc. |
product | string | Product type |
created_at | string | Order created at date and time |
exchange_time | string | Date and Time at which order was placed at exchange |
trade_date | string | Date on which trade has taken place |
order_reference_id | string | User provided reference id to track the status of an order |