Support » Plugin: Stock Quote » Fix for api breakage

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi @eigood,

    My first plugin Stock Ticker used Yahoo Finance as resource for stock quotes at the same beginning, but then plugin was suspend from wordpress.org because of that. Then I switch to allowed Google Finance to get back plugin in the repo.

    Unfortunately, Yahoo Finance is not allowed to be used in plugins hosted on wordpress.org

    Bother. Then my fix will work for my client for the weekend, at least. I’ll look more next week.

    Hi @eigood,
    Any chance you could share your fix? Would be much appreciated.

    I’d rather not, as the author has said it’s not allowed for an official plugin. I want to honor his recommendation.

    However, it wasn’t that hard to figure out the correct fields to request, and to then parse the csv and convert it to stdClass instance.

    I’m currently looking at https://www.alphavantage.co/, but this requires an API key. That’d mean the plugin would need to have a config value for that key.

    Hi @eigood, @jbus,

    You can freely share your modified version to work with Yahoo Finance, my plugin is released under GNU GPL so you can modify it and redistribute.

    The problem is that WordPress.org guides does not allow to plugins use Yahoo Finance data. If you wish, I can digg and screenshot my communication with WP.org plugin review staff regarding that.

    So, plugin not hosted on wordpress.org can use Yahoo Finance 🙂

    Btw, I sent question to AlphaVantage.co support regarding change, change percentage and last trade datetime data not provided by their API. If I get positive feedback with solution for those details, I’ll update plugin. And yes, there will be field in plugin settings for AV API Key. Terms of use for AV is open and does not restrict usage in plugin for wordpress.org repository.

    Regarding IEX Trading, check legal requirements to use their API Terms of use.

    eigood

    (@eigood)

    At least 1.c is bad, for a wordpress plugin. But actually, section 1 says you can charge, but then 1.c rescinds that. Very odd. But we must err on the side of caution, so I agree that IEX is out.

    khunmax

    (@khunmax)

    Hello Alek and eigood.

    Stockquotes is a core feature of my website. A bit of a disaster that Google has shut down there API (though I do note Alek that you did warn it would be deprecated in the future in your plugin description).

    I have several ticker pages set up on my site with feeds such as currencies, world market and the stocks that comprise specific indexes. Interesting some of these feeds are now broken (no internet detected…waiting) while others are still functioning as before. If the API has been shut down, why do some of my ticker feeds still work?

    Eigood. I only have a very basic knowledge of php (cut and paste snippets). Is there any chance you can post your php that you used to get stock quotes back up and running using the Yahoo API. I can then edit my local stock quote php. And get my website back up. Any assistance you can offer is greatly appreciated.

    Kind Regards

    Max

    Plugin Author Aleksandar Urošević

    (@urkekg)

    Hi @khunmax,

    My plugin have cache timeout. If for some tickers you set larger cache timeout, then plugin still use quote from cache instead grabbing new one from Google.

    I’ll probably have some beta version of plugins ready next week, which will utilize AlphaVantage.co API. I’ll post update and progress to this thread, to thread for my other plugin https://wordpress.org/support/topic/plugin-not-working-558/ and on my website https://urosevic.net/wordpress/plugins/stock-ticker/ and https://urosevic.net/wordpress/plugins/stock-quote/

    khunmax

    (@khunmax)

    Thanks Alek for your prompt reply.

    It would be fantastic if you could have a beta version ready by next week.

    I am happy to help test the beta version if you want to provide me with a download link.

    My tickers are mostly for stocks listed on the Stock Market of Thailand (BKK prefix). Does the alphavantageAPI provide that data?

    Thanks very much for your kind assistance.

    Max

    • This reply was modified 2 months ago by  khunmax.
    • This reply was modified 2 months ago by  khunmax.
    khunmax

    (@khunmax)

    Hello Alek

    Any updates on the new version of your plugin?

    Thanks in advance for your kind assistance.

    Regards

    Max

    heretiq

    (@heretiq)

    Thanks for finding a fix @eigood! Given Aleksander’s comment regarding GNU GPL plugin license, would you please share your modified code outside of the WP repo — perhaps via Dropbox or Github?

    Thanks!

    Following post for updates on this issue.

    Alek

    Any updates on the horizon.

    Thanks for your kind assistance.

    Max

    Hi all,

    I’m currently working on larger Stock Ticker plugin with AlphaVantage API – more details in topic https://wordpress.org/support/topic/plugin-not-working-558/

    As soon as I get final and stable API part, I’ll add it to Stock Quote and update plugin in WP repository.

    Stay tuned

Viewing 15 replies - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.