为Python3.6交易API包装器+
trading-api-wrappers的Python项目详细描述
交易API包装
Python 3.6+ clients for popular Crypto Exchanges and other useful services.
Disclaimer: Still at an early stage of development. Rapidly evolving APIs.
支持的API:
安装
要求
- python 3.6或3.7
要安装,只需使用pipenv
(当然,也可以使用pip
):
$ pipenv install trading-api-wrappers
开发设置
$ pipenv install -d
将.env.example
重命名为.env
,并配置您的凭据(用于测试)
用法
布达
公共API:
fromtrading_api_wrappersimportBudaclient=Buda.Public()
经过身份验证的API:
fromtrading_api_wrappersimportBudaclient=Buda.Auth(API_KEY,API_SECRET)
布达API文件: https://api.buda.com
比特芬克斯
公共API:
fromtrading_api_wrappersimportBitfinexclient=Bitfinex.Public()
经过身份验证的API:
fromtrading_api_wrappersimportBitfinexclient=Bitfinex.Auth(API_KEY,API_SECRET)
Bitfinex API文件: https://bitfinex.readme.io/v1/docs
比特戳
公共API:
fromtrading_api_wrappersimportBitstampclient=Bitstamp.Public()
经过身份验证的API:
fromtrading_api_wrappersimportBitstampclient=Bitstamp.Auth(API_KEY,API_SECRET,CUSTOMER_ID)
比特戳API文档: https://www.bitstamp.net/api
克拉肯
公共API:
fromtrading_api_wrappersimportKrakenclient=Kraken.Public()
经过身份验证的API:
fromtrading_api_wrappersimportKrakenclient=Kraken.Auth(API_KEY,API_SECRET)
克拉肯API文件: https://www.kraken.com/help/api
Coindesk
fromtrading_api_wrappersimportCoinDeskclient=CoinDesk()
Coindesk API文档: https://www.coindesk.com/api
共同市场
fromtrading_api_wrappersimportCoinMarketCapclient=CoinMarketCap()
CoinMarketCap API文档: https://coinmarketcap.com/api
cryptomkt
公共API:
fromtrading_api_wrappersimportCryptoMKTclient=CryptoMKT.Public()
经过身份验证的API:
fromtrading_api_wrappersimportCryptoMKTclient=CryptoMKT.Auth(API_KEY,API_SECRET)
Cryptomkt API文档: https://developers.cryptomkt.com
开放交换率
fromtrading_api_wrappersimportOXRclient=OXR(APP_ID)
OpenExchangeRates API文档: https://docs.openexchangerates.org
电流层
fromtrading_api_wrappersimportCurrencyLayerclient=CurrencyLayer(ACCESS_KEY)
CurrencyLayer API文档: https://currencylayer.com/documentation
许可证
麻省理工学院的执照
版权所有©2017 Felipe AránguizSebastián Aránguiz
捐款
比特币:
186kDw9LFcPvup17YSrWZbFqdZzELUFad3
乙醚:
0xeF38fA6c0a37A1BdB60CADd7f6e71F351F6d2583