Get Commodity Real-Time Data
Macro
Get Commodity Real-Time Data
OpenAPI JSON Spec Retrieve real-time data for a specified commodity symbol. Returns simplified data with symbol, date, and price (close price).
Response Data Structure
data(RealTimeData): Real-time commodity data
RealTimeData fields:
symbol(string): Commodity symbol (e.g., “GCUSD”, “ZLUSX”, “SILUSD”)date(string): Date in YYYY-MM-DD formatprice(float): Current price (close price)
Note: When no data is available (e.g., outside trading hours or no recent data), the API returns an empty data structure with default values: {"symbol": "", "date": "", "price": 0}.
GET
Get Commodity Real-Time Data
Authorizations
API Key authentication. Example: "your-api-key-here"
Query Parameters
Commodity symbol (eg., GCUSD, ZLUSX, SILUSD)

