foxadb / yahoo-finance Goto Github PK
View Code? Open in Web Editor NEWC++ library to get stock data from Yahoo Finance
License: MIT License
C++ library to get stock data from Yahoo Finance
License: MIT License
Dear All,
the package worked perfectly for at least 6 months.
Now It looks like an issue has developed
It compiles properly but when I execute the following appears:
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 37) > this->size() (which is 0)
Every suggestion is highly appreciated.
Thank you
Matteo
Hey, when compiling the example I get the following error message:
curl_utils.cpp:120:47: error: character '/' cannot be specified by a universal character name
std::replace(crumb.begin(), crumb.end(), '\u002F', '/');
^~~~~~
1 error generated.
I am trying to run it on MacOS 11.2. I would be incredibly thankful for any help.
Best regards, Jannek
The package used to work perfect. But recently, the cookie file generated is sort of empty. In the yahoo-finance-cookie file, I only see the comment lines:
Anyone is having the same issue?
By the way, the function that I stepped into is:
getYahooCrumbCookie(std::string url,
std::string *crumb,
std::string *cookie)
the url that I used is: https://finance.yahoo.com/quote/IBM/?p=IBM
Thanks for writing the library. I noticed some methods were missing 'const' modifiers. I added them and made a few other optimizations dealing with passing by const references. I could push to a branch and create a pull request but would need some permissions to do so.
timegm() error while trying to compile in VSComunity 2019
Severity Code Description Project File Line Suppression State
Error C3861 'timegm': identifier not found ConsoleApplication1
Error (active) E0020 identifier "timegm" is undefined ConsoleApplication1
adding the header #include <time.h> not solve the problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.