Zerodha > Trade @ ₹20 (Free Delivery)Know More
Free Account Opening + AMC Free Demat

Firstock API (Algo Trading) Review

Firstock Logo

Firstock offers a robust and developer-friendly trading API suite, enabling traders, developers, and institutions to build customised trading platforms and strategies.

The Firstock API is built with a modern architecture that supports RESTful calls and WebSocket for real-time data feeds, order management, and more.

Firstock helps developers build scalable trading solutions for algorithmic trading, portfolio management, or data analytics. Ideal for algo traders, FinTech startups, and analysts, it provides seamless access to market data, account management, and trading execution across multiple segments, including equities, derivatives, and commodities.

Firstock API Documentation.

Firstock API Key Features

  • REST and WebSocket Support: Use REST APIs for accessing static data and WebSocket for receiving real-time market feeds and order updates.
  • Multi-Segment Trading: Trade across NSE, BSE, NFO, BFO, and index instruments.
  • Secure Authentication: Token-based authentication with SHA256 password encryption and TOTP-based 2FA.
  • Multi-Language SDKs: Official SDKs in Python, Node.js, and C# simplify integration.
  • Advanced Developer API (New): Real-time performance, modular integration, backwards compatibility with V4, and enhanced security.
  • Reduced latency: Faster responses and lower latency due to optimised backend and improved servers. Supports near-real-time data feeds and quick order placements.
  • Modular Approach: Designed for everything from personal projects to enterprise trading platforms, with a modular approach that allows you to integrate only the necessary components.

Firstock API Details

API Brokerage Charge

Free

API Document Linkhttps://wikiconnect.thefirstock.com
API Data Format

Python, C# and Node.js

API Offer Type
  • Login/Logout
  • Trade Book, Position Book, Product Conversion, Holdings, Limits
  • Order APIs, Order Margin, Order Book, Market Data, Reports API, Basket Order, Single Order History
API Exchange Support

BSE and NSE

API Support Features
  • Login Authentication
  • Order Placement
  • Order Modificiation
  • Order Cancellation
  • Order History
  • Portfolio
  • Notifications Logout
API Order Types
  • MKT – Market Order
  • LMT – Limit Order
  • SL-MKT – Stop-Market Order
  • SL-LMT – Stop-Limit Order
  • C – Cash and Carry (Delivery)
  • M – Futures & Options Normal
  • I – Intraday
API Demo Linkhttps://wikiconnect.thefirstock.com

Firstock API Rate Limit

API Type

Rate Limit

Quote

4 requests/sec

Historical Candle

3 requests/sec

All Other Endpoints

10 requests/sec

Order Placement

200 requests/min

Firstock API Key

An API key is a unique code that lets you connect your app to the Firstock platform. It is required for:

  • Authentication – So the system knows it's you.
  • Access Control – It generates a token (jKey) that allows you to place orders, check account information, and more.

What You Need Before You Start

  • You must have an active Firstock trading account.
  • Make sure you can log in to the Key Generation Portal.
  • Know where to find the API Key, Vendor Code, and other settings in your dashboard.

How to Generate Your API Key

Step 1: Go to the Key Generation Portal
Log in with your Firstock account credentials.

Step 2: Create Your API Key
Once you're logged in:

  • Find the section called API Keys.
  • Click Generate Key or Create New Key.
  • Your AppKey and Vendor Code will be shown.

Make sure to copy and save them — you’ll need these for using the API.

Firstock API Login

Step 1: Go to the connect key generation and enter the firstock credentials

Step 2: Once logged in, you will find the appkey and vendor code. Please copy them and paste them into the fields in the login API.

Step 3: Upon a successful login, a status of success is returned along with a data object containing user-specific parameters.

Please keep in mind: The key expires after 365 days; a new one must be generated.

Step 4: In API Version 4 (V4), your password must be converted to SHA256 before sending it in the login request (only when using raw cURL or REST).

Step 5: If you're using the official Python package, the password encryption happens automatically.

Conclusion

Firstock API is a powerful tool for any serious trader or developer looking to automate strategies or build trading platforms. With REST + WebSocket support, real-time execution, SDKs, and detailed documentation, it delivers excellent value and flexibility.

Firstock Special Offer

Unlimited Trades @ ZERO Brokerage on Delivery trades

  • Rs 0 brokerage on Delivery.
  • Rs 20 per executed order on F&O and Intraday.

This is a limited-time offer. Open a Free Demat Account online and start trading today.

Firstock Account Opening Enquiry

Experience ZERO Brokerage on Delivery trades with Firstock. Rs 20 Brokerage on Intraday and F&O trades, with no hidden charges. Open Free Demat account with Firstock and start trading today.

Information on this page was last updated on Thursday, February 22, 2024

Special Offer: Experience ZERO Brokerage on Delivery trades with Firstock. Rs 20 Brokerage on Intraday and F&O trades, with no hidden charges. Open Free Demat account with Firstock and start trading today.

Are you a Firstock Customer?