1212from .entity import (
1313 Account , AccountConfigurations , AccountActivity ,
1414 Asset , Order , Position , BarSet , Clock , Calendar ,
15- Watchlist
15+ Watchlist , PortfolioHistory
1616)
1717from . import polygon
1818from . import alpha_vantage
@@ -437,18 +437,20 @@ def delete_from_watchlist(self, watchlist_id, symbol):
437437 self .delete ('/watchlists/{}/{}' .format (watchlist_id , symbol ))
438438
439439 def get_portfolio_history (
440- date_start = None , date_end = None , period = None ,
440+ self , date_start = None , date_end = None , period = None ,
441441 timeframe = None , extended_hours = None
442442 ):
443443 params = {}
444444 if date_start is not None :
445445 params ['date_start' ] = date_start
446446 if date_end is not None :
447447 params ['date_end' ] = date_end
448- if perioid is not None :
448+ if period is not None :
449449 params ['period' ] = period
450450 if timeframe is not None :
451451 params ['timeframe' ] = timeframe
452452 if extended_hours is not None :
453453 params ['extended_hours' ] = extended_hours
454- return PortfolioHistory (self .get ('account/portfolio/history' , data = params ))
454+ return PortfolioHistory (
455+ self .get ('/account/portfolio/history' , data = params )
456+ )
0 commit comments