Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DVampire/FinAgent
/ current_value
Method
current_value
finagent/environment/trading.py:114–115 ·
view source on GitHub ↗
(self, price)
Source
from the content-addressed store, hash-verified
112
return
self.prices_df.iloc[self.day][
"adj_close"
]
113
114
def
current_value(self, price):
115
return
self.cash + self.position * price
116
117
def
get_state(self):
118
Callers
3
buy
Method · 0.95
sell
Method · 0.95
hold_on
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected