Company: Unicult_8oct
Difficulty: medium
Problem Description You are tasked with implementing a REST API in Node.js to manage a collection of stock trades. The API will allow clients to create new trades, query the list of trades with optional filters, and fetch individual trades. A pre-configured SQLite3 database is set up for persistence. Note that the provided data model implementation may use a DateTime type for the timestamp. Your API layer must ensure it correctly serializes and deserializes this field to and from an integer epoch timestamp in the JSON payloads. Endpoints POST /trades : Creates a new trade. GET /trades : Retrieves all trades, supporting optional filtering. GET /trades/:id : Retrieves a specific trade by its ID. DELETE, PUT, PATCH /trades and /trades/:id : Modifying or deleting trades is not permitted. Request Format POST /trades Expects a JSON body containing the details of the trade. The id property must not be included, as it will be auto-generated sequentially by the system. type: String (strictly 'b