Skip to content

DistributedDesigns/fake_quote_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages