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
REST APIWebSocket API
REST APIWebSocket API
  1. Trading

Create Order

You must be authenticated and subscribed to the TRADING channel in order to send trading messages.

Create Order Request#

{
    "type": "CREATE_ORDER",
    "order": {
        "instrument_code": "BTC_EUR",
        "amount": "0.1",
        "side": "SELL",
        "type": "LIMIT",
        "price": "85000",
        "time_in_force": "GOOD_TILL_CANCELLED"
    }     
 }
CreateOrderRequest

Create Order Response#

Success#

{
    "channel_name": "TRADING",
    "type": "BOOKED", // DEPRECATED
    "event": "ORDER",
    "status": "OPEN",
    "order_book_sequence": 70422217646,
    "side": "SELL",
    "amount": "0.1",
    "price": "85000",
    "instrument_code": "BTC_EUR",
    "tif": "GTC",
    "client_id": "c95d3780-cd25-44e2-a7c6-5f04991e819e",
    "order_id": "b3572bca-4c88-4fc0-8537-2ada40cd91c1",
    "time": 1743072083415515130,
    "bals": [
        {
            "c": "BTC",
            "a": "10"
        },
        {
            "c": "EUR",
            "a": "20000"
        }
    ],
    "lckd_bals": [
        {
            "c": "BTC",
            "a": "0.1"
        },
        {
            "c": "EUR",
            "a": "0"
        }
    ]
}
SpotBookedOrder

Errors#

A create order request may be initially be rejected if it first fails validation.
{
    "error": "MIN_NOTIONAL_ERROR",
    "payload": {
        "type": "CREATE_ORDER",
        "order": {
            "instrument_code": "BTC_EUR",
            "type": "LIMIT",
            "side": "BUY",
            "amount": "0.00001",
            "price": "80000",
            "time_in_force": "GTC",
            "reserve_price": "100000"
        }
    }
}
OrderErrorResponse

It may then be subsequently rejected if it passes initial validation.
See: Order Rejected
Previous
Dead Man Switch (Auto Cancellation)
Next
Cancel All Orders
Built with