[PYTHON] Get coincheck virtual currency information with API ♪

Public API provided by coincheck to get information for virtual currency, which is a hot topic recently. I made a tool to save as csv format.

https://gist.github.com/namakemono/aba4bae86aa89fc56b35f9ecfa9cd934

I hope it helps.

Information to save Public API data

--Ticker

How to use

python coincheck.py --save_to_dir /tmp

Saved result

==> 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

Recommended Posts

Get coincheck virtual currency information with API ♪
Get information with zabbix api
[Python] Get Python package information with PyPI API
[Python] Get user information and article information with Qiita API
Get Alembic information with Python
Get ranking with Rakuten API
YOLP Get map information XML file with Yahoo! Static Map API
Get video file information with ffmpeg-python
Get reviews with python googlemap api
[python] Read information with Redmine API
Get weather information with Python & scraping
Get the trading price of virtual currency and create a chart with API of Zaif exchange
Collecting information from Twitter with Python (Twitter API)
Get property information by scraping with python
Get BITCOIN LTP information with Raspberry PI
Get holidays with the Google Calendar API
I tried to get the movie information of TMDb API with Python
Get the latest AMI information with the AWS CLI
Golang api get
Use the MediaWiki API to get Wiki information
Get stock price data with Quandl API [Python]
Get CPU information of Raspberry Pi with Python
Get Gmail subject and body with Python and Gmail API
Python script to get note information with REAPER
[Rails] How to get location information using Geolocation API
[First API] Try to get Qiita articles with Python
Get schedule from Garoon SOAP API with Python + Zeep
Get comments and subscribers with the YouTube Data API
Get tweets with arbitrary keywords using Twitter's Streaming API
[Linux] Get Linux resource information
[google-oauth] Get user information
Extrude with Fusion360 API
Get started with MicroPython
Get Tweets with Tweepy
Get date with python
Get started with Mezzanine
Virtual environment with Python 3.6
Streamline information gathering with the Twitter API and Slack bots
Get stock articles of infrastructure engineer yuta with Qiita API
Get data from analytics API with Google API Client for python
[Python x Zapier] Get alert information and notify with Slack
I tried to get various information from the codeforces API
Try Juniper JUNOS PyEz (python library) Memo 2 ~ Get information with PyEz ~
Get Japanese stock price information from yahoo finance with pandas
Call github api in python to get pull request information
Python: Extract file information from shared drive with Google Drive API