Overview
The TradeX AI API provides programmatic access to our AI-powered trading signals and market data. Our REST API is designed to be simple, fast, and reliable, with predictable resource-oriented URLs and standard HTTP response codes.
Base URL
https://api.tradexai.ai/v1
Content Type
All API requests and responses use JSON format. Ensure your requests include the following header:
Content-Type: application/json
Authentication
All API requests require authentication using an API key. Include your API key in the Authorization header of each request.
Authorization: Bearer YOUR_API_KEY
You can generate and manage API keys from your Dashboard. Keep your API keys secure and never expose them in client-side code.
Get Trading Signals
Retrieve real-time AI-generated trading signals for cryptocurrency pairs.
Returns a list of active trading signals with entry points, targets, and stop-loss levels.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pair |
string | Optional | Filter by trading pair (e.g., BTC/USDT) |
type |
string | Optional | Filter by signal type: BUY or SELL |
limit |
integer | Optional | Number of results (default: 20, max: 100) |
Example Request
curl -X GET "https://api.tradexai.ai/v1/signals?pair=BTC/USDT" \ -H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"success": true,
"signals": [
{
"id": "sig_123456",
"pair": "BTC/USDT",
"type": "BUY",
"confidence": 94.7,
"entry_price": 43250.00,
"target_price": 44800.00,
"stop_loss": 42100.00,
"timeframe": "4H",
"created_at": "2026-02-07T10:30:00Z"
}
]
}
Get Market Prices
Retrieve current market prices for all supported cryptocurrency pairs.
Returns current prices and 24h change percentages for all supported trading pairs.
curl -X GET "https://api.tradexai.ai/v1/prices" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"prices": {
"BTC/USDT": {
"price": 43250.50,
"change_24h": 2.45,
"volume_24h": 28500000000
},
"ETH/USDT": {
"price": 2650.75,
"change_24h": 1.82,
"volume_24h": 15200000000
}
}
}
Rate Limits
To ensure fair usage and platform stability, API requests are subject to rate limiting. Limits vary by subscription plan:
| Plan | Requests per Minute | Requests per Day |
|---|---|---|
| Starter | 60 | 10,000 |
| Professional | 300 | 100,000 |
| Enterprise | Unlimited | Unlimited |
When you exceed the rate limit, the API returns a 429 Too Many Requests response. Check the Retry-After header to see when you can make your next request.
Error Handling
TradeX AI uses conventional HTTP response codes to indicate the success or failure of an API request:
- 200 OK - The request was successful
- 400 Bad Request - The request was malformed or missing parameters
- 401 Unauthorized - Invalid or missing API key
- 403 Forbidden - API key doesn't have permission for this action
- 404 Not Found - The requested resource doesn't exist
- 429 Too Many Requests - Rate limit exceeded
- 500 Internal Server Error - Something went wrong on our end
Error Response Format
{
"success": false,
"error": {
"code": "invalid_api_key",
"message": "The provided API key is invalid"
}
}
SDKs & Libraries
We provide official SDKs to make integration easier:
- JavaScript/Node.js -
npm install tradexai-api - Python -
pip install tradexai - Go -
go get github.com/tradexai/tradexai-go - Rust -
cargo add tradexai
Webhooks
Receive real-time notifications when new signals are generated. Configure webhooks in your Dashboard settings.
{
"event": "signal.created",
"timestamp": "2026-02-07T10:30:00Z",
"data": {
"signal_id": "sig_123456",
"pair": "BTC/USDT",
"type": "BUY",
"confidence": 94.7
}
}