Python interface for [CoinTracking.info API](https://cointracking.info/api/api.php).
I am not associated to cointracking.info -- use at your own risk!
# Requirements:
* requests
# Install
`python setup.py install`
`pip install python-ctapi`
# How to Use
This is an example about how you can use the library
```
#!/usr/bin/env python2
from ctapi import CTAPI
api_key = <YourAPIKey>
api_secret = <YourAPISecret>
# api = CTAPI(api_key, api_secret, debug=True)
api = CTAPI(api_key, api_secret)
trades = api.getTrades()
if trades['success']:
for t in trades['result']:
print trades['result'][t]
else:
print "got no orders"
print api.getBalance()
print api.getHistoricalSummary()
print api.getHistoricalCurrency()
print api.getGroupedBalance()
print api.getGains()
```
# Running Tests
**be aware of the API requests limit of 20 req/h**
`venv/bin/python -m unittest -v ctapi.test.ctapi_tests`
# Contribute
Do you have an idea or found a bug in python-ctapi? Please file an issue and make a PR! :)
## Support Me
If you like the API and wanna support its developer, use the following referral link when registering at cointracking: https://cointracking.info?ref=T161519
Metadata
Release files for python-ctapi 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-ctapi-0.3.0.tar.gz | 3.6 kB | Without provenance | Details for python-ctapi-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_ctapi-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for python_ctapi-0.3.0-py2.py3-none-any.whl |
Total release size: 9.2 kB
Release files / python-ctapi-0.3.0.tar.gz
| Download URL | python-ctapi-0.3.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aee3599feceeef637b34f8c06a38a1dfbbf4418333bda6d234788a2575b2573
|
|
BLAKE2b-256 checksum How to use checksums |
8a69474410c20e11bf5b4a0ed7b22bfffc4dc97e4bcdd7ca0427afbd61607ba5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_ctapi-0.3.0-py2.py3-none-any.whl
| Download URL | python_ctapi-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
398ffc258c7983fc25885aad86fa6fc1f0780235f0abc86aa3667e70a905f1f9
|
|
BLAKE2b-256 checksum How to use checksums |
b154c572a258f5b5b8a5f6b366f021c5cf415903213c7a306edfef7b8fd73806
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-ctapi 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.