Live and Historical Commodities Rates API

The 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. It's easy to use and integrate with any application.

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.



What this API receives and what your API provides (input/output)?

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. 

 

What are the most common uses cases of this API?

  1. Commodity trading: Use the API to access real-time and historical data on commodity prices to inform trading decisions and execute trades.

  2. 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.

  3. 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.

  4. Market analysis: Use the API to access real-time and historical data on commodity prices to analyze market conditions and identify opportunities for investment.

  5. Supply chain management: Use the API to access real-time and historical data on commodity prices to inform purchasing decisions and manage inventory.

  6. Research: Use the API to access historical data on commodity prices for academic research or business intelligence purpose.

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations.

Documentación de la API

Endpoints


Verifique todos los símbolos disponibles para sus consultas. Este endpoint también recupera todas las materias primas y monedas admitidas. 



                                                                            
GET https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/30/supported+symbols
                                                                            
                                                                        

Símbolos admitidos. - Características del Endpoint

Objeto Descripción
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"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","NIO":"Nicaraguan C\u0...
                                                                                                                                                                                                                    
                                                                                                    

Supported Symbols - CÓDIGOS DE EJEMPLO


curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/30/supported+symbols' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Consulta los datos de la tasa de cambio en tiempo real actualizados cada 60 segundos con este endpoint. 

 

Nota: Todas las tasas de las commodities que obtengas utilizando CUALQUIER moneda como moneda base (parámetro base) deben ser divididas por 1
Devolvemos los valores basados en la moneda base. Por ejemplo, para 1 USD, el retorno es un número como 0.00055307742 para Oro (XAU).
Para obtener la tasa del oro por onza troy en USD: 1/0.00055307742 = 1808.06 USD



                                                                            
GET https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/31/latest+rates
                                                                            
                                                                        

Últimas tarifas. - Características del Endpoint

Objeto Descripción
base [Requerido] Enter the three-letter currency code or commodity code of your preferred base currency. Check Symbols endpoint
symbols [Requerido] Enter a list of comma-separated currency codes or commodity codes to limit output codes. Check Symbols endpoint
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"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"}}
                                                                                                                                                                                                                    
                                                                                                    

Latest Rates - CÓDIGOS DE EJEMPLO


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' 


    

Las tasas históricas están disponibles para la mayoría de los símbolos desde el año 2021. Puedes consultar la API para tasas históricas añadiendo una fecha (formato AAAA-MM-DD) a la URL base.

Nota: Todas las tasas de los productos básicos que obtienes usando CUALQUIER moneda como moneda base (parámetro base) deben ser divididas por 1
Devolvemos los valores basados en la moneda base. Por ejemplo, para 1 USD, el retorno es un número como 0.00055307742 para el Oro (XAU).
Para obtener la tasa del oro por onza troy en USD: 1/0.00055307742 = 1808.06 USD



                                                                            
GET https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/32/historical+rates
                                                                            
                                                                        

Tasas históricas. - Características del Endpoint

Objeto Descripción
base [Requerido]
symbols [Requerido]
date [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":true,"historical":true,"date":"2022-07-22","base":"USD","rates":{"COTTON":1.010101010101,"USD":1},"unit":{"COTTON":"per lb"}}}
                                                                                                                                                                                                                    
                                                                                                    

Historical Rates - CÓDIGOS DE EJEMPLO


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' 


    

Con este endpoint, se te proporcionarán las tasas históricas diarias entre dos fechas de tu elección. 

Nota: Este endpoint tiene una limitación de 365 días por rango, y solo puede proporcionar información de un símbolo por solicitud.

Todas las tasas de las materias primas que obtengas usando CUALQUIER moneda como moneda base (parámetro base) necesitan ser divididas por 1
Devolvemos los valores basados en la moneda base. Por ejemplo, por 1 USD el retorno es un número como 0.00055307742 para el oro (XAU).
Para obtener la tasa del oro por onza troy en USD: 1/0.00055307742 = 1808.06 USD



                                                                            
GET https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/33/time-series
                                                                            
                                                                        

Serie temporal - Características del Endpoint

Objeto Descripción
start_date Opcional The start date of your preferred timeframe.
end_date Opcional The end date of your preferred timeframe.
base Opcional Enter the three-letter currency code or commodity code of your preferred base currency
symbols Opcional Enter the three-letter currency code or commodity code of your preferred base currency
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"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"}}
                                                                                                                                                                                                                    
                                                                                                    

Time-Series - CÓDIGOS DE EJEMPLO


curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/33/time-series' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Utilizando el endpoint de la API de fluctuaciones, podrás recuperar información sobre cómo los precios fluctúan de un día a otro.
Este endpoint tiene una limitación de 365 días y solo un símbolo por solicitud.



                                                                            
GET https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/34/fluctuation
                                                                            
                                                                        

Fluctuación. - Características del Endpoint

Objeto Descripción
start_date Opcional The start date of your preferred timeframe.
end_date Opcional The end date of your preferred timeframe.
base Opcional Enter the three-letter currency code or commodity code of your preferred base currency
symbols Opcional Enter the three-letter currency code or commodity code of your preferred base currency
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"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"}}
                                                                                                                                                                                                                    
                                                                                                    

Fluctuation - CÓDIGOS DE EJEMPLO


curl --location --request GET 'https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/34/fluctuation' --header 'Authorization: Bearer YOUR_API_KEY' 


    

Le permite consultar la API para obtener el precio de apertura, máximo, mínimo y cierre.
Este punto final tiene una limitación de un símbolo por solicitud.



                                                                            
GET https://zylalabs.com/api/7/live+and+historical+commodities+rates+api/35/open+high+low+close+price
                                                                            
                                                                        

Abrir Alto Bajo Cerrar Precio - Características del Endpoint

Objeto Descripción
base Opcional Enter the three-letter currency code or commodity code of your preferred base currency
symbols Opcional Enter the three-letter currency code or commodity code of your preferred base currency
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA API

       
                                                                                                        
                                                                                                                                                                                                                            {"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"}
                                                                                                                                                                                                                    
                                                                                                    

Open High Low Close Price - CÓDIGOS DE EJEMPLO


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' 


    

Clave de Acceso a la API y Autenticación

Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Live and Historical Commodities Rates API simplemente incluye tu token de portador en el encabezado de Autorización.
Encabezados
Encabezado Descripción
Autorización [Requerido] Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.

Precios Simples y Transparentes

Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.

🚀 PLAN CORPORATIVO A MEDIDA

Comienza en
$ 10,000/Año


  • Volumen Personalizado
  • Límite de solicitudes personalizado
  • Soporte al Cliente Especializado
  • Monitoreo de API en Tiempo Real

Funciones favoritas de los clientes

  • ✔︎ Paga Solo por Solicitudes Exitosas
  • ✔︎ Prueba Gratuita de 7 Días
  • ✔︎ Soporte Multilenguaje
  • ✔︎ Una Clave API, Todas las APIs.
  • ✔︎ Panel de Control Intuitivo
  • ✔︎ Manejo de Errores Integral
  • ✔︎ Documentación Amigable para Desarrolladores
  • ✔︎ Integración con Postman
  • ✔︎ Conexiones HTTPS Seguras
  • ✔︎ Tiempo de Actividad Fiable

Live and Historical Commodities Rates API FAQs

La API abarca una amplia gama de commodities, incluidos metales preciosos, recursos energéticos, productos agrícolas y más. Esta cobertura integral permite a empresas e individuos en el ámbito del comercio e inversión de commodities acceder a datos en tiempo real e históricos para varios commodities.

La API está diseñada para ser fácil de usar y se puede integrar en aplicaciones, como sitios web, aplicaciones móviles o aplicaciones del lado del servidor, a través de una simple llamada a la API. Soporta múltiples lenguajes de programación, proporcionando flexibilidad para los desarrolladores.

Sí, la API proporciona datos en tiempo real sobre los precios de las materias primas. Esta información en tiempo real es crucial para las empresas e inversores que necesitan datos actualizados para tomar decisiones informadas basadas en las condiciones del mercado.

Sí, la API proporciona datos históricos de materias primas desde el día en que se agregó a la API. Estos datos históricos se pueden utilizar para análisis, investigación y pruebas retrospectivas de estrategias comerciales. Permite a las empresas y a los individuos obtener información sobre las tendencias del mercado pasadas y tomar decisiones informadas.

La API es beneficiosa para empresas e individuos que operan en el comercio y la inversión de materias primas, incluidos comerciantes de materias primas, firmas de inversión, instituciones financieras y organizaciones de investigación. Se puede utilizar con fines como la gestión de riesgos, la previsión de precios y el análisis del mercado, ayudando en la toma de decisiones informadas.

Sí, la API proporciona tarifas para contratos futuros. Consulta los disponibles en el endpoint "Símbolos Soportados".

El punto final "Obtener las últimas tarifas" devuelve datos de tasas de cambio en tiempo real para varias mercancías. La respuesta incluye un estado de éxito, información de error si es aplicable, y las tasas más recientes basadas en una moneda base especificada.

La respuesta para las tarifas históricas incluye campos como el estado de éxito, la fecha, la moneda base y las tarifas para la mercancía especificada, junto con la unidad de medida (por ejemplo, por lb para el algodón).

Los usuarios pueden personalizar sus solicitudes agregando una fecha específica en el formato AAAA-MM-DD a la URL base, lo que les permite recuperar tasas históricas para un día en particular.

El endpoint "GET Supported Symbols" proporciona una lista completa de todas las mercancías y monedas disponibles que se pueden consultar, lo que permite a los usuarios identificar qué símbolos son admitidos para sus solicitudes.

Los datos de respuesta para el endpoint "GET Fluctuation" están organizados con un estado de éxito, información de error si es aplicable, y detalles sobre las fluctuaciones de precios durante un período de tiempo especificado para una sola mercancía.

El endpoint "GET Open High Low Close Price" acepta un solo símbolo como parámetro, permitiendo a los usuarios consultar los precios de apertura, máximo, mínimo y cierre de esa mercancía específica.

La API garantiza la precisión de los datos a través de actualizaciones regulares de fuentes de mercado confiables, junto con verificaciones de validación para filtrar información errónea o desactualizada antes de que esté disponible para los usuarios.

Casos de uso típicos para el endpoint "GET Time-Series" incluyen analizar las tendencias históricas de precios durante un rango de fechas especificado, realizar investigaciones de mercado y desarrollar estrategias de trading basadas en el rendimiento pasado.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). 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 paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

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.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

To see the maximum number of API requests your plan allows, check the 'X-Zyla-RateLimit-Limit' response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To give you the opportunity to experience our APIs without any commitment, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost. This trial can be used only once, so we recommend applying it to the API that interests you the most. While most of our APIs offer a free trial, some may not. The trial concludes after 7 days or once you've made 50 requests, whichever occurs first. If you reach the 50 request limit during the trial, you will need to "Start Your Paid Plan" to continue making requests. You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab. Alternatively, if you don't cancel your subscription before the 7th day, your free trial will end, and your plan will automatically be billed, granting you access to all the API calls specified in your plan. Please keep this in mind to avoid unwanted charges.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.

Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.

 Nivel de Servicio
100%
 Tiempo de Respuesta
935ms

Categoría:


APIs Relacionadas


También te puede interesar