Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 5 tasks
Nllii opened this issue Aug 15, 2021 · 1 comment
Open
1 of 5 tasks

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

Nllii opened this issue Aug 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Nllii
Copy link

Nllii commented Aug 15, 2021

  • 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

@guanquann
Copy link
Owner

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

@guanquann guanquann added the enhancement New feature or request label Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants