Create Order command parameters map
OrderType | OM | O | OR | OL | CM | C | CR | CL | SE | LE | S | L |
OfferID | R | R | R | R | R | R | R | R | R | R | R | R |
AccountID | R | R | R | R | R | R | R | R | R | R | R | R |
BuySell | R | R | R | R | R(1) | R(1) | R(1) | R(1) | R | R | R(1) | R(1) |
Amount | R | R | R | R | R(2)(7) | R(2)(7) | R(2)(7) | R(2)(7) | R(3) | R(3) | R(4) | R(4) |
NetQuantity | R(7) | R(7) | R(7) | R(7) | R(3) | R(3) | ||||||
TradeID | R(7) | R(7) | R(7) | R(7) | R | R | ||||||
Rate | R | R | R | R | R | R | R(5) | R(5) | ||||
RateMin | R | R | ||||||||||
RateMax | R | R | ||||||||||
TimeInForce | O | O | O | O | O | O | O | O | O | O | O | O |
TrailStep | O | O | ||||||||||
PegType | R(5) | R(5) | ||||||||||
PegOffset | R(5) | R(5) | ||||||||||
CustomID | O | O | O | O | O | O | O | O | O | O | O | O |
Parties | O | O | O | O | O | O | O | O | O | O | O | O |
RateStop | O(6) | O(6) | O(6) | O(6) | O(6) | O(6) | ||||||
PegOffsetStop | O(6) | O(6) | O(6) | O(6) | O(6) | O(6) | ||||||
PegTypeStop | O(6) | O(6) | O(6) | O(6) | O(6) | O(6) | ||||||
TrailStepStop | O | O | O | O | O | O | ||||||
RateLimit | O(6) | O(6) | O(6) | O(6) | O(6) | O(6) | ||||||
PegOffsetLimit | O(6) | O(6) | O(6) | O(6) | O(6) | O(6) | ||||||
PegTypeLimit | O(6) | O(6) | O(6) | O(6) | O(6) | O(6) |
R - is for "required"
O - is for "optional"
(1) BuySell value for the closing orders must be opposite to the BuySell value of the position to be closed.
(2) Amount of the market close order must be equal or less than the Amount value of the trade to be closed.
(3) Either the Amount or NetQuantity equal to "y" or "Y" must be specified for an entry order.
(4) Amount of the stop or limit order must be equal to the Amount value of the trade to be closed.
(5) Either the Rate or a pair of PegType and PegOffset must be specified.
(6) Either the RateStop(RateLimit) or a pair of PegTypeStop and PegOffsetStop (PegTypeLimit and PegOffsetLimit) must be specified in order to have the Stop (Limit) attached.
(7) Either a pair of Amount and TradeID or NetQuantity equal to "y" or "Y" must be specified for a close order.