Skip to content

Trading, investing, loan monitoring, precious metals

Notifications You must be signed in to change notification settings

doruirimescu/python-trading

Repository files navigation

Python Financial Framework

example workflow Python 3.10

A multi-tool trading, investing, and asset management platform

  • Trading instruments (seamlessly connecting with XTB brokers)
  • Stock monitoring and analysis (fusing data from different vendors, such as XTB, yahoo finance, alphaspread)
  • Loan monitoring and analysis, for keeping track of your loans, as well as informed decision making between a loan an an investment
  • Investment monitoring and analysis, for keeping track of your investments and other assets (precious metals)
  • Symbols and constants management (investing.com, alphaspread, XTB). yfinance coming soon

This framework is made to work with an XTB client. However, you can implement your own platform's client and use it with my wrapper

First step after cloning: ./install_requirements.sh

Second step: read this

Navigation

This repo is HUGE, and you will probably not need 90% of the things in here.

There is a lot of code that deals with data from xAPI. You can make a demo account here and try the more advanced features of this repo, but most of the software here is self-contained.

  • Loan management here
  • Investment and precious metal model here
  • Precious metal investment tracking here
  • Alerts here
  • Alphaspread cli for stock analysis here
  • Rest api here
  • Daily nasdaq 100 analysis with alphaspread here
  • Dividend growth sustainability analysis here
  • Symbols management, this needs to be frameworked here
  • Dealing with time here. Always use these helpers.
  • Complex logical expressions: criterion

Whenever something really important comes up, it is eventually extracted as a standalone repo, and becomes an external dependency such as:

Papers

Yes, I write papers. Some are more mathematical, some are light reads, other are unpublished manuscripts kept in a folder in my room.

  • [Light read] A method for classifying and assessing trades based on exit and entry conditions here
  • [Heavy maths] Optimal risk management, basically an independent derivation of Kelly's criterion here
  • [Trading strategy] A Quantitative Approach to Selecting Stocks in a Ranging Market here
  • [My magnum opum strategy] This is a work in progress, residing mostly in my head and on scattered papers

Pipeline structure

automation_flow drawio

The main pipeline consists of two parts: main and other workflows.

Snapshots

Selection_2471 image Selection_2473 image image image