CoinMktCap
1.0.0
在CoinMarketCap API周围的非官方Python包装器
PYPI
使用以下命令安装:
pip install CoinMktCap源代码
git clone https://github.com/sarthakkimtani/CoinMktCap.git
cd CoinMktCap
python setup.py install from CoinMktCap import CoinMarketCap
market = CoinMarketCap ( "API_KEY" )
eth = market . cryptocurrency_info ( symbol = "ETH" )
something ( eth . data )传递每个端点所需的参数。参考文档
| 方法 | 定义 | 端点 |
|---|---|---|
| cryptocurrency_map | 所有货币地图 | /加密货币/地图 |
| cryptocurrency_info | 指定货币的信息 | /加密货币/信息/ |
| cryptocurrency_latest_listings | 具有最新市场数据的主动加密货币 | /加密货币/列表/最新 |
| cryptocurrency_historical_listings | 历史UTC日期的加密货币 | /加密货币/列表/历史 |
| cryptocurrency_latest_quotes | 1或更多的加密货币的最新市场报价 | /加密货币/报价/最新 |
| cryptocurrency_historical_quotes | 任何加密货币的历史市场报价 | /加密货币/报价/历史 |
| cryptocurrency_market_pairs | 给定加密货币的主动市场对 | /加密货币/市场对/最新 |
| cryptocurrency_latest_ohlcv | 最新的OHLCV(开放,高,低,关闭,音量) | /加密货币/OHLCV/最新 |
| cryptocurrency_historical_ohlcv | 历史OHLCV(开放,高,低,关闭,音量) | /加密货币/OHLCV/历史 |
| Exchange_map | 所有活动的加密货币交换列表 | /交换/地图 |
| Exchange_info | 一次或多个交流的静态元数据 | /交换/信息 |
| Exchange_latest_listings | 所有加密货币交换的列表 | /交换/列表/最新 |
| Exchange_historical_listings | 任何交换的历史市场报价 | /交换/列表/历史 |
| Exchange_latest_quotes | 1或更多交易所的最新总市场数据 | /交换/报价/最新 |
| Exchange_historical_quotes | 任何交换的历史报价 | /交换/报价/历史 |
| Exchange_market_pairs | 给定交换的市场对 | /交换/市场对/最新 |
| global_metrics_latest | 最新的全球加密货币市场指标 | /全球对象/报价/最新 |
| global_metrics_historical | 历史全球加密货币市场指标 | 全球对象/引号/历史 |
| PRICE_CONVERSION_TOOL | 转换一个加密货币或法定货币的数量 | 工具/价格转换 |
| blockchain_latest | 最新的区块链统计 | 区块链/统计/最新 |
| fiat_map | 所有支持的法定货币的映射 | 法定/地图 |
| key_info | API密钥细节 | 键/信息 |
data ( dict ):将为您提供结果。status ( dict ):成功的呼叫和失败始终包含状态对象。timesamp ( STR ):执行呼叫时在服务器上的当前时间。error_code ( str | none ):如果已经增加了错误,则此属性将为您提供状态错误代码。error_message ( str | none ):如果已经增加了错误,则此属性将提供有关错误的详细信息。 麻省理工学院许可证