{"id":32517181,"url":"https://github.com/phil8192/bitstamp-ws","last_synced_at":"2025-10-28T02:50:18.114Z","repository":{"id":74332734,"uuid":"187701023","full_name":"phil8192/bitstamp-ws","owner":"phil8192","description":"Bitstamp Websocket API v2 Java client","archived":false,"fork":false,"pushed_at":"2025-05-05T16:17:34.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T17:45:35.417Z","etag":null,"topics":["bitstamp","bitstamp-api","bitstamp-java","limit-order-book"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/phil8192.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,"zenodo":null}},"created_at":"2019-05-20T19:27:47.000Z","updated_at":"2025-05-05T16:17:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c485a9e6-2b96-48fb-aee1-ecf9ce34b968","html_url":"https://github.com/phil8192/bitstamp-ws","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phil8192/bitstamp-ws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil8192%2Fbitstamp-ws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil8192%2Fbitstamp-ws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil8192%2Fbitstamp-ws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil8192%2Fbitstamp-ws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phil8192","download_url":"https://codeload.github.com/phil8192/bitstamp-ws/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phil8192%2Fbitstamp-ws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281376666,"owners_count":26490317,"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-10-28T02:00:06.022Z","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":["bitstamp","bitstamp-api","bitstamp-java","limit-order-book"],"created_at":"2025-10-28T02:50:15.497Z","updated_at":"2025-10-28T02:50:18.105Z","avatar_url":"https://github.com/phil8192.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitstamp-ws\n[![active](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n![GitHub](https://img.shields.io/github/license/phil8192/webtri.sh.svg)\n\n\u003e Btstamp Websocket API v2 Java client\n\nJava client for Bitstamp's [Websocket API v2](https://www.bitstamp.net/websocket/v2/).\nMakes use of [dsl-json](https://github.com/ngs-doo/dsl-json) and [tyrus](https://tyrus-project.github.io/).\n\n## Usage\n\nThis can be run in stand-alone mode for *orders* or *trades*. Running the below\nwill result in a logfile with the format `pair-type-YYYY-MM-DD.csv`, Change\n`pair` for the market, `type` as either `orders` or `trades`.\n\nThe logfiles will rotate each day (UTC),\n\n\n```bash\n./run.sh btusd orders\n```\n\nor\n\n```bash\n./run.sh btusd trades\n```\n\n\n### API\nSee\n[Client](https://github.com/phil8192/bitstamp-ws/blob/master/src/main/java/net/parasec/trading/bitstampws/Client.java)\ninterface.\n\nFor example, to stream limit orders for `btcusd`:\n\n```java\n// 1. Specify a message handler\nClient client = new BitstampClient();\nBitstampMessageHandler\u003cOrderEvent\u003e orderHandler = order -\u003e System.out.println(order);\n\n// 2. Subscribe to channel\nString subscriptionId = client.subscribeOrders(\"btcusd\", orderHandler);\n\n// 3. Close channel\nclient.unsubscribe(subscriptionId)\n```\n\nExample [here](https://github.com/phil8192/limit-order-book/blob/master/src/main/java/net/parasec/ob/OrderBookStream.java).\n\n\nIt is expected that the message handler puts the message on a non-blocking queue or similar (performs minimal work). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphil8192%2Fbitstamp-ws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphil8192%2Fbitstamp-ws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphil8192%2Fbitstamp-ws/lists"}