Simulated quotes

Developer API

Call the same simulated quotes and account the website uses. No real money.

At most 10 requests a second. Create an API key after you sign up. The demo account stays in this browser.

Keys

curl -c jar -H 'content-type: application/json' \
  -d '{"email":"you@example.com","password":"secret12"}' \
  https://YOUR_HOST/api/auth/login

curl -b jar -H 'content-type: application/json' \
  -d '{"name":"bot"}' \
  https://YOUR_HOST/api/v1/tokens

This key is shown once. Copy it now.

Quotes

curl -H 'authorization: Bearer nfx_...' \
  'https://YOUR_HOST/api/v1/quotes?symbols=EURUSD,XAUUSD'

curl -H 'authorization: Bearer nfx_...' \
  'https://YOUR_HOST/api/v1/candles?symbol=XAUUSD&interval=1m&limit=200'

Orders

curl -H 'authorization: Bearer nfx_...' -H 'content-type: application/json' \
  -d '{"symbol":"EURUSD","side":"BUY","lots":0.01,"sl":1.05,"tp":1.12,"clientOrderId":"bot-1"}' \
  https://YOUR_HOST/api/v1/orders

Positions

curl -H 'authorization: Bearer nfx_...' https://YOUR_HOST/api/v1/positions

curl -X PATCH -H 'authorization: Bearer nfx_...' -H 'content-type: application/json' \
  -d '{"sl":1.04,"tp":1.13}' \
  https://YOUR_HOST/api/v1/positions/POSITION_ID

curl -H 'authorization: Bearer nfx_...' -H 'content-type: application/json' \
  -d '{"lots":0.01}' \
  https://YOUR_HOST/api/v1/positions/POSITION_ID/close

History

curl -H 'authorization: Bearer nfx_...' \
  'https://YOUR_HOST/api/v1/history?limit=100'

closeReason: USER, SL, TP, STOP_OUT