Skip to content

Commit 32e7f21

Browse files
committed
fix examples, bump version
1 parent aa83aeb commit 32e7f21

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![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)
1+
[![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)
22
[![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)
33
Inspired by [this](http://pastebin.com/8fBVpjaj) wrapper written by 'oipminer'
44
> 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):
7878
Triggers whenever we get a ticker message
7979
"""
8080
print(msg)
81-
81+
8282
def on_ticker(self, msg):
8383
"""
8484
Triggers whenever we get a 24hvolume message

examples/websocket/dictTicker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import poloniex
22

3-
class TickPolo(poloniex.PoloniexSocketed):
3+
class TickPolo(poloniex.Poloniex):
44
def __init__(self, *args, **kwargs):
55
super(TickPolo, self).__init__(*args, **kwargs)
66
# tick holds ticker data

examples/websocket/mongoTicker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import poloniex
22
from pymongo import MongoClient # pip install pymongo
33

4-
class TickPolo(poloniex.PoloniexSocketed):
4+
class TickPolo(poloniex.Poloniex):
55
def __init__(self, *args, **kwargs):
66
super(TickPolo, self).__init__(*args, **kwargs)
77
self.db = MongoClient().poloniex['ticker']

examples/websocket/stopLimit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __call__(self):
4141
return self.order
4242

4343

44-
class CPolo(poloniex.PoloniexSocketed):
44+
class CPolo(poloniex.Poloniex):
4545
def __init__(self, *args, **kwargs):
4646
super(CPolo, self).__init__(*args, **kwargs)
4747
self.stopOrders = {}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
read_md = lambda f: open(f, 'r').read()
44

55
setup(name='poloniexapi',
6-
version='0.5.2',
6+
version='0.5.3',
77
description='Poloniex API wrapper for Python 2.7 and 3',
88
long_description=read_md('README.md'),
99
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)