The /trade API on the BAP side allows users to submit a negative price when creating a trade. This can lead to invalid transactions and disrupt the intended functionality of the trading process.
Steps to Reproduce
Make a request to the /trade API with a negative price value.
Submit the trade request.
Observe that the API processes the request successfully, allowing a trade with a negative price.
Expected Behavior
The /trade API should validate the price input and reject any requests containing negative prices, ensuring that only valid price values are accepted.
Actual Behavior
The API accepts negative prices without any validation errors, allowing invalid trades to be processed.
Bug Description
The /trade API on the BAP side allows users to submit a negative price when creating a trade. This can lead to invalid transactions and disrupt the intended functionality of the trading process.
Steps to Reproduce
Expected Behavior
The /trade API should validate the price input and reject any requests containing negative prices, ensuring that only valid price values are accepted.
Actual Behavior
The API accepts negative prices without any validation errors, allowing invalid trades to be processed.
Figma
NA
Environment
Screenshots/Logs