Skip to content

EVE-Tools/market-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Market Stats

Build Status Go Report Card Docker Image

This service for Element43 calculates various market metrics based on historical data. Data is stored in Postgres and can be retrieved via a gRPC API. Every night it fetches the entire market's history from ESI and calculates the metrics described in its gRPC service description. There might be gaps in the data as there is no history available if nothing was traded.

Issues can be filed here. Pull requests can be made in this repo.

Interface

The service's gRPC description can be found [here](https://github.com/EVE-Tools/element43/blob/master/services/marketStats/marketStats.proto.

Installation

Either use the prebuilt Docker images and pass the appropriate env vars (see below), or:

  • Install Go, clone this repo into your gopath
  • Run go get ./... to fetch the service's dependencies
  • Run bash generateProto.sh to generate the necessary gRPC-related code
  • Run go build
  • Run ./market-stats to start the service

Deployment Info

Environment Variable Default Description
SEED_DB false Fetch all data from ESI on startup, ignoring the normal schedule
CRON 0 52 * * * Defines when to run data collection (0:52am UTC every day avoids getting cached data)
LOG_LEVEL info Threshold for logging messages to be printed
POSTGRES_URL postgres://market-stats@localhost:5432/market-stats?sslmode=disable URL to this service's Postgres database
PORT 43000 Port for the grpc server to listen on

About

Calculates market statistics for EVE Online's whole economy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published