Forex Investment 5.0.4
20 December 2024
USER SYSTEMADMIN SYSTEMBUG FIXESERROR HANDLINGAPI FIXES
Forex v5.0.4
Release Date: December 20, 2024
Tags: USER SYSTEM, ADMIN SYSTEM, BUG FIXES, ERROR HANDLING, API FIXES
Added
- Added a user-facing forex signal endpoint that returns only the signals belonging to the signed-in user's accounts.
- Added a plan duration endpoint for fetching the durations offered by a single plan.
- Added an account signal endpoint for fetching the signals attached to one account.
- Added authentication and authorization checks to every user-facing forex endpoint.
- Added clearer error messages when creating an investment fails.
Changed
- Changed the investment list to filter by the signed-in user.
- Changed the individual investment response to include the plan's currency and further account details.
- Changed the dashboard to load its data asynchronously and to use proper translation keys.
- Changed investment data handling to accept both a plain list and a paginated response.
- Changed investment creation to validate its input fully and report failures clearly.
- Changed error handling across all user and admin forex endpoints to return proper HTTP status codes.
- Changed forex account and wallet operations to validate their input before acting.
- Changed error messages so both users and admins get clear feedback.
- Changed metadata parsing to survive missing or malformed values instead of failing.
- Changed deposit and withdrawal handling to confirm the account and wallet exist before moving funds.
- Changed investment creation to run as a single transaction, so a failure part-way through cannot leave an investment half-created.
Fixed
- Fixed the investment list returning every investment on the platform instead of only the signed-in user's.
- Fixed investment queries not filtering by user, which exposed one user's investment data to another.
- Fixed the individual investment endpoint handling its errors improperly.
- Fixed translation problems on the dashboard.
- Fixed the plan detail screen failing to load.
- Fixed the investment detail screen failing to load.
- Fixed inconsistent handling of the investment list response format.
- Fixed notification links pointing at the wrong investment URL.
- Fixed translation keys showing underscores instead of readable display text.
- Fixed the investment list not refreshing after a new investment was created.
- Fixed account balance validation when creating an investment.
- Fixed an undefined parameter in the plan update endpoint causing the request to fail.
- Fixed inconsistent error handling when updating deposit transactions.
- Fixed inconsistent error handling when updating withdraw transactions.
- Fixed poor error handling when updating a forex account or wallet balance, which could surface as a runtime error rather than a message.
- Fixed unclear error messages in forex account and wallet balance validation.