Skip to main content

Get User Order request

Get user order information based on order number / position number

Request address

  • API Address (requestURI) : /api/v1/request/getUserOrder

Request parameters

Parameter nameTypeRequirementDescription
loginLongRAdministrator account
accountLoginLongRCurrent account login
orderLongROrder NO.
positionDoubleRPosition NO.
symbolStringRThe symbol for the order

Sample request

{
"login": 100001,
"accountLogin": 200000252,
"orderNo": 204925,
"positionNo": 204926,
"symbol": "UKOIL"
}

Response parameters

  • position
Parameter nameTypeRequirementDescription
loginIntegerRThe login ID
symbolStringRThe symbol for the order
actionIntegerRThe action type
digitsIntegerRThe number of digits
digitsCurrencyIntegerRThe number of currency digits
contractSizeDoubleRThe contract size
positionIntegerRThe position ID
externalIdStringRThe external ID
timeCreateIntegerRThe creation time
timeUpdateIntegerRThe update time
timeCreateMscIntegerRThe creation time in milliseconds
timeUpdateMscIntegerRThe update time in milliseconds
priceOpenDoubleRThe open price
priceCurrentDoubleRThe current price
priceSlDoubleRThe stop loss price
priceTpDoubleRThe take profit price
volumeIntegerRThe volume
volumeExtIntegerRThe extended volume
profitDoubleRThe profit
storageDoubleRThe storage
rateProfitDoubleRThe profit rate
rateMarginDoubleRThe margin rate
expertIDIntegerRThe expert ID
expertPositionIDIntegerRThe expert position ID
commentStringRThe comment
dealerIntegerRThe dealer ID
enActivationModeIntegerRThe activation mode
activationTimeIntegerRThe activation time
activationPriceDoubleRThe activation price
apiDataObjectRThe API data
modificationFlagsIntegerRThe modification flags
reasonIntegerRThe reason
activationFlagsIntegerRThe activation flags
  • imtOrderList
Parameter nameTypeRequirementDescription
orderIntegerRThe order ID
externalIDStringRThe external ID
loginIntegerRThe login ID
dealerIntegerRThe dealer ID
symbolStringRThe symbol for the order
digitsIntegerRThe number of digits
digitsCurrencyIntegerRThe number of currency digits
contractSizeDoubleRThe contract size
stateIntegerRThe state of the order
reasonIntegerRThe reason for the order
timeSetupIntegerRThe setup time
timeSetupMscIntegerRThe setup time in milliseconds
timeExpirationIntegerRThe expiration time
timeDoneIntegerRThe done time
timeDoneMscIntegerRThe done time in milliseconds
typeIntegerRThe type of the order
typeFillIntegerRThe fill type of the order
typeTimeIntegerRThe time type of the order
priceOrderDoubleRThe order price
priceTriggerDoubleRThe trigger price
priceCurrentDoubleRThe current price
priceSLDoubleRThe stop loss price
priceTPDoubleRThe take profit price
volumeInitialIntegerRThe initial volume
volumeInitialExtIntegerRThe extended initial volume
volumeCurrentIntegerRThe current volume
volumeCurrentExtIntegerRThe extended current volume
expertIDIntegerRThe expert ID
positionIDIntegerRThe position ID
positionByIDIntegerRThe position by ID
commentStringRThe comment
activationModeIntegerRThe activation mode
activationTimeIntegerRThe activation time
activationPriceDoubleRThe activation price
activationFlagsIntegerRThe activation flags
apiDataNullOThe API data
rateMarginDoubleRThe margin rate
modificationFlagsIntegerRThe modification flags
  • imtDealList
Parameter nameTypeRequirementDescription
dealIntegerRThe deal ID
externalIDStringRThe external ID
loginIntegerRThe login ID
dealerIntegerRThe dealer ID
orderIntegerRThe order ID
actionIntegerRThe action type
entryIntegerRThe entry type
digitsIntegerRThe number of digits
digitsCurrencyIntegerRThe number of currency digits
contractSizeDoubleRThe contract size
timeIntegerRThe time of the deal
symbolStringRThe symbol for the deal
priceDoubleRThe price of the deal
priceSLDoubleRThe stop loss price
priceTPDoubleRThe take profit price
volumeIntegerRThe volume
volumeExtIntegerRThe extended volume
volumeClosedIntegerRThe closed volume
volumeClosedExtIntegerRThe extended closed volume
profitDoubleRThe profit
valueDoubleRThe value
storageDoubleRThe storage
commissionDoubleRThe commission
feeDoubleRThe fee
rateProfitDoubleRThe profit rate
rateMarginDoubleRThe margin rate
expertIDIntegerRThe expert ID
positionIDIntegerRThe position ID
commentStringRThe comment
profitRawDoubleRThe raw profit
pricePositionDoubleRThe position price
tickValueDoubleRThe tick value
tickSizeDoubleRThe tick size
flagsIntegerRThe flags
timeMscIntegerRThe time in milliseconds
reasonIntegerRThe reason
gatewayStringRThe gateway
priceGatewayDoubleRThe gateway price
marketBidDoubleRThe market bid price
marketAskDoubleRThe market ask price
marketLastDoubleRThe last market price
modificationFlagsIntegerRThe modification flags

Sample response

{
"code": "200",
"desc": "Success",
"data": {
"position": {
"login": 200000252,
"symbol": "UKOIL",
"action": 0,
"digits": 2,
"digitsCurrency": 2,
"contractSize": 1000.0,
"position": 336925,
"externalId": "",
"timeCreate": 1733213182,
"timeUpdate": 1733213182,
"timeCreateMsc": 1733213182230,
"timeUpdateMsc": 1733213182230,
"priceOpen": 72.27,
"priceCurrent": 72.51,
"priceSl": 0.0,
"priceTp": 0.0,
"volume": 1000,
"volumeExt": 10000000,
"profit": 24.0,
"storage": 0.0,
"rateProfit": 1.0,
"rateMargin": 1.0,
"expertID": 0,
"expertPositionID": 336925,
"comment": "",
"dealer": 5,
"enActivationMode": 0,
"activationTime": 0,
"activationPrice": 0.0,
"apiData": {
"appId": 0,
"id": 0,
"value": 0,
"pos": 0
},
"modificationFlags": 0,
"reason": 2,
"activationFlags": 65
},
"imtOrderList": [
{
"order": 336925,
"externalID": "1729346341",
"login": 200000252,
"dealer": 5,
"symbol": "UKOIL",
"digits": 2,
"digitsCurrency": 2,
"contractSize": 1000.0,
"state": 4,
"reason": 2,
"timeSetup": 1733213182,
"timeSetupMsc": 1733213182144,
"timeExpiration": 0,
"timeDone": 1733213182,
"timeDoneMsc": 1733213182230,
"type": 0,
"typeFill": 0,
"typeTime": 0,
"priceOrder": 72.27,
"priceTrigger": 0.0,
"priceCurrent": 72.27,
"priceSL": 0.0,
"priceTP": 0.0,
"volumeInitial": 1000,
"volumeInitialExt": 10000000,
"volumeCurrent": 0,
"volumeCurrentExt": 0,
"expertID": 0,
"positionID": 336925,
"positionByID": 0,
"comment": "",
"activationMode": 0,
"activationTime": 0,
"activationPrice": 0.0,
"activationFlags": 65,
"apiData": null,
"rateMargin": 1.0,
"modificationFlags": 0
}
],
"imtDealList": [
{
"deal": 204116,
"externalID": "1740170623",
"login": 200000252,
"dealer": 5,
"order": 336925,
"action": 0,
"entry": 0,
"digits": 2,
"digitsCurrency": 2,
"contractSize": 1000.0,
"time": 1733213182,
"symbol": "UKOIL",
"price": 72.27,
"priceSL": 0.0,
"priceTP": 0.0,
"volume": 1000,
"volumeExt": 10000000,
"volumeClosed": 0,
"volumeClosedExt": 0,
"profit": 0.0,
"value": 0.0,
"storage": 0.0,
"commission": 0.0,
"fee": 0.0,
"rateProfit": 0.0,
"rateMargin": 1.0,
"expertID": 0,
"positionID": 336925,
"comment": "",
"profitRaw": 0.0,
"pricePosition": 0.0,
"tickValue": 0.0,
"tickSize": 0.0,
"flags": 0,
"timeMsc": 1733213182230,
"reason": 2,
"gateway": "MT5GWTSMPL",
"priceGateway": 72.27,
"marketBid": 72.22,
"marketAsk": 72.27,
"marketLast": 0.0,
"modificationFlags": 0
}
]
}
}