MCPcopy Create free account
hub / github.com/DVampire/FinAgent / value

Function value

finagent/trajectory/dynamic_programming.py:92–93  ·  view source on GitHub ↗
(cash, position, price)

Source from the content-addressed store, hash-verified

90 return cash, position
91
92def value(cash, position, price):
93 return cash + position * price
94
95
96def max_profit_with_actions(prices, cash, fee_ratio):

Callers 1

max_profit_with_actionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected