Skip to content

MT4Account.QuoteAsync method

Asynchronously retrieves the latest quote for a single symbol.

public Task<QuoteData> QuoteAsync(string symbol, DateTime? deadline = default, 
    CancellationToken cancellationToken = default)
parameter description
symbol The symbol name (e.g., "EURUSD").
deadline Optional deadline for the request.
cancellationToken Optional cancellation token.

Return Value

Latest QuoteData for the given symbol.

Exceptions

exception condition
ApiExceptionMT4 If the gRPC response contains an error.

See Also