node Global view & account history - #3642
Open
GuillaumeDSM wants to merge 10 commits into
Open
Conversation
GuillaumeDSM
force-pushed
the
global_view
branch
14 times, most recently
from
August 17, 2026 21:14
fba8b81 to
122c190
Compare
GuillaumeDSM
force-pushed
the
global_view
branch
9 times, most recently
from
August 25, 2026 12:00
588cf6f to
23c772b
Compare
GuillaumeDSM
force-pushed
the
global_view
branch
3 times, most recently
from
August 25, 2026 20:42
396e50a to
d689807
Compare
Herklos
reviewed
Aug 26, 2026
|
|
||
| async def fetch_deposits(self, since: int = None, limit: int = None) -> list[dict]: | ||
| try: | ||
| return await self.exchange_manager.exchange.get_deposits(since=since, limit=limit) |
Contributor
There was a problem hiding this comment.
Could it make sense to create an updater the same way as trades and others and to use the updater here instead of the exchange manager function?
Member
Author
There was a problem hiding this comment.
good point, it's not used but it would fit the architecture, i'll add an updater that for now will only be used there
Herklos
reviewed
Aug 26, 2026
Herklos
left a comment
Contributor
There was a problem hiding this comment.
Awesome testing framework! Great job
GuillaumeDSM
force-pushed
the
global_view
branch
from
August 28, 2026 09:08
d689807 to
86027ca
Compare
GuillaumeDSM
force-pushed
the
global_view
branch
4 times, most recently
from
August 28, 2026 14:25
a559618 to
618b246
Compare
GuillaumeDSM
force-pushed
the
global_view
branch
from
August 28, 2026 14:58
618b246 to
57a0085
Compare
GuillaumeDSM
force-pushed
the
global_view
branch
from
August 29, 2026 14:20
46572d4 to
f36e8db
Compare
GuillaumeDSM
marked this pull request as ready for review
August 29, 2026 14:31
GuillaumeDSM
force-pushed
the
global_view
branch
from
August 29, 2026 21:20
f36e8db to
2021eff
Compare
Herklos
reviewed
Aug 30, 2026
Herklos
left a comment
Contributor
There was a problem hiding this comment.
Great job! And very nice testing work 💯
| await self.inner_test_get_my_recent_trades_exhaust_history() | ||
|
|
||
| @expect_not_supported_on_read_only("get_my_recent_trades") | ||
| async def inner_test_get_my_recent_trades_exhaust_history(self): |
| await self.inner_test_get_deposits() | ||
|
|
||
| @expect_not_supported_on_read_only("get_deposits") | ||
| async def inner_test_get_deposits(self): |
| response = tenant_client.get("/api/v1/accounts/acc-1/historical-values") | ||
| assert response.status_code == 503 | ||
|
|
||
| def test_returns_401_without_auth(self, client, mock_auth): |
| import octobot_sync.sync.collection_backend.single_item_local_collection_provider as single_item_provider | ||
|
|
||
|
|
||
| class AccountHistoryProvider( |
| @@ -818,6 +837,45 @@ | |||
| } | |||
| } | |||
| }, | |||
| "TransactionType": { | |||
| } | ||
| } | ||
| }, | ||
| "ResetAccountTradingDataConfiguration": { |
Comment on lines
+103
to
+109
| def _parse_base_quote(symbol: str) -> tuple[str, str] | None: | ||
| if "/" not in symbol: | ||
| return None | ||
| base_asset, quote = symbol.split("/", 1) | ||
| if not base_asset or not quote or base_asset == quote: | ||
| return None | ||
| return base_asset, quote |
Contributor
There was a problem hiding this comment.
Shouldn't we use commons Symbol instead ?
| return sorted(symbol for symbol in symbols if symbol in live_symbols) | ||
|
|
||
|
|
||
| def _derive_price_symbols( |
Contributor
There was a problem hiding this comment.
Shouldn't we use commons.Symbol ?
| ) | ||
| # Update persisted latest-tickers cache from fetched ticker closes. | ||
| if exchange_refresh_result.ticker_closes: | ||
| await trading_api.update_latest_tickers( |
Herklos
reviewed
Aug 30, 2026
| return replicable | ||
|
|
||
|
|
||
| def is_order_impossible_at_market_price( |
|
|
||
|
|
||
| class TestPatchTaskContentDegradedState: | ||
| def test_persists_degraded_state_in_task_content(self): |
| SCHEMA_VERSION = 1 | ||
|
|
||
|
|
||
| class MarketDataSQLiteDatabase(base_sqlite_database.BaseSQLiteDatabase): |
| assert result[day_1_start]["USDT"][TOTAL] == decimal.Decimal("0") | ||
|
|
||
|
|
||
| class TestBuildHistoricalHoldingsDepositWithdrawal: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
requires Drakkar-Software/ccxt#29
includes: