Page tree
Skip to end of metadata
Go to start of metadata

Features related to MetaQuotes MetaTrader 4 will have prefix/suffix MT4 within it name.

As we stopped supporting OData and switched to RESTful JSON WebAPI, Swagger and ReDoc documentation must be enough in most cases.


Examples:

How to add balance operation?

https://mywebapi.com/swagger/index.html#/MT4/MT4_TradeTransaction

TradeTransInfo can be partially specified with only fields below:

tradeTransactionType = BrBalance
tradeCommand = Balance
orderBy = account login
price = amount to be deposited/withdrawn


PowerShell example
rest_post -url "/api/MT4/$your_tradeplatform/TradeTransaction" -data "{'tradeTransactionType':'BrBalance', 'tradeCommand':'Balance', 'orderBy':1000, 'price':100}"
How to create new trade account?

https://mywebapi.com/swagger/index.html#/MT4/MT4_UserRecordNew

UserRecord an be partially specified with only fields below:

group
name

rest fields MT4 will fill/generate for you in response



  • No labels