Getting Started: Subscribe to a Pro or Pay As You Go plan from API Management in the TradeGrub app to unlock higher rate limits, WebSocket access, and premium features. Go to More → Preferences → API Management → Upgrade Plan. Please follow instructions given below.
The TradeGrub API provides REST and WebSocket access to trading, market data, and account management across multiple exchanges and brokers under a single, scalable infrastructure.
| Type | URL |
|---|---|
| REST | https://api.tradegrub.com/v1/ |
| WebSocket | wss://ws.tradegrub.com/ |
Standard HTTP endpoints with JSON request/response for:
Persistent connections for real-time streaming:
All endpoints require an API Key and Secret. Order placement and webhooks also require an Account ID.
In the TradeGrub app:
Go to More → Preferences

Open API Management

Tap the + icon in the top-right corner

Enter a name, select permissions, and tap Generate

Copy your credentials:
Important: Store your Secret Key securely. It cannot be retrieved after leaving the generation screen.
Required for order placement and webhook signals.
Include an Authorization header with every request using your API Key and Secret.
Browse endpoints, view schemas, and test calls directly in your browser:
| Service | Description |
|---|---|
| General | Exchanges, markets, currencies, tickers, OHLCV, charts, rates |
| Fundamentals | Balance sheets, income statements, on-chain metrics |
| News | Headlines for any stock or crypto symbol |
| Signals | TradingView-style webhook alerts for automated trade execution |
| Auth | Link exchange accounts and manage session tokens |
| Orders | Place, list, cancel orders; view positions, balances, trade history |
| Quotes | Low-latency OHLCV snapshots from premium data sources |
| Risk | Portfolio rules that trigger alerts or auto-trades |
| Wallet | Generate wallets, check balances, send blockchain transactions |
The Scalar docs are generated from our OpenAPI spec, which can also be imported into Postman, Insomnia, or any OpenAPI-compatible tool.
A ready-to-use Postman collection (Tradegrub Published API) is available with all endpoints pre-configured.
REST API:
WebSocket API:
View WebSocket Collection on Postman
API subscribers on Pro or Enterprise plans can manage end-user accounts through a consent-based enrollment flow. This allows an admin (API subscriber) to access portfolio, positions, and account data for users who have explicitly granted permission.
Note: Each invite link can be accepted by multiple users during its 7-day validity period. You can generate new invites at any time.
Users can accept invites in two ways:
The consent screen displays:
For admins:
For users:
Once a user has accepted your invite, you can query their data using your existing API key by passing the managed user's ID in your API requests. All standard endpoints (portfolio, positions, balances, orders, account data) work with managed user IDs, subject to the permissions granted.