abzdel / Swing-Trading-Stock-Bot

A Python-based bot that uses the Alpaca API and swing trading principles to buy and sell securities.
45 stars 18 forks source link

Error in biz_bot_scrape.py #1

Open omnicortex opened 2 days ago

omnicortex commented 2 days ago

When running biz_bot_final_script.py, I got the following error.

Traceback (most recent call last):
File "biz_bot_place_orders.py", line 1, in <module>
import biz_bot_scrape as bb1
File "/swingtrade/biz_bot_scrape.py", line 42, in <module>
t = datetime.fromtimestamp(bar['t']) # change from UNIX timestamp to datetime object
TypeError: string indices must be integers

I couldn't figure out what's going on.

abzdel commented 1 day ago

@omnicortex I haven't checked on this project in quite a while, but I made a note on my to-do list to try to jog my memory and get you a solution on this. I'll try to get you a proper response sometime this week!