binance-exchange / binacpp

Binance C++ library
MIT License
212 stars 108 forks source link

Fixed a bug that caused cURL to fail when calling multiple times #53

Open Ria9993 opened 1 year ago

Ria9993 commented 1 year ago

When calling the curl_api multiple times, calls after the first call would either fail or return an "invalid signature" HTTP response. (https://github.com/binance-exchange/binacpp/issues/33)

Added calling curl_easy_reset() after curl_api().