Documentation
¶
Index ¶
- type Client
- func (c *Client) ItemMapping(ctx context.Context, world World) ([]ItemMapping, error)
- func (c *Client) LatestPrices(ctx context.Context, world World, itemIDs ...int16) (map[int16]LatestPrice, error)
- func (c *Client) PriceData(ctx context.Context, world World, interval TimeInterval, timestamp *time.Time) (map[int16]PriceData, error)
- func (c *Client) Timeseries(ctx context.Context, world World, timestep TimeInterval, itemID int16) ([]TimeseriesData, error)
- type ItemMapping
- type LatestPrice
- type PriceData
- type TimeInterval
- type TimeseriesData
- type World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ItemMapping ¶
func (*Client) LatestPrices ¶
func (*Client) Timeseries ¶
func (c *Client) Timeseries(ctx context.Context, world World, timestep TimeInterval, itemID int16) ([]TimeseriesData, error)
type ItemMapping ¶
type LatestPrice ¶
type TimeInterval ¶
type TimeInterval string
const ( FiveMinutes TimeInterval = "5m" OneHour TimeInterval = "1h" SixHours TimeInterval = "6h" TwentyFourHours TimeInterval = "24h" )
type TimeseriesData ¶
Click to show internal directories.
Click to hide internal directories.