Giter Site home page Giter Site logo

daveminer / basket Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 887 KB

Phoenix LiveView server to watch real-time stock ticker data from Alpaca

Elixir 78.96% CSS 0.08% JavaScript 5.43% HTML 13.74% Makefile 0.12% Dockerfile 1.53% Shell 0.10% Batchfile 0.05%
alpaca-markets api elixir phoenix-liveview phoenix-presence stock-market websocket

basket's Introduction

Tests

Basket

Watch your "basket" of stocks in real-time with data from Alpaca.

Basket is intended as a template; it provides a working example of a Phoenix Framework web server utilizing the following tools and patterns:

Basket also serves as a reference for testing patterns:

Many thanks to the authors of these excellent libraries!

Setup

Install

  • Ensure Postgres is running. If using Docker, docker start postgres usually works well.
  • Run mix setup to install and set up dependencies
  • Start the development server with make dev
  • Now you can visit localhost:4000 from your browser.

Create a Dev User

  • Unauthenticated users will be redirected to the registration page as per Pow standards. Sign up and verify your email (for a quick fix, populate the email_verified_at column in the User table)
  • Log in and watch your basket!

Architecture

Basket uses HTTP and WebSocket connections to ingress stock data. The real-time updates are received over WebSocket and distributed through Phoenix Channels, one per stock ticker. Phoenix Presence is utilized to track ticker subscription lifecycles for all users in aggregate against the WebSocket client, sharing one client connection efficiently.

Roadmap

  • observability
  • notifications
  • Absinthe
  • news data aggregation and analysis

basket's People

Contributors

daveminer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.