{"id":22608911,"url":"https://github.com/bitfinexcom/bfx-api-node-ws1","last_synced_at":"2025-04-11T06:13:45.269Z","repository":{"id":46003669,"uuid":"145868967","full_name":"bitfinexcom/bfx-api-node-ws1","owner":"bitfinexcom","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-02T18:35:09.000Z","size":30,"stargazers_count":2,"open_issues_count":2,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-11T06:13:38.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bitfinexcom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE.md","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-23T14:58:02.000Z","updated_at":"2021-11-22T10:05:58.000Z","dependencies_parsed_at":"2024-06-18T21:33:31.410Z","dependency_job_id":"6bb58907-f926-4837-9d97-68c84981fa6d","html_url":"https://github.com/bitfinexcom/bfx-api-node-ws1","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":"0.10344827586206895","last_synced_commit":"c30de2c4c70e54571edb2df3f6c9945b92268db9"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fbfx-api-node-ws1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fbfx-api-node-ws1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fbfx-api-node-ws1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fbfx-api-node-ws1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitfinexcom","download_url":"https://codeload.github.com/bitfinexcom/bfx-api-node-ws1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351393,"owners_count":21089270,"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-12-08T15:10:05.359Z","updated_at":"2025-04-11T06:13:45.201Z","avatar_url":"https://github.com/bitfinexcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitfinex WSv1 Reference Implementation for Node.JS\n\n[![Build Status](https://travis-ci.org/bitfinexcom/bfx-api-node-ws1.svg?branch=master)](https://travis-ci.org/bitfinexcom/bfx-api-node-ws1)\n\nThis repo contains the reference implementation for version 1 of the websocket Bitfinex API. It is deprecated in favour of version 2, and should no longer be used.\n\nFor the version 2 API library, see [bitfinex-api-node](https://github.com/bitfinexcom/bitfinex-api-node)\n\n### Features\n\n* Emits API data as events from the class instance\n* Provides methods for channel management \u0026 listening to incoming data\n\n### Installation\n\n```bash\nnpm i --save bfx-api-node-ws1\n```\n\n### Quickstart \u0026 Example\n\n```js\nconst WSv1 = require('bfx-api-node-ws1')\nconst ws = new WSv1()\n\nws.open()\n\nws.on('open', () =\u003e {\n  ws.subscribeTrades('BTCUSD')\n})\n\nws.on('trades', (pair, trade) =\u003e {\n  console.log(JSON.stringify({ pair, trade }, null, 2))\n})\n```\n\n### Docs\n\nFor JSDoc-generated API documentation, [see `docs/ws1.md`](/docs/ws1.md)\n\n### Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Fbfx-api-node-ws1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfinexcom%2Fbfx-api-node-ws1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Fbfx-api-node-ws1/lists"}