krazkidd / kdeck

Desktop client for Kalshi event trading platform
GNU General Public License v3.0
1 stars 0 forks source link

Add support for parallel requests #17

Open krazkidd opened 2 weeks ago

krazkidd commented 2 weeks ago

We are currently using the libcurl "easy" interface which only provides for a single blocking operation. If you have multiple threads, you can create more than one "easy" handle, but libcurl also provides for asynchronous requests on a single thread through their "multi" interface, which is basically just an aggregator of "easy" handles. In addition, you can use an event-based approach with callbacks.

Dependencies

krazkidd commented 1 week ago

Blocked on #36 and #30 which will refactor the API client code and maybe even change libraries.

EDIT: We are going to add the Oat++ library in #30.