bradamelton / saberfin.io

Issues for the https://saberfin.io website
0 stars 0 forks source link

Show ending prices when a position is expired #1

Closed bradamelton closed 2 years ago

bradamelton commented 2 years ago

On the back-end, when getting a position that has expired, if it doesn't already have the closing prices, grab them, save them and return it.

bradamelton commented 2 years ago

Start with: When clicking Current, if it is after the date, grab the close from the history.

bradamelton commented 2 years ago

And add an "expired" price type

bradamelton commented 2 years ago

Mostly there. Need to clean up positioning and display name.

bradamelton commented 2 years ago

Don't forget it includes Min changes that will need package deployment.

bradamelton commented 2 years ago

Getting funky error trying to save.

A write operation resulted in an error.\n '$set' is empty

bradamelton commented 2 years ago

Need to handle that rejection too... not handled in the Fetch call from front-end so it's blowing up.