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.
Supported Symbols - Endpoint Features
| Object | Description |
|---|
This endpoint does not require any input parameters.
Test Endpoint
{"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","APPLE":"Apple","ARS":"Argentine Peso","AU-COAL":"Australian Coal","AUD":"Australian Dollar","AWG":"Aruban Florin","AZN":"Azerbaijani Manat","B0":"Mont Belvieu LDH Propane (OPIS)","BAM":"Bosnia and Herzegovina Convertible Mark","BANA-CH":"Banana - China","BANA-EU":"Banana - Europe","BANA-US":"Banana","BBD":"Barbadian Dollar","BCH":"Bitcoin Cash","BDT":"Bangladeshi Taka","BEEF":"Beef","BGN":"Bulgarian Lev","BHD":"Bahraini Dinar","BIF":"Burundian Franc","BL2c1":"Milling Wheat N2 Futures","BLK-F":"Block Cheese Futures","BLKF":"Block Cheese Sep 23","BLKM23":"Block Cheese Jun 23","BLKN23":"Block Cheese Jul 23","BLKQ23":"Block Cheese Aug 23","BLKV23":"Block Cheese Oct 23","BLKZ23":"Block Cheese Dec 23","BMD":"Bermudian Dollar","BND":"Brunei Dollar","BO00":"Soybean Oil Continuous Contract","BOB":"Bolivian Boliviano","BOF24":"Soybean Oil Jan 2024","BOF25":"Soybean Oil Jan 2025","BOF26":"Soybean Oil Jan 2026","BOH24":"Soybean Oil Mar 2024","BOH25":"Soybean Oil Mar 2025","BOK24":"Soybean Oil May 2024","BOK25":"Soybean Oil May 2025","BON23":"Soybean Oil Jul 2023","BON24":"Soybean Oil Jul 2024","BON25":"Soybean Oil Jul 2025","BOQ23":"Soybean Oil Aug 2023","BOQ24":"Soybean Oil Aug 2024","BOQ25":"Soybean Oil Aug 2025","BOU23":"Soybean Oil Sep 2023","BOU25":"Soybean Oil Sep 2025","BOV23":"Soybean Oil Oct 2023","BOV25":"Soybean Oil Oct 2025","BOZ23":"Soybean Oil Dec 2023","BOZ25":"Soybean Oil Dec 2025","BRENTOIL":"Brent Crude Oil","BRL":"Brazilian Real","BRN00":"Brent Crude Oil Continuous Contract","BRNF25":"Brent Crude Jan 2025","BRNG25":"Brent Crude Feb 2025","BRNH25":"Brent Crude Mar 2025","BRNJ25":"Brent Crude Apr 2025","BRNK25":"Brent Crude May 2025","BRNM25":"Brent Crude Jun 2025","BRNN25":"Brent Crude Jul 2025","BRNQ24":"Brent Crude Aug 2024","BRNQ25":"Brent Crude Aug 2025","BRNU24":"Brent Crude Sep 2024\r","BRNU25":"Brent Crude Sep 2025","BRNV24":"Brent Crude Oct 2024","BRNV25":"Brent Crude Oct 2025","BRNX24":"Brent Crude Nov 2024","BRNZ24":"Brent Crude Dec 2024","BSD":"Bahamian Dollar","BTC":"Bitcoin","BTN":"Bhutanese Ngultrum","BUTTER":"Butter","BWP":"Botswana Pula","BYN":"Belarusian Ruble","BYR":"Belarusian Ruble","BZD":"Belize Dollar","C1":"Corn Front Month","C4Y00":"Cheddar Cheese Blocks Cash","CAD":"Canadian Dollar","CANO":"Canola","CARDAMOM":"Cardamom","CARROT":"Carrot","CCH26":"Cocoa Mar 2026","CCK26":"Cocoa May 2026","CCN26":"Cocoa Jul 2026","CCU25":"Cocoa Sep 2025","CCZ25":"Cocoa Dec 2025","CDF":"Congolese Franc","CH24":"Corn Mar 2024","CH25":"Corn Mar 2025","CH26":"Corn Mar 2026","CHEESE":"Cheese","CHF":"Swiss Franc","CHKN-MT":"Chicken Meat","CK23":"Corn May 2023","CK24":"Corn May 2024","CK25":"Corn May 2025","CK26":"Corn May 2026","CL1":"Crude Oil WTI Front Month","CLF":"Unidad de Fomento","CLI00":"Cocoa Continuous Contract","CLIH24":"Cocoa Mar 2024","CLIH25":"Cocoa Mar 2025","CLIK24":"Cocoa May 2024","CLIK25":"Cocoa May 2025","CLIN24":"Cocoa Jul 2024","CLIN25":"Cocoa Jul 2025","CLIU23":"Cocoa Sep 2023","CLIU24":"Cocoa Sep 2024","CLIZ23":"Cocoa Dec 2023","CLIZ24":"Cocoa Dec 2024","CLP":"Chilean Peso","CN23":"Corn Jul 23","CN24":"Corn Jul 2024","CN25":"Corn Jul 2025","CN26":"Corn Jul 2026","CN27":"Corn Jul 2027","CNH":"Chinese Renminbi Yuan Offshore","CNY":"Chinese Renminbi Yuan","COAL":"Coal","COAL-NCF":"Newcastle Coal Futures","COCO-OIL":"Coconut Oil","COCOA":"Cocoa","COFFEE":"Arabica Coffee","COP":"Colombian Peso","CORN":"Corn","CORN-BCR":"Yellow Corn BCR","COTTON":"Cotton","CPO":"Crude Palm Oil","CR99MIN":"Chromium 99%Min","CRC":"Costa Rican Col\u00f3n","CSCV22":"Cheese Oct 22","CSCX22":"Cheese Nov 22","CU23":"Corn Sep 23","CU24":"Corn Sep 2024","CU25":"Corn Sep 2025","CU26":"Corn Sep 2026","CUC":"Cuban Convertible Peso","CVE":"Cape Verdean Escudo","CZ23":"Corn Dec 23","CZ24":"Corn Dec 2024","CZ25":"Corn Dec 2025","CZ26":"Corn Dec 2026","CZ27":"Corn Dec 2027","CZK":"Czech Koruna","D00":"Robusta Coffee Continuous Contract","DAF24":"Milk Jan 2024","DAF25":"Milk (Class III) Jan 2025","DAG24":"Milk Feb 2024","DAG25":"Milk (Class III) Feb 2025","DAH24":"Milk Mar 2024","DAH25":"Milk (Class III) Mar 2025","DAJ24":"Milk Apr 2024","DAJ25":"Milk (Class III) Apr 2025","DAK24":"Milk May 2024","DAK25":"Milk (Class III) May 2025","DAM24":"Milk Jun 2024","DAM25":"Milk (Class III) Jun 2025","DAN24":"Milk (Class III) Jul 2024","DAQ24":"Milk (Class III) Aug 2024","DAV23":"Milk Oct 2023","DAX23":"Milk Nov 2023","DAZ23":"Milk Dec 2023","DBEc1":"German Power Baseload Calendar Month Futures","DBLc1":"Dubai Crude Oil (Platts) Financial Futures","DCOSc1":"Corn Starch Futures","DE-EL":"Electricity Germany","DF25":"Robusta Coffee Jan 2025","DF26":"Robusta Coffee Jan 2026","DH25":"Robusta Coffee Mar 2025","DH26":"Robusta Coffee Mar 2026","DI_AMMON":"Di-ammonium Phosphate","DJF":"Djiboutian Franc","DJMc1":"Coking Coal Futures","DK24":"Robusta Coffee May 2024","DK25":"Robusta Coffee May 2025","DKK":"Danish Krone","DLJ23":"Milk Apr '23","DLK23":"Milk May '23","DLM23":"Milk Jun '23","DLN23":"Milk Jul '23","DLQ23":"Milk Aug '23","DLU23":"Milk Sep '23","DLV22":"Milk Oct 22","DLX22":"Milk Nov 22","DN24":"Robusta Coffee Jul 2024","DN25":"Robusta Coffee Jul 2025","DOP":"Dominican Peso","DU24":"Robusta Coffee Sep 2024","DU25":"Robusta Coffee Sep 2025","DX24":"Robusta Coffee Nov 2024","DX25":"Robusta Coffee Nov 2025","DZD":"Algerian Dinar","EEK":"Estonian Kroon","EGGS-CH":"Eggs CH","EGGS-US":"Eggs US","EGP":"Egyptian Pound","ERN":"Eritrean Nakfa","ES-EL":"Electricity Spain","ETB":"Ethiopian Birr","ETH":"Ethereum","ETHANOL":"Ethanol","EU-NG":"Natural Gas Futures Europe","EUR":"Euro","FC00":"Feeder Cattle","FCc1":"Feeder Cattle Futures - Aug 23","FCc2":"Feeder Cattle Futures - Sep 23","FCc3":"Feeder Cattle Futures - Oct 23","FCF24":"Feeder Cattle Jan 2024","FCF25":"Feeder Cattle Jan 2025","FCH24":"Feeder Cattle Mar 2024","FCH25":"Feeder Cattle Mar 2025","FCJ24":"Feeder Cattle Apr 2024","FCJ25":"Feeder Cattle Apr 2025","FCK24":"Feeder Cattle May 2024","FCK25":"Feeder Cattle May 2025","FCM23":"Feeder Cattle May 23","FCQ24":"Feeder Cattle Aug 2024","FCU24":"Feeder Cattle Sep 2024","FCV23":"Feeder Cattle Oct 2023","FCV24":"Feeder Cattle Oct 2024","FCX23":"Feeder Cattle Nov 2023","FCX24":"Feeder Cattle Nov 2024","FJD":"Fijian Dollar","FKP":"Falkland Pound","FR-EL":"Electricity France","G-NO":"Groundnut Oil","GARLIC":"Garlic","GBP":"British Pound","GDP":"German DIesel","GEL":"Georgian Lari","GF":"Feeder Cattle","GFU22":"Feeder Cattle","GGP":"Guernsey Pound","GHS":"Ghanaian Cedi","GIP":"Gibraltar Pound","GMD":"Gambian Dalasi","GNF":"Guinean Franc","GTQ":"Guatemalan Quetzal","GUARGUM":"Guar Gum","GUARSEED":"Guar Seed","GYD":"Guyanese Dollar","HKD":"Hong Kong Dollar","HNL":"Honduran Lempira","HOU22":"Heating Oil","HRK":"Croatian Kuna","HRN00":"HRC Steel Futures Continuous Contract","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","ISK":"Icelandic Kr\u00f3na","IT-EL":"Electricity Italy","JEERA":"Jeera","JEP":"Jersey Pound","JMD":"Jamaican Dollar","JOD":"Jordanian Dinar","JPY":"Japanese Yen","KC00":"Arabica Coffee","KCH23":"Arabica Coffee Mar 23","KCH24":"Arabica Coffee Mar 24","KCH25":"Arabica Coffee Mar 2025","KCH26":"Arabica Coffee Mar 2026","KCH27":"Arabica Coffee Mar 2027","KCK23":"Arabica Coffee May 23","KCK24":"Arabica Coffee May 24","KCK25":"Arabica Coffee May 2025","KCK26":"Arabica Coffee May 2026","KCN22":"Arabica Coffee Jul 22","KCN23":"Arabica Coffee Jul 23","KCN24":"Arabica Coffee Jul 24","KCN25":"Arabica Coffee Jul 2025","KCN26":"Arabica Coffee Jul 2026","KCU22":"Arabica Coffee Sep 22","KCU23":"Arabica Coffee Sep 23","KCU24":"Arabica Coffee Sep 2024","KCU25":"Arabica Coffee Sep 2025","KCU26":"Arabica Coffee Sep 2026","KCZ22":"Arabica Coffee Dec 22","KCZ23":"Arabica Coffee Dec 23","KCZ24":"Arabica Coffee Dec 2024","KCZ25":"Arabica Coffee Dec 2025","KCZ26":"Arabica Coffee Dec 2026","KE-F":"KC HRW Wheat Futures","KES":"Kenyan Shilling","KGS":"Kyrgyzstani Som","KHR":"Cambodian Riel","KMF":"Comorian Franc","KRAFT-PU":"Kraft Pulp","KRW":"South Korean Won","KWD":"Kuwaiti Dinar","KYD":"Cayman Islands Dollar","KZT":"Kazakhstani Tenge","LAK":"Lao Kip","LBP":"Lebanese Pound","LBRN24":"Random Length Lumber Futures","LC00":"Live Cattle","LCAT":"Live Cattle","LCc1":"Live Cattle Futures - Jun 23","LCc2":"Live Cattle Futures - Aug 23","LCc3":"Live Cattle Futures - Oct 23","LCG24":"Live Cattle Feb 2024","LCG25":"Live Cattle Feb 2025","LCJ24":"Live Cattle Apr 2024","LCJ25":"Live Cattle Apr 2025","LCM23":"Live Cattle Jun 2023","LCM24":"Live Cattle Jun 2024","LCM25":"Live Cattle Jun 2025","LCO":"Cobalt","LCQ23":"Live Cattle Aug 2023","LCQ24":"Live Cattle Aug 2024","LCQ25":"Live Cattle Aug 2025","LCV23":"Live Cattle Oct 2023","LCV24":"Live Cattle Oct 2024","LCV25":"Live Cattle Oct 2025","LCZ23":"Live Cattle Dec 2023","LCZ24":"Live Cattle Dec 2024","LGOU22":"London Gas Oil","LHOG":"Lean Hog","LKR":"Sri Lankan Rupee","LNG-J":"Liquified Natural Gas Japan","LRD":"Liberian Dollar","LSL":"Lesotho Loti","LTC":"Litecoin","LTL":"Lithuanian Litas","LUMBER":"Lumber","LVL":"Latvian Lats","LYD":"Libyan Dinar","MAD":"Moroccan Dirham","MAIZE":"Maize","MDL":"Moldovan Leu","MENTHA":"Mentha Oil","METHANOL":"Methanol","MGA":"Malagasy Ariary","MILK":"Milk","MKD":"Macedonian Denar","MMK":"Myanmar Kyat","MN":"Manganese","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","NAPHTHA":"Naphtha","NBLc1":"Barley Futures","NG":"Natural Gas","NG00":"Natural Gas Continuous Contract","NGN":"Nigerian Naira","NI":"Nickel","_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/30/supported+symbols' --header 'Authorization: Bearer YOUR_API_KEY'
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
Latest Rates - Endpoint Features
| 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 |
{"data":{"success":true,"timestamp":1655318640,"date":"2022-06-15","base":"USD","rates":{"AED":3.67485822235,"AFN":89.56570472343,"ALL":114.34426094784,"AMD":424.48781118464,"ANG":1.80314433517,"AOA":435.328851282,"ARS":122.79461790906,"AUD":1.43270707968,"AWG":1.800414,"AZN":1.705201943,"BAM":1.86625959363,"BBD":2.01989476638,"BDT":93.0132786778,"BGN":1.87794274127,"BHD":0.37721972316,"BIF":2032.19071,"BMD":1.00028,"BND":1.3901323856,"BOB":6.90028866234,"BRL":5.07451160718,"BSD":1.00034186196,"BTN":78.063088047,"BWP":12.27449868399,"BYN":3.37658139364,"BYR":19618.62,"BZD":2.01530332785,"CAD":1.29521697775,"CDF":2006.4037821974,"CHF":0.9983374128,"CLF":0.03108570876,"CLP":858.10414581164,"CNY":6.71705615394,"COP":3907.3160095,"CRC":683.52376126458,"CUC":1.00078,"CVE":106.24088064912,"CZK":23.72086433794,"DJF":177.8802572781,"DKK":7.1285729472,"DOP":54.85986284242,"DZD":146.82409475344,"EGP":18.78301952384,"ETB":52.0831650922,"EUR":0.958103,"FJD":2.18972240728,"FKP":0.82146849455,"GBP":0.82378,"GEL":2.94233360512,"GHS":7.95708136077,"GIP":0.82163271435,"GMD":54.1797744956,"GNF":8689.4591170258,"GTQ":7.73393435639,"GYD":209.23497909,"HKD":7.8555234645,"HNL":24.5881761799,"HRK":7.21905943668,"HTG":111.58781883231,"HUF":381.49850082921,"IDR":14780.1246,"ILS":3.44871679636,"INR":78.1675865691,"IQD":1459.5635478816,"ISK":132.36016475706,"JMD":152.79386930772,"JOD":0.709324485,"JPY":134.16697497689,"KES":117.32025202518,"KGS":79.5089340984,"KHR":4062.012361012,"KMF":471.97795283672,"KRW":1287.737561123,"KWD":0.3073345267,"KYD":0.83381946858,"KZT":439.85721314937,"LAK":14726.652681089,"LBP":1513.3852946398,"LKR":360.119176671,"LRD":152.10054214652,"LSL":16.0924876329,"LYD":4.8350129184,"MAD":10.0839104355,"MDL":19.18366823492,"MGA":4057.5324305415,"MKD":58.80120981764,"MMK":1852.2415371926,"MNT":3120.2088676421,"MOP":8.08634580288,"MUR":44.45035974276,"MVR":15.37262222214,"MWK":1022.0818920127,"MXN":20.4864930402,"MYR":4.4170318008,"MZN":63.86958760806,"NAD":16.10134262576,"NGN":415.58964188544,"NIO":35.86398177923,"NOK":9.98378810325,"NPR":124.88940092112,"NZD":1.593807999,"OMR":0.38513893026,"PAB":1.00030578624,"PEN":3.7595438325,"PGK":3.57163341999,"PHP":53.29553492144,"PKR":207.17678322639,"PLN":4.48066549981,"PYG":6880.9188682725,"QAR":3.6475991125,"RON":4.76024360736,"RSD":112.65173161218,"RUB":57.545562827,"RWF":1021.2692484121,"SAR":3.75523204521,"SBD":8.1102007056,"SCR":14.27569195178,"SEK":10.1781966976,"SHP":1.3787045262,"SLL":13183.827569214,"SOS":583.5633549087,"SRD":21.828731085,"SSP":130.2873546,"STD":20701.499664771,"SVC":8.75326617624,"SZL":16.04630896806,"THB":35.00825327565,"TJS":10.73128302148,"TMT":3.5128782,"TND":3.08667449076,"TOP":2.3551793215,"TRY":17.29106911038,"TTD":6.7947075791,"TWD":29.71156633956,"TZS":2332.0023269987,"UAH":29.56247363608,"UGX":3767.1488453661,"UYU":40.13472343608,"UZS":10965.161855216,"VES":4033265.0387331,"VND":23241.27345,"VUV":115.48814785314,"WST":2.64204066492,"XAF":625.96147476452,"XAG":0.04609120512,"XAU":0.00054647502,"XCD":2.7051174225,"XDR":0.75247197796,"XOF":625.94597674008,"XPD":0.00055599444444444,"XPF":114.64398772466,"XPT":0.0010657720979766,"YER":250.53739226388,"ZAR":15.88145714782,"ZMW":16.92844075312,"JEP":0.82173124623,"GGP":0.82171482425,"IMP":0.82176409019,"CNH":6.7011273626667,"ZWL":322.0317919592,"VEF":213945690658.14,"SGD":1.389617868,"USD":1,"BTC":4.729856589128e-5,"BCH":0.0083897225249392,"ETH":0.00086834587967668,"LTC":0.021649502379922,"LINK":0.1492537090882,"XRP":3.1454979879276,"XLM":8.9115522099706,"UNI":0.24542331288344,"ADA":1.9483588195188,"ERN":15.0015010001,"LTL":2.9549250276,"LVL":0.6051380049,"MRO":357.11049794668,"ZMK":9008.3122710444,"XRH":7.3849446494465e-5,"RUTH":0.0013342666666667,"XCU":3.8432660902978,"ALU":12.23301875623,"NI":3.9260639341047e-5,"ZNC":0.00027345901639344,"TIN":2.5561120957282e-5,"LCO":0.030734562211982,"IRD":0.000200038,"BRENTOIL":0.0084462928559365,"WTIOIL":0.0086780013879251,"WHEAT":0.0025400126984127,"COFFEE":0.43686899563319,"COTTON":0.69939160839161,"SUGAR":5.43536121673,"CORN":0.12923047127179,"SOYBEAN":0.059073789846517,"RICE":0.060675560946028,"CPO":0.00073635604289296,"NG":0.13509719222462,"ETHANOL":0.2568189987163,"RUBBER":0.46115207373272,"LUMBER":0.0018051938683499,"ROBUSTA":0.00048778156996587,"COCOA":0.00042139456498841,"ZWN2":0.095286775914634,"OAT":0.0015771559199117,"COAL":0.0026100651890482,"LHOG":0.0092560592044403,"LCAT":0.72628675136116,"CANO":0.00091293795620438},"unit":"per barrel for Oil, per ounce for Metals. Per 10 metric tons for Crude Palm Oil, Per MMBtu for Natural gas, Per Gallon for Ethanol. Per metric ton, per lb or per bushel for Agriculture"}}
curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/31/latest+rates?base=USD&symbols=COTTON' --header 'Authorization: Bearer YOUR_API_KEY'
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
Historical Rates - Endpoint Features
| Object | Description |
|---|---|
base |
[Required] |
symbols |
[Required] |
date |
[Required] |
{"data":{"success":true,"historical":true,"date":"2024-08-25","base":"USD","rates":{"COTTON":1.4084507042254,"USD":1},"unit":{"COTTON":"per lb"}}}
curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/32/historical+rates?base=USD&symbols=COTTON&date=Required' --header 'Authorization: Bearer YOUR_API_KEY'
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
Time-Series - Endpoint Features
| 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 |
{"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"}}
curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/33/time-series' --header 'Authorization: Bearer YOUR_API_KEY'
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
Fluctuation - Endpoint Features
| 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 |
{"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"}}
curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/34/fluctuation' --header 'Authorization: Bearer YOUR_API_KEY'
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.
Open High Low Close Price - Endpoint Features
| 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 |
{"success":true,"timestamp":1654782021,"date":"2022-06-01","base":"CORN","symbol":"USD","rates":{"open":7.527848543883356,"high":7.5538669199619015,"low":7.205582640664818,"close":7.30665467625891},"unit":"per bushel"}
curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/35/open+high+low+close+price' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The API covers a wide range of commodities, including precious metals, energy resources, agricultural products, and more. This comprehensive coverage allows businesses and individuals in the commodity trading and investing space to access real-time and historical data for various commodities.
The API is designed to be easy to use and can be integrated into applications, such as websites, mobile apps, or server-side applications, through a simple API call. It supports multiple programming languages, providing flexibility for developers.
Yes, the API provides real-time data on commodity prices. This real-time information is crucial for businesses and investors who need up-to-date data to make informed decisions based on market conditions.
Yes, the API provides historical data for commodities from the day is was added to the API. This historical data can be utilized for analysis, research, and backtesting of trading strategies. It enables businesses and individuals to gain insights into past market trends and make informed decisions.
The API is beneficial for businesses and individuals operating in the commodity trading and investing space, including commodity traders, investment firms, financial institutions, and research organizations. It can be used for purposes such as risk management, price forecasting, and market analysis, aiding in informed decision-making.
Yes, the API provides rates for future contracts. Check the available ones on the "Supported Symbols" endpoint.
The "GET Latest Rates" endpoint returns real-time exchange rate data for various commodities. The response includes a success status, error information if applicable, and the latest rates based on a specified base currency.
The response for historical rates includes fields such as success status, date, base currency, and rates for the specified commodity, along with the unit of measurement (e.g., per lb for cotton).
Users can customize their requests by appending a specific date in the format YYYY-MM-DD to the base URL, allowing them to retrieve historical rates for a particular day.
The "GET Supported Symbols" endpoint provides a comprehensive list of all available commodities and currencies that can be queried, enabling users to identify which symbols are supported for their requests.
The response data for the "GET Fluctuation" endpoint is organized with a success status, error information if applicable, and details on price fluctuations over a specified timeframe for a single commodity.
The "GET Open High Low Close Price" endpoint accepts a single symbol as a parameter, allowing users to query the open, high, low, and close prices for that specific commodity.
The API ensures data accuracy through regular updates from reliable market sources, along with validation checks to filter out erroneous or outdated information before it is made available to users.
Typical use cases for the "GET Time-Series" endpoint include analyzing historical price trends over a specified date range, conducting market research, and developing trading strategies based on past performance.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
839ms
Service Level:
100%
Response Time:
367ms
Service Level:
100%
Response Time:
4,783ms
Service Level:
100%
Response Time:
296ms
Service Level:
100%
Response Time:
1,151ms
Service Level:
100%
Response Time:
59ms
Service Level:
90%
Response Time:
1,327ms
Service Level:
100%
Response Time:
850ms
Service Level:
100%
Response Time:
170ms
Service Level:
100%
Response Time:
499ms
Service Level:
100%
Response Time:
839ms
Service Level:
100%
Response Time:
367ms
Service Level:
100%
Response Time:
4,783ms
Service Level:
100%
Response Time:
296ms
Service Level:
100%
Response Time:
1,151ms
Service Level:
100%
Response Time:
59ms
Service Level:
90%
Response Time:
1,327ms
Service Level:
100%
Response Time:
850ms
Service Level:
100%
Response Time:
170ms
Service Level:
100%
Response Time:
499ms