Closed wayneadams closed 3 years ago
Or, do you think this the expected behavior or all stores/brokers in Backtrader? If so, then sorry for the trouble, I'll go bother those maintainers 😅
it will get available as soon as the store gets started which happens when you run cerebro. If you need the cash available before, you can just fetch it manually from oanda:
something like:
acc_summary = store.oapi.account.summary(account_no)
Hey @happydasch ,
Thanks for putting together this v20 implementation in Backtrader!
I have a question about the expected behavior of
Cerebro.broker.getcash()
. I was trying to test calling into my Oanda account (practice) and just return the account balance.In the first attempt, I did not add data to cerebro.
As my account has $999.93, I EXPECTED the print statements to output:
Instead, the ACTUAL output was:
In my second attempt, I added data to cerebro.
And the ACTUAL output was:
Is this expected?