PythonでCBOEのデータをウェブスクレイピングします。CBOEとはシカゴ・オプション取引所のことでCBOE VOLATILITY INDEX(VIX指数)で有名です。Geminiで上場されているビットコインやイーサリアムもデータとして取得できます。
- import pandas as pd
- url =’http://www.cboe.com/delayedquote/advanced-charts?ticker=GXBT’
- dflist = pd.read_html(url)
- df1 = dflist[0]
- df2 = dflist[1]
- print(df1)
- print()
- print(df2)
実行結果

元のウェブページはこんな感じです。

GXBT:The Gemini Bitcoin Trade Price
GXET:The Gemini Ethereum Trade Price
VIX:Cboe Volatility Index







コメントを残す