Metadata-Version: 2.1
Name: kraken-wsclient-py
Version: 0.0.7
Summary: Sample Kraken WebSockets client
Home-page: http://github.com/krakenfx/kraken-wsclient-py
Author: Kraken
Author-email: engineering@kraken.com
License: MIT
Description: # Kraken WebSockets Client 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-py
        
        ## Sample Usage
        
            from kraken_wsclient_py import kraken_wsclient_py as client
        
            def my_handler(message):
                # Here you can do stuff with the messages
                print(message)
        
            my_client = client.WssClient()
            my_client.start()
        
            # Sample public-data subscription:
        
            my_client.subscribe_public(
                subscription = {
                    'name': 'trade'
                },
                pair = ['XBT/USD', 'XRP/USD'],
                callback = my_handler
            )
        
            # Sample private-data subscription:
        
            my_client.subscribe_private(
                subscription = {
                    'name': 'openOrders',
                    'token': '__WS_TOKEN_HERE__'
                },
                callback = my_handler
            )
        
            # Sample order-entry call:
        
            my_client.request(
                request = {
                    'token': '__WS_TOKEN_HERE__',
                    'event': 'addOrder',
                    'type': 'buy',
                    'ordertype': 'limit',
                    'pair': 'XBT/USD',
                    'price': '9000',
                    'volume': '0.01',
                    'userref': '666'
                },
                callback = my_handler
            )
        
        
        ## Compatibility
        
        This code has been tested on Python 3.7.
        
        ## Contributing
        
        Pull requests are not monitored and likely will be ignored.
        
        
Keywords: kraken websockets
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3
Description-Content-Type: text/markdown
