stefan8893 / simple-trading

MIT License
1 stars 0 forks source link

Make the result of a closed trade optional #65

Open stefan8893 opened 8 hours ago

stefan8893 commented 8 hours ago

Right now, results cannot be set to null explicitly. The two endpoints 'AddTrade' and 'UpdateTrade' contain a property 'ManuallyEnteredResult'. If this property is null the result gets re-calculated by the trade's properties.

However, the user should be able to explicitly set the result to null. That means, you must not re-calculate the result if the property 'ManuallyEnteredResult' is set to null when updating or adding a trade. Just assign null to the trade's result.