← Winnitude! Search  ·  Reader Mode (1323 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 50 LINKS

GitHub - tehtbl/python-ctapi: Python Interface for CoinTracking.info API

This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Repository navigation

python-ctapi
Public archive

About

Python Interface for CoinTracking.info API

Topics

api cointracking crypto python python-ctapi python-interface

Resources

Readme MIT license Activity

Stars

30 stars

Watchers

2 watching

Forks

11 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


20 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
ctapi ctapi    
.gitignore .gitignore    
LICENSE LICENSE    
README.md README.md    
getMyBalances.py getMyBalances.py    
requirements.txt requirements.txt    
setup.cfg setup.cfg    
setup.py setup.py    

Repository files navigation

python-ctapi

Python interface for CoinTracking.info API .

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

About

Python Interface for CoinTracking.info API

Topics

api cointracking crypto python python-ctapi python-interface

Resources

Readme MIT license Activity

Stars

30 stars

Watchers

2 watching

Forks

11 forks Report repository

Releases

Packages

Used by

Contributors

Languages