API v1 (stable) · MT5 · 3 operations ·
base URL https://cloud.mywebapi.com ·
OpenAPI v1 (JSON) ·
Redoc
Every call needs Authorization: Bearer $TOKEN — an OAuth 2.0 client-credentials token from
https://auth.cplugin.net/connect/token (scope webapi).
$TRADE_PLATFORM_ID is the id of a trade platform registered in Toolbox.
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id
symbol
path
string
yes
Name of the configuration
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
POST /api/MT5/{tradePlatform}/SymbolUpdate/{symbol}
Only settings will be accepted by MT5: ExecMode Color StopsLevel SpreadBalance SpreadDiff SpreadDiffBalance. Remaining will be ignored;
Timeout: 15 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id
symbol
path
string
yes
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 15 s (change). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
Request body
MT5Symbol (application/json) — Name of the configuration
GET /api/MT5/{tradePlatform}/SymbolRequestArray/{mask}/{group}
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id
mask
path
string
yes
One or more symbols separated by commas. Specify the full name of the symbol, including the path. For example, Forex\EURUSD. The symbol name can be obtained by using the IMTConSymbol::Symbol method. Symbols can also be specified using wildcard characters: "*" (any value) and "!" (exclude). For example, Forex\*,!Forex\EURUSD — all symbols in the Forex subgroup except EURUSD.
group
path
string
no
The name of the group whose symbol settings should be used (IMTConGroupSymbol). The method will pass symbol configurations based on how they are redefined for the specified group. If the parameter is null, the method will pass the basic symbol settings.
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
The date of trading expiration for a symbol. It is considered that there is no time limitation for trading by a symbol if both IMTConSymbol::TimeStart and IMTConSymbol::TimeExpiration are equal to 0.
Not yet implemented. Contact us for further information Update a quoting session of a symbol by the day and index. The day is specified by a value 0 (Sunday) to 6 (Saturday).
Get and set the maximum allowed difference between the time of arrival of the price, at which the client places an order, and the time of the last price.
Flags: names of the set bits joined by ", " ("Realtime, CollectRaw"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: Realtime = 0x1, CollectRaw = 0x2, FeedStats = 0x4, NegativePrices = 0x8. Accepted on input, never written: All = Realtime, CollectRaw, FeedStats, NegativePrices.
EnTradeMode
Values: Disabled, LongOnly, ShortOnly, CloseOnly, Full
Flags: names of the set bits joined by ", " ("FoK, IoC"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: FoK = 0x1, IoC = 0x2, BoC = 0x4. Accepted on input, never written: All = FoK, IoC, BoC.
EnExpirationFlags
Flags: names of the set bits joined by ", " ("GtC, Day"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: GtC = 0x1, Day = 0x2, Specified = 0x4, SpecifiedDay = 0x8. Accepted on input, never written: All = GtC, Day, Specified, SpecifiedDay.
EnMarginFlags
Flags: names of the set bits joined by ", " ("CheckProcess, CheckSLTP"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: CheckProcess = 0x1, CheckSLTP = 0x2, HedgeLargeLeg = 0x4, ExcludePl = 0x8, RecalcRates = 0x10. Accepted on input, never written: All = CheckProcess, CheckSLTP, HedgeLargeLeg, ExcludePl.
The session opening time in minutes from 00:00. For example, 100 denotes 01:40.
openHours
integer (int32), nullable
Get the number of hours in the opening time of trading or quoting session of a symbol.
openMinutes
integer (int32), nullable
The number of minutes in the opening time of trading or quoting session of a symbol.
close
integer (int32), nullable
The session closing time in minutes from 00:00. For example, 100 denotes 01:40.
closeHours
integer (int32), nullable
The number of hours in the closing time of trading or quoting session of a symbol.
closeMinutes
integer (int32), nullable
The number of minutes in the closing time of trading or quoting session of a symbol.
EnRequestFlags
Flags: names of the set bits joined by ", " ("Order"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: Order = 0x1.
EnInstantMode
This enumeration is used in the following methods: IMTConSymbol::IECheckMode IMTConGroupSymbol::IECheckMode IMTConGroupSymbol::IECheckModeDefault
Values: Normal
EnTradeFlags
Common Trade Flags Flags: names of the set bits joined by ", " ("ProfitByMarket, AllowSignals"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: ProfitByMarket = 0x1, AllowSignals = 0x2. Accepted on input, never written: TradeFlagsAll = ProfitByMarket, AllowSignals.
EnOrderFlags
Flags: names of the set bits joined by ", " ("Market, Limit"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: Market = 0x1, Limit = 0x2, Stop = 0x4, StopLimit = 0x8, SL = 0x10, TP = 0x20, CloseBy = 0x40. Accepted on input, never written: All = Market, Limit, Stop, StopLimit, SL, TP, CloseBy.
Flags: names of the set bits joined by ", " ("FastConfirmation"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: FastConfirmation = 0x1.
Flags: names of the set bits joined by ", " ("ConsiderHolidays"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: ConsiderHolidays = 0x1.