|
|
| | Show HN: Finstruments - Financial instrument library built with Python (github.com/kyleloomis) | |
72 points by kyleloomis 44 days ago | hide | past | favorite | 21 comments
|
| | finstruments is a Python library designed for modeling financial instruments. It comes with the core financial instruments, such as forwards and options, out of the box, as well as position, trade, and portfolio models. finstruments comes with the basic building blocks, making it easy to extend and build new instruments for any asset class. These building blocks also provide the functionality to serialize and deserialize to and from JSON, enabling the ability to store a serialized format in a document database. This library is ideal for quantitative researchers, traders, and developers who need a streamlined way to build and interact with financial instruments. |
|
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
I can see the Portfolio class, but it somewhat confusingly uses "Trades" to describe more complex positions (I had assumed a Trade was selling or buying an instrument), and the instruments included are fairly limited. I don't see any bonds, currencies, interest rates, swaps, and others but it looks like an early work in progress, so that's fine. Is it meant to be a generic toolkit to cover the vast majority of financial instruments? I don't understand how characteristics of the instruments are calculated/updated or aggregated into Portfolios.
Some sample code/projects would help me immensely in understanding! (Again, I blame my lack of Python skills).
My apologies for the basic questions!