Serializing SQL: Building Serializable Data Classes in Kotlin k kyleloomis.com 2 kyleloomis 2 years ago 0 comments
Show HN: Finstruments - Financial instrument library built with Python g github.com 72 kyleloomis 2 years ago 21 comments
Regarding the Portfolio class, I opted to distinguish trades from positions. This is useful for tracking and organizational purposes. For example, if you enter into a straddle, it's useful to combine the put and call into one "trade" instead of just a bunch of random positions.
This is a very early work-in-progress, so I would suggest checking back in over the coming weeks for additional instruments and usage details.