Skip to content

Poloniex API wrapper for Python 2.7 & 3

License

Notifications You must be signed in to change notification settings

viadata/python-poloniex

pythonlicencereleaserelease build
mastermaster builddevdev build
Inspired by this wrapper written by 'oipminer'

I (s4w3d0ff) am not affiliated with, nor paid by Poloniex. I have been an active trader there since 2014 and love python. 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 this git repository. If you wish to contribute to this repository please read CONTRIBUTING.md. All and any help is appreciated.

Install latest release:

Python 2:

pip install https://github.com/s4w3d0ff/python-poloniex/archive/v0.4.6.zip 

Python 3:

pip3 install https://github.com/s4w3d0ff/python-poloniex/archive/v0.4.6.zip 

Usage:

See the wiki or help(poloniex) for more.

Basic Public Setup (no api Key/Secret):

frompolonieximportPoloniexpolo=Poloniex()

Ticker

print(polo('returnTicker')['BTC_ETH']) # orprint(polo.returnTicker()['BTC_ETH'])

Public trade history:

print(polo.marketTradeHist('BTC_ETH'))

Basic Private Setup (Api key/secret required):

importpoloniexpolo=poloniex.Poloniex('your-Api-Key-Here-xxxx','yourSecretKeyHere123456789') # orpolo.key='your-Api-Key-Here-xxxx'polo.secret='yourSecretKeyHere123456789'

Get all your balances

balance=polo.returnBalances() print("I have %s ETH!"%balance['ETH']) # orbalance=polo('returnBalances') print("I have %s BTC!"%balance['BTC'])

Private trade history:

print(polo.returnTradeHistory('BTC_ETH'))

Examples of WAMP applications using the websocket push API can be found here.

About

Poloniex API wrapper for Python 2.7 & 3

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python100.0%