LoginSignup
1
2

More than 5 years have passed since last update.

Google Sheetsで株価を扱う

Posted at

ポートフォリオ管理を自動化したいと思って調べてみました。

テンセント100株を香港ドルから円に変換して表示

=GoogleFinance("HKG:0700") * 100 * GoogleFinance("currency:hkdjpy")

日本株はGoogleFinanceで取ってこれないみたいなので、野村のページを使うことにしました。(優先株も見れるのがよい)

たとえば、伊藤園優先株(TYO:25935)100株

=ImportXml("http://quote.nomura.co.jp/nomura/cgi-bin/parser.pl?QCODE=25935&TEMPLATE=nomura_tp_kabu_01", "//span[@class='stock_summary-number'][1]" ) * 100
1
2
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
1
2