kraken-wsclient-v2


Namekraken-wsclient-v2 JSON
Version 0.0.2 PyPI version JSON
download
home_page
SummarySample Kraken WebSockets client V2
upload_time2023-10-03 17:14:24
maintainer
docs_urlNone
authorKraken
requires_python>=3
licenseMIT
keywords kraken websockets v2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Kraken WebSockets Client v2 in Python

Sample Kraken WebSockets client in Python.  This client was created for
demonstration purposes only.  It is neither maintained nor supported.

## Installation

    pip install kraken-wsclient-v2

## Sample Usage

    import time

    from kraken_wsclient_v2 import kraken_wsclient_v2 as client

    def my_handler(message):
        # Here you can do stuff with the messages
        print(message)

    my_websockets_token = ''

    my_client = client.WssClient()
    my_client.start()

    # Sample public-data subscription:

    my_client.subscribe_public(
        # Insert params and req_id as described in the docs
        params = {
            'channel': 'ticker',
            'snapshot': True,
            'symbol': ['BTC/USD', 'XRP/USD'],
        },
        req_id = 1234567890,
        callback = my_handler
    )

    time.sleep(3)

    # Sample private-data subscription:

    my_client.subscribe_private(
        # Insert params and req_id as described in the docs
        params = {
            'channel': 'executions',
            'snapshot': True,
            'snapshot_trades': True,
            'order_status': True,
            'ratecounter': True,
            'token': my_websockets_token
        },
        req_id = 1234567891,
        callback = my_handler
    )

## Compatibility

This code has been tested on Python 3.7.

## Contributing

Pull requests are not monitored and likely will be ignored.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "kraken-wsclient-v2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "kraken websockets v2",
    "author": "Kraken",
    "author_email": "engineering@kraken.com",
    "download_url": "https://files.pythonhosted.org/packages/ef/fc/a2779625c4107f756cb831a84a9f625b03fdd6b126d751f4d19b69b3c2d9/kraken-wsclient-v2-0.0.2.tar.gz",
    "platform": null,
    "description": "# Kraken WebSockets Client v2 in Python\n\nSample Kraken WebSockets client in Python.  This client was created for\ndemonstration purposes only.  It is neither maintained nor supported.\n\n## Installation\n\n    pip install kraken-wsclient-v2\n\n## Sample Usage\n\n    import time\n\n    from kraken_wsclient_v2 import kraken_wsclient_v2 as client\n\n    def my_handler(message):\n        # Here you can do stuff with the messages\n        print(message)\n\n    my_websockets_token = ''\n\n    my_client = client.WssClient()\n    my_client.start()\n\n    # Sample public-data subscription:\n\n    my_client.subscribe_public(\n        # Insert params and req_id as described in the docs\n        params = {\n            'channel': 'ticker',\n            'snapshot': True,\n            'symbol': ['BTC/USD', 'XRP/USD'],\n        },\n        req_id = 1234567890,\n        callback = my_handler\n    )\n\n    time.sleep(3)\n\n    # Sample private-data subscription:\n\n    my_client.subscribe_private(\n        # Insert params and req_id as described in the docs\n        params = {\n            'channel': 'executions',\n            'snapshot': True,\n            'snapshot_trades': True,\n            'order_status': True,\n            'ratecounter': True,\n            'token': my_websockets_token\n        },\n        req_id = 1234567891,\n        callback = my_handler\n    )\n\n## Compatibility\n\nThis code has been tested on Python 3.7.\n\n## Contributing\n\nPull requests are not monitored and likely will be ignored.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Sample Kraken WebSockets client V2",
    "version": "0.0.2",
    "project_urls": null,
    "split_keywords": [
        "kraken",
        "websockets",
        "v2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f90df5797e2e5e7fdb584598dad1523408497573abe4f05d84dcff3d2ac4332d",
                "md5": "9a6f2dc7717165f4e4e599c677be1b14",
                "sha256": "a9e24a8aa793dfb834b9050487324b26a7bde7b4d7e88bcfaee86d3fbc31f081"
            },
            "downloads": -1,
            "filename": "kraken_wsclient_v2-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9a6f2dc7717165f4e4e599c677be1b14",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 4936,
            "upload_time": "2023-10-03T17:14:22",
            "upload_time_iso_8601": "2023-10-03T17:14:22.226659Z",
            "url": "https://files.pythonhosted.org/packages/f9/0d/f5797e2e5e7fdb584598dad1523408497573abe4f05d84dcff3d2ac4332d/kraken_wsclient_v2-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "effca2779625c4107f756cb831a84a9f625b03fdd6b126d751f4d19b69b3c2d9",
                "md5": "1116876e2825623dd658d44ec07b6249",
                "sha256": "770095818926bc9f0ad28774a73b98b486c31e7a19334070e615866741430491"
            },
            "downloads": -1,
            "filename": "kraken-wsclient-v2-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1116876e2825623dd658d44ec07b6249",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 4582,
            "upload_time": "2023-10-03T17:14:24",
            "upload_time_iso_8601": "2023-10-03T17:14:24.605330Z",
            "url": "https://files.pythonhosted.org/packages/ef/fc/a2779625c4107f756cb831a84a9f625b03fdd6b126d751f4d19b69b3c2d9/kraken-wsclient-v2-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-03 17:14:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "kraken-wsclient-v2"
}
        
Elapsed time: 0.14357s