Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DVampire/FinAgent
/ eval_sell_position
Method
eval_sell_position
finagent/environment/trading.py:195–197 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
193
return
int(np.floor(self.cash / price / (1 + self.transaction_cost_pct)))
194
195
def
eval_sell_position(self):
196
# evaluate sell position
197
return
int(self.position)
198
199
def
buy(self, price, amount=1):
200
Callers
1
sell
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected