One Trading API
REST APIWebSocket API
REST APIWebSocket API
  1. Trading
  • Introduction
  • Authenticate
  • Subscribe
  • Ping / Pong
  • Trading
    • Introduction
    • Dead Man Switch (Auto Cancellation)
    • Create Order
    • Cancel All Orders
    • Cancel Order by Client ID
    • Cancel Order by Order ID
    • Margin Update
    • Settlement
    • Funding Payment
    • Order Booked
    • Order Rejected
    • Order Closed
    • Trade Executed
    • Order Fully Filled
    • Move Order
    • Balance Adjustment
  • Orderbook
    • Introduction
    • Orderbook Snapshot
    • Orderbook Update
  • Price Ticks
    • Introduction
    • Price Tick
  • Book Ticker
    • Introduction
    • Book Tick
  1. Trading

Introduction

The TRADING channel allows you to create and cancel orders and a feed of order updates based on your trading activity in your account.
You must ensure the API token you generate has the Trade permission, otherwise you will receive an AUTH_ERROR.

Subscribe#

{
    "type": "SUBSCRIBE",
    "channels": [
        {
            "name": "TRADING"
        }
    ]
}

Subscription Confirmation#

{
    "type": "SUBSCRIPTIONS",
    "channels": [
        {
            "name": "TRADING"
        }
    ],
    "time": 1732051274299000000
}
SubscriptionConfirmation
type
enum<string> 
required
Allowed value:
SUBSCRIPTIONS
channels
array [object {2}] 
required
name
string 
required
Name of the channel which has just been subscribed to.
instrument_codes
array[string]
optional
Optional list of instrument codes to receive events for.
time
number 
required
Time the message was sent from the server in nanoseconds.
Previous
Ping / Pong
Next
Dead Man Switch (Auto Cancellation)
Built with