Documentation ¶
Overview ¶
Package marketStats is a generated protocol buffer package.
It is generated from these files:
marketStats.proto
It has these top-level messages:
GetRegionRequest GetTypeRequest GetRegionTypeRequest GetHistoryStatsResponse HistoryStats HistoryDataPoint
Package marketStats is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterMarketStatsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMarketStatsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MarketStatsClient) error
- func RegisterMarketStatsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMarketStatsServer(s *grpc.Server, srv MarketStatsServer)
- type GetHistoryStatsResponse
- type GetRegionRequest
- type GetRegionTypeRequest
- type GetTypeRequest
- type HistoryDataPoint
- func (*HistoryDataPoint) Descriptor() ([]byte, []int)
- func (m *HistoryDataPoint) GetAverage() float64
- func (m *HistoryDataPoint) GetDate() *google_protobuf1.Timestamp
- func (m *HistoryDataPoint) GetHighest() float64
- func (m *HistoryDataPoint) GetLowest() float64
- func (m *HistoryDataPoint) GetOrderCount() int64
- func (m *HistoryDataPoint) GetVolume() int64
- func (*HistoryDataPoint) ProtoMessage()
- func (m *HistoryDataPoint) Reset()
- func (m *HistoryDataPoint) String() string
- type HistoryStats
- func (*HistoryStats) Descriptor() ([]byte, []int)
- func (m *HistoryStats) GetCurrentStats() *HistoryDataPoint
- func (m *HistoryStats) GetGeneratedAt() *google_protobuf1.Timestamp
- func (m *HistoryStats) GetPreviousStats() *HistoryDataPoint
- func (m *HistoryStats) GetRegionId() int64
- func (m *HistoryStats) GetTypeId() int64
- func (m *HistoryStats) GetWeekIskVolumeAverage() float64
- func (m *HistoryStats) GetWeekIskVolumeAverageRelativeStandardDeviation() float64
- func (m *HistoryStats) GetWeekIskVolumeAverageStandardDeviation() float64
- func (m *HistoryStats) GetWeekOrderCountAverage() float64
- func (m *HistoryStats) GetWeekOrderCountRelativeStandardDeviation() float64
- func (m *HistoryStats) GetWeekOrderCountStandardDeviation() float64
- func (m *HistoryStats) GetWeekOrderCountTotal() int64
- func (m *HistoryStats) GetWeekPriceAverage() float64
- func (m *HistoryStats) GetWeekPriceAverageRelativeStandardDeviation() float64
- func (m *HistoryStats) GetWeekPriceAverageStandardDeviation() float64
- func (m *HistoryStats) GetWeekPriceWeightedAverage() float64
- func (m *HistoryStats) GetWeekVolumeAverage() float64
- func (m *HistoryStats) GetWeekVolumeRelativeStandardDeviation() float64
- func (m *HistoryStats) GetWeekVolumeStandardDeviation() float64
- func (m *HistoryStats) GetWeekVolumeTotal() int64
- func (*HistoryStats) ProtoMessage()
- func (m *HistoryStats) Reset()
- func (m *HistoryStats) String() string
- type MarketStatsClient
- type MarketStatsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMarketStatsHandler ¶
func RegisterMarketStatsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMarketStatsHandler registers the http handlers for service MarketStats to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMarketStatsHandlerClient ¶
func RegisterMarketStatsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MarketStatsClient) error
RegisterMarketStatsHandler registers the http handlers for service MarketStats to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MarketStatsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MarketStatsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MarketStatsClient" to call the correct interceptors.
func RegisterMarketStatsHandlerFromEndpoint ¶
func RegisterMarketStatsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMarketStatsHandlerFromEndpoint is same as RegisterMarketStatsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
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" json:"history_stats,omitempty"` }
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
type GetRegionRequest ¶
type GetRegionRequest struct { // Defines which region the data is fetched for RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` }
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
type GetRegionTypeRequest ¶
type GetRegionTypeRequest struct { // Defines which region the data is fetched for RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` // Defines which type the data is fetched for TypeId uint64 `protobuf:"varint,2,opt,name=type_id,json=typeId" json:"type_id,omitempty"` }
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
type GetTypeRequest ¶
type GetTypeRequest struct { // Defines which type the data is fetched for TypeId uint64 `protobuf:"varint,1,opt,name=type_id,json=typeId" json:"type_id,omitempty"` }
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
type HistoryDataPoint ¶
type HistoryDataPoint struct { // Date of the datapoint Date *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=date" json:"date,omitempty"` // Highest price the type was traded for that day Highest float64 `protobuf:"fixed64,2,opt,name=highest" json:"highest,omitempty"` // Lowest price the type was traded for that day Lowest float64 `protobuf:"fixed64,3,opt,name=lowest" json:"lowest,omitempty"` // Average price the type was traded for that day Average float64 `protobuf:"fixed64,4,opt,name=average" json:"average,omitempty"` // Total number of items of the type traded that day Volume int64 `protobuf:"varint,5,opt,name=volume" json:"volume,omitempty"` // Total number orders for the type that day OrderCount int64 `protobuf:"varint,6,opt,name=order_count,json=orderCount" json:"order_count,omitempty"` }
func (*HistoryDataPoint) Descriptor ¶
func (*HistoryDataPoint) Descriptor() ([]byte, []int)
func (*HistoryDataPoint) GetAverage ¶
func (m *HistoryDataPoint) GetAverage() float64
func (*HistoryDataPoint) GetDate ¶
func (m *HistoryDataPoint) GetDate() *google_protobuf1.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
type HistoryStats ¶
type HistoryStats struct { // The result's region's ID RegionId int64 `protobuf:"varint,1,opt,name=region_id,json=regionId" json:"region_id,omitempty"` // The result's type's ID TypeId int64 `protobuf:"varint,2,opt,name=type_id,json=typeId" json:"type_id,omitempty"` // Date this dataset was fetched from the server (usually at midnight) GeneratedAt *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=generated_at,json=generatedAt" json:"generated_at,omitempty"` // Latest available datapoint (usually from yesterday) CurrentStats *HistoryDataPoint `protobuf:"bytes,4,opt,name=current_stats,json=currentStats" json:"current_stats,omitempty"` // Previous datapoint PreviousStats *HistoryDataPoint `protobuf:"bytes,5,opt,name=previous_stats,json=previousStats" json:"previous_stats,omitempty"` // Last week's *weighted* average of the average price - use this for calculations! WeekPriceWeightedAverage float64 `` /* 132-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" json:"week_price_average,omitempty"` // Last week's absolute standard deviation of the average price WeekPriceAverageStandardDeviation float64 `` /* 161-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 `` /* 187-byte string literal not displayed */ // Last week's average daily ISK volume WeekIskVolumeAverage float64 `protobuf:"fixed64,10,opt,name=week_isk_volume_average,json=weekIskVolumeAverage" json:"week_isk_volume_average,omitempty"` // Last week's average daily ISK volume's standard deviation WeekIskVolumeAverageStandardDeviation float64 `` /* 176-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 `` /* 202-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" json:"week_order_count_total,omitempty"` // Average daily order count last week WeekOrderCountAverage float64 `protobuf:"fixed64,14,opt,name=week_order_count_average,json=weekOrderCountAverage" json:"week_order_count_average,omitempty"` // Average daily order count's standard deviation last week WeekOrderCountStandardDeviation float64 `` /* 156-byte string literal not displayed */ // Average daily order count's relative standard deviation last week, again can be used for volatility WeekOrderCountRelativeStandardDeviation float64 `` /* 182-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" 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" json:"week_volume_average,omitempty"` // Standard deviation of that value WeekVolumeStandardDeviation float64 `` /* 142-byte string literal not displayed */ // Relative standard deviation, interesting for checking if there are non-continuous patterns (volatility) WeekVolumeRelativeStandardDeviation float64 `` /* 168-byte string literal not displayed */ }
func (*HistoryStats) Descriptor ¶
func (*HistoryStats) Descriptor() ([]byte, []int)
func (*HistoryStats) GetCurrentStats ¶
func (m *HistoryStats) GetCurrentStats() *HistoryDataPoint
func (*HistoryStats) GetGeneratedAt ¶
func (m *HistoryStats) GetGeneratedAt() *google_protobuf1.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
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) }
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) }