Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Current State of Financial Data Available to Perl

by bliako (Monsignor)
on Sep 26, 2022 at 12:43 UTC ( [id://11147131]=note: print w/replies, xml ) Need Help??


in reply to Current State of Financial Data Available to Perl

I resent the pessimism and I resent the mention of that dreaded python for any use really. As if it is the standard technology (standard it may has become, but technology it isn't). Albeit, my resentment is in a friendly way :)

So, in short, do not despair.

What stops you from getting a yummy, juicy json chunk from this endpoint of Yahoo's finance services: https://query1.finance.yahoo.com/v10/finance/quoteSummary/API?modules=financialData ???? Why can't you scrape that with Perl (assuming you want to)?

In absence of a better link (API is also a stockmarket symbol, LOLz) this will get you started (you can safely ignore their recommended tools and use wget or curl from the CLI to start, and then LWP::UserAgent and JSON for cooking a super-duper, Perl stock scrapper and all that without parsing ANY html whatsoever): https://syncwith.com/yahoo-finance/yahoo-finance-api

I do not want to take the fun from your hands so I will not supply any working code, but if you need more help, let us know,

bw bliako

Edit: and here is an endpoint providing endless pessimism: https://query1.finance.yahoo.com/v7/finance/quote?symbols=GBPUSD=X&fields=regularMarketPrice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found