v2

latestOpenAPI 3.0.4Commercial License2026-07-31191050.4 KB
Metals

Get historical Spot prices for requested metals

Historical OHLC data for the specified period and interval size

The combination of the interval parameter and start and end dates can result in results being truncated to conform to result size limits. See comments on interval parameter for details on valid interval values.

The historicalfx flag is used to determine whether to apply today's fx rates to a historical period, or to apply the historical rates from that same time frame.

get/api/v1/Metals/spot/history

Query parameters

metalsstring required

comma separated list of metals

startstring date-time required

start date of time period. format is <i>yyyy-mm-dd</i>

endstring date-time

end date of time period. format is <i>yyyy-mm-dd</i>. Default is current date.

intervalstring

aggregation interval. Composed of an optional integer value (which defaults to 1 when not specified), followed by a type string which must be one of the following values: y=year, m=month, w=week, d=day, h=hour, mi=minute

For example, a yearly interval can be specified as "y" and 6 month interval as "6m".

If not specified the interval parameter default is 1 Day.

historicalfxboolean

if true use historical currency rates otherwise current currency rates. Defaults to true.

currencystring

comma separated list of conversion currencies, defaults to USD

unitofmeasure'mg' | 'g' | 'kg' | 'gr' | 'toz' | 'ct' | 'dwt'

unit of meaure, defaults to troy ounces. allowed values are: mg=milligram g=gram kg=kilogram gr=grain toz=troy ounce ct=carat dwt=pennyweight

format'json' | 'xml'

to override content negotiation specify a value of json or xml

Response

OK

requestedSymbolstring nullable
requestedCurrencystring nullable
requestedUnitOfMeasurestring nullable
successboolean
errorstring nullable