The funding type of the order. Funded orders will be placed with the user's available balance. Margin orders will be placed with the user's margin balance.
Side of a trade, from the perspective of the requesting user
Allowed values: buysell
Example: buy
quantitystring<decimal>required
The specified quantity.
quantityCurrencystringrequired
The specified quantity currency.
filledQuantitystring<decimal>required
The base quantity that was filled.
filledQuoteQuantitystring<decimal>required
The quote quantity that was filled.
averagePricestring<decimal>required
limitPricestring<decimal>
durationinteger
Duration of the order in minutes.
twapIntervalinteger
Interval length of the TWAP order in minutes.
reasonstring
Reason for order cancellation. 'internalError' indicates an error occurred within the server while processing the order, resulting in an order cancellation. 'insufficientFunds' indicates that the order was cancelled due to shortage of funds to complete the transaction.
Allowed values: internalErrorinsufficientFunds
Example: insufficientFunds
parametersobject
isTimeSlicedboolean
The isTimeSliced field, when provided under the parameters section, determines the order's time slicing behavior:
- If isTimeSliced is set to true, the order will be executed using a time-sliced strategy.
- If isTimeSliced is set to false, the order will be executed using a regular TWAP strategy without time slicing.
- If isTimeSliced is not specified, the default behavior uses a regular TWAP strategy without time slicing.
boundsControlstring
The boundsControl field, when provided under the parameters section, determines how strictly the TWAP algorithm adheres to the target fill progression.
- It is optional but can be provided for a regular TWAP strategy.
- Default value is `standard`.
Allowed values: narrowstandardwide
intervalintegerrequired
The interval for the SteadyPace order, specified in conjunction with the interval unit.
intervalUnitstringrequired
The unit of time for the interval. Defaults to "minute".
Allowed values: secondminutehour
subOrderSizestringrequired
The size of each sub-order in the SteadyPace order.
variancenumber
Optional degree of randomization for sub-order sizes. Accepts a decimal value rounded to two decimal places between 0 and 1, representing the variation in the size of each sub-order.
For example, a value of 0.20 indicates a 20% variance.