futuresboard
futuresboard copied to clipboard
Distance in % is 0.00% for prices < 1
int function should be removed in positions.html:
43c43
< <td>{% if positions[coin][2][4] != "-" %}{{ ((positions[coin][2][5]|int/markprices[coin])*100)|round(2)}}% {% endif %}</td>
---
> <td>{% if positions[coin][2][4] != "-" %}{{ ((positions[coin][2][5]/markprices[coin])*100)|round(2)}}% {% endif %}</td>
47c47
< <td>{% if positions[coin][2][6] != "-" %}{{ ((positions[coin][2][7]|int/markprices[coin])*100)|round(2)}}% {% endif %}</td>
---
> <td>{% if positions[coin][2][6] != "-" %}{{ ((positions[coin][2][7]/markprices[coin])*100)|round(2)}}% {% endif %}</td>
61c61
< <td>{% if positions[coin][2][8] != "-" %}{{ ((positions[coin][2][9]|int/markprices[coin])*100)|round(2)}}% {% endif %}</td>
---
> <td>{% if positions[coin][2][8] != "-" %}{{ ((positions[coin][2][9]/markprices[coin])*100)|round(2)}}% {% endif %}</td>
65c65
< <td>{% if positions[coin][2][10] != "-" %}{{ ((positions[coin][2][11]|int/markprices[coin])*100)|round(2)}}% {% endif %}</td>
---
> <td>{% if positions[coin][2][10] != "-" %}{{ ((positions[coin][2][11]/markprices[coin])*100)|round(2)}}% {% endif %}</td>