MT4Account.QuoteHistoryAsync method
Asynchronously retrieves historical quote data for a symbol within a time range.
public Task<QuoteHistoryData> QuoteHistoryAsync(string symbol,
ENUM_QUOTE_HISTORY_TIMEFRAME timeframe, DateTime from, DateTime to,
DateTime? deadline = default, CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| symbol | Symbol to query (e.g., "EURUSD"). |
| timeframe | Desired timeframe (e.g., H1, D1). |
| from | Start time (UTC). |
| to | End time (UTC). |
| deadline | Optional gRPC deadline. |
| cancellationToken | Optional cancellation token. |
Return Value
QuoteHistoryData including candlestick OHLC quotes.
See Also
- class QuoteHistoryData
- enum ENUM_QUOTE_HISTORY_TIMEFRAME
- class MT4Account
- namespace mt4_term_api