Skip to main content

Environments & testing

One environment: production

OnlyTrade runs a single environment — production. There is no separate sandbox, staging, or dev server. OnlyTrade is deployed one stack per broker, so your base URL is your own deployment's host. The public reference deployment is:

https://api.onlytradeplatform.com
PrefixPurpose
/auth/v1/oauth2login, token, refresh, logout
/api/v1authenticated REST (Bearer token)
/api/v1/publicunauthenticated: signup, forgot/reset password
/ws/v1real-time WebSocket stream

Test safely with demo accounts

Because there is only production, you test with demo accounts instead of a separate environment. A demo account runs on the same production system but moves no real money — it's the safe way to build and validate your integration.

Create one by setting trade_type: 1:

  • Via the back office — create an account with "trade_type": 1.
  • Via self-service — the public signup endpoint with "trade_type": 1 (the website's Free Trial path).

A demo account:

  • Gets a $100,000 starting balance by default.
  • Trades against the same live prices, matching, margin, and prop-risk engine as live accounts.
  • Can be funded, withdrawn, and reconciled through the funding API — all virtual.
  • Carries a trial window (admin-tunable; default 30 days).
Build on demo, then flip to live

Run your entire integration — provisioning, funding, CRM login, the WebSocket feed — against demo accounts. When every flow passes, provision with trade_type: 0 for live accounts. Nothing else changes — same host, same API.

Going live

Going live is a configuration change, not a code change:

  1. Provision with trade_type: 0 (live, real money) instead of 1.
  2. New live accounts can be created pending (status: 1) so they wait for KYC approval before trading.