Giter VIP home page Giter VIP logo

Comments (8)

Kaligula0 avatar Kaligula0 commented on June 3, 2024

I see, the currency 'PLN' is hardcoded in the module. I believe the author used it only for local, Polish securities.
Unfortunately Stooq.pl doesn't provide currency in the response. Example:
"CDR,20220928,170433,103,106.5,100.7,105.76,833851,"
which is:
Name,Trade Date,Trade Time,Open,Max,Min,Price,Volume,Unknown
I asked Stooq.pl via e-mail about this aspect.

from finance-quote.

Kaligula0 avatar Kaligula0 commented on June 3, 2024

All other modules always provide the currency of a security on request? I mean, is it obligatory? Or is it possible to just request the numbers?

I'm only a hobby-programmer and I don't know Perl (but that's not the first unknown language I'm contributing to, so maybe I'll manage to). I'm in contact with stooq.pl, they've already answered me but requested more details before they give information.

from finance-quote.

bpschuck avatar bpschuck commented on June 3, 2024

The primary "user" of F::Q is GnuCash, and it requires that F::Q return a currency with the quote.

from finance-quote.

Kaligula0 avatar Kaligula0 commented on June 3, 2024

They answered that currently there's no API that gives back the currency 😢 And they didn't say anything about whether they want to implement that or not 🤷

from finance-quote.

Kaligula0 avatar Kaligula0 commented on June 3, 2024

Nevertheless, I updated the module (as it was a dozen years old) and uploaded it to a newly created repo https://github.com/Kaligula0/Stooq-for-Finance-Quote – just in case someone would like to test it / use it / take care of it / get things done.

from finance-quote.

bpschuck avatar bpschuck commented on June 3, 2024

Actually data shown from a URI such as https://stooq.com/q/?s=ena does have the currency.
<a href=[t/?i=60](https://stooq.com/t/?i=60)>zł</a>

from finance-quote.

Kaligula0 avatar Kaligula0 commented on June 3, 2024

Yes. The website shows everything. But the price is not included in the API response.
That would require web-scraping. Is that efficient?

from finance-quote.

bpschuck avatar bpschuck commented on June 3, 2024

A number of the F::Q modules extract pricing data using web scraping.

from finance-quote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.