Automate Tradingview chart widgets.
from autochart_tv.manager import ACManager
with ACManager() as ACM:
sleep(2)
ACM['CHART'].execute('AAPL')
sleep(2)
ACM['CHART'].execute('BTCUSDT', 'TSLA')
sleep(2)
ACM['RANDOM'].execute()
sleep(2)
ACM['RANDOMCRYPTO'].execute(9)
sleep(60)
-
Python 3.6
-
Chrome driver https://sites.google.com/a/chromium.org/chromedriver/downloads
- Clone the repository and install dependencies.
git clone https://github.com/dgnsrekt/autochart-tv.git
cd autochart-tv
pipenv sync
- Run autochart server.
pipenv shell
python3 cli.py server
- Run autochart REPL or connect to Fomo Driven Development API.
Open a new terminal window.
cd autochart-tv
pipenv shell
python3 cli.py repl
or
python3 cli.py fomodd-api
Command | Descriptions | Args |
---|---|---|
REFRESH | Refreshes the browser. | None |
EXIT | Closes the browser and ends the script. | None |
CLEAR | Deletes all charts. | None |
DELETE | Deletes the most recently displayed ticker. | None |
CHART | Displays the chart for the ticker. | ticker |
RANDOM | Generates and displays random tickers | Number of tickers. Max=9 |
RANDOMSTOCK | Generates and displays random stockmarket tickers | Number of tickers. Max=9 |
RANDOMCRYPTO | Generates and displays random crypto tickers | Number of tickers. Max=9 |
TOPSTOCKGAINERS | Pull and displays top gainers from iex exchange. | Number of tickers. Max=9 |
TOPSTOCKLOSERS | Pull and displays top losers from iex exchange. | Number of tickers. Max=9 |
FOMODDSUPERFILTER | Uses https://api.fomodd.io/superfilter to filter the shit from the shitcoins | Number of tickers. Max=9 |
TWITTERSTOCKSCRAPER | Scrapes a twitter profile for the most recent stock tickers. Returns 1 ticker with multiple ticker peers from iexexchange. | twitter profiles |
SCREENSHOT | Takes a screenshot of the currently displayed tickers | None |
- Tons of refactoring.
- Bring superfilter api back up.
- Add a feature which checks gmail api for new email alerts from Tradingview and display the chart.
- Find replacement for IEX.
- Finviz scraper/ try out scrapy.
- Maybe write some test. ¯_(ツ)_/¯
- Maybe a websocket api
- Twitter = Telegram = @dgnsrekt
- Email = [email protected]