mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 21:01:14 +00:00
Revert "Bump ccxt to 4.0.101"
This commit is contained in:
@@ -3,7 +3,7 @@ numpy==1.25.2; platform_machine == 'armv7l'
|
|||||||
pandas==2.0.3
|
pandas==2.0.3
|
||||||
pandas-ta==0.3.14b
|
pandas-ta==0.3.14b
|
||||||
|
|
||||||
ccxt==4.0.101
|
ccxt==4.0.88
|
||||||
cryptography==41.0.3
|
cryptography==41.0.3
|
||||||
aiohttp==3.8.5
|
aiohttp==3.8.5
|
||||||
SQLAlchemy==2.0.20
|
SQLAlchemy==2.0.20
|
||||||
|
|||||||
@@ -234,12 +234,12 @@ EXCHANGES = {
|
|||||||
"orderId": "1274754916287346280",
|
"orderId": "1274754916287346280",
|
||||||
"orderLinkId": "1666798627015730",
|
"orderLinkId": "1666798627015730",
|
||||||
"symbol": "SOLUSDT",
|
"symbol": "SOLUSDT",
|
||||||
"createdTime": "1674493798550",
|
"createTime": "1674493798550",
|
||||||
"price": "15.5",
|
"orderPrice": "15.5",
|
||||||
"qty": "1.1",
|
"orderQty": "1.1",
|
||||||
"orderType": "Limit",
|
"orderType": "LIMIT",
|
||||||
"side": "Buy",
|
"side": "BUY",
|
||||||
"orderStatus": "New",
|
"status": "NEW",
|
||||||
"timeInForce": "GTC",
|
"timeInForce": "GTC",
|
||||||
"accountId": "5555555",
|
"accountId": "5555555",
|
||||||
"execQty": "0",
|
"execQty": "0",
|
||||||
|
|||||||
@@ -58,10 +58,8 @@ class TestCCXTExchange:
|
|||||||
def test_ccxt_order_parse(self, exchange: EXCHANGE_FIXTURE_TYPE):
|
def test_ccxt_order_parse(self, exchange: EXCHANGE_FIXTURE_TYPE):
|
||||||
exch, exchange_name = exchange
|
exch, exchange_name = exchange
|
||||||
if orders := EXCHANGES[exchange_name].get('sample_order'):
|
if orders := EXCHANGES[exchange_name].get('sample_order'):
|
||||||
pair = 'SOL/USDT'
|
|
||||||
for order in orders:
|
for order in orders:
|
||||||
market = exch._api.markets[pair]
|
po = exch._api.parse_order(order)
|
||||||
po = exch._api.parse_order(order, market)
|
|
||||||
assert isinstance(po['id'], str)
|
assert isinstance(po['id'], str)
|
||||||
assert po['id'] is not None
|
assert po['id'] is not None
|
||||||
if len(order.keys()) < 5:
|
if len(order.keys()) < 5:
|
||||||
@@ -76,7 +74,7 @@ class TestCCXTExchange:
|
|||||||
if po['average'] is not None:
|
if po['average'] is not None:
|
||||||
assert isinstance(po['average'], float)
|
assert isinstance(po['average'], float)
|
||||||
assert po['average'] == 15.5
|
assert po['average'] == 15.5
|
||||||
assert po['symbol'] == pair
|
assert po['symbol'] == 'SOL/USDT'
|
||||||
assert isinstance(po['amount'], float)
|
assert isinstance(po['amount'], float)
|
||||||
assert po['amount'] == 1.1
|
assert po['amount'] == 1.1
|
||||||
assert isinstance(po['status'], str)
|
assert isinstance(po['status'], str)
|
||||||
|
|||||||
Reference in New Issue
Block a user