binance-exchange / binacpp

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

cURL fails initialization after send_order() #33

Open AlconDivino opened 6 years ago

AlconDivino commented 6 years ago

I am running a calculation with 3 prices using the get_depth() function.

When i get the result i want a function is called, that uses 3 send_order()functions.

However after the call of send_order() i get

<"BinaCPP::curl_api> curl_easy_perform() failed: Failed initialization and the get_depth functions also don't work.

Any Idea why that is?

kim2lux commented 5 years ago

Hello,

Did you resolve your issue ? I find the same problem using the send_order() function. Generated String looks sliced in some cases too.

Best,

TEPOTPOH commented 5 years ago

You should call curl_easy_reset(BinaCPP::curl); after checking error in BinaCPP::curl_api_with_header