Get Real-Time Price
twelvedata_get_priceRetrieve the current real-time price for any trading symbol, supporting forex, precious metals, cryptocurrencies, and stocks. Enter a symbol to obtain the price.
Instructions
Get the current real-time price for any trading symbol.
Supports forex pairs, precious metals, crypto, and stocks. This is the fastest endpoint for getting current prices.
Symbols examples:
Metals: XAU/USD (gold), XAG/USD (silver), XPT/USD (platinum)
Forex: EUR/USD, GBP/USD, USD/JPY
Crypto: BTC/USD, ETH/USD
Stocks: AAPL, MSFT, GOOGL
Args:
symbol (string): Trading symbol (e.g., "XAU/USD", "EUR/USD", "BTC/USD")
response_format ('markdown' | 'json'): Output format
Returns: Current price of the symbol.
Examples:
"What's the current gold price?" -> symbol: "XAU/USD"
"Get EURUSD price" -> symbol: "EUR/USD"
"Bitcoin price now" -> symbol: "BTC/USD"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol to get price for (e.g., XAU/USD for gold, EUR/USD for forex) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |