Skip to content

Commit 5ba8b7d

Browse files
committed
[Tests] update for quote market buy amount
1 parent 121284b commit 5ba8b7d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

additional_tests/exchanges_tests/test_binance.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TestBinanceAuthenticatedExchange(
2828
# enter exchange name as a class variable here
2929
EXCHANGE_NAME = "binance"
3030
ORDER_CURRENCY = "BTC"
31-
SETTLEMENT_CURRENCY = "USDT"
31+
SETTLEMENT_CURRENCY = "USDC"
3232
SYMBOL = f"{ORDER_CURRENCY}/{SETTLEMENT_CURRENCY}"
3333
ORDER_SIZE = 50 # % of portfolio to include in test orders
3434
DUPLICATE_TRADES_RATIO = 0.1 # allow 10% duplicate in trades (due to trade id set to order id)
@@ -41,6 +41,7 @@ class TestBinanceAuthenticatedExchange(
4141
]
4242
IS_BROKER_ENABLED_ACCOUNT = False
4343
IS_AUTHENTICATED_REQUEST_CHECK_AVAILABLE = True # set True when is_authenticated_request is implemented
44+
CONVERTS_ORDER_SIZE_BEFORE_PUSHING_TO_EXCHANGES = True
4445

4546
SPECIAL_ORDER_TYPES_BY_EXCHANGE_ID: dict[
4647
str, (

additional_tests/exchanges_tests/test_coinbase.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class TestCoinbaseAuthenticatedExchange(
2727
):
2828
# enter exchange name as a class variable here
2929
EXCHANGE_NAME = "coinbase"
30-
ORDER_CURRENCY = "ADA"
31-
SETTLEMENT_CURRENCY = "BTC"
30+
ORDER_CURRENCY = "BTC"
31+
SETTLEMENT_CURRENCY = "USDC"
3232
SYMBOL = f"{ORDER_CURRENCY}/{SETTLEMENT_CURRENCY}"
33-
ORDER_SIZE = 25 # % of portfolio to include in test orders
33+
ORDER_SIZE = 30 # % of portfolio to include in test orders
3434
CONVERTS_ORDER_SIZE_BEFORE_PUSHING_TO_EXCHANGES = True
3535
VALID_ORDER_ID = "8bb80a81-27f7-4415-aa50-911ea46d841c"
3636
USE_ORDER_OPERATION_TO_CHECK_API_KEY_RIGHTS = True # set True when api key rights can't be checked using a

additional_tests/exchanges_tests/test_kucoin.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class TestKucoinAuthenticatedExchange(
3636
USE_ORDER_OPERATION_TO_CHECK_API_KEY_RIGHTS = True
3737
VALID_ORDER_ID = "6617e84c5c1e0000083c71f7"
3838
IS_AUTHENTICATED_REQUEST_CHECK_AVAILABLE = True # set True when is_authenticated_request is implemented
39+
CONVERTS_ORDER_SIZE_BEFORE_PUSHING_TO_EXCHANGES = True
3940

4041
SPECIAL_ORDER_TYPES_BY_EXCHANGE_ID: dict[
4142
str, (

additional_tests/exchanges_tests/test_mexc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TestMEXCAuthenticatedExchange(
2727
# enter exchange name as a class variable here
2828
EXCHANGE_NAME = "mexc"
2929
EXCHANGE_TENTACLE_NAME = "MEXC"
30-
ORDER_CURRENCY = "BTC"
30+
ORDER_CURRENCY = "MX"
3131
SETTLEMENT_CURRENCY = "USDT"
3232
SYMBOL = f"{ORDER_CURRENCY}/{SETTLEMENT_CURRENCY}"
3333
ORDER_SIZE = 30 # % of portfolio to include in test orders

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Drakkar-Software requirements
22
OctoBot-Commons==1.9.73
3-
OctoBot-Trading==2.4.161
3+
OctoBot-Trading==2.4.162
44
OctoBot-Evaluators==1.9.7
55
OctoBot-Tentacles-Manager==2.9.16
66
OctoBot-Services==1.6.23

0 commit comments

Comments
 (0)