In Binance documentation wrote that for TRAILING_STOP_MARKET
orders, min 0.1, max 5 where 1 for 1% but when I run code:
def open_position(symbol, side, position_side, quantity):
try:
order = client.futures_create_order(
symbol=symbol,
side=side,
# positionSide=position_side,
type=“MARKET”,
quantity=quantity
)
return order
except (BinanceAPIException, BinanceRequestException) as e:
print(f"Error opening position: {e}")
return None
def place_futures_trailing_order(symbol, side, quantity, callback_rate):
try:
order = client.futures_create_order(
symbol=symbol,
type=“TRAILING_STOP_MARKET”,
callbackRate=0.1,
side=side,
quantity=quantity,
# activationPrice=quantity * 1.01,
)
return order
except (BinanceAPIException, BinanceRequestException) as e:
print(f"Error placing futures trailing order: {e}")
return None
there is: Error placing futures trailing order: APIError(code=-1111): Precision is over the maximum defined for this asset.
But if I place “1”, everything works good