MCPcopy Create free account
hub / github.com/DVampire/FinAgent / dynamic_programming.py

File dynamic_programming.py

finagent/trajectory/dynamic_programming.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import numpy as np
2
3"""
4Given an array of prices, an initial cash, and a fee_ratio, there are three states BUY, SELL, and HOLD when you buy and sell.

Callers

nothing calls this directly

Calls 4

max_profit_with_actionsFunction · 0.70
buyFunction · 0.70
sellFunction · 0.70
noopFunction · 0.70

Tested by

no test coverage detected