Hive Intelligence

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.

ParameterTypeRequiredDescription
basestringNoBase 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.

ParameterTypeRequiredDescription
symbolstringYesCurrency pair (e.g., "OANDA:EUR_USD")
resolutionstringYesTimeframe: 1, 5, 15, 30, 60, D, W, M
fromnumberYesStart UNIX timestamp
tonumberYesEnd UNIX timestamp

finnhub_get_forex_symbols

List available forex symbols and currency pairs.

ParameterTypeRequiredDescription
exchangestringNoExchange name (default: "oanda")

Commodities

finnhub_get_commodity_candles

Get historical price data for commodities (gold, silver, platinum).

ParameterTypeRequiredDescription
symbolstringYesCommodity code: XAU (gold), XAG (silver), XPT (platinum)
resolutionstringYesTimeframe: 1, 5, 15, 30, 60, D, W, M
fromnumberYesStart UNIX timestamp
tonumberYesEnd 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}}'