UpdateAll futures now fund every 4 hours, 24/7

REST and WebSocket APIs for One Trading

Manage orders and request market data over HTTPS, or stream market data and order updates over a single WebSocket connection. Both APIs authenticate with an API key created in the One Trading UI. Read the introduction

  • MiFID IIRegulated trading venue
  • Every minuteFutures positions settled
  • 24/7Funding every 4 hours
  • One API keyFor REST and WebSocket

Request and response

REST API

Orders, market data, positions and funding over HTTPS.

Open reference for the REST API
https://api.onetrading.com/fast
RequestBearer API key
POST /v1/account/orders
Authorization: Bearer <api-key>

{
  "instrument_code": "BTC_USD_P",
  "type": "LIMIT",
  "side": "SELL",
  "amount": "0.01",
  "price": "85012.40",
  "time_in_force": "GOOD_TILL_CANCELLED"
}
Response200 OK
{
  "order_id": "dc3239e2-e808-433a-8875-12ab7c537ce4",
  "instrument_code": "BTC_USD_P",
  "side": "SELL",
  "price": "85012.40",
  "amount": "0.01",
  "status": "OPEN"
}
Example payloads from the Create Order reference.

Streaming

WebSocket API

Market data, order entry and order updates over a single connection.

Open reference for the WebSocket API
wss://streams.fast.onetrading.com
Sample frames and prices for illustration only. Not live market data.

WebSocket channels

Each SUBSCRIBE message names one channel. Several channels can share the same connection. Market data channels are public. The trading and account channels require an authenticated connection.

Subscribing to channels

Futures settlement and funding

One Trading is a MiFID II regulated trading venue. Open futures positions are settled every minute, and profit and loss is realised at each settlement. The funding rate is updated every minute, and funding is exchanged between long and short position holders every 4 hours, 24/7, for all futures.

Futures introductionFunding rate methodology

Illustrative sample, not market data. One 4-hour funding period for a long position of 0.50000 BTC_USD_P, compressed into about 24 seconds. Each candle covers 10 minutes. The position is settled every minute and the profit or loss of each settlement is realised, while the funding rate is recalculated. At 4 hours, funding equal to position value × funding rate is exchanged: longs pay shorts when the rate is positive, and shorts pay longs when it is negative.