8000 GitHub - kukiron/code-jam: Coding exercise with team Livedocs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Coding exercise with team Livedocs

Notifications You must be signed in to change notification settings

kukiron/code-jam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fakedaq

Fictional stock ticker API written in Go.

Installation

  • Build the app by running go build
  • Set the rate-limiting environment variable MAX_LIMIT to the desired number
  • Start the server by running the executable ./fakedaq

Routes

Get price quote for a specific stock

GET /stock/:symbol

Request curl --header "api-key: test-key" http://localhost:8080/stock/AAPL

Response {"name":"Apple","symbol":"AAPL","price":176.48}

Reset the rate-limit for an API key

Request curl --header "api-key: test-key" http://localhost:8080/reset

Response {"message":"Rate limit has been reset"}

Valid symbols

  • Livedocs LDOCS
  • Apple AAPL
  • Alphabet GOOGL
  • Microsoft MSFT
  • Tesla TSLA
  • Amazon AMZN

About

Coding exercise with team Livedocs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0