Forex & Commodities Tools
4 tools for foreign exchange rates and commodity price data.
MCP Endpoint: POST /hive_forex_commodities/mcp
Data Source: Finnhub
Exchange Rates
finnhub_get_forex_rates
Get real-time forex exchange rates.
| Parameter | Type | Required | Description |
|---|---|---|---|
| base | string | No | Base currency (default: "USD") |
Example:
curl -X POST https://api.hiveintelligence.xyz/api/execute \
-H "Content-Type: application/json" \
-d '{"toolName": "finnhub_get_forex_rates", "arguments": {"base": "USD"}}'
finnhub_get_forex_candles
Get historical OHLCV data for a currency pair.
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Currency pair (e.g., "OANDA:EUR_USD") |
| resolution | string | Yes | Timeframe: 1, 5, 15, 30, 60, D, W, M |
| from | number | Yes | Start UNIX timestamp |
| to | number | Yes | End UNIX timestamp |
finnhub_get_forex_symbols
List available forex symbols and currency pairs.
| Parameter | Type | Required | Description |
|---|---|---|---|
| exchange | string | No | Exchange name (default: "oanda") |
Commodities
finnhub_get_commodity_candles
Get historical price data for commodities (gold, silver, platinum).
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Commodity code: XAU (gold), XAG (silver), XPT (platinum) |
| resolution | string | Yes | Timeframe: 1, 5, 15, 30, 60, D, W, M |
| from | number | Yes | Start UNIX timestamp |
| to | number | Yes | End UNIX timestamp |
Example:
curl -X POST https://api.hiveintelligence.xyz/api/execute \
-H "Content-Type: application/json" \
-d '{"toolName": "finnhub_get_commodity_candles", "arguments": {"symbol": "XAU", "resolution": "D", "from": 1709251200, "to": 1711929600}}'
