trade_history should paginate through results

this avoids huge results
This commit is contained in:
Matthias
2021-04-18 16:05:28 +02:00
parent b230558294
commit bd92ce938c
5 changed files with 20 additions and 11 deletions

View File

@@ -506,7 +506,7 @@ def test_api_trades(botclient, mocker, fee, markets):
)
rc = client_get(client, f"{BASE_URI}/trades")
assert_response(rc)
assert len(rc.json()) == 2
assert len(rc.json()) == 3
assert rc.json()['trades_count'] == 0
create_mock_trades(fee)