This application was built on top of the last chapter of the learning rust book.
Once this application starts it will fetch from Yahoo finance quote price information for stocks with symbols defined at symbols.txt.
- Generics
- Structs
- Pattern matching
- Third party crates
- Unit tests
- Module separation
- Sharing context among threads (HashMap)
Ensure openssl dev headers are available:
$ sudo apt-get install libssl-devRun it with cargo run
Issue a GET request to retrieve the available symbols:
$ curl -XGET http://127.0.0.1:7878/api/v1/quotesUse one of the symbos and issue a second request:
$ curl -XGET http://127.0.0.1:7878/api/v1/quotes/MSFT