Latest quote for the symbol.
Namespace: mtapi.mt5Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax public Quote GetQuote(
string symbol,
int msTimeout = 0
)
Public Function GetQuote (
symbol As String,
Optional msTimeout As Integer = 0
) As Quote
public:
Quote^ GetQuote(
String^ symbol,
int msTimeout = 0
)
member GetQuote :
symbol : string *
?msTimeout : int
(* Defaults:
let _msTimeout = defaultArg msTimeout 0
*)
-> Quote
Parameters
- symbol String
- Symbol for trading.
- msTimeout Int32 (Optional)
-
Return Value
QuoteReturn null if no quotes for specified symbol avalible, otherwise return quote event arguments.
Exceptions Exception | Condition |
---|
Exception | Symbol not subscribed. |
See Also