An updated version of the gymnasium package changes the behavior of gymnasium.Env.reset. The return value of the reset method now returns a tuple of observation and info, which causes the tuple error mentioned in #78. Please refer to the gymasium's documentation for more details. This is fixed by ignoring the second value in the returned tuple.
The current version of the exchange-calendars package requires the dates to be timezone native, which causes the "UTC has no key" error mentioned in #81. This was resolved by erasing tz=pytz.UTC.
Also, the current version of pandas has deprecated DataFrame.append. For more details, please refer to the pandas' documentation. This is solved by simply changing the code from df.append to pd.concat in the alpaca_history function.
An updated version of the
gymnasium
package changes the behavior ofgymnasium.Env.reset
. The return value of thereset
method now returns a tuple ofobservation
andinfo
, which causes the tuple error mentioned in #78. Please refer to the gymasium's documentation for more details. This is fixed by ignoring the second value in the returned tuple.The current version of the
exchange-calendars
package requires the dates to be timezone native, which causes the "UTC has no key" error mentioned in #81. This was resolved by erasingtz=pytz.UTC
.Also, the current version of pandas has deprecated
DataFrame.append
. For more details, please refer to the pandas' documentation. This is solved by simply changing the code fromdf.append
topd.concat
in thealpaca_history
function.