从CoinMarketCap获取历史加密资产数据

cryptoassetdata的Python项目详细描述


releasepypilicense

CoinMarketCap获取历史加密资产市场数据的python模块。 为了减少流量,缓存了提取的数据。此外,为了提高性能,加载所需的页面是线程化的。返回日期为索引的pandas数据帧。由于符号not是唯一的,因此使用website slug符号。

文档

requirements.txt 其他依赖项的文件:

安装

PIP安装:

$ pip install cryptoassetdata

从源安装:

$ git clone https://github.com/linuskohl/cryptoassetdata
$ pip install -r requirements.txt
$ python setup.py install

使用量

绘制以太坊开放数据的示例代码

importcryptoassetdataimportmatplotlib.pyplotaspltdefavailable_assets():# As Symbols are not unique, the website slugs are used.# Get a list of available crypt assetsprint(cryptoassetdata.get_slugs())defplot_ethereum_price():# get_historic_data takes an array containing asset slugs, start and end date of the data.# fill_na specifies if the DataFrame contains only dates the assets were traded, or every date# in the specified date range. A dictionary containing a DataFrame for every is returned.data=cryptoassetdata.get_historic_data(["ethereum"],"01/01/2017","12/31/2017",fill_na=True)ethereum=data['ethereum'].Open# Get open data from Ethereumethereum.plot()plt.show()# Display plot

变更日志

请参阅CHANGES.txt获取列表 所有的变化。

许可证

该项目是根据gplv3许可证授权的。有关详细信息,请参见LICENSE.txt

软件包作者

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何将字符串转换为自定义对象   java如何从socket方法获取数据?   Java中的soap读取回车和新行   java在单击时替换图像   java推荐的使用RXJava执行异步任务的方法   java MySql连接器JDBC驱动程序不支持连接池吗?   java将活动堆栈清理到顶部   java计数用户输入的数量   java从webservice下载大文件导致应用程序性能问题   JavaLocalDate。EPOCH不可用   java如何在使用Selenium等待一定时间后,在页面无法加载(get(url))时自动刷新页面   java Calendar setLenient方法不允许检查年份字段的健全性   java Eclipse和intelliJ 安卓 SDK问题   java为什么我可以在没有super关键字的情况下调用父方法?   java iText的PDF格式不好