ImportError: cannot import name 'TimeFrame' from 'alpaca_trade_api.rest

Gettting error : ImportError: cannot import name ‘TimeFrame’ from 'alpaca_trade_api.rest

alpaca-trade-api is installed. Switching to anaconda solved my last issue with alpaca-trade-api . How about this one?

2 Likes

Same issue. Using anaconda. import of alpaca_trade_api as tradeapi works fine.

I have the same issue. Cannot import ‘TimeFrame’ and ‘TimeFrameUnit’ from alpaca_trade_api.rest’