Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1023 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 1023 Bytes

monterl_carlo_websocket

monterl_carlo websocket server

###Getting started

clone git://github.com/nisbus/monterl_carlo_websocket.git
./rebar get-deps
./rebar clean compile generate
./rel/monterl_carlo_websocket/bin/monterl_carlo_websocket console

You now have websocket server running on localhost:8080
A nice way of testing it is using the Simple Websocket Client chrome extension
Just type in localhost:8080 and press connect.
Then copy paste the api samples (one at a time) from below into the request box and hit send.

###API

{"type":"start", "symbol":"Y"}
{"type":"subscribe", "symbol":"Y"}
{"type":"stop", "symbol":"Y"}
{"type":"graph", "symbol":"Y","graph_type":"statistics","points":5}

Check out monterl_carlo for more parameters to the start and graph methods.