Hi @backtrader ,
Thank you for the reply.
api = alpaca_trade_api.REST( base_url=base_url, key_id=api_key_id, secret_key=api_secret)
this is indeed alpaca_trade_api.REST(). How can I get only the last 6 data bars from the code? what changes would i have to make. Would you happen to know? Thanks in advance.
@vladisld I did post in alpaca forum but havenot received any feedback for days. I seem to get help here more often. Sorry didnot mean to spam this forum.