Pass the commodity symbol and receive the latest and historical rates.
Chocolate Production Planning: Integrate the Cocoa Rates API into chocolate manufacturing systems to monitor cocoa prices and forecast production costs. This enables producers to adjust production schedules, optimize ingredient sourcing, and maintain competitive pricing in the chocolate market.
Commodities Trading Analysis: Utilize the API within commodities trading platforms to access real-time cocoa price data. Traders can analyze market trends, identify trading opportunities, and execute timely transactions, enhancing profitability in cocoa futures and options markets.
Supply Chain Optimization: Incorporate the API into supply chain management systems to monitor cocoa prices and track supplier performance. By analyzing price fluctuations, companies can optimize inventory levels, negotiate favorable contracts, and ensure uninterrupted supply chains for cocoa-based products.
Agricultural Research: Integrate the API into agricultural research tools to analyze the correlation between cocoa prices and various factors such as weather patterns, crop yields, and market demand. Researchers can use this data to improve cocoa cultivation techniques, forecast crop production, and support sustainable farming practices.
Financial Forecasting: Incorporate the API into financial analysis platforms to provide investors and analysts with insights into the cocoa market. By analyzing historical price data and market trends, users can assess the financial performance of cocoa-related investments, manage risks, and make informed portfolio decisions
Besides the number of API calls per plan, 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 |
---|
{"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","BEEF":"Beef","BGN":"Bulgarian Lev","BHD":"Bahraini Dinar","BIF":"Burundian Franc","BL2c1":"Milling Wheat N2 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","BOH24":"Soybean Oil Mar 2024","BOK24":"Soybean Oil May 2024","BON23":"Soybean Oil Jul 2023","BON24":"Soybean Oil Jul 2024","BOQ23":"Soybean Oil Aug 2023","BOQ24":"Soybean Oil Aug 2024","BOU23":"Soybean Oil Sep 2023","BOV23":"Soybean Oil Oct 2023","BOZ23":"Soybean Oil Dec 2023","BRENTOIL":"Brent Crude Oil","BRL":"Brazilian Real","BRN00":"Brent Crude Oil Continuous Contract","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","CAD":"Canadian Dollar","CANO":"Canola","CARDAMOM":"Cardamom","CDF":"Congolese Franc","CH24":"Corn Mar 2024","CH25":"Corn Mar 2025","CHF":"Swiss Franc","CK23":"Corn May 2023","CK24":"Corn May 2024","CK25":"Corn May 2025","CL1":"Crude Oil WTI (NYM $\/bbl) 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","CNH":"Chinese Renminbi Yuan Offshore","CNY":"Chinese Renminbi Yuan","COAL":"Coal","COAL-NCF":"Newcastle Coal Futures","COCOA":"Cocoa","COFFEE":"Arabica Coffee","COP":"Colombian Peso","CORN":"Corn","COTTON":"Cotton","CPO":"Crude Palm Oil","CRC":"Costa Rican Col\u00f3n","CSCF23":"Cheese Jan 23","CSCG23":"Cheese Feb 23","CSCU22":"Cheese","CSCV22":"Cheese Oct 22","CSCX22":"Cheese Nov 22","CSCZ22":"Cheese Dec 22","CU23":"Corn Sep 23","CU24":"Corn Sep 2024","CUC":"Cuban Convertible Peso","CVE":"Cape Verdean Escudo","CZ23":"Corn Dec 23","CZ24":"Corn Dec 2024","CZK":"Czech Koruna","D00":"Robusta Coffee Continuous Contract","DAF24":"Milk Jan 2024","DAG24":"Milk Feb 2024","DAH24":"Milk Mar 2024","DAJ24":"Milk Apr 2024","DAK24":"Milk May 2024","DAM24":"Milk Jun 2024","DAN24":"Milk (Class III) Jul 2024","DAQ24":"Milk (Class III) Aug 2024","DAV23":"Milk Oct 2023","DAX23":"Milk Nov 2023","DAZ23":"Milk Dec 2023","DE-EL":"Electricity Germany","DI_AMMON":"Di-ammonium Phosphate","DJF":"Djiboutian Franc","DK24":"Robusta Coffee May 2024","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","DOP":"Dominican Peso","DU24":"Robusta Coffee Sep 2024","DX24":"Robusta Coffee Nov 2024","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 Continuous Contract","FCc1":"Feeder Cattle Futures - Aug 23","FCc2":"Feeder Cattle Futures - Sep 23","FCc3":"Feeder Cattle Futures - Oct 23","FCF24":"Feeder Cattle Jan 2024","FCH24":"Feeder Cattle Mar 2024","FCJ24":"Feeder Cattle Apr 2024","FCK24":"Feeder Cattle May 2024","FCM23":"Feeder Cattle May 23","FCQ24":"Feeder Cattle Aug 2024","FCU24":"Feeder Cattle Sep 2024","FCV23":"Feeder Cattle Oct 2023","FCX23":"Feeder Cattle Nov 2023","FJD":"Fijian Dollar","FKP":"Falkland Pound","FR-EL":"Electricity France","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 (Troy Ounce)","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 Continuous Contract","KCH23":"Arabica Coffee Mar 23","KCH24":"Arabica Coffee Mar 24","KCH25":"Arabica Coffee Mar 2025","KCK23":"Arabica Coffee May 23","KCK24":"Arabica Coffee May 24","KCK25":"Arabica Coffee May 2025","KCN22":"Arabica Coffee Jul 22","KCN23":"Arabica Coffee Jul 23","KCN24":"Arabica Coffee Jul 24","KCN25":"Arabica Coffee Jul 2025","KCU22":"Arabica Coffee Sep 22","KCU23":"Arabica Coffee Sep 23","KCU24":"Arabica Coffee Sep 2024","KCU25":"Arabica Coffee Sep 2025","KCZ22":"Arabica Coffee Dec 22","KCZ23":"Arabica Coffee Dec 23","KCZ24":"Arabica Coffee Dec 2024","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","LC00":"Live Cattle Continuous Contract","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","LCO":"Cobalt (Troy Ounce)","LCQ23":"Live Cattle Aug 2023","LCQ24":"Live Cattle Aug 2024","LCV23":"Live Cattle Oct 2023","LCV24":"Live Cattle Oct 2024","LCZ23":"Live Cattle Dec 2023","LCZ24":"Live Cattle Dec 2024","LGOU22":"London Gas Oil","LHOG":"Lean Hog","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","MAIZE":"Maize","MDL":"Moldovan Leu","MENTHA":"Mentha Oil","METHANOL":"Methanol","MGA":"Malagasy Ariary","MILK":"Milk","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","NAPHTHA":"Naphtha","NG":"Natural Gas","NG00":"Natural Gas Continuous Contract","NGN":"Nigerian Naira","NI":"Nickel","NIO":"Nicaraguan C\u00f3rdoba","NOK":"Norwegian Krone","NPR":"Nepalese Rupee","NZD":"New Zealand Dollar","OAT":"Oat","OATS":"Oats","OJU22":"Orange Juice","OMR":"Omani Rial","PAB":"Panamanian Balboa","PE":"Polyethylene","PEN":"Peruvian Sol","PGK":"Papua New Guinean Kina","PHP":"Philippine Peso","PKR":"Pakistani Rupee","PLN":"Polish Z\u0142oty","POTATOES":"Potatoes","POULTRY":"Poultry","PP":"POLYPROPYLENE","PRKK23":"Pork Cutout May 23","PRKM23":"Pork Cutout Jun 23","PRKQ23":"Pork Cutout Aug 23","PRKZ23":"Pork Cutout Dec 23","PROPANE":"Propane","PVC":"POLYVINYL","PYG":"Paraguayan Guaran\u00ed","QAR":"Qatari Riyal","RB00":"RBOB Gasoline Continuous Contract","RBF24":"RBOB Gasoline Jan 2024","RBG24":"RBOB Gasoline Feb 2024","RBH24":"RBOB Gasoline Mar 2024","RBJ24":"RBOB Gasoline Apr 2024","RBU22":"RBOB Gasoline","RBX23":"RBOB Gasoline Nov 2023","RBZ23":"RBOB Gasoline Dec 2023","RICE":"Rice","RMF23":"Robusta Coffee Jan 23","RMF24":"Robusta Coffee Jan 24","RMH23":"Robusta Coffee Mar 23","RMH24":"Robusta Coffee Mar 24","RMK23":"Robusta Coffee May 23","RMK24":"Robusta Coffee May 2024","RMN22":"Robusta Coffee Jul 22","RMN23":"Robusta Coffee Jul 23","RMN24":"Robusta Coffee Jul 2024","RMU22":"Robusta Coffee Sep 22","RMU23":"Robusta Coffee Sep 23","RMU24":"Robusta Coffee Sep 2024","RMX22":"Robusta Coffee Nov 22","RMX23":"Robusta Coffee Nov 23","RMX24":"Robusta Coffee Nov 2024","ROBUSTA":"Robusta Coffee","RON":"Romanian Leu","RRK23":"Rough Rice Sep 23","RSD":"Serbian Dinar","RUB":"Russian Ruble","RUBBER":"Rubber","RUTH":"Ruthenium","RWF":"Rwandan Franc","S1":"Soybeans Front Month","SALMON":"Salmon","SAR":"Saudi Riyal","SB1":"Sugar #11 (IFUS $\/lbs) Front Month","SBD":"Solomon Islands Dollar","SBH23":"Sugar Mar 23","SBH24":"Sugar No. 11 World Mar 2024","SBH25":"Sugar No. 11 World Mar 2025","SBK23":"Sugar May 23","SBK24":"Sugar No. 11 World May 2024","SBK25":"Sugar No. 11 World May 2025","SBN22":"Sugar Jul 22","SBN23":"Sugar No. 11 World Jul 23","SBN24":"Sugar No. 11 World Jul 2024","SBN25":"Sugar No. 11 World Jul 2025","SBV22":"Sugar Oct 22","SBV23":"Sugar No. 11 World Oct 23","SBV24":"Sugar No. 11 World Oct 2024","SBV25":"Sugar No. 11 World Oct 2025","SCR":"Seychellois Rupee","SEK":"Swedish Krona","SF24":"Soybeans Jan 2024","SGD":"Singapore Dollar","SH24":"Soybeans Mar 2024","SHP":"Saint Helenian Pound","SK24":"Soybeans May 2024","SLL":"Sierra Leonean Leone","SM00":"Soybean Meal Continuous Contract","SMF24":"Soybean Meal Jan 2024","SMH24":"Soybean Meal Mar 2024","SMK24":"Soybean Meal May 2024","SMN23":"Soybean Meal Jul 2023","SMN24":"Soybean Meal Jul 2024","SMQ23":"Soybean Meal Aug 2023","SMQ24":"Soybean Meal Aug 2024","SMU23":"Soybean Meal Sep 2023...
curl --location --request GET 'https://zylalabs.com/api/3899/cocoa+rates+api/4607/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":1713357240,"date":"2024-04-17","base":"USD","rates":{"CLI00":0.00011388224575789,"USD":1},"unit":{}}}
curl --location --request GET 'https://zylalabs.com/api/3899/cocoa+rates+api/4608/latest+rates?base=USD&symbols=CLI00' --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] Enter the three-letter currency code or commodity code of your preferred base currency. |
symbols |
[Required] Enter a list of comma-separated currency codes or commodity codes to limit output codes. Check Symbols endpoint |
date |
[Required] |
{"data":{"success":true,"historical":true,"date":"2024-03-10","base":"USD","rates":{"CLI00":0.00019124115509658,"USD":1},"unit":{}}}
curl --location --request GET 'https://zylalabs.com/api/3899/cocoa+rates+api/4609/historical+rates?base=USD&symbols=CLI00&date=Required' --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 commitments. One click upgrade/downgrade or cancellation. No questions asked.
The Cocoa Rates API is a web service that provides developers with access to real-time and historical data on cocoa prices. It enables users to retrieve current market rates and historical trends for analysis and decision-making purposes.
The API retrieves data from reputable sources such as commodity exchanges, market aggregators, and industry reports. It uses secure protocols to access this information in real-time, ensuring accuracy and reliability in the data provided.
The API typically delivers data in JSON format, making it compatible with a wide range of programming languages and platforms. Users can easily parse and process the data to suit their specific requirements.
Yes, the API usually provides access to historical pricing data. Users can specify the time range and granularity of the data they require when making API requests to retrieve past market rates.
Yes, the API is designed to be scalable and reliable, capable of handling large volumes of requests with minimal downtime. It may leverage cloud-based infrastructure and distributed systems to ensure high availability and performance.
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, look at the βX-Zyla-API-Calls-Monthly-Remainingβ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.
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 3600, it means 3600 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 let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.
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 trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.
Service Level:
100%
Response Time:
322ms
Service Level:
100%
Response Time:
436ms
Service Level:
100%
Response Time:
129ms
Service Level:
100%
Response Time:
254ms
Service Level:
100%
Response Time:
10,180ms
Service Level:
100%
Response Time:
264ms
Service Level:
100%
Response Time:
1,325ms
Service Level:
100%
Response Time:
77ms
Service Level:
100%
Response Time:
9,646ms
Service Level:
100%
Response Time:
849ms
Service Level:
100%
Response Time:
154ms
Service Level:
100%
Response Time:
302ms
Service Level:
100%
Response Time:
444ms
Service Level:
100%
Response Time:
356ms
Service Level:
100%
Response Time:
113ms
Service Level:
100%
Response Time:
108ms
Service Level:
100%
Response Time:
513ms