Skip to content

Ukililee/web-components-sample-202001

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Ticker Service

What is it?

An HTTP/TCP stock querying service where users can query or subscribe to 1 or more stock tickers. Users have credits that they spend on each tick (every second) that they are subscribed for, 1 credit equals 1 Stock Subscription for 1 Second. Authentication is not done, also stock values are randomly generated.

Main point of this repo is showcase of using Actix with Actor Models to build Rust Concurrent Servers.

Instructions

$ cargo build
$ cargo run

Get Summary

Make a GET request to

http://127.0.0.1:3000/summary?stocks=APPL,GOOG

Connect via websocket

  • open static/websocket.html in your browser
  • click "Connect" button
  • send messages in this format "/subscribe APPL,GOOG"

About

Crack_BT_Panel2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published