Create Order command parameters' map.

OrderTypeOMOORCMCCRSELESL
OfferIDRRRRRRRRRR
AcctIDRRRRRRRRRR
BuySellRRRR(1)R(1)R(1)RRR(1)R(1)
QuantityRRRR(2)(3)R(2)(3)R(2)(3)R(3)R(3)R(4)R(4)
NetQtyFlagOOOOO
TradeIDRRRRR
RateRR(5)RR(5)RRR(6)R(6)
RateMinR(5)R(5)
RateMaxR(5)R(5)
AtMarketR(5)R(5)
GTCOOOOOOOOOO
TrailUpdatePipsOO
PegTypeR(6)R(6)
PegPriceOffsetPipsR(6)R(6)
CustomIDOOOOOOOOOO
PartiesOOOOOOOOOO
RateStopO(7)O(7)O(7)O(7)O(7)
PegPriceOffsetPipsStopO(7)O(7)O(7)O(7)O(7)
PegTypeStopO(7)O(7)O(7)O(7)O(7)
TrailStepStopOOOOO
RateLimitO(7)O(7)O(7)O(7)O(7)
PegPriceOffsetPipsLimitO(7)O(7)O(7)O(7)O(7)
PegTypeLimitO(7)O(7)O(7)O(7)O(7)
Notes:

R - is for "required"

O - is for "optional"

(1) BuySell value for the closing orders must be opposite for the BuySell value of the position to be closed.

(2) Quantity of the market close order must be equal or smaller than the Lot value of the trade to be closed.

(3) Quantity of the entry order must be specified only in case NetQtyFlag is "n".

(4) Quantity of the stop or limit order must be equal the Lot value of the trade to be closed.

(5) Either a pair of the RateMin and RateMax or a pair of the Rate and AtMarket fields must be specified.

(6) Either the Rate or a pair of PegType and PegPriceOffsetPips must be specified.

(7) Either the RateStop(RateLimit) or a pair of PegTypeStop and PegPriceOffsetPipsStop (PegTypeLimit and PegPriceOffsetPipsLimit) must be specified in order to have the Stop (Limit) attached.