Covers: Order Book, Order History, Trade Book APIs

1. Introduction

Kotak Securities offers APIs to fetch your:

These APIs allow you to fetch and monitor all relevant trading activity programmatically.

2. API Endpoints

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.

3. Headers

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

4. Request

4.1. GET Order Book

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.

4.2. POST Order History

Request Body: