Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1 KB

File metadata and controls

25 lines (18 loc) · 1 KB

Fake Quote Server

Mimics the behavior of the day trading quote server, which is only accessible on UVic VPN. Most of the implementation references this blog post. Probably useful to local dev and testing.

AFAIK the quote server has no published API or other docs (this is all I'm going on) so this implementation probably doesn't handle error conditions correctly. I'll update it as I figure out more of the behavior.

Installing from Docker

TBD

Local Usage

Start the server and stablish a socket connection and send a formatted req stock_symbol,user_id:

go run server.go

# in another window
echo "XYZ,cool_user" | nc localhost 4443

# server sends
729.99,XYZ,cool_user,1484459366,WFlaY29vbF91c2Vy77+9

Return format is quote,stock_symbol,user_id,timestamp,cryptokey.