MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

Prices → Get Tick History

AI-generated

Summary

Retrieve historical tick data for a specified trading symbol within a given date range and with selected data fields.

Inputs

  • Symbol (required) — The symbol name (e.g., EURUSD) for which to fetch tick history.
  • From Date (required) — The start datetime for the tick history range.
  • To Date (required) — The end datetime for the tick history range.
  • Data Fields (required) — The fields to include per tick in the response, selected from date/time, bid, ask, last deal price, and volume.

Output shape

a list of tick records

Each record includes the requested data fields for the specified symbol and time range. The returned data corresponds to the parameters 'd' (date), 'b' (bid), 'a' (ask), 'l' (last price), and 'v' (volume) in the chosen combination. Response is paginated by the platform if applicable, error responses follow standard error envelopes.

Examples

Example 1: Get tick history for EURUSD from Jan 1, 2023 to Jan 2, 2023 including date, bid and ask prices.

Set Symbol to 'EURUSD', From Date to '2023-01-01T00:00:00Z', To Date to '2023-01-02T00:00:00Z', Data Fields to 'Date, Bid, Ask (dba)'.

Discussion