Protocol Documentation

Table of Contents

mng5grpc.proto

Top

Account

FieldTypeLabelDescription
Login uint64

CurrencyDigits uint32

Balance double

Credit double

Margin double

MarginFree double

MarginLevel double

MarginLeverage uint32

Profit double

Storage double

Floating double

Equity double

SOActivation EnSoActivation

SOTime int64

SOLevel double

SOEquity double

SOMargin double

BlockedCommission double

BlockedProfit double

MarginInitial double

MarginMaintenance double

Assets double

Liabilities double

AccountCreateReply

FieldTypeLabelDescription
result User

error Error

AccountCreateRequest

[Example]

{

"id": "demo-token-mt5mng",

"master_pass": "",

"investor_pass": "",

"enabled": "",

"user": ""

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

master_pass string

investor_pass string

enabled bool

user User

Account number. Example: 500476959 [Required]

AccountDeleteReply

FieldTypeLabelDescription
result string

error Error

AccountDeleteRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "1"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method [Required]

AccountDetailsManyReply

FieldTypeLabelDescription
result Account repeated

error Error

AccountDetailsManyRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64 repeated

Token returned by 'Connect' method

AccountDetailsReply

FieldTypeLabelDescription
result Account

error Error

AccountDetailsRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "1"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method

AccountSummary

Account summary trading information

FieldTypeLabelDescription
Login uint64

Balance

Balance double

Balance

Profit double

Profit

Equity double

Equity

Margin double

Margin

FreeMargin double

Free margin

AccountUpdate

FieldTypeLabelDescription
Type AccountUpdateType

Account Account

Group ConGroup

AccountUpdateReply

FieldTypeLabelDescription
result string

error Error

AccountUpdateRequest

[Example]

{

"id": "demo-token-mt5mng",

"enabled": "",

"user": ""

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

enabled bool

user User

Account number. Example: 500476959 [Required]

AccountsOnlineReply

FieldTypeLabelDescription
result uint64 repeated

error Error

AccountsOnlineRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

AccountsReply

FieldTypeLabelDescription
result uint64 repeated

error Error

AccountsRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

AccountsSummaryReply

FieldTypeLabelDescription
result AccountSummary repeated

error Error

AccountsSummaryRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "0"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64 repeated

Token returned by 'Connect' method

CancellAllStreamsReply

FieldTypeLabelDescription
result string

error Error

CancellAllStreamsRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

ChartBar

FieldTypeLabelDescription
datetime google.protobuf.Timestamp

open double

high double

low double

close double

tick_volume uint64

spread int32

volume uint64

ChartBarSlim

FieldTypeLabelDescription
d int32

o double

h double

l double

c double

v uint64

ChartRequestReply

FieldTypeLabelDescription
result ChartBar repeated

error Error

ChartRequestRequest

[Example]

{

"id": "demo-token-mt5mng",

"symbol": "EURUSD",

"from": "2023-7-04T00:00:00",

"to": "2023-7-05T00:00:00"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

symbol string

Symbol [Required]

from string

From date' in format: yyyy-MM-ddTHH:mm:ss [Required]

to string

To date' in format: yyyy-MM-ddTHH:mm:ss [Required]

barsPerMsg int32

Bars count per message

ChartRequestSlimReply

FieldTypeLabelDescription
result ChartBarSlim repeated

error Error

ConGroup

FieldTypeLabelDescription
CommissionTotal uint32

SymbolGroupsTotal uint32

MarginFreeProfitMode uint32

MarginMode EnMarginMode

AuthOTPMode EnAuthOTPMode

TradeTransferMode EnTransferMode

MarginFlags EnMarginFlagsGroup

LimitPositions uint32

ReportsEmail string

DemoInactivityPeriod uint32

Group string

Server uint64

PermissionsFlags EnPermissionsFlags

AuthMode EnAuthMode

AuthPasswordMin uint32

Company string

CompanyPage string

CompanyEmail string

CompanySupportPage string

CompanySupportEmail string

CompanyCatalog string

CompanyDepositPage string

CompanyWithdrawalPage string

Currency string

CurrencyDigits uint32

ReportsMode EnReportsMode

ReportsFlags EnReportsFlags

ReportsSMTP string

ReportsSMTPLogin string

ReportsSMTPPass string

NewsMode EnNewsMode

NewsCategory string

NewsLangClear MTRetCode

NewsLangTotal uint32

MailMode EnMailMode

TradeFlags EnTradeFlagsGroup

TradeInterestrate double

TradeVirtualCredit double

MarginFreeMode EnFreeMarginMode

MarginSOMode EnStopOutMode

MarginCall double

MarginStopOut double

DemoLeverage uint32

DemoDeposit double

LimitHistory EnHistoryLimit

LimitOrders uint32

LimitSymbols uint32

SymbolGroups ConGroupSymbol repeated

ConGroupSymbol

FieldTypeLabelDescription
IECheckMode uint32

IECheckModeDefault uint32

IETimeout uint32

IETimeoutDefault uint32

IESlipProfit uint32

IESlipProfitDefault uint32

IESlipLosing uint32

IESlipLosingDefault uint32

IEVolumeMax uint64

IEVolumeMaxDefault uint64

OrderFlags OrderFlags

OrderFlagsDefault OrderFlags

MarginRateInitialDefault double

MarginRateMaintenanceDefault double

MarginRateLiquidity double

MarginRateLiquidityDefault double

REFlags REFlags

REFlagsDefault REFlags

MarginHedged double

MarginHedgedDefault double

PermissionsFlags PermissionsFlags

MarginRateCurrency double

MarginRateCurrencyDefault double

BookDepthLimit uint32

IEFlags uint32

IEFlagsDefault uint32

VolumeMinExt uint64

VolumeMinExtDefault uint64

VolumeMaxExt uint64

VolumeMaxExtDefault uint64

VolumeStepExt uint64

VolumeStepExtDefault uint64

VolumeLimitExt uint64

VolumeLimitExtDefault uint64

IEVolumeMaxExt uint64

IEVolumeMaxExtDefault uint64

SwapYearDays uint32

SwapYearDaysDefault int32

SwapFlags uint32

SwapFlagsDefault uint32

SwapRateSunday double

SwapRateSundayDefault double

SwapRateMonday double

SwapRateMondayDefault double

SwapRateTuesday double

SwapRateTuesdayDefault double

SwapRateWednesday double

SwapRateWednesdayDefault double

SwapRateThursday double

SwapRateThursdayDefault double

SwapRateFriday double

SwapRateFridayDefault double

SwapRateSaturday double

SwapRateSaturdayDefault double

Path string

TradeMode TradeMode

TradeModeDefault TradeMode

ExecMode ExecutionMode

ExecModeDefault ExecutionMode

FillFlags FillingFlags

FillFlagsDefault FillingFlags

ExpirFlags ExpirationFlags

ExpirFlagsDefault ExpirationFlags

SpreadDiff int32

SpreadDiffDefault int32

SpreadDiffBalance int32

SpreadDiffBalanceDefault int32

StopsLevel int32

StopsLevelDefault int32

FreezeLevel int32

FreezeLevelDefault int32

VolumeMin uint64

VolumeMinDefault uint64

VolumeMax uint64

VolumeMaxDefault uint64

VolumeStep uint64

VolumeStepDefault uint64

VolumeLimit uint64

VolumeLimitDefault uint64

MarginFlags MarginFlags

MarginFlagsDefault MarginFlags

MarginInitial double

MarginInitialDefault double

MarginMaintenance double

MarginMaintenanceDefault double

MarginLong double

MarginLongDefault double

MarginShort double

MarginShortDefault double

MarginLimit double

MarginLimitDefault double

MarginStop double

MarginStopDefault double

MarginStopLimit double

MarginStopLimitDefault double

SwapMode SwapMode

SwapModeDefault SwapMode

SwapLong double

SwapLongDefault double

SwapShort double

SwapShortDefault double

Swap3Day int32

Swap3DayDefault int32

RETimeout uint32

RETimeoutDefault uint32

MarginRateInitialBuyMarket double

MarginRateInitialSellMarket double

MarginRateInitialBuyLimit double

MarginRateInitialSellLimit double

MarginRateInitialBuyStop double

MarginRateInitialSellStop double

MarginRateMaintenanceBuyMarket double

MarginRateMaintenanceSellMarket double

MarginRateMaintenanceBuyLimit double

MarginRateMaintenanceSellLimit double

MarginRateMaintenanceBuyStop double

MarginRateMaintenanceSellStop double

ConSymbol

FieldTypeLabelDescription
PriceStrike double

MarginRateLiquidity double

FaceValue double

AccruedInterest double

SpliceType EnSpliceType

SpliceTimeType EnSpliceTimeType

SpliceTimeDays uint32

MarginHedged double

MarginRateCurrency double

FilterGap uint32

FilterGapTicks uint32

ChartMode EnChartMode

IEFlags uint32

VolumeMinExt uint64

VolumeMaxExt uint64

VolumeStepExt uint64

VolumeLimitExt uint64

IEVolumeMaxExt uint64

Category string

Exchange string

CFI string

Sector EnSectors

Industry EnIndustries

Country string

SubscriptionsDelay uint32

SwapYearDays uint32

SwapFlags uint32

SwapRateSunday double

SwapRateMonday double

SwapRateTuesday double

SwapRateWednesday double

SwapRateThursday double

SwapRateFriday double

SwapRateSaturday double

FreezeLevel int32

QuotesTimeout uint32

VolumeMin uint64

VolumeMax uint64

VolumeStep uint64

VolumeLimit uint64

MarginFlags EnMarginFlags

MarginInitial double

MarginMaintenance double

MarginLong double

MarginShort double

MarginLimit double

MarginStop double

MarginStopLimit double

SwapMode uint32

SwapLong double

SwapShort double

Swap3Day uint32

TimeStart int64

TimeExpiration int64

REFlags uint32

RETimeout uint32

IECheckMode uint32

IETimeout uint32

IESlipProfit uint32

IESlipLosing uint32

IEVolumeMax uint64

PriceSettle double

PriceLimitMax double

PriceLimitMin double

TradeFlags EnTradeFlags

OrderFlags EnOrderFlags

OptionsMode EnOptionMode

Symbol string

Path string

ISIN string

Description string

International string

Basis string

Source string

Page string

CurrencyBase string

CurrencyBaseDigits uint32

CurrencyProfit string

CurrencyProfitDigits uint32

CurrencyMargin string

CurrencyMarginDigits uint32

Color uint32

ColorBackground uint32

Digits uint32

Point double

Multiply double

TickFlags EnTickFlagsSym

TickBookDepth uint32

FilterSoft uint32

FilterSoftTicks uint32

FilterHard uint32

FilterHardTicks uint32

FilterDiscard uint32

FilterSpreadMax uint32

FilterSpreadMin uint32

TradeMode EnTradeMode

CalcMode EnCalcMode

ExecMode EnExecutionMode

GTCMode EnGTCMode

FillFlags EnFillingFlags

ExpirFlags EnExpirationFlags

Spread uint32

SpreadBalance int32

SpreadDiff int32

SpreadDiffBalance int32

TickValue double

TickSize double

ContractSize double

StopsLevel int32

ConSymbolSession

FieldTypeLabelDescription
Open uint32

OpenHours uint32

OpenMinutes uint32

Close uint32

CloseHours uint32

CloseMinutes uint32

ConTime

FieldTypeLabelDescription
Daylight bool

TimeZone int32

TimeServer string

DaylightState int32

Confirm

FieldTypeLabelDescription
Print string

ID uint32

Retcode MTRetCode

Volume uint64

Price double

TickBid double

TickAsk double

TickLast double

Comment string

Flags uint32

DealID string

OrderID string

PriceGateway double

PositionExternalID string

ExternalRetcode int32

VolumeExt uint64

ConnectReply

FieldTypeLabelDescription
result string

error Error

ConnectRequest

[Example]

{

"user": "",

"password": "eanm3xtd",

"server": "20.4.28.127"

}

FieldTypeLabelDescription
user uint64

Account number. Example: 500476959 [Required]

password string

Password. Example: ehj4bod [Required]

server string

Host - ip adddress or dns name with or without port number. Example: mt4-demo.roboforex.com [Required]

unsubscibe bool

Unsubcribe all realtime quote subscriptions

Deal

FieldTypeLabelDescription
PriceSL double

PriceTP double

VolumeExt uint64

VolumeClosedExt uint64

Fee double

Value double

MarketBid double

MarketAsk double

MarketLast double

Print string

DealTicket uint64

ExternalID string

Login uint64

Dealer uint64

Order uint64

Action DealAction

Entry EntryFlag

Digits uint32

DigitsCurrency uint32

ContractSize double

Time int64

Symbol string

Price double

Volume uint64

Profit double

Storage double

Commission double

ObsoleteValue double

RateProfit double

RateMargin double

ExpertID uint64

PositionID uint64

Comment string

ApiDataClearAll MTRetCode

ProfitRaw double

PricePosition double

VolumeClosed uint64

TickValue double

TickSize double

Flags uint64

TimeMsc int64

Reason DealReason

Gateway string

PriceGateway double

ModificationFlags uint32

Lots double

DealHistoryReply

FieldTypeLabelDescription
result Deal repeated

error Error

DealHistoryRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "1003",

"from": "2023-7-04T00:00:00",

"to": "2023-7-05T00:00:00"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method

from string

From date' in format: yyyy-MM-ddTHH:mm:ss [Required]

to string

To date' in format: yyyy-MM-ddTHH:mm:ss [Required]

DealUpdate

FieldTypeLabelDescription
Action DealUpdateAction

Deal Deal

DepositReply

FieldTypeLabelDescription
result uint64

error Error

DepositRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "",

"amount": "",

"comment": "",

"credit": "False"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method [Required]

amount double

Amount [Required]

comment string

Comment [Required]

credit bool

Set true if credit

DisconnectReply

FieldTypeLabelDescription
result string

error Error

DisconnectRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

Error

FieldTypeLabelDescription
code MTRetCode

message string

stackTrace string

GroupUpdate

FieldTypeLabelDescription
Action GroupUpdateAction

Group ConGroup

HealthReply

FieldTypeLabelDescription
result string

error Error

HealthRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

MTLogRecord

FieldTypeLabelDescription
flags EnMTLogFlags

code EnMTLogCode

type EnMTLogType

datetime int64

source string

message string

datetime_msc int64

reserved int32 repeated

MTTickShort

FieldTypeLabelDescription
datetime int64

bid double

ask double

last double

volume uint64

datetime_msc int64

flags EnTickShortFlags

volume_ext uint64

reserved uint32 repeated

MTTickStat

FieldTypeLabelDescription
symbol string

datetime int64

bid_high double

bid_low double

ask_high double

ask_low double

last_high double

last_low double

vol_high uint64

vol_low uint64

trade_deals uint64

trade_volume uint64

trade_turnover uint64

trade_interest uint64

trade_buy_orders uint64

trade_buy_volume uint64

trade_sell_orders uint64

trade_sell_volume uint64

trade_volume_ext uint64

trade_buy_volume_ext uint64

trade_sell_volume_ext uint64

vol_high_ext uint64

vol_low_ext uint64

trade_reserved int32 repeated

datetime_msc int64

price_open double

price_close double

price_aw double

price_obsolete double

price_volatility double

price_theoretical double

price_greeks_delta double

price_greeks_theta double

price_greeks_gamma double

price_greeks_vega double

price_greeks_rho double

price_greeks_omega double

price_sensitivity double

price_reserved int32 repeated

ModifyDealReply

FieldTypeLabelDescription
result TradeResult

error Error

ModifyDealRequest

[Example]

{

"id": "demo-token-mt5mng",

"ticket": "199",

"stoploss": "0",

"takeprofit": "0"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

ticket uint64

Ticket [Required]

stoploss double

Stop loss

takeprofit double

Take profit

ModifyOrderReply

FieldTypeLabelDescription
result TradeResult

error Error

ModifyOrderRequest

[Example]

{

"id": "demo-token-mt5mng",

"ticket": "199",

"price": "0",

"stoploss": "0",

"takeprofit": "0"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

ticket uint64

Ticket [Required]

price double

Order price

stoploss double

Stop loss

takeprofit double

Take profit

OnAccountUpdateReply

FieldTypeLabelDescription
result AccountUpdate

error Error

OnAccountUpdateRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

OnDealUpdateReply

FieldTypeLabelDescription
result DealUpdate

error Error

OnDealUpdateRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

OnGroupUpdateReply

FieldTypeLabelDescription
result GroupUpdate

error Error

OnGroupUpdateRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

OnOrderUpdateReply

FieldTypeLabelDescription
result OrderUpdate

error Error

OnOrderUpdateRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method

OnPositionUpdateMT4FormatReply

FieldTypeLabelDescription
result TradeRecord

error Error

OnPositionUpdateMT4FormatRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method

OnPositionUpdateReply

FieldTypeLabelDescription
result PositionUpdate

error Error

OnPositionUpdateRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method

OnQuoteReply

FieldTypeLabelDescription
result Quote

error Error

OnQuoteRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method

OnRequestUpdateReply

FieldTypeLabelDescription
result RequestUpdate

error Error

OnRequestUpdateRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

OnSymbolUpdateReply

FieldTypeLabelDescription
result SymbolUpdate

error Error

OnSymbolUpdateRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

OnUserUpdateReply

FieldTypeLabelDescription
result UserUpdate

error Error

OnUserUpdateRequest

[Example]

{

"id": ""

}

FieldTypeLabelDescription
id string

Order

FieldTypeLabelDescription
PositionByID uint64

ModificationFlags uint32

VolumeInitialExt uint64

VolumeCurrentExt uint64

Print string

OrderTicket uint64

ExternalID string

Login uint64

Dealer uint64

Symbol string

Digits uint32

DigitsCurrency uint32

ContractSize double

State EnOrderState

Reason EnOrderReason

TimeSetup int64

TimeExpiration int64

TimeDone int64

Type OrderType

TypeFill EnOrderFilling

TypeTime EnOrderTime

PriceOrder double

PriceTrigger double

PriceCurrent double

PriceSL double

PriceTP double

VolumeInitial uint64

VolumeCurrent uint64

ExpertID uint64

PositionID uint64

Comment string

ActivationMode EnOrderActivation

ActivationTime int64

ActivationPrice double

ActivationFlags TradeActivationFlags

ApiDataClearAll MTRetCode

TimeSetupMsc int64

TimeDoneMsc int64

RateMargin double

Lots double

OrderCloseReply

FieldTypeLabelDescription
result TradeResult

error Error

OrderCloseRequest

[Example]

{

"id": "demo-token-mt5mng",

"ticket": "",

"lots": "0",

"price": "0",

"slippage": "0"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

ticket uint64

Order ticket [Required]

lots double

Lots

price double

Price

slippage uint64

Slippage

OrderDeleteReply

FieldTypeLabelDescription
result string

error Error

OrderDeleteRequest

[Example]

{

"id": "demo-token-mt5mng",

"ticket": "0"

}

FieldTypeLabelDescription
id string

ticket uint64

OrderProfitReply

FieldTypeLabelDescription
result OrderProfitUpdate

error Error

OrderProfitRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

OrderProfitUpdate

Profit update message

FieldTypeLabelDescription
Login uint64

Account number

Balance double

Balace

Equity double

Equity

Margin double

User margin

FreeMargin double

Free margin

Profit double

Orders Order repeated

Opened orders

OrderSendReply

FieldTypeLabelDescription
result TradeResult

error Error

OrderSendRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "",

"symbol": "",

"operation": "",

"lots": "",

"price": "0",

"slippage": "0",

"stoploss": "0",

"takeprofit": "0"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method [Required]

symbol string

Symbol [Required]

operation OrderType

But or sell, market or pending [Required]

lots double

Lots [Required]

price double

Price

slippage uint64

Slippage

stoploss double

StopLoss

takeprofit double

TakeProfit

comment string

Comment

OrderUpdate

FieldTypeLabelDescription
Action OrderUpdateAction

Order Order

OrdersReply

FieldTypeLabelDescription
result Order repeated

error Error

OrdersRequest

[Example]

{

"id": "demo-token-mt5mng",

"logins": ""

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

logins uint64 repeated

Logins

PendingOrderHistoryReply

FieldTypeLabelDescription
result Order repeated

error Error

PendingOrderHistoryRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "1003",

"from": "2023-7-04T00:00:00",

"to": "2023-7-05T00:00:00"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method

from string

From date' in format: yyyy-MM-ddTHH:mm:ss [Required]

to string

To date' in format: yyyy-MM-ddTHH:mm:ss [Required]

PingReply

FieldTypeLabelDescription
result string

error Error

PingRequest

Position

FieldTypeLabelDescription
Print string

Login uint64

Symbol string

Action uint32

Digits uint32

DigitsCurrency uint32

ContractSize double

TimeCreate int64

TimeUpdate int64

PriceOpen double

PriceCurrent double

PriceSL double

PriceTP double

Volume uint64

Profit double

Storage double

ObsoleteValue double

RateProfit double

RateMargin double

ExpertID uint64

ExpertPositionID uint64

Comment string

ActivationMode uint32

ActivationTime int64

ActivationPrice double

ActivationFlags uint32

ApiDataClearAll MTRetCode

TimeCreateMsc int64

TimeUpdateMsc int64

Dealer uint64

PositionTicket uint64

ExternalID string

ModificationFlags uint32

Reason uint32

VolumeExt uint64

Lots double

PositionHistoryMT4FormatReply

FieldTypeLabelDescription
result TradeRecord repeated

error Error

PositionHistoryMT4FormatRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "1003",

"from": "2023-7-04T00:00:00",

"to": "2023-7-05T00:00:00"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method

from string

From date' in format: yyyy-MM-ddTHH:mm:ss [Required]

to string

To date' in format: yyyy-MM-ddTHH:mm:ss [Required]

PositionUpdate

FieldTypeLabelDescription
Action PositionUpdateAction

Position Position

PositionsMT4FormatReply

FieldTypeLabelDescription
result TradeRecord repeated

error Error

PositionsMT4FormatRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

logins uint64 repeated

PositionsReply

FieldTypeLabelDescription
result Position repeated

error Error

PositionsRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

logins uint64 repeated

ProfitUpdateOrder

ProfitUpdate order parameters

FieldTypeLabelDescription
Ticket uint64

Ticket

Profit double

Profit

Quote

New quote event arguments.

FieldTypeLabelDescription
Symbol string

Trading instrument.

Bid double

Bid.

Ask double

Ask.

Time google.protobuf.Timestamp

Server time.

Last double

Last deal price.

Volume uint64

Volume

QuoteAndTradeSessions

FieldTypeLabelDescription
Symbol string

Quote WeekSessions

Trade WeekSessions

Request

FieldTypeLabelDescription
ApiDataClearAll MTRetCode

VolumeCurrent uint64

VolumeCurrentExt uint64

SymbolOriginal string

Print string

ID uint32

Login uint64

Group string

Symbol string

Digits uint32

Action EnTradeActions

TimeExpiration int64

Type EnOrderType

TypeFill EnOrderFilling

TypeTime EnOrderTime

Flags EnTradeActionFlags

Volume uint64

Order uint64

OrderExternalID string

PriceOrder double

PriceTrigger double

PriceSL double

PriceTP double

PriceDeviation uint64

PriceDeviationTop double

PriceDeviationBottom double

Comment string

ResultRetcode MTRetCode

ResultDealer uint64

ResultDeal uint64

ResultOrder uint64

ResultVolume uint64

ResultPrice double

ResultDealerBid double

ResultDealerAsk double

ResultDealerLast double

ResultMarketBid double

ResultMarketAsk double

ResultMarketLast double

ResultComment string

ExternalAccount string

IDClient uint32

IP string

SourceLogin uint64

Position uint64

PositionBy uint64

PositionExternalID string

PositionByExternalID string

VolumeExt uint64

ResultVolumeExt uint64

RequestUpdate

FieldTypeLabelDescription
Action RequestUpdateAction

Request Request

ServerTimezoneReply

FieldTypeLabelDescription
result ConTime

error Error

ServerTimezoneRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

SubscribeReply

FieldTypeLabelDescription
result string

error Error

SubscribeRequest

[Example]

{

"id": "demo-token-mt5mng",

"symbol": "EURUSD",

"interval": "0"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

symbol string

Symbol [Required]

interval int32

Minimum interval between events in milliseconds

Summary

FieldTypeLabelDescription
Symbol string

Digits uint32

PositionClients uint32

PositionCoverage uint32

VolumeBuyClients uint64

VolumeBuyCoverage uint64

VolumeSellClients uint64

VolumeSellCoverage uint64

VolumeNet double

PriceBuyClients double

PriceBuyCoverage double

PriceSellClients double

PriceSellCoverage double

ProfitClients double

ProfitCoverage double

ProfitFullClients double

ProfitFullCoverage double

ProfitUncovered double

ProfitUncoveredFull double

VolumeBuyClientsExt uint64

VolumeBuyCoverageExt uint64

VolumeSellClientsExt uint64

VolumeSellCoverageExt uint64

SummaryGetAllReply

FieldTypeLabelDescription
result Summary repeated

error Error

SummaryGetAllRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

SummaryGetReply

FieldTypeLabelDescription
result Summary

error Error

SummaryGetRequest

[Example]

{

"id": "demo-token-mt5mng",

"symbol": "EURUSD"

}

FieldTypeLabelDescription
id string

symbol string

SymbolGetReply

FieldTypeLabelDescription
result ConSymbol

error Error

SymbolGetRequest

[Example]

{

"id": "demo-token-mt5mng",

"name": ""

}

FieldTypeLabelDescription
id string

name string

SymbolGroupExecutionSetReply

FieldTypeLabelDescription
result string

error Error

SymbolGroupExecutionSetRequest

[Example]

{

"id": "demo-token-mt5mng",

"userGroup": "real\real",

"symbolGroup": "crypto\*",

"execution": "Market"

}

FieldTypeLabelDescription
id string

userGroup string

User group path [Required]

symbolGroup string

Symbol group path [Required]

execution ExecutionMode

Execution mode [Required]

SymbolGroupsForUserGroupReply

FieldTypeLabelDescription
result ConGroupSymbol repeated

error Error

SymbolGroupsForUserGroupRequest

[Example]

{

"id": "{{id}}"

}

FieldTypeLabelDescription
id string

group string

SymbolGroupsReply

FieldTypeLabelDescription
result ConGroupSymbol repeated

error Error

SymbolGroupsRequest

[Example]

{

"id": "demo-token-mt5mng",

"userGroup": "real//real"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

userGroup string

SymbolSessionsReply

FieldTypeLabelDescription
result QuoteAndTradeSessions repeated

error Error

SymbolSessionsRequest

[Example]

{

"id": "demo-token-mt5mng",

"symbol": "EURUSD"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

symbols string repeated

Symbol

SymbolUpdate

FieldTypeLabelDescription
Action SymbolUpdateAction

Symbol ConSymbol

SymbolsListReply

FieldTypeLabelDescription
result string repeated

error Error

SymbolsListRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

SymbolsParamsReply

FieldTypeLabelDescription
result ConSymbol repeated

error Error

SymbolsParamsRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

TickLastReply

FieldTypeLabelDescription
result TickShort repeated

error Error

TickLastRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

symbols string repeated

Symbols

TickShort

FieldTypeLabelDescription
symbol string

datetime int64

bid double

ask double

last double

volume uint64

datetime_msc int64

volume_ext uint64

TickStatReply

FieldTypeLabelDescription
result MTTickStat repeated

error Error

TickStatRequest

[Example]

{

"id": "demo-token-mt5mng",

"symbol": "EURUSD"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

symbols string repeated

Symbol

TradeJournalReply

FieldTypeLabelDescription
result MTLogRecord repeated

error Error

TradeJournalRequest

[Example]

{

"id": "demo-token-mt5mng",

"mode": "MTLogModeStd"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

mode EnMTLogRequestMode

full: 0 host: 4 user: 5 Trade: 6

from google.protobuf.Timestamp

to google.protobuf.Timestamp

filter string

TradeRecord

Order in MT4 format

FieldTypeLabelDescription
Lots double

Lots

Order uint64

Order ticket

Login uint64

Owner's login

Symbol string

Security

Digits uint32

Security precision

Cmd OrderType

Trade command

Volume int32

Volume

OpenTime google.protobuf.Timestamp

Open time

State int32

Reserved

OpenPrice double

Open price

Sl double

Tp double

CloseTime google.protobuf.Timestamp

Close time

GwVolume int32

Gateway order volume

Expiration google.protobuf.Timestamp

Pending order's expiration time

Reason DealReason

Trade reason

ConvReserv string

Reserved fields

ConvRates double repeated

Convertation rates from profit currency to group deposit currency

Commission double

Commission

CommissionAgent double

Agent commission

Storage double

Order swaps

ClosePrice double

Close price

Profit double

Profit

Taxes double

Taxes

Magic uint64

Special value used by client experts

Comment string

Comment

GwOrder int32

Gateway order ticket

Activation int32

Used by MT Manager

GwOpenPrice int32

Gateway order price deviation (pips) from order open price

GwClosePrice int32

Gateway order price deviation (pips) from order close price

MarginRate double

Margin convertation rate (rate of convertation from margin currency to deposit one)

Timestamp google.protobuf.Timestamp

Timestamp

ApiData int32 repeated

For api usage

TradeResult

FieldTypeLabelDescription
Answer Request

Result Confirm

User

FieldTypeLabelDescription
ClientID uint64

FirstName string

LastName string

MiddleName string

OTPSecret string

LimitOrders uint32

LimitPositionsValue double

Login uint64

Group string

CertSerialNumber uint64

Rights UsersRights

Registration int64

LastAccess int64

LastIP string

Name string

Company string

Account string

Country string

Language uint32

City string

State string

ZIPCode string

Address string

Phone string

EMail string

ID string

Status string

Comment string

Color uint32

PhonePassword string

Leverage uint32

Agent uint64

Balance double

Credit double

InterestRate double

CommissionDaily double

CommissionMonthly double

CommissionAgentDaily double

CommissionAgentMonthly double

BalancePrevDay double

BalancePrevMonth double

EquityPrevDay double

EquityPrevMonth double

LastPassChange int64

LeadCampaign string

LeadSource string

ApiDataClearAll MTRetCode

ExternalAccountClear MTRetCode

ExternalAccountTotal uint32

MQID string

UserDetailsManyReply

FieldTypeLabelDescription
result User repeated

error Error

UserDetailsManyRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64 repeated

Token returned by 'Connect' method

UserDetailsReply

FieldTypeLabelDescription
result User

error Error

UserDetailsRequest

[Example]

{

"id": "demo-token-mt5mng",

"login": "1"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

login uint64

Token returned by 'Connect' method

UserGroupsReply

FieldTypeLabelDescription
result ConGroup repeated

error Error

UserGroupsRequest

[Example]

{

"id": "demo-token-mt5mng"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

assignSymbolGroups bool

UserPasswordChangeReply

FieldTypeLabelDescription
result string

error Error

UserPasswordChangeRequest

[Example]

{

"id": "demo-token-mt5mng",

"type": "USER_PASS_MAIN",

"login": "1003",

"password": "somepassword"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

type UsersPasswords

Type [Required]

login uint64

Login [Required]

password string

Password. Example: ehj4bod [Required]

UserPasswordCheckReply

FieldTypeLabelDescription
result string

error Error

UserPasswordCheckRequest

[Example]

{

"id": "demo-token-mt5mng",

"type": "USER_PASS_MAIN",

"login": "1003",

"password": "somepassword"

}

FieldTypeLabelDescription
id string

Token returned by 'Connect' method [Required]

type UsersPasswords

Type [Required]

login uint64

Login [Required]

password string

Password. Example: ehj4bod [Required]

UserUpdate

FieldTypeLabelDescription
Action UserUpdateAction

User User

WeekSessions

FieldTypeLabelDescription
Sunday ConSymbolSession repeated

Monday ConSymbolSession repeated

Tuesday ConSymbolSession repeated

Wednesday ConSymbolSession repeated

Thursday ConSymbolSession repeated

Friday ConSymbolSession repeated

Saturday ConSymbolSession repeated

AccountUpdateType

NameNumberDescription
AccountUpdateType_MarginCallEnter 0

AccountUpdateType_MarginCallLeave 1

AccountUpdateType_StopOutEnter 2

AccountUpdateType_StopOutLeave 3

DealAction

NameNumberDescription
DealAction_BUY 0

DealAction_SELL 1

DealAction_BALANCE 2

DealAction_CREDIT 3

DealAction_CHARGE 4

DealAction_CORRECTION 5

DealAction_BONUS 6

DealAction_COMMISSION 7

DealAction_COMMISSION_DAILY 8

DealAction_COMMISSION_MONTHLY 9

DealAction_AGENT_DAILY 10

DealAction_AGENT_MONTHLY 11

DealAction_INTERESTRATE 12

DealAction_BUY_CANCELED 13

DealAction_SELL_CANCELED 14

DealAction_DIVIDEND 15

DealAction_DIVIDEND_FRANKED 16

DealAction_TAX 17

DealAction_AGENT 18

DealAction_SO_COMPENSATION 19

DealAction_SO_COMPENSATION_CREDIT 20

DealReason

NameNumberDescription
DealReason_CLIENT 0

DealReason_EXPERT 1

DealReason_DEALER 2

DealReason_SL 3

DealReason_TP 4

DealReason_SO 5

DealReason_ROLLOVER 6

DealReason_EXTERNAL_CLIENT 7

DealReason_VMARGIN 8

DealReason_GATEWAY 9

DealReason_SIGNAL 10

DealReason_SETTLEMENT 11

DealReason_TRANSFER 12

DealReason_SYNC 13

DealReason_EXTERNAL_SERVICE 14

DealReason_MIGRATION 15

DealReason_MOBILE 16

DealReason_WEB 17

DealReason_SPLIT 18

DealUpdateAction

NameNumberDescription
DealUpdateAction_Add 0

DealUpdateAction_Update 1

DealUpdateAction_Delete 2

DealUpdateAction_Clean 3

DealUpdateAction_Sync 4

DealUpdateAction_Perform 5

EnAuthMode

NameNumberDescription
EnAuthMode_AUTH_STANDARD 0

EnAuthMode_AUTH_RSA1024 1

EnAuthMode_AUTH_RSA2048 2

EnAuthMode_AUTH_RSA_CUSTOM 3

EnAuthOTPMode

NameNumberDescription
EnAuthOTPMode_AUTH_OTP_DISABLED 0

EnAuthOTPMode_AUTH_OTP_TOTP_SHA256 1

EnCalcMode

NameNumberDescription
EnCalcMode_TRADE_MODE_FOREX 0

EnCalcMode_TRADE_MODE_FUTURES 1

EnCalcMode_TRADE_MODE_CFD 2

EnCalcMode_TRADE_MODE_CFDINDEX 3

EnCalcMode_TRADE_MODE_CFDLEVERAGE 4

EnCalcMode_TRADE_MODE_FOREX_NO_LEVERAGE 5

EnCalcMode_TRADE_MODE_EXCH_STOCKS 32

EnCalcMode_TRADE_MODE_EXCH_FUTURES 33

EnCalcMode_TRADE_MODE_EXCH_FUTURES_FORTS 34

EnCalcMode_TRADE_MODE_EXCH_OPTIONS 35

EnCalcMode_TRADE_MODE_EXCH_OPTIONS_MARGIN 36

EnCalcMode_TRADE_MODE_EXCH_BONDS 37

EnCalcMode_TRADE_MODE_EXCH_STOCKS_MOEX 38

EnCalcMode_TRADE_MODE_EXCH_BONDS_MOEX 39

EnCalcMode_TRADE_MODE_SERV_COLLATERAL 64

EnChartMode

NameNumberDescription
EnChartMode_CHART_MODE_BID_PRICE 0

EnChartMode_CHART_MODE_LAST_PRICE 1

EnChartMode_CHART_MODE_OLD 255

EnExecutionMode

NameNumberDescription
EnExecutionMode_EXECUTION_REQUEST 0

EnExecutionMode_EXECUTION_INSTANT 1

EnExecutionMode_EXECUTION_MARKET 2

EnExecutionMode_EXECUTION_EXCHANGE 3

EnExpirationFlags

NameNumberDescription
EnExpirationFlags_TIME_FLAGS_NONE 0

EnExpirationFlags_TIME_FLAGS_GTC 1

EnExpirationFlags_TIME_FLAGS_DAY 2

EnExpirationFlags_TIME_FLAGS_SPECIFIED 4

EnExpirationFlags_TIME_FLAGS_SPECIFIED_DAY 8

EnExpirationFlags_TIME_FLAGS_ALL 15

EnFillingFlags

NameNumberDescription
EnFillingFlags_FILL_FLAGS_NONE 0

EnFillingFlags_FILL_FLAGS_FOK 1

EnFillingFlags_FILL_FLAGS_IOC 2

EnFillingFlags_FILL_FLAGS_ALL 3

EnFreeMarginMode

NameNumberDescription
EnFreeMarginMode_FREE_MARGIN_NOT_USE_PL 0

EnFreeMarginMode_FREE_MARGIN_USE_PL 1

EnFreeMarginMode_FREE_MARGIN_PROFIT 2

EnFreeMarginMode_FREE_MARGIN_LOSS 3

EnGTCMode

NameNumberDescription
EnGTCMode_ORDERS_GTC 0

EnGTCMode_ORDERS_DAILY 1

EnGTCMode_ORDERS_DAILY_NO_STOPS 2

EnHistoryLimit

NameNumberDescription
EnHistoryLimit_TRADE_HISTORY_ALL 0

EnHistoryLimit_TRADE_HISTORY_MONTHS_1 1

EnHistoryLimit_TRADE_HISTORY_MONTHS_3 2

EnHistoryLimit_TRADE_HISTORY_MONTHS_6 3

EnHistoryLimit_TRADE_HISTORY_YEAR_1 4

EnHistoryLimit_TRADE_HISTORY_YEAR_2 5

EnHistoryLimit_TRADE_HISTORY_YEAR_3 6

EnIndustries

NameNumberDescription
EnIndustries_INDUSTRY_UNDEFINED 0

EnIndustries_INDUSTRY_AGRICULTURAL_INPUTS 1

EnIndustries_INDUSTRY_ALUMINIUM 2

EnIndustries_INDUSTRY_BUILDING_MATERIALS 3

EnIndustries_INDUSTRY_CHEMICALS 4

EnIndustries_INDUSTRY_COKING_COAL 5

EnIndustries_INDUSTRY_COPPER 6

EnIndustries_INDUSTRY_GOLD 7

EnIndustries_INDUSTRY_LUMBER_WOOD 8

EnIndustries_INDUSTRY_INDUSTRIAL_METALS 9

EnIndustries_INDUSTRY_PRECIOUS_METALS 10

EnIndustries_INDUSTRY_PAPER 11

EnIndustries_INDUSTRY_SILVER 12

EnIndustries_INDUSTRY_SPECIALTY_CHEMICALS 13

EnIndustries_INDUSTRY_STEEL 14

EnIndustries_INDUSTRY_BASIC_MATERIALS_END 50

EnIndustries_INDUSTRY_ADVERTISING 51

EnIndustries_INDUSTRY_BROADCASTING 52

EnIndustries_INDUSTRY_GAMING_MULTIMEDIA 53

EnIndustries_INDUSTRY_ENTERTAINMENT 54

EnIndustries_INDUSTRY_INTERNET_CONTENT 55

EnIndustries_INDUSTRY_PUBLISHING 56

EnIndustries_INDUSTRY_TELECOM 57

EnIndustries_INDUSTRY_COMMUNICATION_END 100

EnIndustries_INDUSTRY_APPAREL_MANUFACTURING 101

EnIndustries_INDUSTRY_APPAREL_RETAIL 102

EnIndustries_INDUSTRY_AUTO_MANUFACTURERS 103

EnIndustries_INDUSTRY_AUTO_PARTS 104

EnIndustries_INDUSTRY_AUTO_DEALERSHIP 105

EnIndustries_INDUSTRY_DEPARTMENT_STORES 106

EnIndustries_INDUSTRY_FOOTWEAR_ACCESSORIES 107

EnIndustries_INDUSTRY_FURNISHINGS 108

EnIndustries_INDUSTRY_GAMBLING 109

EnIndustries_INDUSTRY_HOME_IMPROV_RETAIL 110

EnIndustries_INDUSTRY_INTERNET_RETAIL 111

EnIndustries_INDUSTRY_LEISURE 112

EnIndustries_INDUSTRY_LODGING 113

EnIndustries_INDUSTRY_LUXURY_GOODS 114

EnIndustries_INDUSTRY_PACKAGING_CONTAINERS 115

EnIndustries_INDUSTRY_PERSONAL_SERVICES 116

EnIndustries_INDUSTRY_RECREATIONAL_VEHICLES 117

EnIndustries_INDUSTRY_RESIDENT_CONSTRUCTION 118

EnIndustries_INDUSTRY_RESORTS_CASINOS 119

EnIndustries_INDUSTRY_RESTAURANTS 120

EnIndustries_INDUSTRY_SPECIALTY_RETAIL 121

EnIndustries_INDUSTRY_TEXTILE_MANUFACTURING 122

EnIndustries_INDUSTRY_TRAVEL_SERVICES 123

EnIndustries_INDUSTRY_CONSUMER_CYCL_END 150

EnIndustries_INDUSTRY_BEVERAGES_BREWERS 151

EnIndustries_INDUSTRY_BEVERAGES_NON_ALCO 152

EnIndustries_INDUSTRY_BEVERAGES_WINERIES 153

EnIndustries_INDUSTRY_CONFECTIONERS 154

EnIndustries_INDUSTRY_DISCOUNT_STORES 155

EnIndustries_INDUSTRY_EDUCATION_TRAINIG 156

EnIndustries_INDUSTRY_FARM_PRODUCTS 157

EnIndustries_INDUSTRY_FOOD_DISTRIBUTION 158

EnIndustries_INDUSTRY_GROCERY_STORES 159

EnIndustries_INDUSTRY_HOUSEHOLD_PRODUCTS 160

EnIndustries_INDUSTRY_PACKAGED_FOODS 161

EnIndustries_INDUSTRY_TOBACCO 162

EnIndustries_INDUSTRY_CONSUMER_DEF_END 200

EnIndustries_INDUSTRY_OIL_GAS_DRILLING 201

EnIndustries_INDUSTRY_OIL_GAS_EP 202

EnIndustries_INDUSTRY_OIL_GAS_EQUIPMENT 203

EnIndustries_INDUSTRY_OIL_GAS_INTEGRATED 204

EnIndustries_INDUSTRY_OIL_GAS_MIDSTREAM 205

EnIndustries_INDUSTRY_OIL_GAS_REFINING 206

EnIndustries_INDUSTRY_THERMAL_COAL 207

EnIndustries_INDUSTRY_URANIUM 208

EnIndustries_INDUSTRY_ENERGY_END 250

EnIndustries_INDUSTRY_EXCHANGE_TRADED_FUND 251

EnIndustries_INDUSTRY_ASSETS_MANAGEMENT 252

EnIndustries_INDUSTRY_BANKS_DIVERSIFIED 253

EnIndustries_INDUSTRY_BANKS_REGIONAL 254

EnIndustries_INDUSTRY_CAPITAL_MARKETS 255

EnIndustries_INDUSTRY_CLOSE_END_FUND_DEBT 256

EnIndustries_INDUSTRY_CLOSE_END_FUND_EQUITY 257

EnIndustries_INDUSTRY_CLOSE_END_FUND_FOREIGN 258

EnIndustries_INDUSTRY_CREDIT_SERVICES 259

EnIndustries_INDUSTRY_FINANCIAL_CONGLOMERATE 260

EnIndustries_INDUSTRY_FINANCIAL_DATA_EXCHANGE 261

EnIndustries_INDUSTRY_INSURANCE_BROKERS 262

EnIndustries_INDUSTRY_INSURANCE_DIVERSIFIED 263

EnIndustries_INDUSTRY_INSURANCE_LIFE 264

EnIndustries_INDUSTRY_INSURANCE_PROPERTY 265

EnIndustries_INDUSTRY_INSURANCE_REINSURANCE 266

EnIndustries_INDUSTRY_INSURANCE_SPECIALTY 267

EnIndustries_INDUSTRY_MORTGAGE_FINANCE 268

EnIndustries_INDUSTRY_SHELL_COMPANIES 269

EnIndustries_INDUSTRY_FINANCIAL_END 300

EnIndustries_INDUSTRY_BIOTECHNOLOGY 301

EnIndustries_INDUSTRY_DIAGNOSTICS_RESEARCH 302

EnIndustries_INDUSTRY_DRUGS_MANUFACTURERS 303

EnIndustries_INDUSTRY_DRUGS_MANUFACTURERS_SPEC 304

EnIndustries_INDUSTRY_HEALTHCARE_PLANS 305

EnIndustries_INDUSTRY_HEALTH_INFORMATION 306

EnIndustries_INDUSTRY_MEDICAL_FACILITIES 307

EnIndustries_INDUSTRY_MEDICAL_DEVICES 308

EnIndustries_INDUSTRY_MEDICAL_DISTRIBUTION 309

EnIndustries_INDUSTRY_MEDICAL_INSTRUMENTS 310

EnIndustries_INDUSTRY_PHARM_RETAILERS 311

EnIndustries_INDUSTRY_HEALTHCARE_END 350

EnIndustries_INDUSTRY_AEROSPACE_DEFENSE 351

EnIndustries_INDUSTRY_AIRLINES 352

EnIndustries_INDUSTRY_AIRPORTS_SERVICES 353

EnIndustries_INDUSTRY_BUILDING_PRODUCTS 354

EnIndustries_INDUSTRY_BUSINESS_EQUIPMENT 355

EnIndustries_INDUSTRY_CONGLOMERATES 356

EnIndustries_INDUSTRY_CONSULTING_SERVICES 357

EnIndustries_INDUSTRY_ELECTRICAL_EQUIPMENT 358

EnIndustries_INDUSTRY_ENGINEERING_CONSTRUCTION 359

EnIndustries_INDUSTRY_FARM_HEAVY_MACHINERY 360

EnIndustries_INDUSTRY_INDUSTRIAL_DISTRIBUTION 361

EnIndustries_INDUSTRY_INFRASTRUCTURE_OPERATIONS 362

EnIndustries_INDUSTRY_FREIGHT_LOGISTICS 363

EnIndustries_INDUSTRY_MARINE_SHIPPING 364

EnIndustries_INDUSTRY_METAL_FABRICATION 365

EnIndustries_INDUSTRY_POLLUTION_CONTROL 366

EnIndustries_INDUSTRY_RAILROADS 367

EnIndustries_INDUSTRY_RENTAL_LEASING 368

EnIndustries_INDUSTRY_SECURITY_PROTECTION 369

EnIndustries_INDUSTRY_SPEALITY_BUSINESS_SERVICES 370

EnIndustries_INDUSTRY_SPEALITY_MACHINERY 371

EnIndustries_INDUSTRY_STUFFING_EMPLOYMENT 372

EnIndustries_INDUSTRY_TOOLS_ACCESSORIES 373

EnIndustries_INDUSTRY_TRUCKING 374

EnIndustries_INDUSTRY_WASTE_MANAGEMENT 375

EnIndustries_INDUSTRY_INDUSTRIALS_END 400

EnIndustries_INDUSTRY_REAL_ESTATE_DEVELOPMENT 401

EnIndustries_INDUSTRY_REAL_ESTATE_DIVERSIFIED 402

EnIndustries_INDUSTRY_REAL_ESTATE_SERVICES 403

EnIndustries_INDUSTRY_REIT_DIVERSIFIED 404

EnIndustries_INDUSTRY_REIT_HEALTCARE 405

EnIndustries_INDUSTRY_REIT_HOTEL_MOTEL 406

EnIndustries_INDUSTRY_REIT_INDUSTRIAL 407

EnIndustries_INDUSTRY_REIT_MORTAGE 408

EnIndustries_INDUSTRY_REIT_OFFICE 409

EnIndustries_INDUSTRY_REIT_RESIDENTAL 410

EnIndustries_INDUSTRY_REIT_RETAIL 411

EnIndustries_INDUSTRY_REIT_SPECIALITY 412

EnIndustries_INDUSTRY_REAL_ESTATE_END 450

EnIndustries_INDUSTRY_COMMUNICATION_EQUIPMENT 451

EnIndustries_INDUSTRY_COMPUTER_HARDWARE 452

EnIndustries_INDUSTRY_CONSUMER_ELECTRONICS 453

EnIndustries_INDUSTRY_ELECTRONIC_COMPONENTS 454

EnIndustries_INDUSTRY_ELECTRONIC_DISTRIBUTION 455

EnIndustries_INDUSTRY_IT_SERVICES 456

EnIndustries_INDUSTRY_SCIENTIFIC_INSTRUMENTS 457

EnIndustries_INDUSTRY_SEMICONDUCTOR_EQUIPMENT 458

EnIndustries_INDUSTRY_SEMICONDUCTORS 459

EnIndustries_INDUSTRY_SOFTWARE_APPLICATION 460

EnIndustries_INDUSTRY_SOFTWARE_INFRASTRUCTURE 461

EnIndustries_INDUSTRY_SOLAR 462

EnIndustries_INDUSTRY_TECHNOLOGY_END 500

EnIndustries_INDUSTRY_UTILITIES_DIVERSIFIED 501

EnIndustries_INDUSTRY_UTILITIES_POWERPRODUCERS 502

EnIndustries_INDUSTRY_UTILITIES_RENEWABLE 503

EnIndustries_INDUSTRY_UTILITIES_REGULATED_ELECTRIC 504

EnIndustries_INDUSTRY_UTILITIES_REGULATED_GAS 505

EnIndustries_INDUSTRY_UTILITIES_REGULATED_WATER 506

EnIndustries_INDUSTRY_UTILITIES_END 550

EnIndustries_INDUSTRY_COMMODITIES_AGRICULTURAL 551

EnIndustries_INDUSTRY_COMMODITIES_ENERGY 552

EnIndustries_INDUSTRY_COMMODITIES_METALS 553

EnIndustries_INDUSTRY_COMMODITIES_PRECIOUS 554

EnIndustries_INDUSTRY_COMMODITIES_END 600

EnMTLogCode

NameNumberDescription
EnMTLogCode_MTLogOK 0

EnMTLogCode_MTLogFolder -1

EnMTLogCode_MTLogWarn 1

EnMTLogCode_MTLogErr 2

EnMTLogCode_MTLogAtt 3

EnMTLogCode_MTLogLogin 4

EnMTLogFlags

NameNumberDescription
EnMTLogFlags_LOG_FLAGS_NONE 0

EnMTLogFlags_LOG_FLAGS_CORRUPTED 1

EnMTLogRequestMode

NameNumberDescription
EnMTLogRequestMode_MTLogModeStd 0

EnMTLogRequestMode_MTLogModeErr 1

EnMTLogRequestMode_MTLogModeFull 2

EnMTLogType

NameNumberDescription
EnMTLogType_MTLogTypeAll 0

EnMTLogType_MTLogTypeCfg 1

EnMTLogType_MTLogTypeSys 2

EnMTLogType_MTLogTypeNet 3

EnMTLogType_MTLogTypeHst 4

EnMTLogType_MTLogTypeUser 5

EnMTLogType_MTLogTypeTrade 6

EnMTLogType_MTLogTypeAPI 7

EnMTLogType_MTLogTypeNotify 8

EnMTLogType_MTLogTypeLiveUpdate 16

EnMTLogType_MTLogTypeSendMail 17

EnMailMode

NameNumberDescription
EnMailMode_MAIL_MODE_DISABLED 0

EnMailMode_MAIL_MODE_FULL 1

EnMarginFlags

NameNumberDescription
EnMarginFlags_MARGIN_FLAGS_NONE 0

EnMarginFlags_MARGIN_FLAGS_CHECK_PROCESS 1

EnMarginFlags_MARGIN_FLAGS_CHECK_SLTP 2

EnMarginFlags_MARGIN_FLAGS_HEDGE_LARGE_LEG 4

EnMarginFlags_MARGIN_FLAGS_EXCLUDE_PL 8

EnMarginFlags_MARGIN_FLAGS_ALL 15

EnMarginFlagsGroup

NameNumberDescription
EnMarginFlagsGroup_MARGIN_FLAGS_NONE 0

EnMarginFlagsGroup_MARGIN_FLAGS_CLEAR_ACC 1

EnMarginMode

NameNumberDescription
EnMarginMode_MARGIN_MODE_RETAIL 0

EnMarginMode_MARGIN_MODE_EXCHANGE_DISCOUNT 1

EnMarginMode_MARGIN_MODE_RETAIL_HEDGED 2

EnNewsMode

NameNumberDescription
EnNewsMode_NEWS_MODE_DISABLED 0

EnNewsMode_NEWS_MODE_HEADERS 1

EnNewsMode_NEWS_MODE_FULL 2

EnOptionMode

NameNumberDescription
EnOptionMode_OPTION_MODE_EUROPEAN_CALL 0

EnOptionMode_OPTION_MODE_EUROPEAN_PUT 1

EnOptionMode_OPTION_MODE_AMERICAN_CALL 2

EnOptionMode_OPTION_MODE_AMERICAN_PUT 3

EnOrderActivation

NameNumberDescription
EnOrderActivation_ACTIVATION_NONE 0

EnOrderActivation_ACTIVATION_PENDING 1

EnOrderActivation_ACTIVATION_STOPLIMIT 2

EnOrderActivation_ACTIVATION_EXPIRATION 3

EnOrderActivation_ACTIVATION_STOPOUT 4

EnOrderFilling

NameNumberDescription
EnOrderFilling_ORDER_FILL_FOK 0

EnOrderFilling_ORDER_FILL_IOC 1

EnOrderFilling_ORDER_FILL_RETURN 2

EnOrderFlags

NameNumberDescription
EnOrderFlags_ORDER_FLAGS_NONE 0

EnOrderFlags_ORDER_FLAGS_MARKET 1

EnOrderFlags_ORDER_FLAGS_LIMIT 2

EnOrderFlags_ORDER_FLAGS_STOP 4

EnOrderFlags_ORDER_FLAGS_STOP_LIMIT 8

EnOrderFlags_ORDER_FLAGS_SL 16

EnOrderFlags_ORDER_FLAGS_TP 32

EnOrderFlags_ORDER_FLAGS_CLOSEBY 64

EnOrderFlags_ORDER_FLAGS_ALL 127

EnOrderReason

NameNumberDescription
EnOrderReason_ORDER_REASON_CLIENT 0

EnOrderReason_ORDER_REASON_EXPERT 1

EnOrderReason_ORDER_REASON_DEALER 2

EnOrderReason_ORDER_REASON_SL 3

EnOrderReason_ORDER_REASON_TP 4

EnOrderReason_ORDER_REASON_SO 5

EnOrderReason_ORDER_REASON_ROLLOVER 6

EnOrderReason_ORDER_REASON_EXTERNAL_CLIENT 7

EnOrderReason_ORDER_REASON_VMARGIN 8

EnOrderReason_ORDER_REASON_GATEWAY 9

EnOrderReason_ORDER_REASON_SIGNAL 10

EnOrderReason_ORDER_REASON_SETTLEMENT 11

EnOrderReason_ORDER_REASON_TRANSFER 12

EnOrderReason_ORDER_REASON_SYNC 13

EnOrderReason_ORDER_REASON_EXTERNAL_SERVICE 14

EnOrderReason_ORDER_REASON_MIGRATION 15

EnOrderReason_ORDER_REASON_MOBILE 16

EnOrderReason_ORDER_REASON_WEB 17

EnOrderReason_ORDER_REASON_SPLIT 18

EnOrderState

NameNumberDescription
EnOrderState_ORDER_STATE_STARTED 0

EnOrderState_ORDER_STATE_PLACED 1

EnOrderState_ORDER_STATE_CANCELED 2

EnOrderState_ORDER_STATE_PARTIAL 3

EnOrderState_ORDER_STATE_FILLED 4

EnOrderState_ORDER_STATE_REJECTED 5

EnOrderState_ORDER_STATE_EXPIRED 6

EnOrderState_ORDER_STATE_REQUEST_ADD 7

EnOrderState_ORDER_STATE_REQUEST_MODIFY 8

EnOrderState_ORDER_STATE_REQUEST_CANCEL 9

EnOrderTime

NameNumberDescription
EnOrderTime_ORDER_TIME_GTC 0

EnOrderTime_ORDER_TIME_DAY 1

EnOrderTime_ORDER_TIME_SPECIFIED 2

EnOrderTime_ORDER_TIME_SPECIFIED_DAY 3

EnOrderType

NameNumberDescription
EnOrderType_OP_BUY 0

EnOrderType_OP_SELL 1

EnOrderType_OP_BUY_LIMIT 2

EnOrderType_OP_SELL_LIMIT 3

EnOrderType_OP_BUY_STOP 4

EnOrderType_OP_SELL_STOP 5

EnOrderType_OP_BUY_STOP_LIMIT 6

EnOrderType_OP_SELL_STOP_LIMIT 7

EnOrderType_OP_CLOSE_BY 8

EnPermissionsFlags

NameNumberDescription
EnPermissionsFlags_PERMISSION_NONE 0

EnPermissionsFlags_PERMISSION_CERT_CONFIRM 1

EnPermissionsFlags_PERMISSION_ENABLE_CONNECTION 2

EnPermissionsFlags_PERMISSION_RESET_PASSWORD 4

EnPermissionsFlags_PERMISSION_FORCED_OTP_USAGE 8

EnPermissionsFlags_PERMISSION_RISK_WARNING 16

EnPermissionsFlags_PERMISSION_REGULATION_PROTECT 32

EnPermissionsFlags_PERMISSION_NOTIFY_DEALS 64

EnPermissionsFlags_PERMISSION_NOTIFY_ORDERS 128

EnPermissionsFlags_PERMISSION_NOTIFY_BALANCES 256

EnPermissionsFlags_PERMISSION_NOTIFY_ALL 448

EnPermissionsFlags_PERMISSION_ALL 511

EnReportsFlags

NameNumberDescription
EnReportsFlags_REPORTSFLAGS_NONE 0

EnReportsFlags_REPORTSFLAGS_EMAIL 1

EnReportsFlags_REPORTSFLAGS_SUPPORT 2

EnReportsFlags_REPORTSFLAGS_STATEMENTS 4

EnReportsFlags_REPORTSFLAGS_ALL 5

EnReportsMode

NameNumberDescription
EnReportsMode_REPORTS_DISABLED 0

EnReportsMode_REPORTS_STANDARD 1

EnSectors

NameNumberDescription
EnSectors_SECTOR_UNDEFINED 0

EnSectors_SECTOR_BASIC_MATERIALS 1

EnSectors_SECTOR_COMMUNICATION_SERVICES 2

EnSectors_SECTOR_CONSUMER_CYCLICAL 3

EnSectors_SECTOR_CONSUMER_DEFENSIVE 4

EnSectors_SECTOR_ENERGY 5

EnSectors_SECTOR_FINANCIAL 6

EnSectors_SECTOR_HEALTHCARE 7

EnSectors_SECTOR_INDUSTRIALS 8

EnSectors_SECTOR_REAL_ESTATE 9

EnSectors_SECTOR_TECHNOLOGY 10

EnSectors_SECTOR_UTILITIES 11

EnSectors_SECTOR_CURRENCY 12

EnSectors_SECTOR_CURRENCY_CRYPTO 13

EnSectors_SECTOR_INDEXES 14

EnSectors_SECTOR_COMMODITIES 15

EnSoActivation

NameNumberDescription
EnSoActivation_ACTIVATION_NONE 0

EnSoActivation_ACTIVATION_MARGIN_CALL 1

EnSoActivation_ACTIVATION_STOP_OUT 2

EnSpliceTimeType

NameNumberDescription
EnSpliceTimeType_SPLICE_TIME_EXPIRATION 0

EnSpliceType

NameNumberDescription
EnSpliceType_SPLICE_NONE 0

EnSpliceType_SPLICE_UNADJUSTED 1

EnSpliceType_SPLICE_ADJUSTED 2

EnStopOutMode

NameNumberDescription
EnStopOutMode_STOPOUT_PERCENT 0

EnStopOutMode_STOPOUT_MONEY 1

EnTickFlagsSym

NameNumberDescription
EnTickFlagsSym_TICK_NONE 0

EnTickFlagsSym_TICK_REALTIME 1

EnTickFlagsSym_TICK_COLLECTRAW 2

EnTickFlagsSym_TICK_FEED_STATS 4

EnTickFlagsSym_TICK_NEGATIVE_PRICES 8

EnTickFlagsSym_TICK_ALL 15

EnTickShortFlags

NameNumberDescription
EnTickShortFlags_NONE 0

EnTickShortFlags_RAW 1

EnTickShortFlags_BID 2

EnTickShortFlags_ASK 4

EnTickShortFlags_VOLUME 16

EnTickShortFlags_BUY 32

EnTickShortFlags_SELL 64

EnTradeActionFlags

NameNumberDescription
EnTradeActionFlags_TA_FLAG_NONE 0

EnTradeActionFlags_TA_FLAG_CLOSE 1

EnTradeActionFlags_TA_FLAG_MARKET 2

EnTradeActionFlags_TA_FLAG_CHANGED_PRICE 4

EnTradeActionFlags_TA_FLAG_CHANGED_TRIGGER 8

EnTradeActionFlags_TA_FLAG_CHANGED_SL 16

EnTradeActionFlags_TA_FLAG_CHANGED_TP 32

EnTradeActionFlags_TA_FLAG_CHANGED_EXP_TYPE 64

EnTradeActionFlags_TA_FLAG_CHANGED_EXP_TIME 128

EnTradeActionFlags_TA_FLAG_EXPERT 256

EnTradeActionFlags_TA_FLAG_SIGNAL 512

EnTradeActionFlags_TA_FLAG_SKIP_MARGIN_CHECK 1024

EnTradeActionFlags_TA_FLAG_ALL 2047

EnTradeActions

NameNumberDescription
EnTradeActions_TA_PRICE 0

EnTradeActions_TA_REQUEST 1

EnTradeActions_TA_INSTANT 2

EnTradeActions_TA_MARKET 3

EnTradeActions_TA_EXCHANGE 4

EnTradeActions_TA_PENDING 5

EnTradeActions_TA_SLTP 6

EnTradeActions_TA_MODIFY 7

EnTradeActions_TA_REMOVE 8

EnTradeActions_TA_TRANSFER 9

EnTradeActions_TA_CLOSE_BY 10

EnTradeActions_TA_ACTIVATE 100

EnTradeActions_TA_ACTIVATE_SL 101

EnTradeActions_TA_ACTIVATE_TP 102

EnTradeActions_TA_ACTIVATE_STOPLIMIT 103

EnTradeActions_TA_STOPOUT_ORDER 104

EnTradeActions_TA_STOPOUT_POSITION 105

EnTradeActions_TA_EXPIRATION 106

EnTradeActions_TA_DEALER_POS_EXECUTE 200

EnTradeActions_TA_DEALER_ORD_PENDING 201

EnTradeActions_TA_DEALER_POS_MODIFY 202

EnTradeActions_TA_DEALER_ORD_MODIFY 203

EnTradeActions_TA_DEALER_ORD_REMOVE 204

EnTradeActions_TA_DEALER_ORD_ACTIVATE 205

EnTradeActions_TA_DEALER_BALANCE 206

EnTradeActions_TA_DEALER_ORD_SLIMIT 207

EnTradeActions_TA_DEALER_CLOSE_BY 208

EnTradeActions_TA_END 255

EnTradeFlags

NameNumberDescription
EnTradeFlags_TRADE_FLAGS_NONE 0

EnTradeFlags_TRADE_FLAGS_PROFIT_BY_MARKET 1

EnTradeFlags_TRADE_FLAGS_ALLOW_SIGNALS 2

EnTradeFlags_TRADE_FLAGS_ALL 3

EnTradeFlagsGroup

NameNumberDescription
EnTradeFlagsGroup_TRADEFLAGS_NONE 0

EnTradeFlagsGroup_TRADEFLAGS_SWAPS 1

EnTradeFlagsGroup_TRADEFLAGS_TRAILING 2

EnTradeFlagsGroup_TRADEFLAGS_EXPERTS 4

EnTradeFlagsGroup_TRADEFLAGS_EXPIRATION 8

EnTradeFlagsGroup_TRADEFLAGS_SIGNALS_ALL 16

EnTradeFlagsGroup_TRADEFLAGS_SIGNALS_OWN 32

EnTradeFlagsGroup_TRADEFLAGS_SO_COMPENSATION 64

EnTradeFlagsGroup_TRADEFLAGS_SO_FULLY_HEDGED 128

EnTradeFlagsGroup_TRADEFLAGS_FIFO_CLOSE 256

EnTradeFlagsGroup_TRADEFLAGS_HEDGE_PROHIBIT 512

EnTradeFlagsGroup_TRADEFLAGS_DEAL_COST 1024

EnTradeFlagsGroup_TRADEFLAGS_SO_COMPENSATION_CREDIT 2048

EnTradeFlagsGroup_TRADEFLAGS_DEFAULT 31

EnTradeFlagsGroup_TRADEFLAGS_ALL 4095

EnTradeMode

NameNumberDescription
EnTradeMode_TRADE_DISABLED 0

EnTradeMode_TRADE_LONGONLY 1

EnTradeMode_TRADE_SHORTONLY 2

EnTradeMode_TRADE_CLOSEONLY 3

EnTradeMode_TRADE_FULL 4

EnTransferMode

NameNumberDescription
EnTransferMode_TRANSFER_MODE_DISABLED 0

EnTransferMode_TRANSFER_MODE_NAME 1

EnTransferMode_TRANSFER_MODE_GROUP 2

EnTransferMode_TRANSFER_MODE_NAME_GROUP 3

EntryFlag

NameNumberDescription
EntryFlag_IN 0

EntryFlag_OUT 1

EntryFlag_INOUT 2

EntryFlag_OUT_BY 3

ExecutionMode

NameNumberDescription
ExecutionMode_Request 0

ExecutionMode_Instant 1

ExecutionMode_Market 2

ExecutionMode_Exchange 3

ExpirationFlags

NameNumberDescription
ExpirationFlags_None 0

ExpirationFlags_Gtc 1

ExpirationFlags_Day 2

ExpirationFlags_Specified 4

ExpirationFlags_SpecifiedDay 8

ExpirationFlags_All 15

FillingFlags

NameNumberDescription
FillingFlags_None 0

FillingFlags_Fok 1

FillingFlags_Ioc 2

FillingFlags_All 3

GroupUpdateAction

NameNumberDescription
GroupUpdateAction_Add 0

GroupUpdateAction_Update 1

GroupUpdateAction_Delete 2

MTRetCode

NameNumberDescription
MTRetCode_MT_RET_OK 0

MTRetCode_MT_RET_OK_NONE 1

MTRetCode_MT_RET_ERROR 2

MTRetCode_MT_RET_ERR_PARAMS 3

MTRetCode_MT_RET_ERR_DATA 4

MTRetCode_MT_RET_ERR_DISK 5

MTRetCode_MT_RET_ERR_MEM 6

MTRetCode_MT_RET_ERR_NETWORK 7

MTRetCode_MT_RET_ERR_PERMISSIONS 8

MTRetCode_MT_RET_ERR_TIMEOUT 9

MTRetCode_MT_RET_ERR_CONNECTION 10

MTRetCode_MT_RET_ERR_NOSERVICE 11

MTRetCode_MT_RET_ERR_FREQUENT 12

MTRetCode_MT_RET_ERR_NOTFOUND 13

MTRetCode_MT_RET_ERR_PARTIAL 14

MTRetCode_MT_RET_ERR_SHUTDOWN 15

MTRetCode_MT_RET_ERR_CANCEL 16

MTRetCode_MT_RET_ERR_DUPLICATE 17

MTRetCode_MT_RET_AUTH_CLIENT_INVALID 1000

MTRetCode_MT_RET_AUTH_ACCOUNT_INVALID 1001

MTRetCode_MT_RET_AUTH_ACCOUNT_DISABLED 1002

MTRetCode_MT_RET_AUTH_ADVANCED 1003

MTRetCode_MT_RET_AUTH_CERTIFICATE 1004

MTRetCode_MT_RET_AUTH_CERTIFICATE_BAD 1005

MTRetCode_MT_RET_AUTH_NOTCONFIRMED 1006

MTRetCode_MT_RET_AUTH_SERVER_INTERNAL 1007

MTRetCode_MT_RET_AUTH_SERVER_BAD 1008

MTRetCode_MT_RET_AUTH_UPDATE_ONLY 1009

MTRetCode_MT_RET_AUTH_CLIENT_OLD 1010

MTRetCode_MT_RET_AUTH_MANAGER_NOCONFIG 1011

MTRetCode_MT_RET_AUTH_MANAGER_IPBLOCK 1012

MTRetCode_MT_RET_AUTH_GROUP_INVALID 1013

MTRetCode_MT_RET_AUTH_CA_DISABLED 1014

MTRetCode_MT_RET_AUTH_INVALID_ID 1015

MTRetCode_MT_RET_AUTH_INVALID_IP 1016

MTRetCode_MT_RET_AUTH_INVALID_TYPE 1017

MTRetCode_MT_RET_AUTH_SERVER_BUSY 1018

MTRetCode_MT_RET_AUTH_SERVER_CERT 1019

MTRetCode_MT_RET_AUTH_ACCOUNT_UNKNOWN 1020

MTRetCode_MT_RET_AUTH_SERVER_OLD 1021

MTRetCode_MT_RET_AUTH_SERVER_LIMIT 1022

MTRetCode_MT_RET_AUTH_MOBILE_DISABLED 1023

MTRetCode_MT_RET_AUTH_MANAGER_TYPE 1024

MTRetCode_MT_RET_AUTH_DEMO_DISABLED 1025

MTRetCode_MT_RET_AUTH_RESET_PASSWORD 1026

MTRetCode_MT_RET_AUTH_OTP_INVALID 1027

MTRetCode_MT_RET_AUTH_OTP_NEED_SECRET 1028

MTRetCode_MT_RET_AUTH_MIGRATION_MT4 1029

MTRetCode_MT_RET_AUTH_MIGRATION_MT5 1030

MTRetCode_MT_RET_AUTH_INVALID_VERIFY 1031

MTRetCode_MT_RET_AUTH_VERIFY_BAD_EMAIL 1032

MTRetCode_MT_RET_AUTH_VERIFY_BAD_PHONE 1033

MTRetCode_MT_RET_AUTH_API_DISABLED 1034

MTRetCode_MT_RET_CFG_LAST_ADMIN 2000

MTRetCode_MT_RET_CFG_LAST_ADMIN_GROUP 2001

MTRetCode_MT_RET_CFG_NOT_EMPTY 2003

MTRetCode_MT_RET_CFG_INVALID_RANGE 2004

MTRetCode_MT_RET_CFG_NOT_MANAGER_LOGIN 2005

MTRetCode_MT_RET_CFG_BUILTIN 2006

MTRetCode_MT_RET_CFG_DUPLICATE 2007

MTRetCode_MT_RET_CFG_LIMIT_REACHED 2008

MTRetCode_MT_RET_CFG_NO_ACCESS_TO_MAIN 2009

MTRetCode_MT_RET_CFG_DEALER_ID_EXIST 2010

MTRetCode_MT_RET_CFG_BIND_ADDR_EXIST 2011

MTRetCode_MT_RET_CFG_WORKING_TRADE 2012

MTRetCode_MT_RET_CFG_GATEWAY_NAME_EXIST 2013

MTRetCode_MT_RET_CFG_SWITCH_TO_BACKUP 2014

MTRetCode_MT_RET_CFG_NO_BACKUP_MODULE 2015

MTRetCode_MT_RET_CFG_NO_TRADE_MODULE 2016

MTRetCode_MT_RET_CFG_NO_HISTORY_MODULE 2017

MTRetCode_MT_RET_CFG_ANOTHER_SWITCH 2018

MTRetCode_MT_RET_CFG_NO_LICENSE_FILE 2019

MTRetCode_MT_RET_CFG_GATEWAY_LOGIN_EXIST 2020

MTRetCode_MT_RET_USR_LAST_ADMIN 3001

MTRetCode_MT_RET_USR_LOGIN_EXHAUSTED 3002

MTRetCode_MT_RET_USR_LOGIN_PROHIBITED 3003

MTRetCode_MT_RET_USR_LOGIN_EXIST 3004

MTRetCode_MT_RET_USR_SUICIDE 3005

MTRetCode_MT_RET_USR_INVALID_PASSWORD 3006

MTRetCode_MT_RET_USR_LIMIT_REACHED 3007

MTRetCode_MT_RET_USR_HAS_TRADES 3008

MTRetCode_MT_RET_USR_DIFFERENT_SERVERS 3009

MTRetCode_MT_RET_USR_DIFFERENT_CURRENCY 3010

MTRetCode_MT_RET_USR_IMPORT_BALANCE 3011

MTRetCode_MT_RET_USR_IMPORT_GROUP 3012

MTRetCode_MT_RET_USR_ACCOUNT_EXIST 3013

MTRetCode_MT_RET_USR_IMPORT_ACCOUNT 3014

MTRetCode_MT_RET_USR_IMPORT_POSITIONS 3015

MTRetCode_MT_RET_USR_IMPORT_ORDERS 3016

MTRetCode_MT_RET_USR_IMPORT_DEALS 3017

MTRetCode_MT_RET_USR_IMPORT_HISTORY 3018

MTRetCode_MT_RET_USR_API_LIMIT_REACHED 3019

MTRetCode_MT_RET_TRADE_LIMIT_REACHED 4001

MTRetCode_MT_RET_TRADE_ORDER_EXIST 4002

MTRetCode_MT_RET_TRADE_ORDER_EXHAUSTED 4003

MTRetCode_MT_RET_TRADE_DEAL_EXHAUSTED 4004

MTRetCode_MT_RET_TRADE_MAX_MONEY 4005

MTRetCode_MT_RET_TRADE_DEAL_EXIST 4006

MTRetCode_MT_RET_TRADE_ORDER_PROHIBITED 4007

MTRetCode_MT_RET_TRADE_DEAL_PROHIBITED 4008

MTRetCode_MT_RET_TRADE_SPLIT_VOLUME 4009

MTRetCode_MT_RET_REPORT_SNAPSHOT 5001

MTRetCode_MT_RET_REPORT_NOTSUPPORTED 5002

MTRetCode_MT_RET_REPORT_NODATA 5003

MTRetCode_MT_RET_REPORT_TEMPLATE_BAD 5004

MTRetCode_MT_RET_REPORT_TEMPLATE_END 5005

MTRetCode_MT_RET_REPORT_INVALID_ROW 5006

MTRetCode_MT_RET_REPORT_LIMIT_REPEAT 5007

MTRetCode_MT_RET_REPORT_LIMIT_REPORT 5008

MTRetCode_MT_RET_HST_SYMBOL_NOTFOUND 6001

MTRetCode_MT_RET_REQUEST_INWAY 10001

MTRetCode_MT_RET_REQUEST_ACCEPTED 10002

MTRetCode_MT_RET_REQUEST_PROCESS 10003

MTRetCode_MT_RET_REQUEST_REQUOTE 10004

MTRetCode_MT_RET_REQUEST_PRICES 10005

MTRetCode_MT_RET_REQUEST_REJECT 10006

MTRetCode_MT_RET_REQUEST_CANCEL 10007

MTRetCode_MT_RET_REQUEST_PLACED 10008

MTRetCode_MT_RET_REQUEST_DONE 10009

MTRetCode_MT_RET_REQUEST_DONE_PARTIAL 10010

MTRetCode_MT_RET_REQUEST_ERROR 10011

MTRetCode_MT_RET_REQUEST_TIMEOUT 10012

MTRetCode_MT_RET_REQUEST_INVALID 10013

MTRetCode_MT_RET_REQUEST_INVALID_VOLUME 10014

MTRetCode_MT_RET_REQUEST_INVALID_PRICE 10015

MTRetCode_MT_RET_REQUEST_INVALID_STOPS 10016

MTRetCode_MT_RET_REQUEST_TRADE_DISABLED 10017

MTRetCode_MT_RET_REQUEST_MARKET_CLOSED 10018

MTRetCode_MT_RET_REQUEST_NO_MONEY 10019

MTRetCode_MT_RET_REQUEST_PRICE_CHANGED 10020

MTRetCode_MT_RET_REQUEST_PRICE_OFF 10021

MTRetCode_MT_RET_REQUEST_INVALID_EXP 10022

MTRetCode_MT_RET_REQUEST_ORDER_CHANGED 10023

MTRetCode_MT_RET_REQUEST_TOO_MANY 10024

MTRetCode_MT_RET_REQUEST_NO_CHANGES 10025

MTRetCode_MT_RET_REQUEST_AT_DISABLED_SERVER 10026

MTRetCode_MT_RET_REQUEST_AT_DISABLED_CLIENT 10027

MTRetCode_MT_RET_REQUEST_LOCKED 10028

MTRetCode_MT_RET_REQUEST_FROZEN 10029

MTRetCode_MT_RET_REQUEST_INVALID_FILL 10030

MTRetCode_MT_RET_REQUEST_CONNECTION 10031

MTRetCode_MT_RET_REQUEST_ONLY_REAL 10032

MTRetCode_MT_RET_REQUEST_LIMIT_ORDERS 10033

MTRetCode_MT_RET_REQUEST_LIMIT_VOLUME 10034

MTRetCode_MT_RET_REQUEST_INVALID_ORDER 10035

MTRetCode_MT_RET_REQUEST_POSITION_CLOSED 10036

MTRetCode_MT_RET_REQUEST_EXECUTION_SKIPPED 10037

MTRetCode_MT_RET_REQUEST_INVALID_CLOSE_VOLUME 10038

MTRetCode_MT_RET_REQUEST_CLOSE_ORDER_EXIST 10039

MTRetCode_MT_RET_REQUEST_LIMIT_POSITIONS 10040

MTRetCode_MT_RET_REQUEST_REJECT_CANCEL 10041

MTRetCode_MT_RET_REQUEST_LONG_ONLY 10042

MTRetCode_MT_RET_REQUEST_SHORT_ONLY 10043

MTRetCode_MT_RET_REQUEST_CLOSE_ONLY 10044

MTRetCode_MT_RET_REQUEST_PROHIBITED_BY_FIFO 10045

MTRetCode_MT_RET_REQUEST_HEDGE_PROHIBITED 10046

MTRetCode_MT_RET_REQUEST_RETURN 11000

MTRetCode_MT_RET_REQUEST_DONE_CANCEL 11001

MTRetCode_MT_RET_REQUEST_REQUOTE_RETURN 11002

MTRetCode_MT_RET_ERR_NOTIMPLEMENT 12000

MTRetCode_MT_RET_ERR_NOTMAIN 12001

MTRetCode_MT_RET_ERR_NOTSUPPORTED 12002

MTRetCode_MT_RET_ERR_DEADLOCK 12003

MTRetCode_MT_RET_ERR_LOCKED 12004

MTRetCode_MT_RET_MESSENGER_INVALID_PHONE 14000

MTRetCode_MT_RET_MESSENGER_NOT_MOBILE 14001

MTRetCode_MT_RET_SUBS_NOT_FOUND 15000

MTRetCode_MT_RET_SUBS_NOT_FOUND_CFG 15001

MTRetCode_MT_RET_SUBS_NOT_FOUND_USER 15002

MTRetCode_MT_RET_SUBS_DISABLED 15003

MTRetCode_MT_RET_SUBS_PERMISSION_USER 15004

MTRetCode_MT_RET_SUBS_PERMISSION_SUBSCRIBE 15005

MTRetCode_MT_RET_SUBS_PERMISSION_UNSUBSCRIBE 15006

MTRetCode_MT_RET_SUBS_REAL_ONLY 15007

MarginFlags

NameNumberDescription
MarginFlags_None 0

MarginFlags_CheckProcess 1

MarginFlags_CheckSltp 2

MarginFlags_HedgeLargeLeg 4

MarginFlags_ExcludePl 8

MarginFlags_All 15

OrderFlags

NameNumberDescription
OrderFlags_None 0

OrderFlags_Market 1

OrderFlags_Limit 2

OrderFlags_Stop 4

OrderFlags_StopLimit 8

OrderFlags_Sl 16

OrderFlags_Tp 32

OrderFlags_Closeby 64

OrderFlags_All 127

OrderType

NameNumberDescription
OrderType_BUY 0

OrderType_SELL 1

OrderType_BUY_LIMIT 2

OrderType_SELL_LIMIT 3

OrderType_BUY_STOP 4

OrderType_SELL_STOP 5

OrderType_BUY_STLIMIT 6

OrderType_SELL_STLIMIT 7

OrderType_CLOSE_BY 8

OrderUpdateAction

NameNumberDescription
OrderUpdateAction_Add 0

OrderUpdateAction_Update 1

OrderUpdateAction_Delete 2

PermissionsFlags

NameNumberDescription
PermissionsFlags_None 0

PermissionsFlags_Book 1

PositionUpdateAction

NameNumberDescription
PositionUpdateAction_Add 0

PositionUpdateAction_Update 1

PositionUpdateAction_Delete 2

PositionUpdateAction_Clean 3

REFlags

NameNumberDescription
REFlags_None 0

REFlags_Order 1

RequestUpdateAction

NameNumberDescription
RequestUpdateAction_Add 0

RequestUpdateAction_Update 1

RequestUpdateAction_Delete 2

SwapMode

NameNumberDescription
SwapMode_Disabled 0

SwapMode_ByPoints 1

SwapMode_BySymbolCurrency 2

SwapMode_ByMarginCurrency 3

SwapMode_ByGroupCurrency 4

SwapMode_ByInterestCurrent 5

SwapMode_ByInterestOpen 6

SwapMode_ReopenByClosePrice 7

SwapMode_ReopenByBid 8

SwapMode_ByProfitCurrency 9

SymbolUpdateAction

NameNumberDescription
SymbolUpdateAction_Add 0

SymbolUpdateAction_Update 1

SymbolUpdateAction_Delete 2

TradeActivationFlags

NameNumberDescription
TradeActivationFlags_NONE 0

TradeActivationFlags_FLAGS_NO_LIMIT 1

TradeActivationFlags_NO_STOP 2

TradeActivationFlags_NO_SLIMIT 4

TradeActivationFlags_NO_SL 8

TradeActivationFlags_NO_TP 16

TradeActivationFlags_NO_SO 32

TradeActivationFlags_NO_EXPIRATION 64

TradeActivationFlags_ALL 127

TradeMode

NameNumberDescription
TradeMode_Disabled 0

TradeMode_Longonly 1

TradeMode_Shortonly 2

TradeMode_Closeonly 3

TradeMode_Full 4

UserUpdateAction

NameNumberDescription
UserUpdateAction_Add 0

UserUpdateAction_Update 1

UserUpdateAction_Delete 2

UserUpdateAction_Clean 3

UsersPasswords

NameNumberDescription
USER_PASS_MAIN 0

USER_PASS_INVESTOR 1

USER_PASS_API 2

UsersRights

NameNumberDescription
UsersRights_USER_RIGHT_NONE 0

UsersRights_USER_RIGHT_ENABLED 1

UsersRights_USER_RIGHT_PASSWORD 2

UsersRights_USER_RIGHT_TRADE_DISABLED 4

UsersRights_USER_RIGHT_INVESTOR 8

UsersRights_USER_RIGHT_CONFIRMED 16

UsersRights_USER_RIGHT_TRAILING 32

UsersRights_USER_RIGHT_EXPERT 64

UsersRights_USER_RIGHT_OBSOLETE 128

UsersRights_USER_RIGHT_REPORTS 256

UsersRights_USER_RIGHT_READONLY 512

UsersRights_USER_RIGHT_RESET_PASS 1024

UsersRights_USER_RIGHT_OTP_ENABLED 2048

UsersRights_USER_RIGHT_SPONSORED_HOSTING 8192

UsersRights_USER_RIGHT_API_ENABLED 16384

UsersRights_USER_RIGHT_PUSH_NOTIFICATION 32768

UsersRights_USER_RIGHT_DEFAULT 355

UsersRights_USER_RIGHT_ALL 61311

Main

Method NameRequest TypeResponse TypeDescription
OrderDelete OrderDeleteRequest OrderDeleteReply

Delete order <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "ticket": "0" <br> }

ServerTimezone ServerTimezoneRequest ServerTimezoneReply

Server timezone details <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

SummaryGet SummaryGetRequest SummaryGetReply

Get summary for symbol <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD" <br> }

SummaryGetAll SummaryGetAllRequest SummaryGetAllReply

Get summary for all symbols <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

Orders OrdersRequest OrdersReply

Opened orders. <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "logins": "" <br> }

TickLast TickLastRequest TickLastReply

Last tick details <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

TickStat TickStatRequest TickStatReply

Last tick details <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD" <br> }

SymbolSessions SymbolSessionsRequest SymbolSessionsReply

Symbol quote and trade sessions <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD" <br> }

UserGroups UserGroupsRequest UserGroupsReply

All user groups <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

SymbolGroupsForUserGroup SymbolGroupsForUserGroupRequest SymbolGroupsForUserGroupReply

Symbol groups for user group <br> [Example] <br> { <br> "id": "{{id}}" <br> }

UserPasswordCheck UserPasswordCheckRequest UserPasswordCheckReply

Check user password <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "type": "USER_PASS_MAIN", <br> "login": "1003", <br> "password": "somepassword" <br> }

UserPasswordChange UserPasswordChangeRequest UserPasswordChangeReply

Change user passsord <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "type": "USER_PASS_MAIN", <br> "login": "1003", <br> "password": "somepassword" <br> }

ModifyDeal ModifyDealRequest ModifyDealReply

Modify deal <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "ticket": "199", <br> "stoploss": "0", <br> "takeprofit": "0" <br> }

ModifyOrder ModifyOrderRequest ModifyOrderReply

Modify order <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "ticket": "199", <br> "price": "0", <br> "stoploss": "0", <br> "takeprofit": "0" <br> }

SymbolsList SymbolsListRequest SymbolsListReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> } Symbols <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

Subscribe SubscribeRequest SubscribeReply

Subscribe symbol for real time quotes and get results via /events socket connection <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD", <br> "interval": "0" <br> }

SymbolsParams SymbolsParamsRequest SymbolsParamsReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

SymbolGroups SymbolGroupsRequest SymbolGroupsReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1000" <br> }

SymbolGroupExecutionSet SymbolGroupExecutionSetRequest SymbolGroupExecutionSetReply

Set symbol group execution <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "userGroup": "real\real", <br> "symbolGroup": "crypto\*", <br> "execution": "Market" <br> }

ChartRequest ChartRequestRequest ChartRequestReply

OHLC history <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD", <br> "from": "2023-7-04T00:00:00", <br> "to": "2023-7-05T00:00:00" <br> }

ChartRequestSlim ChartRequestRequest ChartRequestSlimReply

OHLC history <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD", <br> "from": "2023-7-04T00:00:00", <br> "to": "2023-7-05T00:00:00" <br> }

Ping PingRequest PingReply

Simple test without parameters

Connect ConnectRequest ConnectReply

Connect to account with user, password, host, port. <br> [Example] <br> { <br> "user": "1002", <br> "password": "pqcbkl7j", <br> "server": "13.41.64.21" <br> }

AccountsSummary AccountsSummaryRequest AccountsSummaryReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "0" <br> }

AccountsList AccountsRequest AccountsReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

AccountsOnline AccountsOnlineRequest AccountsOnlineReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

AccountDetails AccountDetailsRequest AccountDetailsReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1" <br> }

AccountDetailsMany AccountDetailsManyRequest AccountDetailsManyReply

Accounts details. If logins not specifed reutns details for all accoungts. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

UserDetails UserDetailsRequest UserDetailsReply

Accounts Balance, Equity,Profit, etc <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1" <br> }

UserDetailsMany UserDetailsManyRequest UserDetailsManyReply

Accounts details. If logins not specifed reutns details for all accoungts. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

OrderSend OrderSendRequest OrderSendReply

Send market or pending order <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "", <br> "symbol": "", <br> "operation": "", <br> "lots": "", <br> "price": "0", <br> "slippage": "0", <br> "stoploss": "0", <br> "takeprofit": "0" <br> }

OrderClose OrderCloseRequest OrderCloseReply

Close market or pending order <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "ticket": "", <br> "lots": "0", <br> "price": "0", <br> "slippage": "0" <br> }

AccountCreate AccountCreateRequest AccountCreateReply

Create new user. Need to specify at least first and last name, group and leverage. <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "master_pass": "", <br> "investor_pass": "", <br> "enabled": "", <br> "user": "" <br> }

AccountDelete AccountDeleteRequest AccountDeleteReply

Delete account <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1" <br> }

AccountUpdate AccountUpdateRequest AccountUpdateReply

Create new user. Need to specify at least first and last name, group and leverage. <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "enabled": "", <br> "user": "" <br> }

Deposit DepositRequest DepositReply

Deposit/withdraw <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "", <br> "amount": "", <br> "comment": "", <br> "credit": "False" <br> }

Positions PositionsRequest PositionsReply

Opened positions. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

PositionsMT4Format PositionsMT4FormatRequest PositionsMT4FormatReply

Poition list in MT4 format. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

PendingOrderHistory PendingOrderHistoryRequest PendingOrderHistoryReply

Order history <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1" <br> }

DealHistory DealHistoryRequest DealHistoryReply

Order history <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1" <br> }

PositionHistoryMT4Format PositionHistoryMT4FormatRequest PositionHistoryMT4FormatReply

Order history <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "login": "1" <br> }

TradeJournal TradeJournalRequest TradeJournalReply

Get Trade Journal. <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "mode": "MTLogModeStd" <br> }

Health HealthRequest HealthReply

Check Connection. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

SymbolGet SymbolGetRequest SymbolGetReply

CancellAllStreams CancellAllStreamsRequest CancellAllStreamsReply

Cancell all streams <br> [Example] <br> { <br> "id": "demo-token-mt4mng" <br> }

Disconnect DisconnectRequest DisconnectReply

Disconnect <br> [Example] <br> { <br> "id": "" <br> }

Streams

Method NameRequest TypeResponse TypeDescription
OnOrderUpdate OnOrderUpdateRequest OnOrderUpdateReply stream

Pending orders updates <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

OnPositionUpdate OnPositionUpdateRequest OnPositionUpdateReply stream

Positions updates <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

OnDealUpdate OnDealUpdateRequest OnDealUpdateReply stream

Deal updates <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> } Positions updates <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> } rpc OnPositionUpdateMT4Format (OnPositionUpdateMT4FormatRequest) returns (OnPositionUpdateMT4FormatReply);

OnQuote OnQuoteRequest OnQuoteReply stream

Real time quotes. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

OnAccountUpdate OnAccountUpdateRequest OnAccountUpdateReply stream

MarginCallEnter, MarginCallLeave, StopOutEnter, StopOutLeave events <br> [Example] <br> { <br> "id": "" <br> }

OrderProfit OrderProfitRequest OrderProfitReply stream

Orders profits updates. <br> [Example] <br> { <br> "id": "demo-token-mt5mng" <br> }

ChartRequestSlim ChartRequestRequest ChartRequestSlimReply stream

OHLC history <br> [Example] <br> { <br> "id": "demo-token-mt5mng", <br> "symbol": "EURUSD", <br> "from": "2023-7-04T00:00:00", <br> "to": "2023-7-05T00:00:00" <br> }

OnRequestUpdate OnRequestUpdateRequest OnRequestUpdateReply stream

Reqquests updates <br> [Example] <br> { <br> "id": "" <br> }

OnUserUpdate OnUserUpdateRequest OnUserUpdateReply stream

User updates <br> [Example] <br> { <br> "id": "" <br> }

OnGroupUpdate OnGroupUpdateRequest OnGroupUpdateReply stream

Group updates <br> [Example] <br> { <br> "id": "" <br> }

OnSymbolUpdate OnSymbolUpdateRequest OnSymbolUpdateReply stream

Group updates <br> [Example] <br> { <br> "id": "" <br> }

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)