Class MetatraderTradeResponse
- java.lang.Object
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderTradeResponse
-
public class MetatraderTradeResponse extends Object
Сontains trade command result. For a trade request seeMetatraderTrade
-
-
Field Summary
Fields Modifier and Type Field Description StringmessageHuman-readable error or result messageintnumericCodeNumeric response code, see https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes and https://book.mql4.com/appendix/errors.StringorderIdId of the order created or modified by the trade, ornullStringpositionIdId of the position created or modified by the trade, ornullStringstringCodeString response code, see https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes and https://book.mql4.com/appendix/errors.
-
Constructor Summary
Constructors Constructor Description MetatraderTradeResponse()
-
-
-
Field Detail
-
numericCode
public int numericCode
Numeric response code, see https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes and https://book.mql4.com/appendix/errors. Response codes which indicate success are 0, 10008-10010, 10025. The rest codes are errors
-
stringCode
public String stringCode
String response code, see https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes and https://book.mql4.com/appendix/errors. Response codes which indicate success are ERR_NO_ERROR, TRADE_RETCODE_PLACED, TRADE_RETCODE_DONE, TRADE_RETCODE_DONE_PARTIAL, TRADE_RETCODE_NO_CHANGES. The rest codes are errors.
-
message
public String message
Human-readable error or result message
-
orderId
public String orderId
Id of the order created or modified by the trade, ornull
-
positionId
public String positionId
Id of the position created or modified by the trade, ornull
-
-