From fe330882452c93c2312377abbe7c0dbeb1f074e5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 20 Sep 2023 20:40:36 +0200 Subject: [PATCH 1/3] Bump ccxt to 4.0.101 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 304233bd9..6c7839c74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ numpy==1.25.2; platform_machine == 'armv7l' pandas==2.0.3 pandas-ta==0.3.14b -ccxt==4.0.88 +ccxt==4.0.101 cryptography==41.0.3 aiohttp==3.8.5 SQLAlchemy==2.0.20 From f3fb801b331d7f7ba8dc5b13c8d806a3446cb438 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 18 Sep 2023 19:09:12 +0200 Subject: [PATCH 2/3] Update order_parse online test --- tests/exchange_online/test_ccxt_compat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/exchange_online/test_ccxt_compat.py b/tests/exchange_online/test_ccxt_compat.py index e33875416..aa3dfdfae 100644 --- a/tests/exchange_online/test_ccxt_compat.py +++ b/tests/exchange_online/test_ccxt_compat.py @@ -58,8 +58,10 @@ class TestCCXTExchange: def test_ccxt_order_parse(self, exchange: EXCHANGE_FIXTURE_TYPE): exch, exchange_name = exchange if orders := EXCHANGES[exchange_name].get('sample_order'): + pair = 'SOL/USDT' for order in orders: - po = exch._api.parse_order(order) + market = exch._api.markets[pair] + po = exch._api.parse_order(order, market) assert isinstance(po['id'], str) assert po['id'] is not None if len(order.keys()) < 5: @@ -74,7 +76,7 @@ class TestCCXTExchange: if po['average'] is not None: assert isinstance(po['average'], float) assert po['average'] == 15.5 - assert po['symbol'] == 'SOL/USDT' + assert po['symbol'] == pair assert isinstance(po['amount'], float) assert po['amount'] == 1.1 assert isinstance(po['status'], str) From aec67cda66a4abcae60b637fd74bc4dc2cace264 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 18 Sep 2023 19:10:24 +0200 Subject: [PATCH 3/3] update bybit live order to v5 --- tests/exchange_online/conftest.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/exchange_online/conftest.py b/tests/exchange_online/conftest.py index 45da16dd5..c5f59ee0e 100644 --- a/tests/exchange_online/conftest.py +++ b/tests/exchange_online/conftest.py @@ -234,12 +234,12 @@ EXCHANGES = { "orderId": "1274754916287346280", "orderLinkId": "1666798627015730", "symbol": "SOLUSDT", - "createTime": "1674493798550", - "orderPrice": "15.5", - "orderQty": "1.1", - "orderType": "LIMIT", - "side": "BUY", - "status": "NEW", + "createdTime": "1674493798550", + "price": "15.5", + "qty": "1.1", + "orderType": "Limit", + "side": "Buy", + "orderStatus": "New", "timeInForce": "GTC", "accountId": "5555555", "execQty": "0",