binance_interface icon indicating copy to clipboard operation
binance_interface copied to clipboard

trade.close_market报错,无法获取到空单的持仓

Open lynnfi opened this issue 11 months ago • 1 comments

问题出在app/account/account_um.py的144行 if 'positionAmt' in v.keys() and float(v['positionAmt']) > 0: this_symbol = v['symbol'] 目前币安的账户,如果是空单,positionAmt返回值为负,如果限制>0,则无法获取到空单仓位。 可以改为不等于0.

lynnfi avatar Mar 20 '24 05:03 lynnfi

好的谢谢,这几天我更新一下框架

pyted avatar Mar 22 '24 12:03 pyted