Introduction
The Tradejini REST API is a set of HTTP APIs that provide everything needed to build a trading platform — order management, market data, account information, and real-time streaming. The APIs are language-agnostic and work with any HTTP client.
Base URL: https://api.tradejini.com/v2
Getting Started
Follow these steps to make your first API call:
- Create a Tradejini trading account — An active retail trading account is required before API access can be enabled.
- Register an app in the Apps to obtain your
api_keyandapi_secret. See App Creation for step-by-step instructions. - Authenticate using the appropriate flow for your app type. See Authorization Flow for a walkthrough.
- Make authenticated API calls by passing
Authorization: Bearer <api_key>:<access_token>in every request. See API Basics for the full request/response reference.
Documentation Map
| Section | What you'll find |
|---|---|
| API Basics | Base URL, authentication header format, request/response conventions, field codes |
| App Creation | How to register an app and obtain API credentials |
| Authorization Flow | Step-by-step auth walkthroughs for Individual and Third-Party apps |
| Authorization | Auth API endpoint reference |
| Account | User profile and session management |
| Symbol Details | Look up instrument IDs (symId) required for order placement |
| Funds | Available margin and cash balances |
| Orders | Place, modify, cancel, and track orders |
| Advance Orders | Bracket, Cover, GTT, and OCO order types |
| Chart Data | Historical OHLCV candle data |
| WebSocket SDKs | Real-time market data and order update streaming |
| Rate Limits | Request limits per endpoint type |
| Common Errors | All error codes with causes and resolutions |
| Market Hours | Trading hours and session timings for supported exchanges and segments |