update docs, fix bug in environment

This commit is contained in:
robcaulk
2022-11-13 16:56:31 +01:00
parent 3c249ba994
commit 388ca21200
4 changed files with 33 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ class BaseEnvironment(gym.Env):
if self.config.get('fee', None) is not None:
self.fee = self.config['fee']
elif dp is not None:
self.fee = self.dp.exchange.get_fee(symbol=dp.current_whitelist()[0])
self.fee = dp._exchange.get_fee(symbol=dp.current_whitelist()[0]) # type: ignore
else:
self.fee = 0.0015