Kotak Securities offers APIs to fetch your:
These APIs allow you to fetch and monitor all relevant trading activity programmatically.
| API | Endpoint (after <Base URL>) | Method |
|---|---|---|
| Order Book | /quick/user/orders |
GET |
| Order History | /quick/order/history |
POST |
| Trade Book | /quick/user/trades |
GET |
Replace
<Base URL>with the relevant Kotak environment base URL provided in response from /tradeApiValidate api.
Applicable to all three APIs:
| Name | Type | Description |
|---|---|---|
| accept | string | Should always be application/json |
| Sid | string | session sid generated on login |
| Auth | string | session token generated on login |
| neo-fin-key | string | static value: neotradeapi |
| Content-Type | string | Always application/x-www-form-urlencoded |
Example Request:
curl -X GET "<baseUrl>/quick/user/orders" \\
-H "Auth: <session_token>" \\
-H "Sid: <session_sid>" \\
-H "neo-fin-key: neotradeapi"
No request body or parameters required.
Request Body: