The TradeGrub API Suite provides a unified gateway for brokers, traders, and enterprises to access all major trading services including REST and WebSocket interfaces under one powerful, scalable infrastructure.
These APIs serve as the backbone of the TradeGrub Enterprise Platform, enabling clients to trade, manage accounts, analyze markets, and access real-time data streams securely and efficiently.
| Type | URL |
|---|---|
| REST Base URL | https://api.tradegrub.com/v1/ |
| WebSocket Base URL | wss://ws.tradegrub.com/ |
A single API interface for all modules:
REST APIs use standard HTTP requests for account, order, and market operations.
They support JSON-based payloads and return structured JSON responses.
Use cases:
Persistent WebSocket connections allow:
Seamlessly connects with multiple exchanges and brokers:
TradeGrub APIs are accessible only to verified clients.
All endpoints require API Key and Secret authentication.
Each HTTP request must include an Authorization header:
The API Module is restricted to tradegrub customers.
Each customer receives dedicated API keys and must authenticate using these credentials.
You must generate API Key & Secret and provide them in your environment variables before making any request. For order placement and signals/webhooks, an Account ID is also required.
Follow these steps in the TradeGrub app:
Open the app → More → Preferences

Navigate to the API Management tab

Click the ➕ (plus icon) at the top-right corner

Give your key a descriptive name and set required permissions → click Generate

Copy your keys:
Add credentials to Postman Environment
.png)
Your Account ID is required for order placement and webhooks.
Real-time access to market data and trading actions is facilitated via secure WebSocket connections.
Comprehensive API documentation is available to tradegrub customers, detailing the request formats, response structures, and authentication methods.
We provide a ready-to-use Postman collection named Tradegrub Published API, which contains:
Trading API folder.baseUrl, exchange_name, accountId, etc.) are pre-configured for convenience.👉 Explore the official REST API docs on Postman:
👉 Explore the official Websocket docs on Postman:
To make testing easier, a Postman environment file named Tradegrub will also be shared with you.
This file contains pre-configured variables such as:
api-keysecret-keyImport this environment file in Postman and select it from the environment dropdown to use these variables directly in requests. Paste your api-key and secret-key in the pre-configured variables.