Implement stockapi using libcurl.