guanquann / Stocksera

Finance application that provides more than 60 different alternative data to retail investors
MIT License
658 stars 106 forks source link

Idea: can we integrate robinhood api into this. #6

Open Nllii opened 3 years ago

Nllii commented 3 years ago

#

APIS know issues:

1. coingecko api needs to be replaced or add a try and continue in task script. (fixed -09-11-2021)

  1. Yahoo API in the future maybe down. Need to redirect to another source in the future to prevent down time when the bot is requesting data.

https://github.com/guanquann/Stocksera/blob/32a9371324fb1268ca8018b3539581774a57a22d/fast_yahoo.py#L96C1-L97C1

guanquann commented 3 years ago

coingecko api issued solved. Try this instead:

while True:
    try:
        prices = client.get_coin_market_chart_by_id(crypto_id, vs_currency="USD", days=30)
    except requests.exceptions.RequestException as e:
        print(e, "errors")
        time.sleep(15)
    else:
        break