Skip to content

MT4Account.QuoteHistory method

Synchronously retrieves historical quote data for a symbol within a time range.

public QuoteHistoryData QuoteHistory(string symbol, ENUM_QUOTE_HISTORY_TIMEFRAME timeframe, 
    DateTime from, DateTime to, DateTime? deadline = default, 
    CancellationToken cancellationToken = default)
parameter description
symbol Symbol name.
timeframe Chart timeframe.
from Start time (UTC).
to End time (UTC).
deadline Optional gRPC deadline.
cancellationToken Optional cancellation token.

Return Value

QuoteHistoryData with OHLC and volume data.

See Also