QuoteClient Class |
Namespace: TradingAPI.MT4Server
The QuoteClient type exposes the following members.
Name | Description | |
---|---|---|
QuoteClient |
Initialize quote client. For using with COM. Call Init() after constructor.
| |
QuoteClient(Int32, String, String, Int32) |
Initialize quote client.
| |
QuoteClient(Int32, String, String, Int32, DateTime, DateTime) |
Initialize quote client to give history of closed orders.
|
Name | Description | |
---|---|---|
Account |
Various account information.
| |
AccountBalance |
Account balance.
| |
AccountCredit |
Account credit.
| |
AccountEquity |
Account equity.
| |
AccountFreeMargin |
Account free margin.
| |
AccountLeverage |
Account leverage.
| |
AccountMargin |
Account margin.
| |
AccountName |
Currency name of the current account.
| |
AccountProfit |
Account profit.
| |
AccountType |
Real, contest, demo
| |
AutoReconnect |
If true API reconnect automatically.
| |
ClosedOrders |
Array of closed orders.
| |
Connected |
Check connection state.
| |
ConnectTime |
Time when connected to server
| |
GroupParameters |
Parameters for each group.
| |
Groups |
Symbol groups.
| |
Host |
Host
| |
IsInvestor |
Account mode. 0 - master, 1 - investor
| |
OrderClient | ||
Port |
Port
| |
ServerBuild |
Server build.
| |
ServerTime |
Server time, refreshing goes with using incoming quotes.
| |
SleepTime |
Sleep time for MainThread of QuoteClient.
Can be from 1 to 20 ms. Default value - 5 ms.
| |
Symbols |
List of avalible symbols.
| |
User |
Account number.
|
Name | Description | |
---|---|---|
Connect |
Connect to server.
| |
ConnectAsync |
Connect to server without awiting reply from server. Use OnConnect event to get result.
| |
ConnectInternal | ||
Disconnect |
Disconnect from server.
| |
DownloadOrderHistory |
Returns closed orders.
| |
DownloadQuoteHistory |
Downaload quote history.
| |
GetDemo(String, Int32, Double, String, String, String, String, String, String, String, String, String, String) |
Get demo account.
| |
GetDemo(String, Int32, Int32, Double, String, String, String, String, String, String, String, String, String, String) |
Get demo account.
| |
GetOpenedOrder |
Get opened order by ticket.
| |
GetOpenedOrders |
Returns opened orders.
| |
GetQuote |
Latest quote for the symbol.
| |
GetServerInfo |
Get server info.
| |
GetSymbolGroup |
Symbol group name and description.
| |
GetSymbolGroupParams |
Symbol group parameters.
| |
GetSymbolInfo |
Get instrument parameters.
| |
Init(Int32, String, String) |
Initialize quote client. For using with COM.
| |
Init(Int32, String, String, Int32) |
Initialize quote client. For using with COM.
| |
IsSubscribed |
Check subscribe trading instrument.
| |
LoadSrv(String) |
Load only main server.
| |
LoadSrv(Byte, Server) |
Load server list.
| |
LoadSrv(String, Server) |
Load server list.
| |
PingHost |
Estimeate RoundtripTime to host
| |
ReconnectAsync | ||
RequestQuoteHistory |
Request quote history. Use QuoteHistory event to get bars.
| |
Subscribe(String) |
Subscribe trading instrument.
| |
Subscribe(String) |
Subscribes multiple instruments.
| |
Unsubscribe |
Unsubscribe trading instrument.
|
Name | Description | |
---|---|---|
OnConnect |
Connect event.
| |
OnDisconnect |
Disconnect event.
| |
OnOrderUpdate |
Order status changed event.
| |
OnQuote | ||
OnQuoteHistory |
Quote history event. Use DownloadQuoteHistory to request history.
| |
OnSymbolsUpdate |
Symbols parameters changed event.
|
Name | Description | |
---|---|---|
CalculateTradeProps |
Flag, allowing to calculate the parameters of trade:
AccountProfit, AccountEquity, AccountMargin, AccountFreeMargin.
| |
LatestSrv | ||
LoginIdPath |
Calculate LoginId on WebServer instead of local LoginId.dll
| |
LoginIdWebServerTimeout |
How long to wait response from login id web server
| |
OrderHistoryForLastNDays |
Number of days from current moment to the past to download order hsitory on conect to server.
| |
PathForSavingSrv |
Path for saving .srv files. If null - don't save.
| |
PathForSavingSym |
Path for saving .sym files. If null - save in current folder.
| |
ProcessEvents |
How to process events
|