Description
We need to add a Rocket server to our exchange simulator to handle incoming requests and expose the functionality through REST API endpoints. The goal is to make it easy for external code to interact with the simulator for tasks such as creating new exchange instances, managing wallets, and placing orders.
Proposed API Endpoints
/create_new_instance: Initialize a new exchange instance and return its ID
/wallet/balance: Accept an exchange instance ID and return the wallet balance
/wallet/transactions: Accept an exchange instance ID and return the wallet transactions
/place_order: Accept all necessary parameters for placing an order, then place the order and return its ID
/cancel_order: Cancel an order with a given order ID and exchange instance ID
/order_status: Return the status of an order for a given order ID and exchange instance ID
Implementation Details
The exact API design and request/response format should be discussed and finalized in the related pull request. The focus should be on providing a simple and intuitive interface for users to interact with the exchange simulator.
Acceptance Criteria
Please feel free to add any additional comments, suggestions, or concerns regarding this issue. We look forward to your contributions!
Description
We need to add a Rocket server to our exchange simulator to handle incoming requests and expose the functionality through REST API endpoints. The goal is to make it easy for external code to interact with the simulator for tasks such as creating new exchange instances, managing wallets, and placing orders.
Proposed API Endpoints
/create_new_instance: Initialize a new exchange instance and return its ID/wallet/balance: Accept an exchange instance ID and return the wallet balance/wallet/transactions: Accept an exchange instance ID and return the wallet transactions/place_order: Accept all necessary parameters for placing an order, then place the order and return its ID/cancel_order: Cancel an order with a given order ID and exchange instance ID/order_status: Return the status of an order for a given order ID and exchange instance IDImplementation Details
The exact API design and request/response format should be discussed and finalized in the related pull request. The focus should be on providing a simple and intuitive interface for users to interact with the exchange simulator.
Acceptance Criteria
Please feel free to add any additional comments, suggestions, or concerns regarding this issue. We look forward to your contributions!