mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
chore: improve ccxt test
This commit is contained in:
parent
ef96116c3f
commit
a7fd03f1b7
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user