{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"79559cb7-7cc6-47d3-97d0-3c1b475617ed","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"coingecko","dataPlatformLogoUrl":"https://docs.coingecko.com/mintlify-assets/_mintlify/favicons/coingecko/cEsEN1BHYMTujBc-/_generated/favicon/android-chrome-192x192.png","dataPlatformTranslations":{"ar":"CoinGecko","ja":"CoinGecko","zh":"CoinGecko"},"dataProduct":"historical-charts","description":"Get CoinGecko OHLC candles via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as days, vs_currency, and retrieve structured data including structured JSON records, identifiers, and response metadata for candlestick charts, and chart comparisons, ready for production pipelines and AI agent automation using a single OpenAny API key.","descriptionTranslations":{"ar":"استرجع شموع أسعار الافتتاح والأعلى والأدنى والإغلاق من CoinGecko عبر OpenAny REST بمعرف العملة وعملة العرض وفترة الرجوع المدعومة لواجهات الرسوم البيانية. استخدم النتائج المنظمة لبناء صفحات أبحاث الأصول أو لوحات المقارنة، مع الاحتفاظ بالمعرفات والوحدات وأوقات المشاهدة عند دمج البيانات، وراجع أمثلة الطلبات والخيارات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"OpenAny REST にコイン ID、表示通貨、対応する遡及期間を指定し、CoinGecko の始値、高値、安値、終値のローソク足データを取得できます。 構造化された結果を資産調査ページや比較画面に利用できます。データを結合する際は識別子、単位、観測時刻を保持し、詳細ページのリクエスト例、対応オプション、選択した実装の料金を確認してください。","zh":"通过 OpenAny REST 提供币种 ID、目标货币及支持的回溯周期，获取 CoinGecko 开盘、最高、最低和收盘价格蜡烛数据，用于加密货币图表界面。 可使用结构化结果构建资产研究页面或对比看板，合并数据时保留标识符、单位及观测时间；详情页提供请求示例、支持的选项及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"e9e62be9-47e2-48a7-b651-667a831ced80","includedContentHtml":"","inputs":[{"description":"Coin ID. \n*refers to [`/coins/list`](/reference/coins-list).","location":"path","name":"id","nullable":false,"required":true,"type":"string"},{"description":"Target currency of price data. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).","location":"query","name":"vs_currency","nullable":false,"required":true,"type":"string"},{"description":"Data up to number of days ago.","enum_values":["1","7","14","30","90","180","365"],"location":"query","name":"days","nullable":false,"required":true,"type":"string"},{"description":"Decimal place for currency price value.","enum_values":["full","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],"location":"query","name":"precision","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://docs.coingecko.com/mintlify-assets/_mintlify/favicons/coingecko/cEsEN1BHYMTujBc-/_generated/favicon/android-chrome-192x192.png","method":"GET","name":"CoinGecko — Coin OHLC Chart by ID","nameTranslations":{"ar":"CoinGecko — مخطط OHLC للعملة حسب المعرّف","ja":"CoinGecko — ID別コインOHLCチャート","zh":"CoinGecko — 按 ID 获取币种 OHLC 图表"},"overviewHtml":"\u003ch2\u003eCoinGecko Coin OHLC Chart API\u003c/h2\u003e\n\u003cp\u003eSupply id, vs_currency and a days value from the supported enum. Each response row is ordered as timestamp, open, high, low and close. Timestamps use milliseconds, and this selected implementation exposes precision but no interval parameter.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003epath: id; query: vs_currency, days, precision\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003ecoingecko · CoinGecko — Coin OHLC Chart by ID\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eCandlestick charts\u003c/strong\u003e: Render the four price values in their documented order.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eChart comparisons\u003c/strong\u003e: Keep OHLC rows separate from point-price and volume series.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eOHLC row: Unix timestamp in milliseconds, open, high, low, close\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/bitcoin/ohlc \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  --data-urlencode days=1 \\\n  --data-urlencode vs_currency=usd\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response is an official documentation reference that may contain historical values or optional sections. The calling template is independent; match returned resource identifiers, timestamps and requested options before using the data.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/e9e62be9-47e2-48a7-b651-667a831ced80\"\u003ePublished CoinGecko Coin OHLC Chart API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich days values are accepted?\u003c/h3\u003e\n\u003cp\u003eUse one of the strings 1, 7, 14, 30, 90, 180 or 365. Unlike some market-chart endpoints, this contract does not accept max.\u003c/p\u003e\n\u003ch3\u003eDoes each row include trading volume?\u003c/h3\u003e\n\u003cp\u003eNo. The documented row contains timestamp and four price values. It is OHLC, not an OHLCV row.\u003c/p\u003e\n\u003ch3\u003eCan I select hourly candles with interval?\u003c/h3\u003e\n\u003cp\u003eThis selected contract exposes id, vs_currency, days and precision only. Do not add an interval parameter from another implementation.\u003c/p\u003e\n\u003ch3\u003eAre these values interchangeable with a daily chart snapshot?\u003c/h3\u003e\n\u003cp\u003eNo. Candle open/high/low/close and sampled chart observations describe different measurements. Keep the endpoint and time aggregation attached to the values.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/coingecko/coingecko-coin-tickers-by-id\"\u003eCoinGecko — Coin Tickers by ID\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/coingecko/coingecko-coins-list\"\u003eCoinGecko — Coins List\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/coingecko/coingecko-coins-list-with-market-data\"\u003eCoinGecko — Coins List with Market Data\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/coingecko/coingecko-coin-ohlc-chart-by-id?offering=e9e62be9-47e2-48a7-b651-667a831ced80","providerId":"coingecko","publicPath":"/v1/agent-apis/coingecko/api/v3/coins/{id}/ohlc","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Official example · Official response / contract request","request":{"body":null,"headers":{},"path":{"id":"bitcoin"},"query":{"days":"1","vs_currency":"usd"}},"response_body":[[1779199200000,76769.0,76889.0,76744.0,76818.0],[1779201000000,76712.0,76712.0,76321.0,76422.0]]}],"seoDescription":"Get CoinGecko OHLC candles via REST or MCP powered by CoinGecko. Pay per call, no subscription. Structured JSON output with one OpenAny API key.","updatedAt":"2026-12-03T02:49:12.395Z","usageInstructionsHtml":""}}