marketStats

package
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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMarketStatsServer

func RegisterMarketStatsServer(s *grpc.Server, srv MarketStatsServer)

Types

type GetHistoryStatsResponse

type GetHistoryStatsResponse struct {
	// The matching history stats
	HistoryStats         []*HistoryStats `protobuf:"bytes,1,rep,name=history_stats,json=historyStats,proto3" json:"history_stats,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*GetHistoryStatsResponse) Descriptor

func (*GetHistoryStatsResponse) Descriptor() ([]byte, []int)

func (*GetHistoryStatsResponse) GetHistoryStats

func (m *GetHistoryStatsResponse) GetHistoryStats() []*HistoryStats

func (*GetHistoryStatsResponse) ProtoMessage

func (*GetHistoryStatsResponse) ProtoMessage()

func (*GetHistoryStatsResponse) Reset

func (m *GetHistoryStatsResponse) Reset()

func (*GetHistoryStatsResponse) String

func (m *GetHistoryStatsResponse) String() string

func (*GetHistoryStatsResponse) XXX_DiscardUnknown

func (m *GetHistoryStatsResponse) XXX_DiscardUnknown()

func (*GetHistoryStatsResponse) XXX_Marshal

func (m *GetHistoryStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetHistoryStatsResponse) XXX_Merge

func (dst *GetHistoryStatsResponse) XXX_Merge(src proto.Message)

func (*GetHistoryStatsResponse) XXX_Size

func (m *GetHistoryStatsResponse) XXX_Size() int

func (*GetHistoryStatsResponse) XXX_Unmarshal

func (m *GetHistoryStatsResponse) XXX_Unmarshal(b []byte) error

type GetRegionRequest

type GetRegionRequest struct {
	// Defines which region the data is fetched for
	RegionId             uint64   `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRegionRequest) Descriptor

func (*GetRegionRequest) Descriptor() ([]byte, []int)

func (*GetRegionRequest) GetRegionId

func (m *GetRegionRequest) GetRegionId() uint64

func (*GetRegionRequest) ProtoMessage

func (*GetRegionRequest) ProtoMessage()

func (*GetRegionRequest) Reset

func (m *GetRegionRequest) Reset()

func (*GetRegionRequest) String

func (m *GetRegionRequest) String() string

func (*GetRegionRequest) XXX_DiscardUnknown

func (m *GetRegionRequest) XXX_DiscardUnknown()

func (*GetRegionRequest) XXX_Marshal

func (m *GetRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRegionRequest) XXX_Merge

func (dst *GetRegionRequest) XXX_Merge(src proto.Message)

func (*GetRegionRequest) XXX_Size

func (m *GetRegionRequest) XXX_Size() int

func (*GetRegionRequest) XXX_Unmarshal

func (m *GetRegionRequest) XXX_Unmarshal(b []byte) error

type GetRegionTypeRequest

type GetRegionTypeRequest struct {
	// Defines which region the data is fetched for
	RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// Defines which type the data is fetched for
	TypeId               uint64   `protobuf:"varint,2,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRegionTypeRequest) Descriptor

func (*GetRegionTypeRequest) Descriptor() ([]byte, []int)

func (*GetRegionTypeRequest) GetRegionId

func (m *GetRegionTypeRequest) GetRegionId() uint64

func (*GetRegionTypeRequest) GetTypeId

func (m *GetRegionTypeRequest) GetTypeId() uint64

func (*GetRegionTypeRequest) ProtoMessage

func (*GetRegionTypeRequest) ProtoMessage()

func (*GetRegionTypeRequest) Reset

func (m *GetRegionTypeRequest) Reset()

func (*GetRegionTypeRequest) String

func (m *GetRegionTypeRequest) String() string

func (*GetRegionTypeRequest) XXX_DiscardUnknown

func (m *GetRegionTypeRequest) XXX_DiscardUnknown()

func (*GetRegionTypeRequest) XXX_Marshal

func (m *GetRegionTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRegionTypeRequest) XXX_Merge

func (dst *GetRegionTypeRequest) XXX_Merge(src proto.Message)

func (*GetRegionTypeRequest) XXX_Size

func (m *GetRegionTypeRequest) XXX_Size() int

func (*GetRegionTypeRequest) XXX_Unmarshal

func (m *GetRegionTypeRequest) XXX_Unmarshal(b []byte) error

type GetTypeRequest

type GetTypeRequest struct {
	// Defines which type the data is fetched for
	TypeId               uint64   `protobuf:"varint,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTypeRequest) Descriptor

func (*GetTypeRequest) Descriptor() ([]byte, []int)

func (*GetTypeRequest) GetTypeId

func (m *GetTypeRequest) GetTypeId() uint64

func (*GetTypeRequest) ProtoMessage

func (*GetTypeRequest) ProtoMessage()

func (*GetTypeRequest) Reset

func (m *GetTypeRequest) Reset()

func (*GetTypeRequest) String

func (m *GetTypeRequest) String() string

func (*GetTypeRequest) XXX_DiscardUnknown

func (m *GetTypeRequest) XXX_DiscardUnknown()

func (*GetTypeRequest) XXX_Marshal

func (m *GetTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTypeRequest) XXX_Merge

func (dst *GetTypeRequest) XXX_Merge(src proto.Message)

func (*GetTypeRequest) XXX_Size

func (m *GetTypeRequest) XXX_Size() int

func (*GetTypeRequest) XXX_Unmarshal

func (m *GetTypeRequest) XXX_Unmarshal(b []byte) error

type HistoryDataPoint

type HistoryDataPoint struct {
	// Date of the datapoint
	Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	// Highest price the type was traded for that day
	Highest float64 `protobuf:"fixed64,2,opt,name=highest,proto3" json:"highest,omitempty"`
	// Lowest price the type was traded for that day
	Lowest float64 `protobuf:"fixed64,3,opt,name=lowest,proto3" json:"lowest,omitempty"`
	// Average price the type was traded for that day
	Average float64 `protobuf:"fixed64,4,opt,name=average,proto3" json:"average,omitempty"`
	// Total number of items of the type traded that day
	Volume int64 `protobuf:"varint,5,opt,name=volume,proto3" json:"volume,omitempty"`
	// Total number orders for the type that day
	OrderCount           int64    `protobuf:"varint,6,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HistoryDataPoint) Descriptor

func (*HistoryDataPoint) Descriptor() ([]byte, []int)

func (*HistoryDataPoint) GetAverage

func (m *HistoryDataPoint) GetAverage() float64

func (*HistoryDataPoint) GetDate

func (m *HistoryDataPoint) GetDate() *timestamp.Timestamp

func (*HistoryDataPoint) GetHighest

func (m *HistoryDataPoint) GetHighest() float64

func (*HistoryDataPoint) GetLowest

func (m *HistoryDataPoint) GetLowest() float64

func (*HistoryDataPoint) GetOrderCount

func (m *HistoryDataPoint) GetOrderCount() int64

func (*HistoryDataPoint) GetVolume

func (m *HistoryDataPoint) GetVolume() int64

func (*HistoryDataPoint) ProtoMessage

func (*HistoryDataPoint) ProtoMessage()

func (*HistoryDataPoint) Reset

func (m *HistoryDataPoint) Reset()

func (*HistoryDataPoint) String

func (m *HistoryDataPoint) String() string

func (*HistoryDataPoint) XXX_DiscardUnknown

func (m *HistoryDataPoint) XXX_DiscardUnknown()

func (*HistoryDataPoint) XXX_Marshal

func (m *HistoryDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoryDataPoint) XXX_Merge

func (dst *HistoryDataPoint) XXX_Merge(src proto.Message)

func (*HistoryDataPoint) XXX_Size

func (m *HistoryDataPoint) XXX_Size() int

func (*HistoryDataPoint) XXX_Unmarshal

func (m *HistoryDataPoint) XXX_Unmarshal(b []byte) error

type HistoryStats

type HistoryStats struct {
	// The result's region's ID
	RegionId int64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// The result's type's ID
	TypeId int64 `protobuf:"varint,2,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	// Date this dataset was fetched from the server (usually at midnight)
	GeneratedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
	// Latest available datapoint (usually from yesterday)
	CurrentStats *HistoryDataPoint `protobuf:"bytes,4,opt,name=current_stats,json=currentStats,proto3" json:"current_stats,omitempty"`
	// Previous datapoint
	PreviousStats *HistoryDataPoint `protobuf:"bytes,5,opt,name=previous_stats,json=previousStats,proto3" json:"previous_stats,omitempty"`
	// Last week's *weighted* average of the average price - use this for calculations!
	WeekPriceWeightedAverage float64 `` /* 139-byte string literal not displayed */
	// Last week's average average price (ignores volume)
	WeekPriceAverage float64 `protobuf:"fixed64,7,opt,name=week_price_average,json=weekPriceAverage,proto3" json:"week_price_average,omitempty"`
	// Last week's absolute standard deviation of the average price
	WeekPriceAverageStandardDeviation float64 `` /* 168-byte string literal not displayed */
	// Last week's absolute standard deviation of the average price, can be used for analyzing price's volatility
	WeekPriceAverageRelativeStandardDeviation float64 `` /* 194-byte string literal not displayed */
	// Last week's average daily ISK volume
	WeekIskVolumeAverage float64 `` /* 128-byte string literal not displayed */
	// Last week's average daily ISK volume's standard deviation
	WeekIskVolumeAverageStandardDeviation float64 `` /* 183-byte string literal not displayed */
	// Last week's relative daily ISK volume's standard deviation, can be used for analyzing general market's volatility
	WeekIskVolumeAverageRelativeStandardDeviation float64 `` /* 209-byte string literal not displayed */
	// Total number of orders for that type last week
	WeekOrderCountTotal int64 `protobuf:"varint,13,opt,name=week_order_count_total,json=weekOrderCountTotal,proto3" json:"week_order_count_total,omitempty"`
	// Average daily order count last week
	WeekOrderCountAverage float64 `` /* 131-byte string literal not displayed */
	// Average daily order count's standard deviation last week
	WeekOrderCountStandardDeviation float64 `` /* 163-byte string literal not displayed */
	// Average daily order count's relative standard deviation last week, again can be used for volatility
	WeekOrderCountRelativeStandardDeviation float64 `` /* 189-byte string literal not displayed */
	// Total number of items of that type traded last week
	WeekVolumeTotal int64 `protobuf:"varint,17,opt,name=week_volume_total,json=weekVolumeTotal,proto3" json:"week_volume_total,omitempty"`
	// Average daily items traded of that type last week
	WeekVolumeAverage float64 `protobuf:"fixed64,18,opt,name=week_volume_average,json=weekVolumeAverage,proto3" json:"week_volume_average,omitempty"`
	// Standard deviation of that value
	WeekVolumeStandardDeviation float64 `` /* 149-byte string literal not displayed */
	// Relative standard deviation, interesting for checking if there are non-continuous patterns (volatility)
	WeekVolumeRelativeStandardDeviation float64  `` /* 175-byte string literal not displayed */
	XXX_NoUnkeyedLiteral                struct{} `json:"-"`
	XXX_unrecognized                    []byte   `json:"-"`
	XXX_sizecache                       int32    `json:"-"`
}

func (*HistoryStats) Descriptor

func (*HistoryStats) Descriptor() ([]byte, []int)

func (*HistoryStats) GetCurrentStats

func (m *HistoryStats) GetCurrentStats() *HistoryDataPoint

func (*HistoryStats) GetGeneratedAt

func (m *HistoryStats) GetGeneratedAt() *timestamp.Timestamp

func (*HistoryStats) GetPreviousStats

func (m *HistoryStats) GetPreviousStats() *HistoryDataPoint

func (*HistoryStats) GetRegionId

func (m *HistoryStats) GetRegionId() int64

func (*HistoryStats) GetTypeId

func (m *HistoryStats) GetTypeId() int64

func (*HistoryStats) GetWeekIskVolumeAverage

func (m *HistoryStats) GetWeekIskVolumeAverage() float64

func (*HistoryStats) GetWeekIskVolumeAverageRelativeStandardDeviation

func (m *HistoryStats) GetWeekIskVolumeAverageRelativeStandardDeviation() float64

func (*HistoryStats) GetWeekIskVolumeAverageStandardDeviation

func (m *HistoryStats) GetWeekIskVolumeAverageStandardDeviation() float64

func (*HistoryStats) GetWeekOrderCountAverage

func (m *HistoryStats) GetWeekOrderCountAverage() float64

func (*HistoryStats) GetWeekOrderCountRelativeStandardDeviation

func (m *HistoryStats) GetWeekOrderCountRelativeStandardDeviation() float64

func (*HistoryStats) GetWeekOrderCountStandardDeviation

func (m *HistoryStats) GetWeekOrderCountStandardDeviation() float64

func (*HistoryStats) GetWeekOrderCountTotal

func (m *HistoryStats) GetWeekOrderCountTotal() int64

func (*HistoryStats) GetWeekPriceAverage

func (m *HistoryStats) GetWeekPriceAverage() float64

func (*HistoryStats) GetWeekPriceAverageRelativeStandardDeviation

func (m *HistoryStats) GetWeekPriceAverageRelativeStandardDeviation() float64

func (*HistoryStats) GetWeekPriceAverageStandardDeviation

func (m *HistoryStats) GetWeekPriceAverageStandardDeviation() float64

func (*HistoryStats) GetWeekPriceWeightedAverage

func (m *HistoryStats) GetWeekPriceWeightedAverage() float64

func (*HistoryStats) GetWeekVolumeAverage

func (m *HistoryStats) GetWeekVolumeAverage() float64

func (*HistoryStats) GetWeekVolumeRelativeStandardDeviation

func (m *HistoryStats) GetWeekVolumeRelativeStandardDeviation() float64

func (*HistoryStats) GetWeekVolumeStandardDeviation

func (m *HistoryStats) GetWeekVolumeStandardDeviation() float64

func (*HistoryStats) GetWeekVolumeTotal

func (m *HistoryStats) GetWeekVolumeTotal() int64

func (*HistoryStats) ProtoMessage

func (*HistoryStats) ProtoMessage()

func (*HistoryStats) Reset

func (m *HistoryStats) Reset()

func (*HistoryStats) String

func (m *HistoryStats) String() string

func (*HistoryStats) XXX_DiscardUnknown

func (m *HistoryStats) XXX_DiscardUnknown()

func (*HistoryStats) XXX_Marshal

func (m *HistoryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HistoryStats) XXX_Merge

func (dst *HistoryStats) XXX_Merge(src proto.Message)

func (*HistoryStats) XXX_Size

func (m *HistoryStats) XXX_Size() int

func (*HistoryStats) XXX_Unmarshal

func (m *HistoryStats) XXX_Unmarshal(b []byte) error

type MarketStatsClient

type MarketStatsClient interface {
	GetRegionHistory(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetHistoryStatsResponse, error)
	GetTypeHistory(ctx context.Context, in *GetTypeRequest, opts ...grpc.CallOption) (*GetHistoryStatsResponse, error)
	GetRegionTypeHistory(ctx context.Context, in *GetRegionTypeRequest, opts ...grpc.CallOption) (*HistoryStats, error)
}

MarketStatsClient is the client API for MarketStats service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMarketStatsClient

func NewMarketStatsClient(cc *grpc.ClientConn) MarketStatsClient

type MarketStatsServer

type MarketStatsServer interface {
	GetRegionHistory(context.Context, *GetRegionRequest) (*GetHistoryStatsResponse, error)
	GetTypeHistory(context.Context, *GetTypeRequest) (*GetHistoryStatsResponse, error)
	GetRegionTypeHistory(context.Context, *GetRegionTypeRequest) (*HistoryStats, error)
}

MarketStatsServer is the server API for MarketStats service.

Jump to

Keyboard shortcuts

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