获取比特币的历史价格数据

访客 阅读:19 2024-07-03 16:39:22 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

我想做我自己的比特币图表。

I want to be my own bitcoin chart.

有任何可靠的方式来检索比特币的历史价格数据吗?有什么方法可以使用REST来检索它吗?我看到Bitfloor支持REST,但它没有返回任何有用的值,而是一个“内部服务器错误”(“internal server error”)。

Is there any reliable way to retrieve the historical price data of Bitcoin? Is there any way to use REST to retrieve it? I saw Bitfloor supporting REST, but it did not return any useful value but was an “internal server error” (#8220; international server & #8221).

我也看到了Bitcoincharts,但我认为它仅限于2000个数据值。

I saw Bitcoincharts, too, but I think it's only 2,000 data values.

有什么好的办法吗?

What's the good idea?

 

实际上,您可以通过CSV格式从Bitcoincharts获取比特币交易历史记录:http://api.bitcoincharts.com/v1/csv/, 数据示例:

In fact, you can obtain bitcoin transaction history records from Bitcoincharts in CSV format: , for example:

比特币历史数据

bitcoin historical data

它每天对活跃的交易进行2次更新,并且也有一些不活跃的交易。

It updates active transactions twice a day, and there are also some inactive transactions.

编辑:由于CSV中没有列标题,这里补充一下:第1列)交易时间戳,第2列)价格,第3列)交易量

Editor: Since there are no headings in the CSV, add: (column 1) time stamp for transactions, (column 2) price, (column 3) volume of transactions

 

您可以在这里找到很多历史数据:https://www.quandl.com/data/BCHARTS-Bitcoin-Charts-Exchange-Rate-Data

You can find a lot of historical data here:

比特币历史数据示例

</p>
<p> </p>

<p>如果您希望在更长时间内以更高的分辨率从<a href=websocket收集bitstamp交易数据,您可以使用下面的脚本log_bitstamp_trades.py。

If you want to collect bitstamp transaction data from , you can use the following script log_bitstamp_trades.py.

该脚本使用python websocket-client和pusher_client_python库,如果没有的话请安装它们。

The script uses python websocket-clit and pusher_clit_python library, and if not, please install them.


和logrotate文件配置

andlogrotate files configuration


那么你可以在后台运行它

Then you can run it backstage.


 

Bitstamp的实时比特币数据可以在this link的中公开获得。千万别在十分钟内尝试访问它600次以上,否则他们会阻止你的IP(也没有这样做的必要, read more here)。以下是获取实时数据的方法:

Bitstamp's real-time bitcoin data are publicly available in . Do not try to visit it more than 600 times within 10 minutes, otherwise they will stop your IP (there is no need to do so) ( read>more/a>).


从这里,您可以解析并将其存储在数据库中(或者直接插入),然后访问它。

From here, you can interpret and store it in a database (or directly insert it) and then access it.

对于历史数据(取决于数据库 – 如果这是您的方法),请从大多数数据库允许使用的普通文件插入(例如,通过,您可以从文件执行)。

For historical data (depending on the database & #8211; if this is your method), insert from the normal files allowed in most databases (for example, through which you can execute files).

 

文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明 网址:https://netpsp.com/?id=69719

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
可以去百度分享获取分享代码输入这里。
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
关注我们

若遇到问题,加微信客服---清歌

搜索
排行榜
扫一扫,加我为微信好友加我为微信好友