C++ API for Google Finance
-
29-09-2019 - |
문제
Is there a C++ API for accessing stock quotes from Google finance?
해결책
There's no C++ client library, if that is what you mean - just for Java and Javascript.
There are plenty of C++ libraries for HTTP and XML though, so you can certainly process the protocol directly if you wish. I guess you could call the Java client library using JNI also.
다른 팁
The best course of action would probably be to use Boost.Asio to fetch the URL of interest, and process it yourself. Shouldn't be too hard. I have some example code here:
// Burst.Asio.HTTP.Client Example 1 https://github.com/hank/life/blob/master/code/cpp/burst/examples/asio.http_client/asio.http.1.cpp
// Burst.Asio.HTTP.Client https://github.com/hank/life/blob/master/code/cpp/burst/include/burst/asio/http/client.hpp