cryptowatch client是cryptowatch公共市场rest api的python客户端库
cryptowatch-client的Python项目详细描述
cryptowatch client是用于cryptowatch public market rest api
安装
$ pip install cryptowatch-client
用法
fromcryptowatch_clientimportClientclient=Client(timeout=30)response=client.get_allowance()print(response.status_code,response.json())client.get_allowance()# GET /client.get_assets()# GET /assetsclient.get_assets(asset='btc')# GET /assets/btcclient.get_pairs()# GET /pairsclient.get_pairs(pair='ethbtc')# GET /pairs/ethbtcclient.get_exchanges()# GET /exchangesclient.get_exchanges(exchange='kraken')# GET /exchanges/krakenclient.get_markets()# GET /marketsclient.get_markets(exchange='kraken')# GET /markets/krakenclient.get_markets(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusdclient.get_markets_price(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/priceclient.get_markets_summary(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/summaryclient.get_markets_trades(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/tradesclient.get_markets_trades(exchange='gdax',pair='btcusd',limit=100,since=1481663244)# GET /markets/gdax/btcusd/tradesclient.get_markets_orderbook(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/orderbookclient.get_markets_ohlc(exchange='gdax',pair='btcusd')# GET /markets/gdax/btcusd/ohlcclient.get_markets_ohlc(exchange='gdax',pair='btcusd',before=1481663244,after=1481663244,periods='60,180,108000')# GET /markets/gdax/btcusd/ohlcclient.get_markets_prices()# GET /markets/pricesclient.get_markets_summaries()# GET /markets/summaries
贡献
- 叉开它
- 创建功能分支(git checkout -bmy-new-feature)
- 提交更改(git commit -am 'Add some feature')
- 推到分支(git push origin my-new-feature)
- 创建新的拉取请求