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.
qsi|1 year ago
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!
kyleloomis|1 year ago
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.
thetwentyone|1 year ago
https://github.com/JuliaComputing/Miletus.jl
https://github.com/JuliaActuary/FinanceModels.jl
I’m the author of the second one, so am always interested to see discussions on financial modeling libraries.
kyleloomis|1 year ago
openrisk|1 year ago
> The CDM is a model for financial products, trades in those products, and the lifecycle events of those trades. It is an open source standard that aligns data, systems and processes and is available as code in multiple languages for easy implementation across technologies.
[1] https://github.com/finos/common-domain-model
kyleloomis|1 year ago
kyleloomis|1 year ago
KeplerBoy|1 year ago
jk4930|1 year ago
is_true|1 year ago
AlexatParis|1 year ago
kyleloomis|1 year ago
cmcconomy|1 year ago
kyleloomis|1 year ago
keithalewis|1 year ago
kyleloomis|1 year ago
vegapulse|1 year ago
[deleted]
johanneskanybal|1 year ago
unknown|1 year ago
[deleted]