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?

3 Likes

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