{"id":18249066,"url":"https://github.com/thalkod/node-cfinex-api","last_synced_at":"2025-09-12T15:36:02.049Z","repository":{"id":102456006,"uuid":"146459465","full_name":"ThalKod/node-cfinex-api","owner":"ThalKod","description":" Node Cfinex API is an asynchronous node.js library for the Cfinex API","archived":false,"fork":false,"pushed_at":"2018-09-30T17:03:35.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T19:56:00.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ThalKod.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":"2018-08-28T14:25:17.000Z","updated_at":"2018-11-05T20:11:44.000Z","dependencies_parsed_at":"2023-07-14T09:46:00.974Z","dependency_job_id":null,"html_url":"https://github.com/ThalKod/node-cfinex-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThalKod/node-cfinex-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalKod%2Fnode-cfinex-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalKod%2Fnode-cfinex-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalKod%2Fnode-cfinex-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalKod%2Fnode-cfinex-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThalKod","download_url":"https://codeload.github.com/ThalKod/node-cfinex-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThalKod%2Fnode-cfinex-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274831643,"owners_count":25357883,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":[],"created_at":"2024-11-05T09:39:09.978Z","updated_at":"2025-09-12T15:36:01.961Z","avatar_url":"https://github.com/ThalKod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Cfinex API\nNode Cfinex API is an asynchronous node.js library designed to help you make your own projects that interact with the [CFINEX API](https://cfinex.com).\n\n#### Installation\n```\nnpm install node-cfinex-api --save\n```\n#### Getting started\n```javascript\nconst cfinex = require(\"../node-cfinex-api\")().options({\n    apikey: \"\u003capi key\u003e\",\n    apisecret: \"\u003capi secret\u003e\",\n});\n```\n\n#### Instantiating Multiple Instances\n```javascript\nconst cfinex = require('node-cfinex-api');\n\nconst instance1 = cfinex.createInstance({\n    //\n});\n\nconst instance2 = cfinex.createInstance({\n    //\n});\n```\n\n#### Getting Markets\n```javascript\ncfinex.getMarkets((re)=\u003e{\n    console.log(\"getmarkets()\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Getting All Open Orders\n```javascript\ncfinex.getAllOpenOrders({ market: \"BTC-LTC\" }, (re)=\u003e{\n    console.log(\"getAllOpenOrders()\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Getting Markets Ticks\n```javascript\ncfinex.getTicks((re)=\u003e{\n    console.log(\"getTicks()\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Getting current balances\n```javascript\ncfinex.getBalances((ret)=\u003e{\n    console.log(\"getBalances()\", ret);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Cancel an open orders\n```javascript\ncfinex.cancelOrder({ uid: 229392002 }, (re)=\u003e{\n    console.log(\"cancelOrder()\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Set a new Orders\n```javascript\ncfinex.setNewOrder({ pair: \"LTC-BTC\", type: \"Buy\", amount: 1000, price: 0.0001 }, (re)=\u003e{\n    console.log(\"setNewOrder()\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Get User open orders\n```javascript\ncfinex.getOpenOrders((re)=\u003e{\n    console.log(\"getOpenOrders\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n\n#### Get account addresses\n```javascript\ncfinex.getAccountAddresses((re)=\u003e{\n    console.log(\"getAccountAddresses()\", re);\n});\n```\n\u003cdetails\u003e\n \u003csummary\u003eView Response\u003c/summary\u003e\n\n```js\n{  }\n// Response\n```\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalkod%2Fnode-cfinex-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalkod%2Fnode-cfinex-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalkod%2Fnode-cfinex-api/lists"}