evemarketer

package
v0.0.0-...-c83d288 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

Package evemarketer contains a client integration with the evemarketer.com API.

The EveMarketer API is largely compatible with the evecentral.com API. This package is based on the now-removed evecentral package in the MOTKI library.

Index

Constants

View Source
const (
	StatBuy  StatKind = "buy"
	StatSell          = "sell"
	StatAll           = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EveMarketer

type EveMarketer struct {
	// contains filtered or unexported fields
}

EveMarketer is a client for retrieving market data from the eve-central.com API.

func New

func New() *EveMarketer

New creates a new EveMarketer API client.

func (*EveMarketer) GetMarketStat

func (api *EveMarketer) GetMarketStat(typeIDs ...int) ([]*MarketStat, error)

GetMarketStat gets market information for the given types.

func (*EveMarketer) GetMarketStatRegion

func (api *EveMarketer) GetMarketStatRegion(regionID int, typeIDs ...int) ([]*MarketStat, error)

GetMarketStatRegion gets market information for the given region and types.

func (*EveMarketer) GetMarketStatSystem

func (api *EveMarketer) GetMarketStatSystem(systemID int, typeIDs ...int) ([]*MarketStat, error)

GetMarketStatSystem gets market information for the given system and types.

type MarketStat

type MarketStat struct {
	Kind        StatKind
	TypeID      int
	Volume      int
	WAvg        decimal.Decimal
	Avg         decimal.Decimal
	Variance    decimal.Decimal
	StdDev      decimal.Decimal
	Median      decimal.Decimal
	FivePercent decimal.Decimal
	Max         decimal.Decimal
	Min         decimal.Decimal
	Timestamp   time.Time
}

MarketStat is reported price information for the given type.

type StatKind

type StatKind string

StatKind describes the type of market prices in a MarketStat.

Jump to

Keyboard shortcuts

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