Minggu, 17 Maret 2019

[smf_addin] Digest Number 4503

5 Messages

Digest #4503

Messages

Sat Mar 16, 2019 8:39 am (PDT) . Posted by:

"Bryce Goehring" brigity10

Looks like Company Name - Element 13863 isn't working anymore for me.  Is there another easy way to get that with a ticker symbol?
=RCHGetElementNumber(A4,13863) 

where A4 has the ticker in it?
ThanksBG

Sat Mar 16, 2019 8:57 am (PDT) . Posted by:

"Randy Harmelink" rharmelink

Try the new smf-elements-2.txt. I changed the element definition.

If you need a number of them, smfGetYahooPortfolioView() would be the way
to go.

On Sat, Mar 16, 2019 at 8:39 AM Bryce Goehring brigity10@... wrote:

>
> Looks like Company Name - Element 13863 isn't working anymore for me. Is
> there another easy way to get that with a ticker symbol?
>
> =RCHGetElementNumber(A4,13863)
>
> where A4 has the ticker in it?
>
>
>

Sat Mar 16, 2019 12:50 pm (PDT) . Posted by:

antoine61


Hi Randy, I still got an error but I notice something strange when I tried to access directly the advfn site.



I copied the URL you've provided below


"https://www.advfn.com/p.php?pid=financials&mode=quarterly_reports&symbol=MMM https://www.advfn.com/p.php?pid=financials&mode=quarterly_reports&symbol=MMM"


But when I pasted it direcly in the Excel IE Web Form, it automatically converted and linked to the Canadian version of the site. Same thing happened when trying to open the link directly in Firefox (I live in Canada).



https://ca.advfn.com/stock-market/TSX/MMM/financials?mode=quarterly_reports https://ca.advfn.com/stock-market/TSX/MMM/financials?mode=quarterly_reports



So geography-based conversation. Not sure how to resolve this? Any idea?



Antoine






---In smf_addin@yahoogroups.com, <rharmelink@...> wrote :

Hmm. What do you get with:


=RCHGetWebData("https://www.advfn.com/p.php?pid=financials&mode=quarterly_reports&symbol=MMM https://www.advfn.com/p.php?pid=financials&mode=quarterly_reports&symbol=MMM", "/stock-market/", 80)

=smfGetTagContent("https://www.advfn.com/stock-market/NYSE/MMM/financials?&mode=annual_reports&btn=start_date https://www.advfn.com/stock-market/NYSE/MMM/financials?&mode=annual_reports&btn=start_date", "select", 1, "Select start date")


If either returns "Error", check to see what happens if you visit the URLs in the IE object within EXCEL (alt+d+d+w or the Legacy "From Web" option). Scripting errors are expected, but I'm curious to see if AdvFN actually displays the data.

















On Thu, Mar 14, 2019 at 6:26 PM antoine@... wrote:



This is what I get for these requests:


Stock Market Functions add-in, Version 2.1.2018.01.24 (C:\SMF Add-In; Windows (32-bit) NT :.00; 15.0; www; Local; 2)
Error
Error









Sat Mar 16, 2019 1:05 pm (PDT) . Posted by:

"Randy Harmelink" rharmelink

See:

https://groups.yahoo.com/neo/groups/smf_addin/conversations/messages/21069

IIRC, you may also need to worry about exchange prefixes because it
defaults to Canadian exchanges? I'm not even sure if it still works the
same. I don't do anything with AdvFN these days.

On Sat, Mar 16, 2019 at 12:50 PM antoine@... wrote:

>
> Hi Randy, I still got an error but I notice something strange when I tried
> to access directly the advfn site.
>
> I copied the URL you've provided below
>
> "
> https://www.advfn.com/p.php?pid=financials&mode=quarterly_reports&symbol=MMM
> "
>
> But when I pasted it direcly in the Excel IE Web Form, it automatically
> converted and linked to the Canadian version of the site. Same thing
> happened when trying to open the link directly in Firefox (I live in
> Canada).
>
> https://ca.advfn.com/stock-market/TSX/MMM/financials?mode=quarterly_reports
>
> So geography-based conversation. Not sure how to resolve this? Any idea?
>
>
>

Sat Mar 16, 2019 1:36 pm (PDT) . Posted by:

antoine61

Thank you, Randy, you are amazing: this is great stuff. It seems to work fine for US stocks but I have to find a way to get Canadian info for the Canadian stock market. I'll work on it and see how to get by..



Antoine

For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF

Tidak ada komentar:

Posting Komentar