Skip to content

Commit

Permalink
remove holdings from constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrlime committed Dec 18, 2023
1 parent dbf59a8 commit 48904c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/public/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def place_market_order(side: str, ticker: str, quantity: float, price: float) ->
class Strategy:
"""Template for a strategy."""

def __init__(self, holdings) -> None:
def __init__(self) -> None:
"""Your initialization code goes here."""
self.holdings = holdings
pass

def on_trade_and_account_update(self, ticker: str, side: str, price: float, quantity: float, capital_remaining: float=None) -> None:
"""Called whenever two orders match. Could be one of your orders, or two other people's orders.
Expand Down

0 comments on commit 48904c3

Please sign in to comment.