API Reference
Complete reference documentation for the Tradva REST API. Build powerful integrations with our trading platform.
Base URL: api.tradva.com/v1
TLS 1.3 Required
Authentication
The Tradva API uses Bearer token authentication. Include your API key in the Authorization header of all requests.
Authorization: Bearer YOUR_API_KEYQuick Start
const Tradva = require('@tradva/sdk');
const client = new Tradva({
apiKey: process.env.TRADVA_API_KEY,
environment: 'production'
});
// Create a new trading account
const account = await client.accounts.create({
userId: 'user_123',
type: 'challenge',
balance: 100000,
currency: 'USD'
});
console.log('Account created:', account.id);Endpoints
Authentication
POST
/auth/tokenGenerate access tokenPOST
/auth/refreshRefresh access tokenDELETE
/auth/revokeRevoke access tokenAccounts
GET
/accountsList all accountsPOST
/accountsCreate new accountGET
/accounts/{id}Get account detailsPATCH
/accounts/{id}Update accountGET
/accounts/{id}/balanceGet account balanceTrading
GET
/ordersList all ordersPOST
/ordersPlace new orderGET
/orders/{id}Get order detailsDELETE
/orders/{id}Cancel orderGET
/positionsList open positionsPOST
/positions/{id}/closeClose positionChallenges
GET
/challengesList all challengesPOST
/challengesCreate new challengeGET
/challenges/{id}Get challenge detailsGET
/challenges/{id}/statsGet challenge statisticsPOST
/challenges/{id}/evaluateTrigger evaluationRate Limits
API requests are rate limited to ensure fair usage and platform stability.
Standard Tier
100 req/min
Enterprise Tier
10,000 req/min
