项目作者: psqnt

项目描述 :
Python Rest API wrapper functions for https://coincap.io/
高级语言: Python
项目地址: git://github.com/psqnt/coincap-client.git
创建时间: 2019-10-31T01:50:50Z
项目社区:https://github.com/psqnt/coincap-client

开源协议:The Unlicense

下载


coincap-client

rest api wrapper for hitting the coincap.io api

API Documentation Here:
https://docs.coincap.io/?version=latest

Installation

git clone this

Usage

List of Function calls. Please see api docs for more information

  1. import client
  2. assets = client.get_assets()
  3. btc = client.get_asset('bitcoin')
  4. btc_history = client.get_asset_history('bitcoin')
  5. btc_markets = client.get_asset_markets('bitcoin')
  6. rates = client.get_rates()
  7. btc_rates = client.get_rate('bitcoin')
  8. exchanges = client.get_exchanges()
  9. kraken = client.get_exchange('kraken')
  10. markets = client.get_markets()
  11. btc_usd_candles = client.get_candles('kraken', 'd1', 'bitcoin', 'united-states-dollar')

TODO

[] implement optional args on some api calls
[] json dictionary dump helper function
[] could build out functionality to be a full client, etc