happydasch / btoandav20

Support for Oanda-V20 API in backtrader
Apache License 2.0
131 stars 52 forks source link

avail variable is no longer part of OandaSizer #78

Open ebredy opened 6 months ago

ebredy commented 6 months ago

Part of this code logic that initialized avail was removed and is throwing an error:

https://github.com/happydasch/btoandav20/blob/5a57dfa198e0301a9634e94862f12f29f9666dd5/btoandav20/sizers/oandav20sizer.py#L49

I looked through the history, and I'm not to clear as to the reason why it was removed and the logic that should be there to properly initialize avail variable