AkShare-加密货币-历史数据



以下所有数据都可以通过安装基于 Python 的开源金融数据工具 AkShare 来获取:
- 文档地址: https://akshare.readthedocs.io
- Github地址: https://github.com/jindaxiang/akshare
作者寄语
加密货币(英文:Cryptocurrency,常常用复数Cryptocurrencies,又译密码货币,密码学货币)是一种使用密码学原理来确保交易安全及控制交易单位创造的交易媒介。 加密货币是数字货币(或称虚拟货币)的一种 。比特币在2009年成为第一个去中心化的加密货币,这之后加密货币一词多指此类设计。 自此之后数种类似的加密货币被创造,它们通常被称作altcoins。 加密货币基于去中心化的共识机制 ,与依赖中心化监管体系的银行金融系统相对。
更新接口
- “crypto_hist” # 加密货币-加密货币
- “crypto_name_map” # 加密货币-货币名称
加密货币
加密货币
接口: crypto_hist
目标地址: https://cn.investing.com/crypto/ethereum/historical-data
描述: 获取加密货币的历史数据主要是日频, 周频和月频的数据
限量: 单次返回指定加密货币, 频率和时间周期的数据
输入参数
ble data–draft-node=”block” data-draft-type=”table” data-size=”normal” data-row-style=”normal”>输出参数
ble data-draft-node=”block” data-draft-type=”table” data-size=”normal” data-row-style=”normal”>接口示例
import akshare as ak
crypto_hist_df = ak.crypto_hist(symbol="瑞波币", period="每日", start_date="20151020", end_date="20201023")
print(crypto_hist_df)
数据示例
收盘 开盘 高 低 交易量 涨跌幅
日期
2020-10-23 0.25645 0.25701 0.25917 0.25485 1.070000e+09 -0.0028
2020-10-22 0.25718 0.25105 0.26354 0.25083 1.100000e+09 0.0245
2020-10-21 0.25102 0.24324 0.25555 0.24261 1.120000e+09 0.0320
2020-10-20 0.24324 0.24564 0.25021 0.24155 1.040000e+09 -0.0095
2020-10-19 0.24558 0.24216 0.24942 0.24013 1.080000e+09 0.0134
... ... ... ... ... ...
2015-10-24 0.00460 0.00460 0.00550 0.00460 0.000000e+00 0.0000
2015-10-23 0.00460 0.00450 0.00465 0.00450 0.000000e+00 0.0240
2015-10-22 0.00449 0.00460 0.00550 0.00449 8.300000e+02 -0.0235
2015-10-21 0.00460 0.00480 0.00480 0.00460 9.100000e+02 -0.0417
2015-10-20 0.00480 0.00508 0.00508 0.00453 9.000000e+01 -0.0553