{"id":15540594,"url":"https://github.com/vondas-network/coinglass-node-api","last_synced_at":"2025-03-29T00:15:35.342Z","repository":{"id":81197300,"uuid":"597923793","full_name":"vondas-network/coinglass-node-api","owner":"vondas-network","description":"Unofficial Coinglass API for Node.js","archived":false,"fork":false,"pushed_at":"2024-06-27T03:37:04.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-03T12:18:46.407Z","etag":null,"topics":["api","blockchain","coinglass","cryptocurrency","data-analytics","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vondas-network.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-06T02:07:50.000Z","updated_at":"2024-06-27T03:37:07.000Z","dependencies_parsed_at":"2024-12-08T17:25:03.342Z","dependency_job_id":"e9d7a48c-3f0b-4f23-ade0-aee0c062e90c","html_url":"https://github.com/vondas-network/coinglass-node-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vondas-network%2Fcoinglass-node-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vondas-network%2Fcoinglass-node-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vondas-network%2Fcoinglass-node-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vondas-network%2Fcoinglass-node-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vondas-network","download_url":"https://codeload.github.com/vondas-network/coinglass-node-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246117763,"owners_count":20726069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","blockchain","coinglass","cryptocurrency","data-analytics","javascript","nodejs"],"created_at":"2024-10-02T12:14:05.781Z","updated_at":"2025-03-29T00:15:35.323Z","avatar_url":"https://github.com/vondas-network.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"40%\" height=\"40%\" src=\"https://github.com/vondas-network/coinglass-node-api/blob/main/img/coinglass-logo.png?raw=true\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cem\u003eUnofficial Coinglass API for Node.js\u003c/em\u003e\u003c/p\u003e \n\n# Requirements\n- [Node.js](https://nodejs.org/en/)\n- [Coinglass API](https://coinglass.github.io/API-Reference/#api-key)\n\n# Install Dependencies\n``` bash\nnpm i\n```\n\n# Available Endpoints\n\n```\n| Name                          | Routes        | Query                         | Parameters                      |\n| ----------------------------- | ------------- | ----------------------------- | ------------------------------- |\n| Exchange Open Interest        | futures       | openInterest                  | interval (int), symbol (string) |\n| Exchange Open Interest Chart  | futures       | openInterest/chart            | interval (int), symbol (string) |\n| Liquidation                   | futures       | liquidation_chart             | interval (int), symbol (string) |\n| Liquidation Chart             | futures       | liquidation/detail/chart      | interval (int), symbol (string) |\n| Long/Short Chart              | futures       | longShort_chart               | interval (int), symbol (string) |\n| Funding Rates Chart           | futures       | funding_rates_chart           | interval (int), symbol (string) |\n| Exchange Vol                  | futures       | vol/chart                     | symbol (string)                 |\n| Options Open Interest         | option        | openInterest                  | symbol (string)                 |\n| Options Open Interest Chart   | option        | openInterest/history/chart    | interval (int), symbol (string) |\n| Exchange Vol                  | option        | vol/history/chart             | symbol (string)                 |\n```\n\n# How to use\n\n## Examples\n\nWhat if I wanted data from a route like this?\n``` bash\nGET https://open-api.coinglass.com/api/pro/v1/futures/openInterest\n```\n \n### Postman Example\n``` bash\ncurl --location --request GET 'localhost:4400/coinglass?key=YOUR_API_KEY\u0026route=futures\u0026query=openInterest\u0026symbol=BTC\u0026interval=12H'\n```\n\n#### Usage\n``` javascript\nvar key = req.query.key;\nvar route = req.query.route;\nvar query = req.query.query;\nvar symbol = req.query.symbol;\nvar interval = req.query.interval;\n\nlet obj = {\n    key: key,\n    route: route,\n    query: query,\n    symbol: symbol,\n    interval: interval\n}\n\nvar gg = coinglass.getCoinglassData(obj);\ngg.then(function(data) {\n    res.send(data);\n}).catch(err =\u003e {\n    console.log(err);\n});\n```\n\n#### Response\n``` json \n{\n    \"code\": \"0\",\n    \"msg\": \"success\",\n    \"data\": [\n        {\n            \"exchangeName\": \"All\",\n            \"symbol\": \"BTC\",\n            \"openInterest\": 11224695209.685104,\n            \"openInterestAmount\": 488482.1483126145,\n            \"volUsd\": 20778086631.993153,\n            \"h24Change\": 0.47,\n            \"rate\": 100,\n            \"volChangePercent\": 53.22,\n            \"h1OIChangePercent\": 0.25,\n            \"h4OIChangePercent\": 0.26,\n            \"avgFundingRate\": 0.009287648822308458,\n            \"oichangePercent\": 0.47\n        },\n        {\n            \"exchangeName\": \"Binance\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 3393491198.563,\n            \"openInterestAmount\": 147563.552,\n            \"volUsd\": 10669728827.85,\n            \"h24Change\": 1.2,\n            \"rate\": 30.23,\n            \"h1OIChangePercent\": 0.22,\n            \"h4OIChangePercent\": 0.13\n        },\n        {\n            \"exchangeName\": \"CME\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 1975221648.3,\n            \"openInterestAmount\": 86346.6,\n            \"volUsd\": 822150045.1,\n            \"h24Change\": -2.04,\n            \"rate\": 17.59,\n            \"h1OIChangePercent\": 0,\n            \"h4OIChangePercent\": 0\n        },\n        {\n            \"exchangeName\": \"OKX\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 1871408606.5213,\n            \"openInterestAmount\": 81368.59799777134,\n            \"volUsd\": 2067455725.43082,\n            \"h24Change\": -0.61,\n            \"rate\": 16.67,\n            \"h1OIChangePercent\": 0.09,\n            \"h4OIChangePercent\": 0.45\n        },\n        {\n            \"exchangeName\": \"Bybit\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 1679934441.5,\n            \"openInterestAmount\": 73052.78,\n            \"volUsd\": 2787266646.7909966,\n            \"h24Change\": 3.02,\n            \"rate\": 14.96,\n            \"h1OIChangePercent\": 0.12,\n            \"h4OIChangePercent\": -0.31\n        },\n        {\n            \"exchangeName\": \"Bitget\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 1200701060.8375,\n            \"openInterestAmount\": 52239.3845,\n            \"volUsd\": 3366597276.45,\n            \"h24Change\": 1.76,\n            \"rate\": 10.69,\n            \"h1OIChangePercent\": 1.52,\n            \"h4OIChangePercent\": 2.23\n        },\n        {\n            \"exchangeName\": \"Deribit\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 531649540,\n            \"openInterestAmount\": 23039.03,\n            \"volUsd\": 180421570,\n            \"h24Change\": 0.14,\n            \"rate\": 4.73,\n            \"h1OIChangePercent\": -0.03,\n            \"h4OIChangePercent\": 0.12\n        },\n        {\n            \"exchangeName\": \"Bitmex\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 224489066.6751392,\n            \"openInterestAmount\": 9760.468,\n            \"volUsd\": 350631578.7693223,\n            \"h24Change\": -1.85,\n            \"rate\": 1.99,\n            \"h1OIChangePercent\": -0.22,\n            \"h4OIChangePercent\": -1.78\n        },\n        {\n            \"exchangeName\": \"Bitfinex\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 111718781.41162995,\n            \"openInterestAmount\": 4857.54952005,\n            \"volUsd\": 9566441.31860396,\n            \"h24Change\": -1.4,\n            \"rate\": 0.99,\n            \"h1OIChangePercent\": -0.24,\n            \"h4OIChangePercent\": 0.13\n        },\n        {\n            \"exchangeName\": \"Huobi\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 109516742.6218,\n            \"openInterestAmount\": 4761.838794793147,\n            \"volUsd\": 254875574.6182,\n            \"h24Change\": 4.1,\n            \"rate\": 0.97,\n            \"h1OIChangePercent\": 0.75,\n            \"h4OIChangePercent\": -0.06\n        },\n        {\n            \"exchangeName\": \"dYdX\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 73299765.522175,\n            \"openInterestAmount\": 3188.551,\n            \"volUsd\": 157651918.327,\n            \"h24Change\": -4.13,\n            \"rate\": 0.65,\n            \"h1OIChangePercent\": -0.31,\n            \"h4OIChangePercent\": -0.43\n        },\n        {\n            \"exchangeName\": \"Kraken\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 43124877,\n            \"openInterestAmount\": 1862.81,\n            \"volUsd\": 14524056,\n            \"h24Change\": -2.01,\n            \"rate\": 0.38,\n            \"h1OIChangePercent\": -0.12,\n            \"h4OIChangePercent\": -0.86\n        },\n        {\n            \"exchangeName\": \"CoinEx\",\n            \"symbol\": \"BTC\",\n            \"price\": 22984,\n            \"openInterest\": 10139480.73256,\n            \"openInterestAmount\": 440.9865,\n            \"volUsd\": 97216971.338208,\n            \"h24Change\": 2.73,\n            \"rate\": 0.09,\n            \"h1OIChangePercent\": 0.65,\n            \"h4OIChangePercent\": 1.55\n        }\n    ],\n    \"success\": true\n}\n```\n\n# Disclaimer\nThis project is for educational purposes only. You should not construe any such information or other material as legal, tax, investment, financial, or other advice. Nothing contained here constitutes a solicitation, recommendation, endorsement, or offer by me or any third party service provider to buy or sell any securities or other financial instruments in this or in any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such jurisdiction.\n\nUnder no circumstances will I be held responsible or liable in any way for any claims, damages, losses, expenses, costs, or liabilities whatsoever, including, without limitation, any direct or indirect damages for loss of profits.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvondas-network%2Fcoinglass-node-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvondas-network%2Fcoinglass-node-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvondas-network%2Fcoinglass-node-api/lists"}