You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binance is returning the error "Filter failure: PERCENT_PRICE" when sending an order.
We checked on their documentation and the issue is the max allowance for decimal places in your order prices and sizes
Is anyone else having this same issue?
The issue is in "BinaCPP::send_order" when building the post to send the order, the price and size are being converted to string using to_string.... but no way to control the decimal places in there.
The text was updated successfully, but these errors were encountered:
In case this happened to anyone else.... What we ended up doing is the following:
We change the signature of BinaCPP::send_order to
BinaCPP::send_order(
const char *symbol,
const char *side,
const char *type,
const char *timeInForce,
string quantity,
string price,
const char *newClientOrderId,
double stopPrice,
double icebergQty,
long recvWindow,
Json::Value &json_result )
And then we created a function to translate the price and sizes before sending it to BinaCPP::send_order
inline string to_string(double val, int decimalPlaces)
{
std::ostringstream oss;
oss << std::setprecision(decimalPlaces) << std::noshowpoint << val;
return oss.str();
Binance is returning the error "Filter failure: PERCENT_PRICE" when sending an order.
We checked on their documentation and the issue is the max allowance for decimal places in your order prices and sizes
Is anyone else having this same issue?
The issue is in "BinaCPP::send_order" when building the post to send the order, the price and size are being converted to string using to_string.... but no way to control the decimal places in there.
The text was updated successfully, but these errors were encountered: