Version 1 UUIDs encode a timestamp in addition to other unique information, and thus serve both to prevent replay attacks as well as to enforce request timing. As a result, nonces MUST be generated at the time of a request.
The wallet address to use for the request.
Base-quote pair e.g. 'ETH-USD'
Readonly
sideenum OrderSide
Readonly
quantityOrder quantity in base terms
Readonly
triggerOnly allowed for certain order types mentioned below, omitted otherwise.
Stop loss or take profit price for order types:
Activation price for order types:
enum OrderType
Readonly
triggerPrice type for the triggerPrice
enum TriggerType
Readonly
type import { OrderType } from '@idexio/idex-sdk'
const response = await client.createOrder({
// whichever order type you are creating
type: OrderType.market,
// ...other params
})
Optional
delegatedThe delegated key to use for the request, if any.
Optional
Readonly
clientClient-specified order id, maximum of 40 bytes
Optional
Readonly
reduceReduce only orders are only accepted opposite open positions and only reduce an opposite position’s size
Optional
Readonly
selfSelf-trade prevention policy, see enum links
selfTradePrevention
must be omitted or its default value of SelfTradePrevention.dc.
User data and trade endpoints requests must include a nonce.
with
orwithout
hyphens.