diff --git a/README.md b/README.md index f48bc435..e08b0718 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![python](https://img.shields.io/badge/python-2.7%20%26%203-blue.svg)![licence](https://img.shields.io/badge/licence-GPL%20v2-blue.svg)](https://github.com/s4w3d0ff/python-poloniex/blob/master/LICENSE) [![release](https://img.shields.io/github/release/s4w3d0ff/python-poloniex.svg)![release build](https://travis-ci.org/s4w3d0ff/python-poloniex.svg?branch=v0.5.1)](https://github.com/s4w3d0ff/python-poloniex/releases) +[![python](https://img.shields.io/badge/python-2.7%20%26%203-blue.svg)![licence](https://img.shields.io/badge/licence-GPL%20v2-blue.svg)](https://github.com/s4w3d0ff/python-poloniex/blob/master/LICENSE) [![release](https://img.shields.io/github/release/s4w3d0ff/python-poloniex.svg)![release build](https://travis-ci.org/s4w3d0ff/python-poloniex.svg?branch=v0.5.3)](https://github.com/s4w3d0ff/python-poloniex/releases) [![master](https://img.shields.io/badge/branch-master-blue.svg)![master build](https://api.travis-ci.org/s4w3d0ff/python-poloniex.svg?branch=master)](https://github.com/s4w3d0ff/python-poloniex/tree/master) [![dev](https://img.shields.io/badge/branch-dev-blue.svg)![dev build](https://api.travis-ci.org/s4w3d0ff/python-poloniex.svg?branch=dev)](https://github.com/s4w3d0ff/python-poloniex/tree/dev) Inspired by [this](http://pastebin.com/8fBVpjaj) wrapper written by 'oipminer' > I (s4w3d0ff) am not affiliated with, nor paid by [Poloniex](https://poloniex.com). I found the linked python wrapper on the poloniex support page to be incomplete and buggy so I decided to write this wrapper and create a git repository. If you wish to contribute to the repository please read [CONTRIBUTING.md](https://github.com/s4w3d0ff/python-poloniex/blob/master/CONTRIBUTING.md). All and any help is appreciated. @@ -78,7 +78,7 @@ class MySocket(poloniex.PoloniexSocketed): Triggers whenever we get a ticker message """ print(msg) - + def on_ticker(self, msg): """ Triggers whenever we get a 24hvolume message diff --git a/examples/websocket/dictTicker.py b/examples/websocket/dictTicker.py index 7deb98cd..2222ba25 100644 --- a/examples/websocket/dictTicker.py +++ b/examples/websocket/dictTicker.py @@ -1,6 +1,6 @@ import poloniex -class TickPolo(poloniex.PoloniexSocketed): +class TickPolo(poloniex.Poloniex): def __init__(self, *args, **kwargs): super(TickPolo, self).__init__(*args, **kwargs) # tick holds ticker data diff --git a/examples/websocket/mongoTicker.py b/examples/websocket/mongoTicker.py index 8330c167..dd77d33b 100644 --- a/examples/websocket/mongoTicker.py +++ b/examples/websocket/mongoTicker.py @@ -1,7 +1,7 @@ import poloniex from pymongo import MongoClient # pip install pymongo -class TickPolo(poloniex.PoloniexSocketed): +class TickPolo(poloniex.Poloniex): def __init__(self, *args, **kwargs): super(TickPolo, self).__init__(*args, **kwargs) self.db = MongoClient().poloniex['ticker'] diff --git a/examples/websocket/stopLimit.py b/examples/websocket/stopLimit.py index 44f7415c..34eac7bd 100644 --- a/examples/websocket/stopLimit.py +++ b/examples/websocket/stopLimit.py @@ -41,7 +41,7 @@ def __call__(self): return self.order -class CPolo(poloniex.PoloniexSocketed): +class CPolo(poloniex.Poloniex): def __init__(self, *args, **kwargs): super(CPolo, self).__init__(*args, **kwargs) self.stopOrders = {} diff --git a/setup.py b/setup.py index 614fe799..dbf49954 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ read_md = lambda f: open(f, 'r').read() setup(name='poloniexapi', - version='0.5.2', + version='0.5.3', description='Poloniex API wrapper for Python 2.7 and 3', long_description=read_md('README.md'), long_description_content_type='text/markdown',