This Pull Request introduces a comprehensive service for persisting exchange operations in a database. The service is designed to ensure that every interaction with supported exchanges is reliably stored, enabling recovery from failures and providing insights into exchange activities without relying on direct API calls for internal operations.
Summary of changes
Implemented saveExchangeOperation method: Stores details of exchange operations, such as order placements, cancellations in the database.
Implemented saveOrderData method: Persists order data including status, price, and quantity to the database, ensuring accurate records for future reference.
Added unit and e2e tests: Comprehensive tests were added to validate the functionality of each method and to handle edge cases.
Description
This Pull Request introduces a comprehensive service for persisting exchange operations in a database. The service is designed to ensure that every interaction with supported exchanges is reliably stored, enabling recovery from failures and providing insights into exchange activities without relying on direct API calls for internal operations.
Summary of changes
saveExchangeOperation
method: Stores details of exchange operations, such as order placements, cancellations in the database.saveOrderData
method: Persists order data including status, price, and quantity to the database, ensuring accurate records for future reference.Related issues
Fixes #8