chore: improve ccxt test

This commit is contained in:
Matthias 2024-09-01 08:22:58 +02:00
parent ef96116c3f
commit a7fd03f1b7
2 changed files with 2 additions and 3 deletions

View File

@ -225,7 +225,7 @@ EXCHANGES = {
"id": "123412341234",
"create_time": "167997798",
"create_time_ms": "167997798825.566200",
"currency_pair": "ETH_USDT",
"currency_pair": "SOL_USDT",
"side": "sell",
"role": "taker",
"amount": "0.0115",

View File

@ -92,9 +92,8 @@ class TestCCXTExchange:
if trades := EXCHANGES[exchange_name].get("sample_my_trades"):
pair = "SOL/USDT"
for trade in trades:
market = exch._api.markets[pair]
po = exch._api.parse_trade(trade)
(trade, market)
assert po["symbol"] == pair
assert isinstance(po["id"], str)
assert isinstance(po["side"], str)
assert isinstance(po["amount"], float)