market-stats

command module
v0.0.0-...-62deea6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2018 License: BSD-3-Clause Imports: 31 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL