Skip to content

Add more sample code

Choose a tag to compare

@shlomiku shlomiku released this 03 Apr 07:38
· 200 commits to master since this release
965c69c

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