Skip to main content
Error

Authorizations

Authorization
string
header
required

Authorization: Bearer . Scopes: mm:read (GET endpoints), mm:trade (POST endpoints).

Scopes

mm:trade

Body

application/json
clientOrderId
string
required

Your identifier for this order, unique per account forever. Retrying with the same clientOrderId and the same terms returns the existing order.

Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$
instrumentId
string
required

The market.

side
enum<string>
required

SELL is sell-to-close only.

Available options:
BUY,
SELL
type
enum<string>
required
Available options:
LIMIT
price
object
required

Limit price. A multiple of priceTick, with the same decimals. units is a positive integer string.

quantity
object
required

Contracts. A multiple of quantityStep, with the same decimals. units is a positive integer string.

Response

Duplicate: this clientOrderId already has an order with the same terms. Nothing new was created.

order
object
required
duplicate
boolean
required

true when this clientOrderId already had an order with the same terms; order is its current state.

serverTimeMs
string
required

D1 server time, Unix milliseconds, as a decimal string.

Example:

"1800000000510"