Skip to content

Get Started

Firstock API are a set of REST APIs that extends the usage capabilities to build a stock market investment and trading platform. It provides all the necessary functionality from real time order execution, portfolio management, live market stream nad many more.

All inputs are form-encoded parameters and responses are JSON. Standard HTTP codes are used to indicate success and error states with accompanying JSON data. The API endpoints are not cross site request enabled, hence cannot be called directly from browsers.

An API key is a key allocated to the Firstock User after opening Trading Account, users can acquire the API key by logging to FirstockLogin

Note

  • API_key: is a key allocated to the User. Input will be in string format.
  • API_secret: ID received as response from Login 2FA.Input will be in string format..
  • Data: is a JSON object which is referred as Input in rest description table. If there is no input mentioned in the table you need to send it as a blank object or a blank string. Input will be in string format.

Libraries and SDKs

pip install thefirstock
npm install thefirstock
dotnet add package thefirstock

Below is a list of pre-built client libraries for Firstock Connect written in various programming languages that can be used to interact with the APIs without having to make raw HTTP calls.

Postman collection

Swagger Documentation


Trading Symbols


Version and API endpoint

The current major stable version of the API is 2. All requests go to it by default. It is recommended that a specific version be requested explicitly for production applications as major releases may break older implementations.

Root API endpoint

https://connect.thefirstock.com/apiV2

Root Websocket endpoint

wss://norenapi.thefirstock.com/NorenWSTP/