📦 An aframe component for displaying live stock tickers.

Overview

aframe-stock-ticker

Latest NPM release Minzipped size License

An aframe component for displaying live stock tickers. Also works with cryptocurrency and forex.

Example gif

Usage

crypto-chart

To create a crypto chart, add the crypto-chart component.

<a-entity crypto-chart="id: ethereum; days: 30; width: 5; height: 2.5;"></a-entity>

Uses the Coingecko API to gather data. This API doesn't require an API key, and works out of the box with the code above.

stock-chart

To create a stock chart, add the stock-chart component.

<a-entity stock-chart="symbol: AMC; interval: 30min; length: 100; width: 5; height: 2.5;"></a-entity>

Uses the Twelve Data API to gather data. This API works for any asset type - stocks, forex, and crypto - but it requires an API key. An API key can be acquired here for free, with a limit of 800 requests / day.

Once you have a Twelve API key, set window.TWELVE_API_KEY equal to it, as seen at the top of the example.

Properties

crypto-chart

Properties

Property Description Default
id id of the target token. Full list available as a JSON here "Ethereum"
days how many days back to display data from. Can only be: 1,7,14,30,90,180,365,max 14
width width of the chart 4
height height of the chart 2
refreshRate how often to refresh the chart data, in seconds 30
backgroundColor the color of the chart background "#333"
enableBackground whether to enable a background behind the candles true
enableTitle whether to display the ticker name on the chart true
enablePrices whether to display the prices on the chart true
coloredWicks whether to display wicks in the candles true

Members

Member Description Path
timeseries the current timeseries data. el.components["crypto-chart"].timeseries

stock-chart

Properties

Property Description Default
symbol symbol of the target asset. "AMC"
interval chart interval, how long each candle represents "15min"
length how many candles to display 100
width width of the chart 4
height height of the chart 2
refreshRate how often to refresh the chart data, in seconds 30
backgroundColor the color of the chart background "#333"
enableBackground whether to enable a background behind the candles true
enableTitle whether to display the ticker name on the chart true
enablePrices whether to display the prices on the chart true
coloredWicks whether to display wicks in the candles true

Members

Member Description Path
timeseries the current timeseries data. el.components["stock-chart"].timeseries

Events

Event Description Event.detail
price_increase fired on chart refresh, if the price has increased {name: asset name, price: current price, candle: latest candle}
price_decrease fired on chart refresh, if the price has decreased {name: asset name, price: current price, candle: latest candle}

This component was developed in partnership with Planet Voodoo® (Voodoo LLC) as part of their 'WebXR Wizardry' initiative.

You might also like...

Displaying actual age in percentage with 9 signs after dot (floating number)

Displaying actual age in percentage with 9 signs after dot (floating number)

Actual Age Chrome Extension Displaying actual age in percentage with 9 signs after dot (floating number) Features Popup You can select your Birth date

Nov 2, 2022

JavaScript API based capstone project using TVmaze API for displaying and interacting with items from the data base.

JavaScript API based capstone project using TVmaze API for displaying and interacting with items from the data base.

Yuriy Chamkoriyski & Bonke Gcobo Javascript capstone project API-based webapp from Module 2 at Microverse Wireframe requirements The Home Page low fid

May 30, 2022

App for displaying geospatial data on queues on the Polish-Ukrainian border.

Live app embedded here. App helps coordinate volunteer work with refugees from Ukraine on Polish-Belarusian Border. Data comes from Grupa Granica – a

Mar 10, 2022

Element for displaying HTML based on THREE.js HTMLMesh

Element for displaying HTML based on THREE.js HTMLMesh

AFrame-HTML a-entity html="#my-interface" position="0 1.5 -0.5"/a-entity Display an interactive HTML element in the scene. html-pointer component

Jan 3, 2023

A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

cryptoWriter.js A lightweight javascript library which creates brilliant text animation by rendering strings of random characters before the actual te

Sep 13, 2022

jQuery pop-up script displaying various types of content in corner of browser

Corner Popup v1.30 Fully customizable pop-up box created to display all types of messages in corner of your browser. Website: https://espritdesign.pl/

Nov 27, 2022

An App for backing up and better displaying Onetab data Powered by Tauri.

An App for backing up and better displaying Onetab data Powered by Tauri.

Onetab Re 『Data is Priceless』 Onetab Re 是一款用于备份并原样展示Onetab数据的应用,基于 Tauri 跨平台构建,支持 Windows macOS Linux. 备份脚本使用方法 请先确认已经正确安装node.js 安装后打开软件的scripts目录, 为

Nov 12, 2022

A small jQuery plugin for displaying Muslim Prayer Times

A small jQuery plugin for displaying Muslim Prayer Times

jquery-prayer-times A small jQuery plugin for displaying Muslim Prayer Times. Features! English/Arabic language support. Auto detect visitor location.

Oct 30, 2022

Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options e.g custom text or HTML message, duration, custom class, toggle close button, position, custom close icon and backgorund color.

Pure Javascript Toaster Requires Nothing Demo Toaster is a Pure Javascript plugin for displaying toast notifications. It comes with different options

Jun 21, 2022
Releases(v1.1.0)
  • v1.1.0(May 28, 2021)

    Features

    • crypto-chart component
    • events
      • "price_increase" and "price_decrease" events are now fired on chart refresh

    Other

    • Fixed candle wicks, they are now completely accurate
      • As a side effect, candles will no longer extend beyond the set width and height
    • refreshRate property is now in seconds, not minutes
    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(May 28, 2021)

AFrame port of Lamina (https://github.com/pmndrs/lamina)

AFrame-Lamina Automated port of Lamina to AFrame <a-lamina geometry="" material="shader:lamina;color:white;lighting:phong;" position="-1 0.5 -3" rotat

Ada Rose Cannon 4 Apr 6, 2022
Debut plugin that provides additional candles of specified tickers to strategy.

debut-plugin-candles A plugin for Debut platform that provides additional candles of specified tickers to strategy. Install @debut/community-core shou

Denis Mainhardt 2 Dec 15, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
🚀 📈 Stock market game where the stocks are github repositories

GitHubStonks What is githubstonks ? githubstonks.com Githubstonks is a stock market game where the stocks are popular GitHub repositories. You can buy

Mustafa Ozturk 40 Sep 27, 2022
Wallpik is a stock images & wallpapers downloading web app built with vanilla JavaScript & Pexels API

Wallpik the stock photos & wallpaper web app (Preview) Wallpik Wallpik is a single page application built with HTML, CSS, Vanilla JavaScript & Pexels

Shivaraj Padala 4 Apr 19, 2022
Stock Performace App

Stock performance is a web application to check out performance by company to see which one performs the best, based on an external API provided by Financial Modeling Prep. Built with Ract, Redux, and SCSS.

Roberto Andres Condezo Monge 7 Sep 3, 2022
Bloom - Stock Market Game

Bloom - Stock Market Game We built the stock market game that we always wanted. Compete with friends by simulating investing in over 4000+ stocks. It’

Bloom 23 Oct 10, 2022
A robust and light-weight inventory management application designed to help businesses maintain perfect control over every unit of stock.

Inventory Buddy Access inventory anytime on web, tablet or mobile. Inventory Buddy is a robust and light-weight inventory management application desig

Brynn Smith 7 Nov 5, 2022