pure golang api server using alphavantage stock api.
- make sure to install docker and docker-compose on your machine
- set
ALPHAVANTAGE_KEY
on filedocker-compose.yaml
to youralphavantage
's api key - run
docker-compose up
- the stock api server will be available at port
:8080
on your host machine - for example
curl --request GET --url 'http://localhost:8080/?symbol=IBM'
will fetchIBM
stock
- just run
go test ./..
in the project folder
- Some stock market words still foreign to me.
- Connecting the 2 services feels repetitive and error prone, if it's real world project I would like to use
more defined format like
protobuf
(with or without grpc). - I like the idea of monorepo in this kind of project, the authors of the service can maintain client libraries and be responsible of every change in the service. If there any major breaking changes in the service we can catch early if dependant services break.