Type/to search
0
Follow
0
Followers
Problema con el pedido, Compra(27793.27, 0.001): 400: {"código":-4014,"msg":"El precio no aumenta según el tamaño del tick".} Por favor, avíseme.
Help
Created 2023-05-08 17:38:20  
 1
 1270

Abrir una posición de más de un jugador

def open_long(exchange, symbol, amount):
last_price = exchange.GetTicker()['Last']
adjusted_price = last_price * 1.0001
contract_amount = amount * adjusted_price / 100
contract_amount = round(contract_amount, 4) # Round to 4 decimal places
Log("Buy:", symbol, contract_amount)
exchange.SetDirection("buy")
return exchange.Buy(adjusted_price, contract_amount)

2023-05-08 17:18:19 Futures_Binance 错误 Buy(27793.27, 0.001): 400: {"code":-4014,"msg":"Price not increased by tick size."}
Related Recommendations
Comment
All comments (1)

    您好,交易所下单价格有要求,例如有些交易所要求价格是0.5的倍数,如果价格是1000.1 就会不符合交易所报单要求被拒绝,1000.5是合法的。

    3 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)