py-capitalist 0.1

Creator: bradpython12

Last updated:

0 purchases

py-capitalist 0.1 Image
py-capitalist 0.1 Images
Add to Cart

Description:

pycapitalist 0.1

PyCapitalist




Python client library for Capitalist API.


Installation
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': ''}


Documentation
You can view the documentation online at:

https://py-capitalist.readthedocs.io/en/stable/

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.