Skip to content

Commit

Permalink
fix examples, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
s4w3d0ff committed May 30, 2019
1 parent aa83aeb commit 32e7f21
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/dictTicker.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/mongoTicker.py
Original file line number Diff line number Diff line change
@@ -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']
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket/stopLimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 32e7f21

Please sign in to comment.