Skip to content

dgnsrekt/Autochart-TV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autochart-TV

Automate Tradingview chart widgets.

REPL example

Alt Text Alt Text

Simple example script

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)

Required

  1. Python 3.6

  2. Chrome driver https://sites.google.com/a/chromium.org/chromedriver/downloads

  3. Pipenv https://github.com/pypa/pipenv

Quick Start

  1. Clone the repository and install dependencies.
git clone https://github.com/dgnsrekt/autochart-tv.git
cd autochart-tv
pipenv sync
  1. Run autochart server.
pipenv shell
python3 cli.py server
  1. 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

CommandList

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

Todo

  • 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

Contact

About

Tradingview + Flask + Selenium = an interactive command library to automate and display chartwidget grids.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published