Skip to content

Python wrapper for cryptopia API which kicks ass and chews bubblegum

License

Notifications You must be signed in to change notification settings

Autopilot9369/cryptopia-api-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptopia python API by CC Tech

The Bot Guy ([email protected])

Overview

This wrapper provides a friendly way to call Cryptopia API from a Python 2.7 script. Requires requests 2.8.1

Usage

Just import it and use it.

from cryptopia_api import Api

#later...
api_wrapper = Api(MY_PUBLIC_KEY, MY_SECRET_KEY)

#call a request to the api, like balance in BTC...
balance, error = api_wrapper.get_balance('BTC')
if error is not None:
    #handle error
    print 'ERROR: %s' % error
else:
    #ok
    print 'Request successfull. Balance in BTC = %f' % balance

Check cryptopia API docs for the parameters of each call: a more detailed wiki will be added here soon!

Donate

Feel free to donate:

METHOD ADDRESS
BTC 1DVgmv6jkUiGrnuEv1swdGRyhQsZjX9MT3
XVG DFstPiWFXjX8UCyUCxfeVpk6JkgaLBSNvS
ETH 0x2fe7bd8a41e91e9284aada0055dbb15ecececf02
USDT 18obCEVmbT6MHXDcPoFwnUuCmkttLbK5Xo

About

Python wrapper for cryptopia API which kicks ass and chews bubblegum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%