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

Method get_current_date

finagent/environment/trading.py:108–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 self.action_radius = int(np.floor(self.action_dim / 2))
107
108 def get_current_date(self):
109 return self.prices_df.index[self.day]
110
111 def get_current_price(self):
112 return self.prices_df.iloc[self.day]["adj_close"]

Callers 3

__init__Method · 0.95
resetMethod · 0.95
stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected