<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>symbol &#8211; www.musings.ch</title>
	<atom:link href="https://www.musings.ch/tag/symbol/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.musings.ch</link>
	<description></description>
	<lastBuildDate>Fri, 15 Dec 2023 08:32:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.musings.ch/wp-content/uploads/2020/02/cropped-56884-200-2-32x32.png</url>
	<title>symbol &#8211; www.musings.ch</title>
	<link>https://www.musings.ch</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Google Finance: CHSPI broken</title>
		<link>https://www.musings.ch/2023/05/11/google-finance-chspi-ishares-etf-broken/</link>
		
		<dc:creator><![CDATA[random individual]]></dc:creator>
		<pubDate>Thu, 11 May 2023 08:35:13 +0000</pubDate>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[ouch]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[chspi]]></category>
		<category><![CDATA[etf]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[googlefinance]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[ishares]]></category>
		<category><![CDATA[spreadsheet]]></category>
		<category><![CDATA[symbol]]></category>
		<guid isPermaLink="false">https://www.musings.ch/?p=1064</guid>

					<description><![CDATA[Update, 2023-12-15: investing.com rendering is super unstable &#8211; I&#8217;ve resorted to using ishares.com directly. The new snippet for CHSPI: Update, 2023-06-19: investing.com has changed some of its html. The new snippet for CHSPI: As we all know, Google Finance and ETF (at least ishares) import* in Google Spreadsheets has been broken since December 2022: https://issuetracker.google.com/issues/262157479&#8230; <a class="more-link" href="https://www.musings.ch/2023/05/11/google-finance-chspi-ishares-etf-broken/">Continue reading <span class="screen-reader-text">Google Finance: CHSPI broken</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong><em>Update, 2023-12-15:</em></strong> investing.com rendering is super unstable &#8211; I&#8217;ve resorted to using ishares.com directly. The new snippet for CHSPI:</p>



<pre class="wp-block-code"><code>=SUBSTITUTE(importxml("https://www.ishares.com/ch/individual/en/products/264107/ishares-spi-ch-fund","//*&#91;@id='fundheaderTabs']/div/div/div/ul/li&#91;1]/span&#91;2]"), "CHF ", "")</code></pre>



<p class="wp-block-paragraph"><strong><em>Update, 2023-06-19</em></strong>: investing.com has changed some of its html. The new snippet for CHSPI<kbd>:</kbd></p>



<pre class="wp-block-code"><code>=importxml("https://www.investing.com/etfs/ishares-core-spi","//*&#91;@id='__next']/div&#91;2]/div&#91;2]/div/div&#91;1]/div/div&#91;1]/div&#91;3]/div/div&#91;1]/div&#91;1]")</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph">As we all know, Google Finance and ETF (at least ishares) import* in Google Spreadsheets has been broken since December 2022:</p>



<p class="wp-block-paragraph"><a href="https://issuetracker.google.com/issues/262157479">https://issuetracker.google.com/issues/262157479</a></p>



<p class="wp-block-paragraph">So if you use <kbd>=GOOGLEFINANCE("CHSPI","price")</kbd>, in your spreadsheet, all you&#8217;ll get is the following error message:</p>



<pre class="wp-block-code has-extra-small-font-size"><code>Error:
When evaluating GOOGLEFINANCE,
the query for the symbol: 'CHSPI' returned no data.</code></pre>



<p class="wp-block-paragraph">Since we all also know, Google Finance isn&#8217;t the fastest in fixing bugs (as evidenced by this bug, but also several others prior to this one), and their feeds (latency,..) are best-effort-at-best.</p>



<p class="wp-block-paragraph">To fix this in your spreadsheet, head over to investing.com, enter whatever stock/currency/etf/.. you want to import data from, copy the url and use that combined with importxml:</p>



<p class="wp-block-paragraph">Say you&#8217;re looking for SWX:CHSPI:</p>



<ol class="wp-block-list">
<li>Go to investing.com, enter CHSPI, click on the search result.</li>



<li>This takes you to <strong>https://www.investing.com/etfs/ishares-core-spi</strong>, where you&#8217;ll copy the url (<kbd>"</kbd>website address<kbd>"</kbd>).</li>



<li>Open your spreadsheet, head to the cell you like most, enter:<br><strong><kbd>=importxml("https://www.investing.com/etfs/ishares-core-spi","//*[@data-test='instrument-price-last']")</kbd></strong> to get the latest price.</li>



<li>Silently thank investing.com</li>
</ol>



<p class="wp-block-paragraph">* Note that not only importing in spreadsheets (using =googlefinance) is broken &#8211; none of the symbols show up on Google Finance itself either.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
