Skip to content

degconnect/cryptopia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptopia

Python API for Cryptopia(https://www.cryptopia.co.nz/)

Not ready for python 3.4 yet

More Info

Basic Public Setup (no API Key/Secret):

from cryptopia import Cryptopia

crypto = Cryptopia()

currencies, err = crypto.get_currencies()
if err is None:
    for coin in currencies: 
        print(coin)

Basic Private Setup(with API Key/Secret)

import os

from cryptopia import Cryptopia

CRYPTOPIA_API_KEY = os.environ.get('CRYPTOPIA_API_KEY')
CRYPTOPIA_API_SECRET = os.environ.get('CRYPTOPIA_API_SECRET')

crypto = Cryptopia(CRYPTOPIA_API_KEY, CRYPTOPIA_API_SECRET)

deposits, err = crypto.get_transactions('Deposit')
for item in deposits:
    print(item)
    

Donations

You can support this project donating to degconnect:

BTC : 18TAw57LUveA5CoqMfkWheNGXiDpqRcwmn

ETH: 0x23efacc1634d8b12a9e5acee330b1f28b1a3068c

LTC: Lcw9cWpW72E18m2LJRe8YG2Pk6AC2K5FN4

ZEC: t1QZVBhVviLwr1D9qpk9U6pSmLrEFNcU1Wq