API Documentation
Integrate Chairt's powerful trading features into your own applications with our comprehensive API. Access real-time market data, execute trades, and manage your account programmatically.
Features
RESTful API
Simple and intuitive REST API with comprehensive documentation and examples.
WebSocket Support
Real-time data streaming for market prices, orders, and account updates.
Advanced Analytics
Access to technical indicators, market sentiment, and AI predictions.
Notifications
Real-time alerts for price movements, order executions, and more.
Authentication
All API requests must be authenticated using API keys. You can generate API keys from your account settings. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEYRate Limits
API rate limits vary by endpoint and account tier:
- Market Data: 120 requests per minute
- Trading: 60 requests per minute
- Account: 30 requests per minute
Rate limit information is included in the response headers:
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 119
X-RateLimit-Reset: 1500000000API Endpoints
Market Data
/api/v1/market/pricesGet real-time price data for multiple symbols
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbols | string[] | Yes | Array of trading symbols |
| interval | string | No | Time interval (1m, 5m, 15m, 1h, 4h, 1d) |
/api/v1/market/indicatorsGet technical indicators for a symbol
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Trading symbol |
| indicators | string[] | Yes | Array of indicator names |
Trading
/api/v1/ordersPlace a new trading order
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Trading symbol |
| side | string | Yes | Buy or Sell |
| type | string | Yes | Market or Limit |
| quantity | number | Yes | Order quantity |
/api/v1/ordersGet list of orders
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| status | string | No | Order status filter |
| limit | number | No | Number of orders to return |
Account
/api/v1/accountGet account information and balances
/api/v1/account/tradesGet trading history
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | No | Filter by symbol |
| startTime | number | No | Start timestamp |
| endTime | number | No | End timestamp |
WebSocket API
Connect to our WebSocket API for real-time updates:
wss://api.chairt.io/ws
// Subscribe to market data
{
"type": "subscribe",
"channel": "market",
"symbols": ["BTC/USD", "ETH/USD"]
}Need Help?
Our developer support team is here to help you integrate with our API.
Contact Developer Support