$ pip3 install alpaca-trade-api
api.get_portfolio_history(date_start=None, date_end=None, period=None, timeframe=None, extended_hours=None)