如何检索盘后或盘前股票价格的信息?

发布于 2025-01-16 04:45:14 字数 103 浏览 2 评论 0原文

如何检索盘后或盘前股票价格的信息?例如,我可以使用公式 =googlefinance("TSLA","price") 它将在正常时间内检索股票的价格。但是,它不会显示盘后和盘前时段的价格。谢谢

How do I retrieve the information about the price of a stock during the after hours, or the pre-market? For example, I can use the formula =googlefinance("TSLA","price") which will retrieve the price of the stock during regular hours. However, it will not show the price during after hours and premarket hours. Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许久 2025-01-23 04:45:14

我已经导出了脚本并使用鞋底公式使其工作。前/后市场价值从此链接获取:

前市场:

=regexextract(importxml(A1&"TSLA", "/"), "Pre Market Last([^']+)'")

后市场:

=regexextract(importxml(A1&"TSLA", "/"), "After Market Last([^']+)'")

输出:

output

注意:

  • 我已将链接与股票代码分开,以便将其重新用于其他调用,但是您可以直接使用它,如下所示
=regexextract(importxml("https://app.quotemedia.com/quotetools/jsVarsQuotes.go?webmasterId=101264&symbol=TSLA", "/"), "Pre Market Last([^']+)'")

=regexextract(importxml("https://app.quotemedia.com/quotetools/jsVarsQuotes.go?webmasterId=101264&symbol=TSLA", "/"), "After Market Last([^']+)'")

I have derived the script and made it work using sole sheet formulas. The pre/after market values are fetched from this link:

Pre market:

=regexextract(importxml(A1&"TSLA", "/"), "Pre Market Last([^']+)'")

After market:

=regexextract(importxml(A1&"TSLA", "/"), "After Market Last([^']+)'")

Output:

output

Note:

  • I have separated the link from the ticker for it to be reused to other calls as well, but you can just use it directly like this:
=regexextract(importxml("https://app.quotemedia.com/quotetools/jsVarsQuotes.go?webmasterId=101264&symbol=TSLA", "/"), "Pre Market Last([^']+)'")

and

=regexextract(importxml("https://app.quotemedia.com/quotetools/jsVarsQuotes.go?webmasterId=101264&symbol=TSLA", "/"), "After Market Last([^']+)'")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文