8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

coincheckの仮想通貨情報をAPIで取得♪

Posted at

最近何かと話題の仮想通貨用情報を取得するcoincheck提供のPublic API
csv形式として保存するツールを作りました.

役立ちそうでしたら幸いです.

保存する情報Public APIデータ

  • ティッカー
  • 取引履歴
  • 板情報(売買注文)
  • 販売レート(各仮想通貨の金額)

使い方

python coincheck.py --save_to_dir /tmp

保存結果

==> coincheck_order_books_2017-05-26.csv <==
datetime,order_type,price,amount
2017-05-26 09:37:00,bids,302609.0,1.7
2017-05-26 09:37:00,bids,302608.0,0.91896872
2017-05-26 09:37:00,bids,302607.0,1.0
2017-05-26 09:37:00,bids,302600.0,1.0
2017-05-26 09:37:00,bids,302365.0,0.27724783
2017-05-26 09:37:00,bids,302000.0,6.00910455
2017-05-26 09:37:00,bids,301810.0,4.25611537
2017-05-26 09:37:00,bids,301800.0,1.0
2017-05-26 09:37:00,bids,301767.0,0.05847437

==> coincheck_rate_2017-05-26.csv <==
datetime,pair,rate
2017-05-26 08:49:01,btc_jpy,302587.5
2017-05-26 08:49:01,eth_jpy,22678.60935638
2017-05-26 08:49:01,etc_jpy,2061.2865675
2017-05-26 08:49:01,dao_jpy,226.78630538
2017-05-26 08:49:01,lsk_jpy,170.17823588
2017-05-26 08:49:01,fct_jpy,1807.948209
2017-05-26 08:49:01,xmr_jpy,5275.7583045
2017-05-26 08:49:01,rep_jpy,3206.00533875
2017-05-26 08:49:01,xrp_jpy,35.73558375

==> coincheck_ticker_2017-05-26.csv <==
datetime,last,bid,ask,high,low,volume,timestamp
2017-05-26 09:10:00,301814,302702,302996,335973,230255,27238.46130438,1495789795
2017-05-26 09:13:00,302460,302314,302460,335973,230255,27236.96192468,1495789977
2017-05-26 09:16:00,302204,302003,302204,335973,230255,27239.3630376,1495790156
2017-05-26 09:19:00,302370,302153,302363,335973,230255,27246.89351123,1495790335
2017-05-26 09:22:00,302811,302679,302807,335973,230255,27261.04811664,1495790515
2017-05-26 09:25:00,302779,303167,303238,335973,230255,27300.46158307,1495790697
2017-05-26 09:28:02,303518,303518,303637,335973,230255,27304.2766997,1495790875
2017-05-26 09:31:02,303426,303159,303424,335973,230255,27331.07795757,1495791058
2017-05-26 09:34:02,303591,303419,303685,335973,230255,27320.81268638,1495791234

==> coincheck_trades_2017-05-26.csv <==
id,datetime,amount,rate,order_type,created_at
5918218,2017-05-26 09:37:00,0.0002946,302959,buy,2017-05-26T09:36:54.000Z
5918217,2017-05-26 09:37:00,0.0377054,302765,buy,2017-05-26T09:36:54.000Z
5918216,2017-05-26 09:37:00,0.0000946,302858,sell,2017-05-26T09:36:54.000Z
5918215,2017-05-26 09:37:00,0.0399054,302858,sell,2017-05-26T09:36:52.000Z
5918214,2017-05-26 09:37:00,0.0000946,302859,sell,2017-05-26T09:36:52.000Z
5918213,2017-05-26 09:37:00,0.0099054,302859,sell,2017-05-26T09:36:52.000Z
5918212,2017-05-26 09:37:00,0.0000946,302860,sell,2017-05-26T09:36:52.000Z
5918211,2017-05-26 09:37:00,0.0218,302860,sell,2017-05-26T09:36:51.000Z
5918210,2017-05-26 09:37:00,0.05,302860,sell,2017-05-26T09:36:51.000Z
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?