{ "info": { "author": "Mike Ellertson", "author_email": "mdellertson@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3 :: Only" ], "description": "# hitbtc_wss\nHitBTC Websocket API 2.0 Client written in Python 3.\n\nForked from [Crypto-toolbox/hitbtc_wss](https://github.com/Crypto-toolbox/hitbtc_wss). At the time of this writing,\nCrypto-toolbox had not accepted a pull request into his repo in 7 months. Seems like they might have\nmoved on to do other things. I figured I'd pick the ball up and run with it. \n\n# Release History\n\n\n| Date | Description |\n| -------- | ------------ |\n| 09/02/2018 | Published bug fix to PyPi so the `login` method works with HitBTC v2 login method. |\n\nThe client supplies data both visually via console, as well as python objects via its `HitBTC.recv()`.\nIt's important to note that this does not receive data from the API directly -\ninstead, the data is pulled from a `queue.Queue` object, which defaults to a length of\n100 items. So only the last 100 messages will be cached - either make sure you process the messages\nfast enough, or increase the length of the queue (can be done by passing the `q_maxsize` kwarg on\ninstantiation).\n\nBy default, data is unpacked - that means you will never see the raw `JSONRPC` message\n(this, too, can be turned off by passing `raw=True` upon initialization). This will, however, also\nturn off all handling of error messages etc.\n\nFor an in-depth description of the client and its methods, please see the documenation at\n[readthedocs.org](http://hitbtc-websocket-api-20-client.readthedocs.io/en/latest/)\n\n\n# Installation\n\nStable: `pip install hitbtc_wss`\nRelease Candidate: `pip install --pre hitbtc_wss`\n\n# Example Usage\n\n```python\nimport time\nimport queue\nfrom hitbtc_wss import HitBTC\nc = HitBTC()\nc.start() # start the websocket connection\ntime.sleep(2) # Give the socket some time to connect\nc.subscribe_ticker(symbol='ETHBTC') # Subscribe to ticker data for the pair ETHBTC\n\nwhile True:\n try:\n data = c.recv()\n except queue.Empty:\n continue\n\n # process data from websocket\n ...\n\nc.stop()\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mellertson/hitbtc", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "hitbtc-wss", "package_url": "https://pypi.org/project/hitbtc-wss/", "platform": "", "project_url": "https://pypi.org/project/hitbtc-wss/", "project_urls": { "Homepage": "https://github.com/mellertson/hitbtc" }, "release_url": "https://pypi.org/project/hitbtc-wss/1.0.6/", "requires_dist": null, "requires_python": "", "summary": "HitBTC Websocket API Client", "version": "1.0.6" }, "last_serial": 4232995, "releases": { "1.0.6": [ { "comment_text": "", "digests": { "md5": "b66e4b872bdfaf3d1a21f319421bcd93", "sha256": "636e8301413df09d10535ce73dcc61f984528f2621039040f51df8fa904386e5" }, "downloads": -1, "filename": "hitbtc_wss-1.0.6.tar.gz", "has_sig": false, "md5_digest": "b66e4b872bdfaf3d1a21f319421bcd93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9504, "upload_time": "2018-09-03T01:14:28", "url": "https://files.pythonhosted.org/packages/8a/40/04ca651ead2343f076119e6e69f8f6c5ac1631c3eb4cd5b001ffef103f92/hitbtc_wss-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b66e4b872bdfaf3d1a21f319421bcd93", "sha256": "636e8301413df09d10535ce73dcc61f984528f2621039040f51df8fa904386e5" }, "downloads": -1, "filename": "hitbtc_wss-1.0.6.tar.gz", "has_sig": false, "md5_digest": "b66e4b872bdfaf3d1a21f319421bcd93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9504, "upload_time": "2018-09-03T01:14:28", "url": "https://files.pythonhosted.org/packages/8a/40/04ca651ead2343f076119e6e69f8f6c5ac1631c3eb4cd5b001ffef103f92/hitbtc_wss-1.0.6.tar.gz" } ] }