{"id":14980095,"url":"https://github.com/nikeweke/binance-api-sdk","last_synced_at":"2026-02-01T09:34:15.813Z","repository":{"id":40640277,"uuid":"504450297","full_name":"Nikeweke/binance-api-sdk","owner":"Nikeweke","description":"Binance API SDK","archived":false,"fork":false,"pushed_at":"2023-02-06T10:55:23.000Z","size":287,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T07:36:04.424Z","etag":null,"topics":["binance","binance-api","bitcoins","cryptocurrency","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nikeweke.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-17T08:18:01.000Z","updated_at":"2023-02-06T09:52:50.000Z","dependencies_parsed_at":"2023-02-19T06:45:53.753Z","dependency_job_id":null,"html_url":"https://github.com/Nikeweke/binance-api-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikeweke%2Fbinance-api-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikeweke%2Fbinance-api-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikeweke%2Fbinance-api-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikeweke%2Fbinance-api-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nikeweke","download_url":"https://codeload.github.com/Nikeweke/binance-api-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571329,"owners_count":21126516,"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":["binance","binance-api","bitcoins","cryptocurrency","typescript"],"created_at":"2024-09-24T14:01:16.926Z","updated_at":"2026-02-01T09:34:15.790Z","avatar_url":"https://github.com/Nikeweke.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binance API SDK\n\n\n### Quick start\n```js\n// 1. init a keys\nconst keys = {\n  apiKey: 'XXXXXXXXXXXXXXXXXXXXXXXXX',\n  secretKey: 'XXXXXXXXXXXXXXXXXXXXXXXXX',\n}\n\n// 2. get api and service\nconst binanceApi = require('binance-api-sdk').default(keys)\n\n// 3. use \nbinanceApi.getTicker('BTCEUR')\n  .then((data) =\u003e console.log(data))\n  .catch(err =\u003e console.log('Error: ', err.message))\n\nbinanceApi.getTicker24h('BTCUSDC')\n  .then((data) =\u003e console.log(data))\n  .catch(err =\u003e console.log('Error: ', err.message))\n\n// set keys before use private functions\nbinanceApi.accountInfo()\n  .then((data) =\u003e console.log(data))\n  .catch(err =\u003e console.log('Error: ', err.message))\n\nbinanceApi.getAccountTotalAndBalances()\n  .then((data) =\u003e console.log(data))\n  .catch(err =\u003e console.log(err))\n```\n\n#### binanceApi.\n* `.isKeysSet()` - check if keys are set (secret, api keys)\n* `.getTicker('BTCEUR')` - last updates of market\n* `.getTicker24h('BTCUSDC')` - last updates of market for 24h\n* `.getTickers(['BTCUSDC', 'BTCEUR'])` - get a few tickers at once \n* `.getCurrentAvgPrice('BTCUSDC')` - get current average price \n* `.getOrderBook('BTCUSDC')` - order book for symbol\n* `.accountInfo()` -  (private) account info and assets' balances\n* `.dailyAccountSnapshot(startTime: number, endTime: number, type: AccountBalanceType = 'SPOT')` - (private) snapshot of your account balances (startTime, endTime - it is unixtime in milliseconds)\n* `.getAccountTotalAndBalances(displayCurrency: string = 'USDC')` - Get total of your assets in *displayCurrency*\n* `.request(action: string, method: Method = 'get', data = null, options = {})` -  make request to binance api\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikeweke%2Fbinance-api-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikeweke%2Fbinance-api-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikeweke%2Fbinance-api-sdk/lists"}