Reputation: 1321
Is there a C++ API for accessing stock quotes from Google finance?
Upvotes: 0
Views: 4361
Reputation: 547
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
Upvotes: 2
Reputation: 54168
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.
Upvotes: 4