Question

Is there a C++ API for accessing stock quotes from Google finance?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top