Skip to content

Instantly share code, notes, and snippets.

@mementum
Created July 22, 2019 22:06
Show Gist options
  • Save mementum/f8763c41e5051d1a7baae39f567ccd62 to your computer and use it in GitHub Desktop.
Save mementum/f8763c41e5051d1a7baae39f567ccd62 to your computer and use it in GitHub Desktop.
# prepare quick lookup list of stocks currently holding a position
posdata = [d for d, pos in self.getpositions().items() if pos]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment