Commodity names and euro area codes are accepted
GET /v1/commodities/spot/{commodity}/{currency} and its bars take commodity names in any letter case, and GET /v1/economics/calendar reads common euro area codes.
GET /v1/commodities/spot/{commodity}/{currency} and its bars take commodity names in any letter case, and GET /v1/economics/calendar reads common euro area codes.
What changed
- The spot commodity is accepted in any letter case and by common names and futures symbols, such as GOLD for XAU, COPPER and HG for XCU, BZ for BRENT and OIL for WTI. The answer keeps Narwhal's own code.
- The commodity_not_supported error now lists the supported codes.
- The calendar countries filter reads EA, EZ, EA19, EA20, EA21, EUU and EUR as EMU, the euro area. An unknown value returns an error that gives the expected format.
Was this page helpful?