Add more sample code
In this release, we added more sample code to get you started with the alpaca-backtrader integration.
you could find it under the sample/ folder.
also fixed the broker.positions for paper/live execution, which makes sure you get the right position data by any of these ways:
- self.position (self is a strategy)
- self.positions
- self.positionsbyname
- self.getpositionbyname
- self.getposition
- self.broker.positions