REST API (Pro+)

Programmatic access to your Tradevanish account. Manage accounts, proxies, trades, and listeners via API.

Authentication

Generate an API key in Profile > REST API > Generate Key.

curl -H "Authorization: Bearer pc_live_YOUR_API_KEY" \
  https://www.tradevanish.com/api/accounts

API keys are hashed with SHA-256 and stored securely. The raw key is shown only once on creation.

Endpoints

Accounts

MethodEndpointDescription
GET/api/accountsList all connected accounts
POST/api/accountsConnect a new account
DELETE/api/accounts/:idDisconnect an account
PATCH/api/accounts/:id/pausePause/resume a follower

Broker Stats

MethodEndpointDescription
POST/api/brokers/statsGet live balance, equity, win rate
POST/api/brokers/topstepx/authAuthenticate with TopStepX
POST/api/brokers/tradovate/authGet Tradovate OAuth URL

Proxies

MethodEndpointDescription
GET/api/proxiesList all proxy assignments
POST/api/proxies/:accountId/rotateRotate an account's IP
POST/api/proxies/:accountId/testTest proxy health
GET/api/proxies/providersList available providers

Listeners

MethodEndpointDescription
POST/api/listeners/startStart the master listener
POST/api/listeners/stopStop the master listener
GET/api/listeners/statusGet listener state and stats

Settings

MethodEndpointDescription
GET/api/settings/riskGet risk rule configuration
PUT/api/settings/riskUpdate risk rules

Signals

MethodEndpointDescription
POST/api/signals/:signalKeyReceive a trading signal (no auth needed)
POST/api/signals/keysGenerate a new signal key
GET/api/signals/keysList active signal keys
GET/api/signals/historyView signal execution history

Rate Limits

API requests are limited to 60 requests per minute per API key.

Error Responses

{
  "error": "plan_required",
  "message": "This feature requires Pro+. Current plan: basic",
  "upgrade_url": "/api/billing/plans"
}