futuresboard icon indicating copy to clipboard operation
futuresboard copied to clipboard

/positions URL includes SHORTs where only LONGs are active ( Binance only )

Open kkoouu opened this issue 3 years ago • 2 comments

For SYMBOLS, where LONG positions are active, /positions URL also displays SHORT row with 0 volume ( probably as well the other way around )

Changing 49th line in positions.html as below does help, however it might be better not to populate positions array with zero valued positions, probably somewhere in blueprint.py ( I'm not that familiar with python syntax )


49c49
<                     {% if positions[coin][0]|length > 1 %}
---
>                     {% if positions[coin][0]|length > 1 and positions[coin][0][1][6] != 0 %}


kkoouu avatar Apr 05 '22 08:04 kkoouu

This is sensible, will take a look at some options

ecoppen avatar Apr 05 '22 14:04 ecoppen

I confirm as well the other way around, I see a nonexistent LONG with zero volume above an active SHORT position with same symbol.

kkoouu avatar Apr 05 '22 15:04 kkoouu

Not addressing in v1 but will look to solve in v2

ecoppen avatar Feb 26 '23 20:02 ecoppen