Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Get Ask and Bid Option Prices from Fidelity's Website Using Google Sheets

$
0
0

I was able to get ask/bid option prices for a particular option from Fidelity Brokerage's web site using Google Sheets and importXML - but no longer. I think the site changed.

The website to access Option prices is now:

https://researchtools.fidelity.com/ftgw/mloptions/goto/detailedQuote?symbols=-BTI220819P40&type=o-NavBar

where -BTI220819P40 is the particular put option.

When I view the source page, I can see the bid and ask elements I'm interested in.Here's a portion of the source page for the above link:

<div><p class="bav-header">Bid</p><p class="bav-value">                                                41.86 X 5</p></div><div><p class="bav-header ">Ask</p><p class="bav-value">                                                42.08 X 4</p></div>

When I attempt to obtain those values with importXML in Google Sheets I get "Error: Imported content is empty".

=importXML("https://researchtools.fidelity.com/ftgw/mloptions/goto/detailedQuote?symbols=-BTI220715P40&type=o-NavBar", "//p[@class='bav-value']")

Can anyone tell me how to get these bid and ask values?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>