Stocksera
Stocksera copied to clipboard
Idea: can we integrate robinhood api into this.
- [x] Bot
algorithms
Just incase someone tries to use this, the algorithm each day will have a leverage ETF added for edging.
- [ ] Buy hold
- [ ] Buy and sell tomorrow if threshold is met
- [ ] Just_sell tomorrow
- [ ] Sell at overall account value
APIS know issues:
~~1. coingecko api needs to be replaced or add a try and continue in task script.~~ (fixed -09-11-2021) 2. 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
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