Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

# CaVirtex Python SDK This project is a thin wrapper on top of the CaVirtex API allows for easy integration to the API in the python programming language. ## To Do - [x] public api - [x] trading api - [ ] merchant api I am currently unsure what the merchant API looks like, or how much use it would be supporting it here. ## Installation **Note :** This is not yet the case. Please clone and install via `pip install .` from within the clone, **for now**. This library should be pushed to PyPi very soon. ``` $ pip install cavirtex-sdk ``` ## Documentation Assume all of the following documentation begins with : ```python >>> import cavirtex as cvx ``` ### Public #### `cavirtex.orderbook` ```python >>> orders = cvx.orderbook() ``` The number of days back to run may also be included ```python >>> orders = cvx.orderbook(days=10) # retrieves the previous 10 days of orders ``` or a date range may be specified using python date objects ```python >>> import datetime >>> orders = cvx.orderbook( ... start=datetime.date(year=2014, month=03, day=10) ... end=datetime.date(year=2014, month=03, day=20)) ``` #### `cavirtex.tradebook` #### `cavirtex.ticker` ### Private All private API requests are based around a user object. The user object is created with the token and secret : ```python >>> user = cvx.User(token, secret) ``` The user may then be queried for the following : #### `cavirtex.User.balance` **Returns :** ```javascript { BTC: ..., CAD: ..., LTC: ... } ``` #### `cavirtex.User.transactions` #### `cavirtex.User.trades` #### `cavirtex.User.orders` **Note :** The following methods are not covered by tests. #### `cavirtex.User.create_order` #### `cavirtex.User.cancel_order` #### `cavirtex.User.withdraw` ## Authors - Dawson Reid (dreid93@gmail.com)

Project Description

UNKNOWN

Release History

Release History

This version
History Node

0.2.00

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cavirtex-sdk-0.2.00.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Sep 12, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting