About the API:
Our Live and Historical Commodities Rates API provides real-time and historical data for global commodity prices. The API covers a wide range of commodities, including precious metals, energy, agricultural products, and more. This makes it a valuable tool for businesses and individuals in the commodity trading and investing space.
The API is designed to be easy to use, making it accessible to developers of all skill levels. It can be easily integrated with any application, such as a website, mobile app, or server-side application, via a simple API call. The API also supports multiple programming languages, allowing you to choose the one that best suits your needs.
The API provides real-time data on commodity prices, which is essential for businesses and investors that need to make quick decisions based on market conditions. The API also provides historical data, which can be used for analysis, research, and backtesting of trading strategies.
This API is perfect for businesses that operate in the commodity trading and investing space, such as commodity traders, investment firms, financial institutions, and research organizations. It can be used for a variety of purposes, such as risk management, price forecasting, and market analysis.
Overall, our Live and Historical Commodities Rates API is a powerful tool for businesses and individuals in the commodity trading and investing space. With real-time and historical data on a wide range of commodities, this API makes it easy to stay informed and make informed decisions based on market conditions.
This API will allow you to query for live and historical prices based on the commodity of your choice. Check our supported symbols and start making your queries.
Commodity trading: Use the API to access real-time and historical data on commodity prices to inform trading decisions and execute trades.
Risk management: Use the API to access historical data on commodity prices to analyze market trends and identify potential risks, allowing for proactive risk management.
Price forecasting: Use the API to access historical data on commodity prices to create models for forecasting future prices, which can be used for financial planning and investment decisions.
Market analysis: Use the API to access real-time and historical data on commodity prices to analyze market conditions and identify opportunities for investment.
Supply chain management: Use the API to access real-time and historical data on commodity prices to inform purchasing decisions and manage inventory.
Research: Use the API to access historical data on commodity prices for academic research or business intelligence purpose.
Besides API call limitations per month, there are no other limitations.
Check all the available symbols for your queries. This endpoint retrieves all the supported commodities and currencies as well.
{"ADA":"Cardano","AED":"United Arab Emirates Dirham","AFN":"Afghan Afghani","ALL":"Albanian Lek","ALU":"Aluminum","AMD":"Armenian Dram","ANG":"Netherlands Antillean Gulden","AOA":"Angolan Kwanza","ARS":"Argentine Peso","AUD":"Australian Dollar","AWG":"Aruban Florin","AZN":"Azerbaijani Manat","BAM":"Bosnia and Herzegovina Convertible Mark","BBD":"Barbadian Dollar","BCH":"Bitcoin Cash","BDT":"Bangladeshi Taka","BGN":"Bulgarian Lev","BHD":"Bahraini Dinar","BIF":"Burundian Franc","BMD":"Bermudian Dollar","BND":"Brunei Dollar","BOB":"Bolivian Boliviano","BRENTOIL":"Brent Crude Oil","BRL":"Brazilian Real","BSD":"Bahamian Dollar","BTC":"Bitcoin","BTN":"Bhutanese Ngultrum","BWP":"Botswana Pula","BYN":"Belarusian Ruble","BYR":"Belarusian Ruble","BZD":"Belize Dollar","CAD":"Canadian Dollar","CDF":"Congolese Franc","CHF":"Swiss Franc","CLF":"Unidad de Fomento","CLP":"Chilean Peso","CNH":"Chinese Renminbi Yuan Offshore","CNY":"Chinese Renminbi Yuan","COCOA":"Cocoa","COFFEE":"Arabica Coffee","COP":"Colombian Peso","CORN":"Corn","COTTON":"Cotton","CPO":"Crude Palm Oil","CRC":"Costa Rican Col\u00f3n","CUC":"Cuban Convertible Peso","CVE":"Cape Verdean Escudo","CZK":"Czech Koruna","DJF":"Djiboutian Franc","DKK":"Danish Krone","DOP":"Dominican Peso","DZD":"Algerian Dinar","EEK":"Estonian Kroon","EGP":"Egyptian Pound","ERN":"Eritrean Nakfa","ETB":"Ethiopian Birr","ETH":"Ethereum","ETHANOL":"Ethanol","EUR":"Euro","FJD":"Fijian Dollar","FKP":"Falkland Pound","GBP":"British Pound","GEL":"Georgian Lari","GGP":"Guernsey Pound","GHS":"Ghanaian Cedi","GIP":"Gibraltar Pound","GMD":"Gambian Dalasi","GNF":"Guinean Franc","GTQ":"Guatemalan Quetzal","GYD":"Guyanese Dollar","HKD":"Hong Kong Dollar","HNL":"Honduran Lempira","HRK":"Croatian Kuna","HTG":"Haitian Gourde","HUF":"Hungarian Forint","IDR":"Indonesian Rupiah","ILS":"Israeli New Sheqel","IMP":"Isle of Man Pound","INR":"Indian Rupee","IQD":"Iraqi Dinar","IRD":"Iridium (Troy Ounce)","ISK":"Icelandic Kr\u00f3na","JEP":"Jersey Pound","JMD":"Jamaican Dollar","JOD":"Jordanian Dinar","JPY":"Japanese Yen","KCH23":"Arabica Coffee Mar 23","KCK23":"Arabica Coffee May 23","KCN22":"Arabica Coffee Jul 22","KCN23":"Arabica Coffee Jul 23","KCU22":"Arabica Coffee Sep 22","KCU23":"Arabica Coffee Sep 23","KCZ22":"Arabica Coffee Dec 22","KES":"Kenyan Shilling","KGS":"Kyrgyzstani Som","KHR":"Cambodian Riel","KMF":"Comorian Franc","KRW":"South Korean Won","KWD":"Kuwaiti Dinar","KYD":"Cayman Islands Dollar","KZT":"Kazakhstani Tenge","LAK":"Lao Kip","LBP":"Lebanese Pound","LCO":"Cobalt (Troy Ounce)","LINK":"Chainlink","LKR":"Sri Lankan Rupee","LRD":"Liberian Dollar","LSL":"Lesotho Loti","LTC":"Litecoin","LTL":"Lithuanian Litas","LUMBER":"Lumber","LVL":"Latvian Lats","LYD":"Libyan Dinar","MAD":"Moroccan Dirham","MDL":"Moldovan Leu","MGA":"Malagasy Ariary","MKD":"Macedonian Denar","MMK":"Myanmar Kyat","MNT":"Mongolian T\u00f6gr\u00f6g","MOP":"Macanese Pataca","MRO":"Mauritanian Ouguiya","MTL":"Maltese Lira","MUR":"Mauritian Rupee","MVR":"Maldivian Rufiyaa","MWK":"Malawian Kwacha","MXN":"Mexican Peso","MYR":"Malaysian Ringgit","MZN":"Mozambican Metical","NAD":"Namibian Dollar","NG":"Natural Gas","NGN":"Nigerian Naira","NI":"Nickel","NIO":"Nicaraguan C\u00f3rdoba","NOK":"Norwegian Krone","NPR":"Nepalese Rupee","NZD":"New Zealand Dollar","OMR":"Omani Rial","PAB":"Panamanian Balboa","PEN":"Peruvian Sol","PGK":"Papua New Guinean Kina","PHP":"Philippine Peso","PKR":"Pakistani Rupee","PLN":"Polish Z\u0142oty","PYG":"Paraguayan Guaran\u00ed","QAR":"Qatari Riyal","RICE":"Rice","RMF23":"Robusta Coffee Jan 23","RMH23":"Robusta Coffee Mar 23","RMN22":"Robusta Coffee Jul 22","RMU22":"Robusta Coffee Sep 22","RMX22":"Robusta Coffee Nov 22","ROBUSTA":"Robusta Coffee","RON":"Romanian Leu","RSD":"Serbian Dinar","RUB":"Russian Ruble","RUBBER":"Rubber","RUTH":"Ruthenium","RWF":"Rwandan Franc","SAR":"Saudi Riyal","SBD":"Solomon Islands Dollar","SCR":"Seychellois Rupee","SEK":"Swedish Krona","SGD":"Singapore Dollar","SHP":"Saint Helenian Pound","SLL":"Sierra Leonean Leone","SOS":"Somali Shilling","SOYBEAN":"Soybeans","SRD":"Surinamese Dollar","SSP":"South Sudanese Pound","STD":"S\u00e3o Tom\u00e9 and Pr\u00edncipe Dobra","SUGAR":"Sugar","SVC":"Salvadoran Col\u00f3n","SZL":"Swazi Lilangeni","THB":"Thai Baht","TIN":"Tin","TJS":"Tajikistani Somoni","TMT":"Turkmenistani Manat","TND":"Tunisian Dinar","TOP":"Tongan Pa\u02bbanga","TRY":"Turkish Lira","TTD":"Trinidad and Tobago Dollar","TWD":"New Taiwan Dollar","TZS":"Tanzanian Shilling","UAH":"Ukrainian Hryvnia","UGX":"Ugandan Shilling","UNI":"Uniswap","USD":"United States Dollar","UYU":"Uruguayan Peso","UZS":"Uzbekistan Som","VEF":"Venezuelan Bol\u00edvar","VES":"Venezuelan Bol\u00edvar Soberano","VND":"Vietnamese \u0110\u1ed3ng","VUV":"Vanuatu Vatu","WHEAT":"Wheat","WST":"Samoan Tala","WTIOIL":"WTI Crude Oil","XAF":"Central African Cfa Franc","XAG":"Silver (Troy Ounce)","XAU":"Gold (Troy Ounce)","XCD":"East Caribbean Dollar","XCU":"Copper","XDR":"Special Drawing Rights","XLM":"Stellar","XOF":"West African Cfa Franc","XPD":"Palladium (Troy Ounce)","XPF":"Cfp Franc","XPT":"Platinum (Troy Ounce)","XRH":"Rhodium (Troy Ounce)","XRP":"Ripple","XRP2":"Ripple","YER":"Yemeni Rial","ZAR":"South African Rand","ZMK":"Zambian Kwacha","ZMW":"Zambian Kwacha","ZNC":"Zinc","ZWL":"Zimbabwean Dollar","ZWN2":"Wheat ZWN2"}
Object | Description |
---|
Check the real-time exchange rate data updated every 60 seconds with this endpoint.
Note: All the commodities rates you get need using ANY currency as a base currency (base parameter) need to be divided by 1
We return the values based on the base currency. For example, for 1 USD the return is a number like 0.00055307742 for Gold (XAU).
To get the gold rate per troy ounce in USD: 1/0.00055307742 = 1808.06 USD
{"data":{"success":true,"timestamp":1654781520,"date":"2022-06-09","base":"USD","rates":{"CORN":0.13117824377457,"USD":1},"unit":"per bushel"}}
Object | Description |
---|---|
base |
[Required] Enter the three-letter currency code or commodity code of your preferred base currency. Check Symbols endpoint |
symbols |
[Required] Enter a list of comma-separated currency codes or commodity codes to limit output codes. Check Symbols endpoint |
Historical rates are available for most symbols all the way back to the year 2021. You can query the API for historical rates by appending a date (format YYYY-MM-DD) to the base URL.
Note: All the commodities rates you get need using ANY currency as a base currency (base parameter) need to be divided by 1
We return the values based on the base currency. For example, for 1 USD the return is a number like 0.00055307742 for Gold (XAU).
To get the gold rate per troy ounce in USD: 1/0.00055307742 = 1808.06 USD
{"data":{"success":true,"historical":true,"date":"2022-06-01","base":"USD","rates":{"CORN":0.13686153846154,"USD":1},"unit":"per bushel"}}
Object | Description |
---|---|
base |
[Required] |
symbols |
[Required] |
date |
[Required] |
With this endpoint, you will be provided with daily historical rates between two dates of your choice.
Note: This endpoint has a limitation of 365 days per range, and only can provide one symbol information per request.
All the commodities rates you get need using ANY currency as a base currency (base parameter) need to be divided by 1
We return the values based on the base currency. For example, for 1 USD the return is a number like 0.00055307742 for Gold (XAU).
To get the gold rate per troy ounce in USD: 1/0.00055307742 = 1808.06 USD
{"data":{"success":true,"timeseries":true,"start_date":"2022-05-01","end_date":"2022-06-01","base":"USD","rates":{"2022-05-01":{"USD":1,"CORN":0.12221203788573},"2022-05-02":{"USD":1,"CORN":0.12228780934922},"2022-05-03":{"USD":1,"CORN":0.1230270602706},"2022-05-04":{"USD":1,"CORN":0.12489665938183},"2022-05-05":{"USD":1,"CORN":0.12526988102693},"2022-05-06":{"USD":1,"CORN":0.12444914463453},"2022-05-07":{"USD":1,"CORN":0.12626262626263},"2022-05-08":{"USD":1,"CORN":0.12626262626263},"2022-05-09":{"USD":1,"CORN":0.12623919217419},"2022-05-10":{"USD":1,"CORN":0.12759209687699},"2022-05-11":{"USD":1,"CORN":0.12721169739352},"2022-05-12":{"USD":1,"CORN":0.1247665939545},"2022-05-13":{"USD":1,"CORN":0.12303380454825},"2022-05-14":{"USD":1,"CORN":0.12376237623762},"2022-05-15":{"USD":1,"CORN":0.12791813239527},"2022-05-16":{"USD":1,"CORN":0.12803072},"2022-05-17":{"USD":1,"CORN":0.1236504014824},"2022-05-18":{"USD":1,"CORN":0.12492788011239},"2022-05-19":{"USD":1,"CORN":0.12805502239283},"2022-05-20":{"USD":1,"CORN":0.12774210022343},"2022-05-21":{"USD":1,"CORN":0.1284934147125},"2022-05-22":{"USD":1,"CORN":0.1284934147125},"2022-05-23":{"USD":1,"CORN":0.12846741573034},"2022-05-24":{"USD":1,"CORN":0.1272546899841},"2022-05-25":{"USD":1,"CORN":0.12961321671526},"2022-05-27":{"USD":1,"CORN":0.13083790849673},"2022-05-28":{"USD":1,"CORN":0.12882447665056},"2022-05-29":{"USD":1,"CORN":0.12882447665056},"2022-05-30":{"USD":1,"CORN":0.12876551945963},"2022-05-31":{"USD":1,"CORN":0.12872177549051},"2022-06-01":{"USD":1,"CORN":0.1328400796284}},"unit":"per bushel"}}
Object | Description |
---|---|
start_date |
[Optional] The start date of your preferred timeframe. |
end_date |
[Optional] The end date of your preferred timeframe. |
base |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
symbols |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
Using the fluctuation API endpoint, you will be able to retrieve information about how prices fluctuate from day to day.
This endpoint has a limitation of 365 days and only one symbol per request
{"data":{"success":true,"fluctuation":true,"start_date":"2022-05-01","end_date":"2022-06-01","base":"USD","rates":{"CORN":{"start_rate":0.12221203788573,"end_rate":0.13686153846154,"change":0.014649500575810007,"change_pct":11.986953846156709},"USD":{"start_rate":1,"end_rate":1,"change":0,"change_pct":0}},"unit":"per bushel"}}
Object | Description |
---|---|
start_date |
[Optional] The start date of your preferred timeframe. |
end_date |
[Optional] The end date of your preferred timeframe. |
base |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
symbols |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
Allows you to query the API to get the open, high, low, and close price.
This endpoint has a limitation of one symbol per request.
{"Example Response":"No response example available for now."}
Object | Description |
---|---|
base |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
symbols |
[Optional] Enter the three-letter currency code or commodity code of your preferred base currency |
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Live and Historical Commodities Rates API REST API, simply include your bearer token in the Authorization header.
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.
Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.
Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldβs most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]
Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further
Prices are based on a recurring monthly subscription depending on the plan selected β plus overage fees applied when a developer exceeds a planβs quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.
Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.
You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]