Skip to content

IAD/zacks

Repository files navigation

Build Status

About

This code is written on the GO(golang) language and could be used to receive Zacks Rank https://www.zacks.com/stocks/zacks-rank

Current functions

  • 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

Example using docker

  • 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

Example using docker-compose

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

RoadMap

nothing :)

Pull Requests and Questions