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 type import { OrderType } from '@kumabid/kuma-sdk'
const response = await client.createOrder({
// whichever order type you are creating
type: OrderType.market,
// ...other params
})
Readonly priceenum OrderType
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 timetimeInForce set to TimeInForce.gtxOptional 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.
withorwithouthyphens.