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
dry
When true, it indicates that the order must not be eventually created but only as a dry-run.
knowledgeOrExperience
Optionally specify if the client has knowledge or experience about the type of instrument of the order
Request
This endpoint expects an object.
clientOrderId
A unique identifier generated by the client that must be unique among all orders.
subAccountId
The unique identifier of the sub-account the order will belong to.
type
Allowed values:
side
Allowed values:
quantity
Quantity of the order. It indicates the maximum quantity that can be filled by trades.
minQuantity
Minimal quantity of a fill.
timeInForce
Allowed values:
transactTime
symbol
The symbol of the pair the order is assigned to.
price
Price of one unit of the base currency.
settleInstrumentId
The unique identifier of the instrument that must be used to convert a trade from the quote currency.
complianceId
orderRestrictions
orderCapacity
Response
A successful response.
result
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error