{"id":32120510,"url":"https://github.com/vinclou/coingecko-deno-client","last_synced_at":"2026-05-19T07:06:16.686Z","repository":{"id":62422501,"uuid":"442340004","full_name":"vinclou/coingecko-deno-client","owner":"vinclou","description":"CoinGecko API client library for Deno with zero dependencies.","archived":false,"fork":false,"pushed_at":"2022-01-04T00:11:33.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-15T06:01:58.360Z","etag":null,"topics":["api-client","coingecko","coingecko-api","crypto-api","cryptocurrency","deno","denoland","market-data","module","no-dependencies","typescript"],"latest_commit_sha":null,"homepage":"https://doc.deno.land/https://deno.land/x/coingecko_deno_client@v0.2.2/mod.ts","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinclou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-28T03:39:43.000Z","updated_at":"2025-11-18T05:06:44.000Z","dependencies_parsed_at":"2022-11-01T17:33:22.542Z","dependency_job_id":null,"html_url":"https://github.com/vinclou/coingecko-deno-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vinclou/coingecko-deno-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinclou%2Fcoingecko-deno-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinclou%2Fcoingecko-deno-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinclou%2Fcoingecko-deno-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinclou%2Fcoingecko-deno-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinclou","download_url":"https://codeload.github.com/vinclou/coingecko-deno-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinclou%2Fcoingecko-deno-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33205557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","coingecko","coingecko-api","crypto-api","cryptocurrency","deno","denoland","market-data","module","no-dependencies","typescript"],"created_at":"2025-10-20T19:52:45.841Z","updated_at":"2026-05-19T07:06:16.645Z","avatar_url":"https://github.com/vinclou.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n \u003ch1\u003eCoin Gecko API Client for Deno\u003c/h1\u003e\n \u003ch2\u003ev0.2.2\u003c/h2\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://usethebitcoin.com/wp-content/uploads/2018/03/CoinGecko.png\" alt=\"Gecko image\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://vincentarlou.com\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/badge/created%20by-@vinclou-4BBAAB.svg\" alt=\"Created by Vincent Arlou\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/github/license/vinclou/coingecko-deno-client\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Hi! Vincent here. I hope you find it easy to use and powerful enough for all your use cases. If you have any issues or suggestions, please [open an issue](https://github.com/vinclou/coingecko-deno-client/issues/new)!\n\u003e\n\u003e In the course of next month or so I will try to release a stable version of the client.\n\u003e It works but there a way too many things left to implement or change. If you'd like to help\n\u003e please open an issue or pull request!\n\n\u003cbr/\u003e\n\n## Overview\n\nAPI client library for Deno that allows you to work with the [Coin Gecko API](https://www.coingecko.com/en/api/documentation). I will be providing implementation for all the official routes listed. Yet for now, I have no plans to add tests because I do not own the API. For the latter I might actually do it, if I end up using this library on a constant basis.\n\n## Notes\n\nWhile I'm still working on a better docs inside readme, checkout examples.ts for use cases on every single route.\n\n## Future plans\n\nAdd tests. Keep this up to date with the API. Better Error Handling. Better Docs.\n\n## Contributions And Feedback\n\nFeel free to open an issue or pull requests, for now there are no strict guidelines, I don't think this\nsmall library needs any.\n\n## Quick Start Example\n\n```typescript\n//1. Import coingecko-api\n//Make sure you use the latest version of the library it can be specified in the url.\n//It's just a note in case I ever forget to update it in this section of readme\nimport Client from \"https://deno.land/x/coingecko_deno_client@v0.2.2/mod.ts\";\n\n//2. Initiate the CoinGecko API Client\nconst client = new GeckoClient();\n\n// do not forget top level async function of course, or use .then()\n//3. Make any desired call to the API\nconst ping = await CoinGeckoClient.ping();\n\n// get token price given contract addresses\nconst tokenPrice = await client.simple.tokenPrice({\n  // asset platform is ethereum\n  contract_addresses: [\n    \"0x514910771AF9Ca656af840dff83E8264EcF986CA\",\n    \"0xB62132e35a6c13ee1EE0f84dC5d40bad8d815206\",\n  ],\n  vs_currencies: \"usd\",\n});\nconsole.log(tokenPrice);\n```\n\n## Making Calls\n\nAll calls using the CoinGeckoClient are asynchronous.\n\nI try to keep the response types up to date with the API,\nplease do refer to the deno doc for the response types and ds.\n\nThe CoinGeckoClient splits up the currently available calls outline in the official CoinGecko API documentation parts into 8 objectparts. (Aside from the `ping`, `global`, `globalDefi`, `listStatusUpdates` `exchangeRates`, `trending`, `topHoldings` calls. These are direct methods inside main client).\n\nThe table below shows the available getters for each of the objects.\nThey strictly coincide with the API docs except for contracts it holds `asset_platforms` route.\n\n| Namespace     | Usage                              | Description                           |\n| ------------- | ---------------------------------- | ------------------------------------- |\n| `simple`      | `CoinGeckoClient.simple[...]`      | Calls related to \"simple\" endpoints   |\n| `coins`       | `CoinGeckoClient.coins[...]`       | Calls related to coins endpoints      |\n| `contracts`   | `CoinGeckoClient.contracts[...]`   | Calls related to \"contract\" endpoints |\n| `categories`  | `CoinGeckoClient.categories[...]`  | Calls related to status updates       |\n| `exchanges`   | `CoinGeckoClient.exchanges[...]`   | Calls related to exchanges            |\n| `finance`     | `CoinGeckoClient.finance[...]`     | Calls related to finance endpoints    |\n| `indexes`     | `CoinGeckoClient.indexes[...]`     | Calls related to index endpoints      |\n| `derivatives` | `CoinGeckoClient.derivatives[...]` | Calls related to derivative endpoints |\n\n---\n\n## Constants\n\nThis module provides helper constants for use in calls.\n\n---\n\n### `CoinGecko.ORDER`\n\nOrder results in specific calls by using one of the following values.\nIt's mostly made to remind you what constants are available, you might as well\njust pass the desired string after referencing the ts doc instead of directly importing the object\nwhen build query params.\n\n| Key                | Usage                              | Description                                                    |\n| ------------------ | ---------------------------------- | -------------------------------------------------------------- |\n| `GECKO_ASC`        | `CoinGecko.ORDER.GECKO_ASC`        | Order results by CoinGecko's scoring system (ascending)        |\n| `GECKO_DESC`       | `CoinGecko.ORDER.GECKO_DESC`       | Order results by CoinGecko's scoring system (descending)       |\n| `MARKET_CAP_ASC`   | `CoinGecko.ORDER.MARKET_CAP_ASC`   | Order results by market cap (ascending)                        |\n| `MARKET_CAP_DESC`  | `CoinGecko.ORDER.MARKET_CAP_DESC`  | Order results by market cap (descending)                       |\n| `VOLUME_ASC`       | `CoinGecko.ORDER.VOLUME_ASC`       | Order results by volume (ascending)                            |\n| `VOLUME_DESC`      | `CoinGecko.ORDER.VOLUME_DESC`      | Order results by volume (descending)                           |\n| `COIN_NAME_ASC`    | `CoinGecko.ORDER.COIN_NAME_ASC`    | Order results by coin name (ascending)                         |\n| `COIN_NAME_DESC`   | `CoinGecko.ORDER.COIN_NAME_DESC`   | Order results by coin name (descending)                        |\n| `PRICE_ASC`        | `CoinGecko.ORDER.PRICE_ASC`        | Order results by price (ascending)                             |\n| `PRICE_DESC`       | `CoinGecko.ORDER.PRICE_DESC`       | Order results by price (descending)                            |\n| `HOUR_24_ASC`      | `CoinGecko.ORDER.HOUR_24_ASC`      | Order results by 24 hour change (ascending)                    |\n| `HOUR_24_DESC`     | `CoinGecko.ORDER.HOUR_24_DESC`     | Order results by 24 hour change (descending)                   |\n| `TRUST_SCORE_DESC` | `CoinGecko.ORDER.TRUST_SCORE_DESC` | Order results by CoinGecko's trust scoring system (descending) |\n\n---\n\n### `CoinGecko.STATUS_UPDATE_CATEGORY`\n\nAvailable status update categories to filter by.\n\n| Key                | Usage                                               | Description                                       |\n| ------------------ | --------------------------------------------------- | ------------------------------------------------- |\n| `GENERAL`          | `CoinGecko.STATUS_UPDATE_CATEGORY.GENERAL`          | Filter status update results by general news      |\n| `MILESTONE`        | `CoinGecko.STATUS_UPDATE_CATEGORY.MILESTONE`        | Filter status update results by milestones        |\n| `PARTNERSHIP`      | `CoinGecko.STATUS_UPDATE_CATEGORY.PARTNERSHIP`      | Filter status update results by partnerships      |\n| `EXCHANGE_LISTING` | `CoinGecko.STATUS_UPDATE_CATEGORY.EXCHANGE_LISTING` | Filter status update results by exchange listings |\n| `SOFTWARE_RELEASE` | `CoinGecko.STATUS_UPDATE_CATEGORY.SOFTWARE_RELEASE` | Filter status update results by software releases |\n| `FUND_MOVEMENT`    | `CoinGecko.STATUS_UPDATE_CATEGORY.FUND_MOVEMENT`    | Filter status update results by fund movements    |\n| `NEW_LISTINGS`     | `CoinGecko.STATUS_UPDATE_CATEGORY.NEW_LISTINGS`     | Filter status update results by new listings      |\n| `EVENT`            | `CoinGecko.STATUS_UPDATE_CATEGORY.EVENT`            | Filter status update results by events            |\n\n---\n\n### `CoinGecko.STATUS_UPDATE_PROJECT_TYPE`\n\nAvailable status update project types to filter by.\n\n| Key      | Usage                                         | Description                                  |\n| -------- | --------------------------------------------- | -------------------------------------------- |\n| `COIN`   | `CoinGecko.STATUS_UPDATE_PROJECT_TYPE.COIN`   | Filter status update results by coins only   |\n| `MARKET` | `CoinGecko.STATUS_UPDATE_PROJECT_TYPE.MARKET` | Filter status update results by markets only |\n\n---\n\n### `CoinGecko.EVENT_TYPE`\n\nList of event types (most recent from `CoinGeckoClient.events.fetchTypes()`)\n\n| Key          | Usage                             | Description                       |\n| ------------ | --------------------------------- | --------------------------------- |\n| `EVENT`      | `CoinGecko.EVENT_TYPE.EVENT`      | Filter events by _events_ only    |\n| `CONFERENCE` | `CoinGecko.EVENT_TYPE.CONFERENCE` | Filter events by conferences only |\n| `MEETUP`     | `CoinGecko.EVENT_TYPE.MEETUP`     | Filter events by meetups only     |\n\n---\n\n## License MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinclou%2Fcoingecko-deno-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinclou%2Fcoingecko-deno-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinclou%2Fcoingecko-deno-client/lists"}