Skip to navigation

Create an order

This endpoint is called to create an order by providing:

  • A unique order identifier generated by the client.
  • A price for a unit of the base instrument (e.g. 1 BTC for 24000 CHF)
  • A quantity and minimal quantity for the order.
  • A type (e.g. a limit order).
  • A side (e.g. sell).
  • A time in force (e.g. Good-til-cancel).
  • A symbol for the pair (e.g. BTC/CHF).

It returns the details of the order when successfully created, otherwise it returns an error message.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

drybooleanOptional

When true, it indicates that the order must not be eventually created but only as a dry-run.

knowledgeOrExperiencebooleanOptional
Optionally specify if the client has knowledge or experience about the type of instrument of the order

Request

This endpoint expects an object.
clientOrderIdstringRequiredformat: "^[0-9a-zA-ZÀ-ÿ-_@.+:]*$"
A unique identifier generated by the client that must be unique among all orders.
subAccountIdstringRequiredformat: "uuid"

The unique identifier of the sub-account the order will belong to.

typeenumRequired
Allowed values:
sideenumRequired
Allowed values:
quantitystringRequiredformat: "decimal"
Quantity of the order. It indicates the maximum quantity that can be filled by trades.
minQuantitystringRequiredformat: "decimal"
Minimal quantity of a fill.
timeInForceenumRequired
Allowed values:
transactTimedatetimeRequired
symbolstringRequired
The symbol of the pair the order is assigned to.
pricestringRequiredformat: "decimal"
Price of one unit of the base currency.
settleInstrumentIdstringOptionalformat: "uuid"
The unique identifier of the instrument that must be used to convert a trade from the quote currency.
complianceIdstringOptional
orderRestrictionsstringOptional
orderCapacitystringOptional

Response

A successful response.
resultobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error