Open martinambrus opened 1 year ago
I think this has nothing to do with this script, if you lookup the API documentation of ByBit, they are the once who want to have it as a string. BTW, I had the same problem that you had ;)
Check for example: https://bybit-exchange.github.io/docs/v5/order/create-order
when you pass a real boolean value into an endpoint which expects one, the resulting signature is incorrect and generates an "error sign!" result from the ByBit API
example:
however, if you pass the boolean value as a string instead, everything works correctly:
I think this should be either documented somewhere or fixed, as it took me a while to realize what's going on and why my valid requests come back with an invalid signature error.