문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top