-
-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2509 from Drakkar-Software/dev
Dev merge
- Loading branch information
Showing
8 changed files
with
102 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# This file is part of OctoBot (https://github.com/Drakkar-Software/OctoBot) | ||
# Copyright (c) 2023 Drakkar-Software, All rights reserved. | ||
# | ||
# OctoBot is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either | ||
# version 3.0 of the License, or (at your option) any later version. | ||
# | ||
# OctoBot is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public | ||
# License along with OctoBot. If not, see <https://www.gnu.org/licenses/>. | ||
import pytest | ||
|
||
from additional_tests.exchanges_tests import abstract_authenticated_exchange_tester | ||
|
||
# All test coroutines will be treated as marked. | ||
pytestmark = pytest.mark.asyncio | ||
|
||
|
||
class TestCoinExAuthenticatedExchange( | ||
abstract_authenticated_exchange_tester.AbstractAuthenticatedExchangeTester | ||
): | ||
# enter exchange name as a class variable here | ||
EXCHANGE_NAME = "coinex" | ||
ORDER_CURRENCY = "BTC" | ||
SETTLEMENT_CURRENCY = "USDT" | ||
SYMBOL = f"{ORDER_CURRENCY}/{SETTLEMENT_CURRENCY}" | ||
ORDER_SIZE = 70 # % of portfolio to include in test orders | ||
CONVERTS_ORDER_SIZE_BEFORE_PUSHING_TO_EXCHANGES = True | ||
|
||
async def test_get_portfolio(self): | ||
await super().test_get_portfolio() | ||
|
||
async def test_get_portfolio_with_market_filter(self): | ||
await super().test_get_portfolio_with_market_filter() | ||
|
||
async def test_get_account_id(self): | ||
# pass if not implemented | ||
pass | ||
|
||
async def test_create_and_cancel_limit_orders(self): | ||
await super().test_create_and_cancel_limit_orders() | ||
|
||
async def test_create_and_fill_market_orders(self): | ||
await super().test_create_and_fill_market_orders() | ||
|
||
async def test_get_my_recent_trades(self): | ||
await super().test_get_my_recent_trades() | ||
|
||
async def test_get_closed_orders(self): | ||
await super().test_get_closed_orders() | ||
|
||
async def test_create_and_cancel_stop_orders(self): | ||
# pass if not implemented | ||
pass | ||
|
||
async def test_edit_limit_order(self): | ||
# pass if not implemented | ||
pass | ||
|
||
async def test_edit_stop_order(self): | ||
# pass if not implemented | ||
pass | ||
|
||
async def test_create_single_bundled_orders(self): | ||
# pass if not implemented | ||
pass | ||
|
||
async def test_create_double_bundled_orders(self): | ||
# pass if not implemented | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters