Skip to content

Release#106

Closed
ifaouibadi wants to merge 20 commits intomainfrom
develop
Closed

Release#106
ifaouibadi wants to merge 20 commits intomainfrom
develop

Conversation

@ifaouibadi
Copy link
Copy Markdown
Member

@ifaouibadi ifaouibadi commented Apr 2, 2026

Note

Medium Risk
Introduces new API endpoints and changes how PnL/price data is sourced (more cache-driven), which could affect response contents and freshness; functionality is covered by new unit tests but touches finance-related data paths.

Overview
Adds two new account portfolio endpoints: a dedicated GET :address/portfolio/tokens/history that always includes per-token tokens_pnl, and GET :address/portfolio/pnl-chart.svg that returns an SVG sparkline of realized PnL (hourly for <=24h ranges, daily otherwise) using a new lightweight PortfolioService.getPnlTimeSeries path.

Refines portfolio history semantics so /portfolio/history only includes aggregate PnL when requested and no longer returns per-token breakdown by default, updates Swagger/DTO documentation accordingly, and extends tests to cover the new chart endpoint and PnL time-series behavior.

Reworks CoinGecko usage to be cache/cron-driven (no API calls on service instantiation), simplifies the price-feed history endpoint by dropping “minute” interval/aggregation logic, and updates/removes various dependencies (notably dropping mysql2, ts-loader, and adjusting Nest/GraphQL/PG and related packages).

Written by Cursor Bugbot for commit 033201e. This will update automatically on new commits. Configure here.

ifaouibadi and others added 19 commits March 30, 2026 12:10
…and caching; update AppService to utilize new syncAllFromApi method for initialization and cron job; adjust portfolio service tests to reflect method name changes
… parameters and enhancing error logging; clean up unnecessary whitespace in AppService
…ming logic; ensure rates are only refreshed when null
…rove cache management; streamline price feed controller by removing unused cache manager
…L history with optional date range and interval; enhance portfolio service to support per-token PnL breakdown
…maries and descriptions; update query DTO for clarity on included fields
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@ifaouibadi ifaouibadi closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants