This code is written on the GO(golang) language and could be used to receive Zacks Rank https://www.zacks.com/stocks/zacks-rank
- store history of Zacks Rank changes
- support in-memory and DB level caches
- get current Zacks Rank of a stock
- get the history of Zacks Rank of a stock
- watch for changes
- Use docker container to start a service:
docker run -p 8080:80 \
-e SERVER_PORT=80 \
-e CACHE_ENABLED=true \
-e DBCACHE_ENABLED=true \
-e DBCACHE_MONGODB_URL=mongodb://localhost:27017 \
-e DBCACHE_MONGODB_DATABASE_NAME=zacks \
-e FETCHER_ENABLED=true \
-e FETCHER_TIMEOUT_SECONDS=10 \
-e REFRESHER_ENABLED=true \
-e REFRESHER_RESCAN_SECONDS=3600 \
docker.io/iadolgov/zacks:latest
- To receive Zacks Rank for the ticker "M": open the page
http://localhost:8080/M
- To receive Zacks Rank History for the ticker "M":
open the page http://localhost:8080/M/history
- Start predefined set of containers from https://github.com/IAD/zacks/blob/master/api/docker-compose.yml :
make up
- Explore Swagger UI for the Zacks Rank service:
http://localhost:8082
- To receive Zacks Rank for the ticker "M": open the page:
http://localhost:8080/M
- To receive Zacks Rank History for the ticker "M", open the page:
http://localhost:8080/M/history
- explore MongoDB cached values:
http://localhost:8081
nothing :)
- Pull Requests: https://github.com/IAD/zacks/pulls
- Questions: https://github.com/IAD/zacks/issues