Skip to content

prediqtiv/prediqtiv.github.io

Repository files navigation

You are now in a GitHub source code view - click this link to view Read Me file as a web page

Due to changes in way Google allows access to financial data, the eyeCue scripts to gather fresh replay data are currently broken.

See start of new effort here: PreIQtiv ~ Alpha Vantage Cookbook

Full Screen Demo: eyeCue Replay Dev

Full Screen Demo: eyeCue Realtime

Full Screen Demo: eyeCue Realtime Dev

eyeCue Replay Dev as a web page embedded in an Iframe tag

<iframe src="https://prediqtiv.github.io/eye-cue/replay/dev/index.html" width=100% height=600px ></iframe>

Development version - may have issues

Concept

“If at first the idea is not absurd, then there is no hope for it.” — Albert Einstein

Issues / Problems

Trying to gauge the movements of hundreds of stocks while they are trading is not easy. It is quite difficult to note which are the outliers and which are in the middle of the pack.

Mission

  • Derive real-time company intelligence from public sources to help users make better-informed investing and business decisions.
  • View hundreds of market symbols in a non-reductionist manner
  • Be able to get a picture of how the market is flowing

Vision

  • Help traders find interesting trading circumstances
  • Spin-offs might tackle: financial markets, currencies, weather, Internet traffic

Two types of Scripts here

  • Data gathering
  • Data visualization 3D

Data Gathering

Currently there are several apps hosted on different types of servers

GitHub Hosting

  • GitHub provides hosting for static files such as HTML files, style sheets, images and JavaScript files at no charge
  • Once accessed, files load and run on the client computer
  • Files are available with low latency and thus load quite fast
  • There is no easy way to run files on a schedule

Hosted on GitHub: Trades Get

  • Request and obtain intraday trades for hundreds of stock market symbols for a number of days
  • Saves data to local drive - data must then be commited by a human to GitHub
  • Must be loaded and run by a human every day
  • The app appears to be quite stable and seems to run without issue whenever it's called
  • See the SP500 Trades Get Read Me ffor much more detail

Hosted on Google Apps Script (GAS)

  • Wikipedia Google Apps Script - a scripting language for light-weight application development in the Google Apps platform
  • Google: Google Apps Script - Create add-ons for Google Sheets, Docs, or Forms, automate your workflow, integrate with external APIs, and more.

Why Gas?

  • It's available at no charge
  • Code runs on a server
  • Code forking and sharing is built-in
  • Triggers can be set to run at designated events or times - down to ine minute intervals - with no human intervention

Hosted on Google Apps Script: SP500-trades-get

  • Runs on a GAS server
  • Loads the Wikipedia page with the list of SP500 components
  • Uses the GAS spreadsheet GoogleFinance functions to gather the market capitalization anf the average daily volume for each symbol
  • Uses an undocumented Google service to gather one minute intraday day for each og the symbols
  • Uses the GitHuB API - and invoking OAuth for authorization - to send files from the Google servers to the GitHub servers

Hosted on Google Apps Script: SP500 Twitter Cashtags Get

  • Runs on a GAS server
  • Uses the Twitter API - with OAuth - to gather the current 'cashtags' for each of the 500 symbols
  • Uses the GitHuB API - and invoking OAuth for authorization - to send the Twitter data from the Google servers to the GitHub servers
  • See Read Me for more detail

Upcoming

  • Both GAS scripts need work on improving the reliability of completion as well as better recovery from error
  • Get official Twitter name for each symbol - using the Twitter search API

Data Visualization 3D

There are two scripts of note here

eyeCue SP500 Realtime

  • SP500 near realtime ~ updates about once a minute

eyeCue SP500 Replay

  • SP500 replay ~ select and follow entire days of one minute intraday trading

Usage Notes

The first time you run the Jaanga SP500 scripts, you may need to refresh the page in order for everything to load properly. The script only runs on devices that support WebGL.

Once the script is running, updates will occur every minute or so - and you will see the symbols move just a bit,

Navigation

  • Roll = left or 1 finger
  • Zoom = scroll or 2 finger
  • Move = right or 3 finger

Desktop/laptop

  • Move your cursor over symbols to see their charts pop up. Click on empty area to clear.

Tablet/phone

  • Not quite as easy as desktop. You may need to smudge or wiggle your finger in order to show the pop-up. Click on an empty space to clear selection before clicking on another symbol

Indicators During the trading day the symbols move across the table

  • Left/Red - Right/Green. Symbols in the green area are gainers. Symbols in the red are losers. The further the symbols are from the centerline the more they are gaining or losing. Symbol stuck at the edges of the table have gained or lost over 20%
  • Front/Start - Back/Finish. Movement from start to finish is based on volume - the current volume divided by the average daily volume. All symbols start at zero. Symbols at the back have reached or exceeded 600% of the symbols average daily volume in that session

Features

  • Displays the positions of the entire SP500 in 3D
  • Market data is updated every minute or so
  • Automatic acquisition and storage of data
  • Full 3D ~ rotate, and and zoom in real-time
    • Real-time animation or real-time data
  • Heads-up display with links and charts for individual symbols
  • Select a symbol from menu and see its position highlighted in the 3D display
  • Select a symbol by typing
  • Symbols colored by sector
  • Data wrangling
    • Keeps all the data visible always
  • Large amounts of data
    • No server. No server management. Little that is hackable
    • All data in the cloud
  • Storage likely to last until the end of time
  • Supports many data type possibilities
    • Augmented unreality / heads-up display
  • A UI that is not a skeumorph of the meatworld/second life
  • UI that allows access to huge amounts of choices
    • non-reductionist ways or presenting data
    • Run-time updates of data and/or code
  • Single language - JavaScript - for the whole thing - no HTML or CSS
    • Code is highly customizable
    • Very CORS oriented
    • Theme-able
    • Many sorts of triage/representation/selection possibilities
    • No crashes. It just works
    • Works on desktops, laptops, tablets and phones

Things To Do / Road Map

One day this list will be as long as your arm

User Interface

  • Alternative menu layouts
  • Create alternative color schemes

Portfolios / Sectors /Groups

  • Highlight your own and others portfolios
  • Display bounding boxes around the symbols in a particular industry sector

Heads-Up Display

  • ???

Links to Social Networks

  • ???

Naming

'predIQtiv' is the name of the organization.

'eyeCue' or whatever is the name of one of the products.

Change Log

Most changes are noted in Read Me files in folders containing the associated scripts.

2017-06-02 ~ Theo

Started thinking about building the eyeCue series using A-frame. We need to be thinking about what the SP500 look like in virtual reality or augmented reality.

2017-05-14 ~ Theo

  • Add urls get

2017-05-08 ~ Theo

2017-04-27 ~ Theo

  • Progress on everything - including this read me

2017-04-25 ~ Theo

  • update readme
  • See sp500-trades-get - Google Apps Script
  • See eyeCue Replay R3
  • Save trades data directly to GitHub? << yup
  • Gather trades data via Google Scripts Chron job? << yup

2017-04-15 ~ Theo

  • Big fix to to the next and previous buttons when contents menus are displayed
  • Update menu and readme's throughout

2017-04-12 ~ Theo

  • Updates to Tweet API. See Read Me
  • Fixes to Home Page script (TooToo.js)
    • Read local files

2017-04-11 ~ Theo

  • See blog post

2017-04-10 ~ Theo

Most efforts today were behind thw scene

  • Updates to Tweets gathering scripts using Google Apps Script
  • Minor fixes to Trades Get R7
  • eyeCue Replay R2
    • Added more signage to
    • Turned off Light box
  • Updated predIQtiv home page script
  • Add Device Orientation Test utility