User data and trade endpoints requests must include a nonce.
with or without hyphens.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 type import { OrderType } from '@kumabid/kuma-sdk'
const response = await client.createOrder({
// whichever order type you are creating
type: OrderType.market,
// ...other params
})
Readonly sideenum OrderSide
Readonly quantityOrder quantity in base terms
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.Optional 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
Optional Readonly triggerPrice type for the triggerPrice
enum TriggerType
Optional Readonly priceenum OrderType
Optional Readonly isWhen this parameter is true it indicates that the order is an LP side
channel order not to be executed against the order book.
true on market and
limit order types.limit orders, timeInForce must be TimeInForce.gtc
indicating that side channel orders never take liquidity.
See