Click or drag to resize

TradingAPI.MT4Server Namespace

API allows to work with MT4 Server directly without MT4 Terminal. Use QuoteClient to get account information, real time quotes, live/history trades and orders. Use OrderClient for trading functionallity.
Classes
  ClassDescription
Public classConnectEventArgs
Connect event argumnets.
Public classConvertBytes
Convert byte array to strings.
Public classLogger
Log output.
Public classOrder
Contains order data.
Public classOrderClient
Trading client.
Public classQuoteClient
Quote retrieving, account information, order updates.
Public classQuoteEventArgs
New quote event arguments.
Public classRequoteException
Requote exception.
Public classServerException
Error reply from server on login and order opening/closing/modifying.
Public classTimeoutException
Trade timeout exception.
Public classTradeContextBusyException
All order connections busy or desconnected.
Structures
  StructureDescription
Public structureBar
Quote history bar.
Public structureConGroup
Client group configuration.
Public structureConGroupMargin
Special securities configurations
Public structureConGroupSec
Security group configuration for client group
Public structureConSession
Security sessions configurations
Public structureConSessions
Sessions.
Public structureConSymbolGroup
Symbol groups
Public structureDemoAccount
Demo account user and passwords.
Public structureDisconnectEventArgs
Disconnect event arguments.
Public structureMainServer
Main server parameters.
Public structureOrderProgressEventArgs
Order progress event arguments.
Public structureOrderUpdateEventArgs
Arguments for OrderUpdate event.
Public structureQuoteHistoryEventArgs
Quote history event args.
Public structureServer
Additional server parameters.
Public structureServerInfo
Server information.
Public structureSymbolInfo
Instrument parameters.
Public structureSymbolInfoEx
Security config
Public structureTradeRecord
Trade record
Delegates
  DelegateDescription
Public delegateConnectEventHandler
Connect event handler.
Public delegateDisconnectEventHandler
Disconnect event handler.
Public delegateLoggerOnMsgHandler
New message event handler.
Public delegateOrderProgressEventHandler
Open/close progress of the order before ticket number assign.
Public delegateOrderUpdateEventHandler
Order update event handler.
Public delegateQuoteEventHandler
Quote event handler.
Public delegateQuoteHistoryEventHandler
Quote history event handler;
Enumerations
  EnumerationDescription
Public enumerationExecution
Execution type.
Public enumerationLoggerMsgType
Message type.
Public enumerationMarginMode
Margin types.
Public enumerationOp
Operation type for the OrderSend() function.
Public enumerationProfitMode
Profit types.
Public enumerationProgressType
Stage of order processing by server.
Public enumerationTimeframe
Timeframe for quote history download.
Public enumerationUpdateAction
Type of update action for OrderUpdate event.