Skip to main content

Python client library for Capitalist API

Project description


Build Status Coverage Status Documentation Status Latest PyPI version

Python client library for Capitalist API.


PyCapitalist can be obtained with pip:

$ pip install py-capitalist

Usage example

>>> from capitalist import CapitalistClient
>>> capitalist = CapitalistClient(username='user', password='pass')
>>> capitalist.currency_rates()
{'code': 0,
 'data': {'rates': {'buy': [{'amount': 1.15,
     'amountCur': 'USD',
     'target': 'EUR'},
    {'amount': 3874.15, 'amountCur': 'USD', 'target': 'BTC'},
    {'amount': 3262.95, 'amountCur': 'EUR', 'target': 'BTC'},
    {'amount': 228094.87, 'amountCur': 'RUR', 'target': 'BTC'},
    {'amount': 57.32, 'amountCur': 'RUR', 'target': 'USD'},
    {'amount': 67.52, 'amountCur': 'RUR', 'target': 'EUR'}],
   'sell': [{'amount': 1.26, 'amountCur': 'USD', 'target': 'EUR'},
    {'amount': 4070.33, 'amountCur': 'USD', 'target': 'BTC'},
    {'amount': 3428.17, 'amountCur': 'EUR', 'target': 'BTC'},
    {'amount': 239808.15, 'amountCur': 'RUR', 'target': 'BTC'},
    {'amount': 59.11, 'amountCur': 'RUR', 'target': 'USD'},
    {'amount': 70.94, 'amountCur': 'RUR', 'target': 'EUR'}]}},
 'message': ''}


You can view the documentation online at:

Or you can look at the docs/ directory in the repository.

Python support

PyCapitalist supports Python 2.7, 3.3, 3.4, 3.5, 3.6.

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Source Distribution

py-capitalist-0.1.tar.gz (3.2 kB view hashes)

Uploaded source

Built Distribution

py_capitalist-0.1-py2.py3-none-any.whl (5.2 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page