SkillAgentSearch skills...

Tradesim

Trading simulator for backtesting of strategy

Install / Use

npx skills add mathieugouin/tradesim

Installs into whichever agent you are using.

About this skill

Quality Score

0/100

Supported Platforms

Universal

Tags

README

Trading Simulator

Python Build codecov CodeFactor Security Rating Code Smells Last Commit License: GPL v3

Overview

My ramblings on various stock analysis and data mining.

Prerequisites

Quick Start

  • If required, edit the stock list files in stock_db/*.txt.
  • Run (and possibly edit) download_historical_data.sh to download the historical stock data locally from the stock list files.
  • Run and play with tradesim.py

IPython / Notebook

Setup

  • python3 -m pip install --upgrade pip
  • python3 -m pip install ipython
  • python3 -m pip install jupyterlab
  • Make sure ~/.local/bin/ is in the path

IPython Run

  • cd to the current dir where to start
  • ipython

Jupyter Lab Notebook Run

Jupyter lab has a nicer interface.

  • cd to the current dir where to start
  • jupyter lab
  • For Github codespace: jupyter lab --no-browser

Magic command

Ref: https://ipython.readthedocs.io/en/stable/interactive/magics.html

  • %whos: Print all interactive variables

Shortcuts

  • dd: delete cell
  • a: insert cell above
  • b: insert cell below
  • m: convert cell to markdown (for documentation)
  • y: convert cell to code (python)
  • Ctrl+Enter: run current cell
  • Shift+Enter: run & select cell below
  • Alt+Enter: run cell & insert below

Notes

  • Sympy equation wrapper: https://raw.githubusercontent.com/mathcube7/customize-sympy/main/customizer.py

Related Skills

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated8mo ago
Forks2

Languages

Jupyter Notebook

Security Score

77/100

Audited on Nov 18, 2025

No findings