Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.

jaapz/CryptsyPythonAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptsyPythonAPI

API for Cryptsy.com Exchange utilizing completely built-in functions and utilities of Python 2.7.

Note: the next version of this API wrapper will introduce A LOT of API changes so be warned, here be dragons.

Dependency Status Build Status PyPI Version Coverage Status

Author's Note

This API wrapper is a fork of ScriptProdigy's CryptsyPythonAPI.

Example Usage

Create buy order for dgc, market id 26, then cancels all orders you have for dgc

from Cryptsy import Api
exchange = Api('KEY HERE', 'SECRET HERE')
print(exchange.buy(26, 100, 0.00000001))       # Buy 100 dgc at .00000001 each
print(exchange.cancel_all_market_orders(26))   # Cancels all orders in market 26, dgc

Changelog

Version 0.2:

  • moved from camelCase names to python_style names
  • added new methods: buy, sell, my_transfers, wallet_status, make_withdrawal
  • started implementing tests
  • nonce is now in milliseconds instead of seconds, to support multiple calls per second.

Todo

Some things that I intend to add in future versions:

  • MOAR TESTS
  • sphinx reference generation
  • error handling
  • add some unofficial api endpoints because the official ones may suck
  • add travis ci builds

Running the tests

If you want to run the tests, first create a virtualenv and install all requirements.

virtualenv .env
. .env/bin/activate
pip install -r requirements.txt

Then, using pytest, run the tests:

py.test test_cryptsy.py

Or with coverage reports:

py.test --cov Cryptsy.py test_cryptsy.py

Development

Development is done in the obviously named develop branch. If you want to contribute, please do your commits in that branch so merging them isn't a pain.

Donate

Support development by tipping me a beer (because programming with beer is inherently better than programming without)!

Support via Gittip

License

This piece of software is licensed under the GPL2 license, see license.

About

API for Cryptsy.com Exchange

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%