mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
test: adjust rpc tests for new calculation
This commit is contained in:
@@ -1166,26 +1166,26 @@ def test_api_performance(botclient, fee):
|
||||
{
|
||||
"count": 1,
|
||||
"pair": "NEO/USDT",
|
||||
"profit": 5.0,
|
||||
"profit_pct": 5,
|
||||
"profit_ratio": 0.05,
|
||||
"profit": 1.99,
|
||||
"profit_pct": 1.99,
|
||||
"profit_ratio": 0.0199375,
|
||||
"profit_abs": 3.9875,
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"pair": "XRP/USDT",
|
||||
"profit": 10.0,
|
||||
"profit": 9.47,
|
||||
"profit_abs": 2.8425,
|
||||
"profit_pct": 10.0,
|
||||
"profit_ratio": 0.1,
|
||||
"profit_pct": 9.47,
|
||||
"profit_ratio": pytest.approx(0.094749999),
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"pair": "LTC/USDT",
|
||||
"profit": -20.0,
|
||||
"profit": -20.45,
|
||||
"profit_abs": -4.09,
|
||||
"profit_pct": -20.0,
|
||||
"profit_ratio": -0.2,
|
||||
"profit_pct": -20.45,
|
||||
"profit_ratio": -0.2045,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user