{"id":16534614,"url":"https://github.com/hardyscc/bittrex-api","last_synced_at":"2025-03-03T14:11:52.726Z","repository":{"id":57115203,"uuid":"154157759","full_name":"hardyscc/bittrex-api","owner":"hardyscc","description":"Bittrex JavaScript API","archived":false,"fork":false,"pushed_at":"2018-11-07T02:03:40.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T15:44:28.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hardyscc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-22T14:23:47.000Z","updated_at":"2018-11-07T07:16:21.000Z","dependencies_parsed_at":"2022-08-22T05:50:34.985Z","dependency_job_id":null,"html_url":"https://github.com/hardyscc/bittrex-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyscc%2Fbittrex-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyscc%2Fbittrex-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyscc%2Fbittrex-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardyscc%2Fbittrex-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardyscc","download_url":"https://codeload.github.com/hardyscc/bittrex-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241678157,"owners_count":20001682,"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":[],"created_at":"2024-10-11T18:24:46.451Z","updated_at":"2025-03-03T14:11:52.705Z","avatar_url":"https://github.com/hardyscc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bittrex JavaScript API\n\n## Sample Usage\n\n```javascript\nconst { Bittrex } = require('@hardyscc/bittrex-api')\n\nconst bittrex = new Bittrex({\n  apikey: 'key',\n  apisecret: 'secret'\n})\n;(async () =\u003e {\n  const currency = 'ETH'\n\n  console.log('Balance =\u003e', await bittrex.getBalance(currency))\n\n  console.log('Market Summary =\u003e', await bittrex.getMarketSummary(currency))\n\n  const {\n    result: { buy, sell }\n  } = await bittrex.getOrderBook(currency)\n  console.log('Order Book Bid =\u003e', buy)\n  console.log('Order Book Ask =\u003e', sell)\n\n  console.log('Open Orders =\u003e', await bittrex.getOpenOrders(currency))\n\n  const respBuy = await bittrex.buy({\n    coin: currency,\n    quantity: 1,\n    rate: 0.01\n  })\n  console.log('Buy =\u003e', respBuy)\n\n  if (respBuy.success) {\n    console.log('Cancel Buy =\u003e', await bittrex.cancel(respBuy.result.uuid))\n  }\n\n  const respSell = await bittrex.sell({\n    coin: currency,\n    quantity: 1,\n    rate: 0.1\n  })\n  console.log('Sell =\u003e', respSell)\n\n  if (respSell.success) {\n    console.log('Cancel Sell =\u003e', await bittrex.cancel(respSell.result.uuid))\n  }\n})()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardyscc%2Fbittrex-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardyscc%2Fbittrex-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardyscc%2Fbittrex-api/lists"}