All Projects → slazarov → python-bittrex-websocket-aio

slazarov / python-bittrex-websocket-aio

Licence: MIT license
Python websocket for Bittrex (async).

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-bittrex-websocket-aio

Python Bittrex Websocket
Python websocket for Bittrex (non async).
Stars: ✭ 104 (+197.14%)
Mutual labels:  websocket-client, bittrex
bittrex
💸 Haskell bindings to the Bittrex cryptocurrency exchange
Stars: ✭ 24 (-31.43%)
Mutual labels:  bittrex, bittrex-exchange
coinaly
🚀 Fast and easy to use mobile trade interface for cryptocurrencies. Track your trades to the moon and beyond. Currently only for Bittrex.
Stars: ✭ 32 (-8.57%)
Mutual labels:  bittrex, bittrex-exchange
guncontrol
🔔 GunControl • Custom *nix launcher for GunBot
Stars: ✭ 16 (-54.29%)
Mutual labels:  bittrex
Rockets
REST and websockets C++ library
Stars: ✭ 39 (+11.43%)
Mutual labels:  websocket-client
easypump
EasyPump makes the coin pump easy and profitable
Stars: ✭ 14 (-60%)
Mutual labels:  bittrex
TradingViewTools
Some scripts to automate things related to TradingView
Stars: ✭ 33 (-5.71%)
Mutual labels:  bittrex
obs-websocket-js
Consumes https://github.com/obsproject/obs-websocket
Stars: ✭ 521 (+1388.57%)
Mutual labels:  websocket-client
customer-service
客服IM服务端,基于t-io
Stars: ✭ 30 (-14.29%)
Mutual labels:  aio
racket-rfc6455
RFC 6455 WebSockets support for Racket.
Stars: ✭ 32 (-8.57%)
Mutual labels:  websocket-client
gdax-orderbook-hpp
An in-memory copy of the order book on the GDAX cryptocurrency exchange, updated in real time via WebSocket feed, exposed in a thread-safe and lock-free data structure.
Stars: ✭ 38 (+8.57%)
Mutual labels:  websocket-client
TeslaPy
A Python module to use the Tesla Motors Owner API
Stars: ✭ 216 (+517.14%)
Mutual labels:  websocket-client
phoenix-channel-client
A Phoenix Channels client library for Elixir.
Stars: ✭ 20 (-42.86%)
Mutual labels:  websocket-client
tornado-websocket-client-example
Websocket client application example built on top of Tornado.
Stars: ✭ 34 (-2.86%)
Mutual labels:  websocket-client
libcryptomarket
Powerful cryptocurrency market analysis toolkit
Stars: ✭ 43 (+22.86%)
Mutual labels:  bittrex
Nescience-Indexing-CLI
Nescience Software & Capital Rebalancing Tool
Stars: ✭ 26 (-25.71%)
Mutual labels:  bittrex
caio
Linux AIO c python bindings
Stars: ✭ 36 (+2.86%)
Mutual labels:  aio
bittrex-java-client
Java client for the bittrex.com v1.1 API
Stars: ✭ 30 (-14.29%)
Mutual labels:  bittrex
signalr
SignalR server and client in go
Stars: ✭ 69 (+97.14%)
Mutual labels:  signalr-client
VKRdownloader
Vkrdownloader: All in one Video Downloader - Download videos from facebook twitter youtube tiktok and 1000+ other sites . YouTube downloader , facebook downloader . made by Vijay Kumar
Stars: ✭ 25 (-28.57%)
Mutual labels:  aio

logo bittrex-websocket-aio

pypi-v pypi-pyversions pypi-l pypi-wheel

What is bittrex-websocket-aio?

Python Bittrex WebSocket (PBW) is the first unofficial Python wrapper for the Bittrex Websocket API. It provides users with a simple and easy to use interface to the Bittrex Exchange.

Users can use it to access real-time public data (e.g exchange status, summary ticks and order fills) and account-level data such as order and balance status. The goal of the package is to serve as a foundation block which users can use to build upon their applications. Examples usages can include maintaining live order books, recording trade history, analysing order flow and many more.

The version is built upon asyncio which is Python's standard asynchronous I/O framework.

If you are looking for a non-async version or you are using Python=2.7, then take a look at my other library: bittrex-websocket.


Documentation
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/
Getting started/How-to
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/howto.html
Methods
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/methods.html
Changelog
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/changelog.html#bittrex-websocket-aio

I am constantly working on new features. Make sure you stay up to date by regularly checking the official docs!

Having an issue or a question? Found a bug or perhaps you want to contribute? Open an issue!

Quick Start

pip install bittrex-websocket-aio
#!/usr/bin/python
# /examples/ticker_updates.py

# Sample script showing how subscribe_to_exchange_deltas() works.

# Overview:
# ---------
# 1) Creates a custom ticker_updates_container dict.
# 2) Subscribes to N tickers and starts receiving market data.
# 3) When information is received, checks if the ticker is
#    in ticker_updates_container and adds it if not.
# 4) Disconnects when it has data information for each ticker.

from bittrex_websocket.websocket_client import BittrexSocket
from time import sleep

def main():
    class MySocket(BittrexSocket):

        async def on_public(self, msg):
            name = msg['M']
            if name not in ticker_updates_container:
                ticker_updates_container[name] = msg
                print('Just received market update for {}.'.format(name))

    # Create container
    ticker_updates_container = {}
    # Create the socket instance
    ws = MySocket()
    # Enable logging
    ws.enable_log()
    # Define tickers
    tickers = ['BTC-ETH', 'BTC-NEO', 'BTC-ZEC', 'ETH-NEO', 'ETH-ZEC']
    # Subscribe to ticker information
    for ticker in tickers:
        sleep(0.01)
        ws.subscribe_to_exchange_deltas([ticker])

    # Users can also subscribe without introducing delays during invoking but
    # it is the recommended way when you are subscribing to a large list of tickers.
    # ws.subscribe_to_exchange_deltas(tickers)

    while len(ticker_updates_container) < len(tickers):
        sleep(1)
    else:
        print('We have received updates for all tickers. Closing...')
        ws.disconnect()
        sleep(10)

if __name__ == "__main__":
    main()

Disclaimer

I am not associated with Bittrex. Use the library at your own risk, I don't bear any responsibility if you end up losing your money.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].