MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

Prices → Get Current Price

AI-generated

Summary

Retrieve the current bid and ask price for a specified trading symbol from the MetaTrader 5 platform.

Inputs

  • Symbol (required) — The name of the trading symbol (e.g., EURUSD) for which to get the current price.

Output shape

A JSON object containing the current price data for the specified symbol, including bid and ask prices.

Returns a single JSON object per execution containing the latest tick data for the symbol. The exact fields depend on the MetaTrader 5 API response format.

Examples

Example 1: Get current price for the EURUSD currency pair.

Set Resource to 'Prices', Operation to 'Get Current Price', and Symbol to 'EURUSD'. The node will output the current bid and ask prices for EURUSD.

Discussion