{"uid":"cap_-otjgDtkVgo3lJzzkv77o","slug":"coingecko-ohlc-candlestick-data-03040df3","name":"CoinGecko OHLC Candlestick Data","description":"Pay-per-request access to CoinGecko, DefiLlama, Alchemy, and Etherscan APIs. No auth, no subscriptions.","url":"https://stablecrypto.dev/api/coingecko/ohlc","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"id":{"type":"string","description":"Coin ID"},"days":{"type":"string","description":"Data range (1, 7, 14, 30, 90, 180, 365)"},"precision":{"type":"string"},"vs_currency":{"type":"string","description":"Target currency"}}},"responseSchema":null,"example":{"request":{"id":"bitcoin","days":"30","vs_currency":"usd"},"response":[[1778659200000,81214,81227,80894,80927],[1778673600000,80976,81263,80498,80498],[1778688000000,80485,80515,78828,78828],[1778702400000,78888,79736,78795,79532],[1778716800000,79563,79672,79217,79278],[1778731200000,79351,79626,78973,78973],[1778745600000,78992,79872,78992,79766],[1778760000000,79630,79885,79254,79264],[1778774400000,79276,81293,79276,81293],[1778788800000,81318,81958,81121,81387],[1778803200000,81506,81547,81052,81052],[1778817600000,81118,81595,80765,81055],[1778832000000,80947,81057,80325,80797],[1778846400000,80705,80733,80371,80606],[1778860800000,80520,80520,78743,79141],[1778875200000,79129,79520,79056,79121],[1778889600000,79156,79156,78961,79069],[1778904000000,79072,79167,78991,79058],[1778918400000,79053,79053,78266,78336],[1778932800000,78354,78466,77698,78052],[1778947200000,78057,78234,77827,78203],[1778961600000,78237,78266,78120,78217],[1778976000000,78253,78270,78106,78135],[1778990400000,78183,78183,77726,77980],[1779004800000,78006,78244,78006,78136],[1779019200000,78130,78506,78020,78369],[1779033600000,78379,78444,77928,78011],[1779048000000,78070,78419,77873,78357],[1779062400000,78353,78396,77151,77426],[1779076800000,77432,77432,76697,76902],[1779091200000,76895,77012,76696,77012],[1779105600000,77044,77284,76704,77247],[1779120000000,77283,77667,76055,76380],[1779134400000,76323,76862,76201,76862],[1779148800000,76827,77123,76810,76952],[1779163200000,76928,77246,76537,76712],[1779177600000,76710,77199,76618,77163],[1779192000000,77132,77157,76657,76669],[1779206400000,76679,76903,76182,76435],[1779220800000,76481,76925,76385,76750],[1779235200000,76791,76968,76600,76809],[1779249600000,76753,76805,76488,76660],[1779264000000,76694,77353,76668,77198],[1779278400000,77198,77541,77152,77317],[1779292800000,77375,77605,76906,77359],[1779307200000,77385,77613,77028,77613],[1779321600000,77549,77678,77220,77460],[1779336000000,77483,77999,77483,77999],[1779350400000,78034,78034,77471,77802],[1779364800000,77879,78024,77129,77129],[1779379200000,77168,77261,76757,77180],[1779393600000,77180,77917,76977,77630],[1779408000000,77624,77707,77514,77546],[1779422400000,77474,77717,77269,77690],[1779436800000,77733,77787,77225,77325],[1779451200000,77368,77432,77144,77333],[1779465600000,77322,77434,76607,76717],[1779480000000,76798,76918,75680,75785],[1779494400000,75825,75979,75419,75483],[1779508800000,75501,75570,75201,75548],[1779523200000,75540,75555,74478,74501],[1779537600000,74532,74772,74344,74727],[1779552000000,74678,75543,74589,75429],[1779566400000,75484,75859,75344,75859],[1779580800000,75894,77084,75873,76673],[1779595200000,76622,76852,76560,76696],[1779609600000,76747,76926,76570,76693],[1779624000000,76710,77216,76649,77189],[1779638400000,77166,77166,76278,76278],[1779652800000,76367,76679,76367,76668],[1779667200000,76617,77060,76053,76988],[1779681600000,77082,77304,76879,76946],[1779696000000,76952,77407,76939,77291],[1779710400000,77276,77578,77210,77281],[1779724800000,77228,77703,77228,77555],[1779739200000,77520,77695,77329,77360],[1779753600000,77383,77402,77073,77274],[1779768000000,77218,77218,76452,76584],[1779782400000,76557,76886,76546,76627],[1779796800000,76642,77448,76534,77125],[1779811200000,77125,77881,76223,76384],[1779825600000,76348,76581,75724,75931],[1779840000000,75948,76037,75607,75822],[1779854400000,75870,75958,75555,75555],[1779868800000,75549,75858,75220,75858],[1779883200000,75874,75944,75622,75673],[1779897600000,75652,75818,74706,75187],[1779912000000,75180,75191,74601,74923],[1779926400000,75022,75237,74169,74353],[1779940800000,74436,74458,73132,73132],[1779955200000,72913,73346,72712,73337],[1779969600000,73233,73451,73137,73385],[1779984000000,73330,73432,72669,72786],[1779998400000,72720,73586,72720,73343],[1780012800000,73262,73792,73180,73540],[1780027200000,73550,73739,73112,73196],[1780041600000,73260,73761,73140,73373],[1780056000000,73570,73758,73308,73360],[1780070400000,73326,73984,72515,73706],[1780084800000,73726,74214,73201,73434],[1780099200000,73439,73721,73249,73383],[1780113600000,73365,73679,73356,73463],[1780128000000,73433,73578,73178,73453],[1780142400000,73451,73566,73416,73496],[1780156800000,73498,73917,73492,73821],[1780171200000,73803,73953,73762,73914],[1780185600000,73880,73918,73690,73751],[1780200000000,73758,74110,73758,74044],[1780214400000,74047,74092,73747,73760],[1780228800000,73772,73877,73663,73856],[1780243200000,73797,73883,73489,73547],[1780257600000,73575,73600,73352,73457],[1780272000000,73530,74001,73459,73593],[1780286400000,73570,73872,73224,73649],[1780300800000,73703,73703,72695,72720],[1780315200000,72739,72930,72394,72394],[1780329600000,72198,72198,70981,70981],[1780344000000,71031,71619,70669,71477],[1780358400000,71463,71566,70775,71360],[1780372800000,71320,71320,70120,70844],[1780387200000,70848,70907,69752,70031],[1780401600000,69983,69983,69294,69421],[1780416000000,69414,69414,67055,67192],[1780430400000,67244,67968,66512,67136],[1780444800000,67130,67785,66164,66650],[1780459200000,66695,67012,65708,65760],[1780473600000,65749,67376,65749,67140],[1780488000000,67134,67327,66588,67002],[1780502400000,66977,67119,66022,66022],[1780516800000,66030,66047,65357,65357],[1780531200000,65256,65671,64022,64022],[1780545600000,64253,64367,61557,64305],[1780560000000,64273,64641,63477,63609],[1780574400000,63706,63706,62183,62451],[1780588800000,62554,64353,62413,63902],[1780603200000,63733,64011,62933,63571],[1780617600000,63429,63796,63166,63796],[1780632000000,63741,63818,62322,62676],[1780646400000,62651,63421,61394,62930],[1780660800000,62905,63051,61971,61971],[1780675200000,61678,62312,60246,60465],[1780689600000,60212,61401,59228,60317],[1780704000000,60086,61876,60086,60922],[1780718400000,61300,61399,60560,60670],[1780732800000,60726,61133,59665,60977],[1780747200000,60877,61422,60288,60767],[1780761600000,60928,61071,60442,60740],[1780776000000,60787,60831,60423,60595],[1780790400000,60600,60919,60438,60862],[1780804800000,60877,61665,60758,61665],[1780819200000,61550,62355,61504,62355],[1780833600000,62359,62800,62302,62578],[1780848000000,62592,62592,61651,62122],[1780862400000,62040,62272,61206,61278],[1780876800000,61391,63373,61391,63255],[1780891200000,63208,63739,62832,63098],[1780905600000,63009,63264,62461,63264],[1780920000000,63118,63801,63001,63417],[1780934400000,63062,64156,62886,63732],[1780948800000,63788,63924,63324,63364],[1780963200000,63358,63792,62994,63078],[1780977600000,63059,63059,62473,62730],[1780992000000,62839,63454,62776,63164],[1781006400000,63101,63101,62510,62681],[1781020800000,62806,62830,61183,61244],[1781035200000,61108,61978,60892,61978],[1781049600000,62025,62132,61547,61658],[1781064000000,61658,61872,61211,61480],[1781078400000,61497,61685,61074,61647],[1781092800000,61590,61592,60882,61005],[1781107200000,60996,62551,60994,62551],[1781121600000,62624,62624,61645,61928],[1781136000000,61941,61941,61101,61493],[1781150400000,61464,62662,61464,62662],[1781164800000,62566,62893,62519,62646],[1781179200000,62697,63139,62697,63058],[1781193600000,62968,63134,62545,62545],[1781208000000,62641,63753,62320,63577],[1781222400000,63549,63586,63219,63552],[1781236800000,63504,63664,63269,63435]]},"exampleRequest":{"id":"bitcoin","days":"30","vs_currency":"usd"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gdbkTBPCQ00Je_tRjjD2p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns OHLC (open, high, low, close) candlestick price data for a cryptocurrency over a specified time range against a target currency.","exampleAgentPrompt":"Can you get me the OHLC candlestick data for Bitcoin (coin ID: bitcoin) vs USD for the last 30 days so I can see its price action?","exampleUseCases":null,"resultDescription":"An array of candlestick arrays, each containing [timestamp, open, high, low, close] price values for the specified coin and time range, suitable for charting or technical analysis.","failureModes":["Invalid coin ID returns an error or empty response","Unsupported days value (not in 1,7,14,30,90,180,365) may return an error","Unsupported vs_currency value returns an error","Network or upstream CoinGecko API unavailability causes failure","Payment failure if x402 micropayment is not properly handled"],"whenToPreferThis":"Use this endpoint when you need structured OHLC candlestick price history for a specific cryptocurrency for technical analysis, charting, or trading signal generation. Prefer this over simple price lookups when you need open/high/low/close granularity rather than just current or average price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:43:28.732Z","isFirstParty":false}