Versions in this module Expand all Collapse all v0 v0.1.2 Aug 24, 2026 Changes in this version + func Code(err error) string + type CandleOptions struct + EndTS int64 + IncludeLatestBeforeStart bool + PeriodIntervalMinutes int + StartTS int64 + type CandlesPage struct + Candlesticks []Candlestick + PeriodMinutes int + Ticker string + type Candlestick struct + EndPeriodTS int64 + OpenIntFP string + Price *OHLC + VolumeFP string + YesAsk *OHLC + YesBid *OHLC + type Client struct + func NewClient() *Client + func NewClientWithBaseURL(baseURL string, httpClient *http.Client) *Client + func (c *Client) GetEventCandles(ctx context.Context, seriesTicker, ticker string, opt CandleOptions) (*CandlesPage, error) + func (c *Client) GetEventLastQuote(ctx context.Context, ticker string) (*LastQuote, error) + func (c *Client) GetEventMarket(ctx context.Context, ticker string) (json.RawMessage, error) + func (c *Client) GetEventOrderbook(ctx context.Context, ticker string, depth int) (*Orderbook, error) + func (c *Client) GetEventTrades(ctx context.Context, opt TradesOptions) (*TradesPage, error) + func (c *Client) GetMarginCandles(ctx context.Context, ticker string, opt CandleOptions) (*CandlesPage, error) + func (c *Client) GetMarginLastQuote(ctx context.Context, ticker string) (*LastQuote, error) + func (c *Client) GetMarginMarket(ctx context.Context, ticker string) (json.RawMessage, error) + func (c *Client) GetMarginOrderbook(ctx context.Context, ticker string, depth int) (*Orderbook, error) + func (c *Client) GetWeatherIndex(ctx context.Context, city string, from, to, lastSec *int64, detailed bool) (*WeatherIndex, error) + func (c *Client) SearchEventMarkets(ctx context.Context, opt SearchOptions) (*MarketsPage, error) + func (c *Client) SearchMarginMarkets(ctx context.Context, opt SearchOptions) (*MarketsPage, error) + type LastQuote struct + AskDollars string + BidDollars string + LastPriceDollars string + LiquidationMarkDollars string + MarkPriceDollars string + NoAskDollars string + NoBidDollars string + SettlementMarkDollars string + Status string + Ticker string + Volume24hFP string + YesAskDollars string + YesAskSizeFP string + YesBidDollars string + YesBidSizeFP string + type MarketSummary struct + CloseTime string + EventTicker string + OpenInterestFP string + SeriesTicker string + Status string + Ticker string + Title string + VolumeFP string + YesAskDollars string + YesBidDollars string + YesSubTitle string + type MarketsPage struct + Cursor string + Markets []MarketSummary + type OHLC struct + CloseDollars *string + HighDollars *string + LowDollars *string + OpenDollars *string + type Orderbook struct + No []PriceLevel + Yes []PriceLevel + type PriceLevel []string + type SearchOptions struct + Cursor string + EventTicker string + Limit int + SeriesTicker string + Status string + Tickers []string + type Trade struct + CountFP string + IsBlockTrade *bool + PriceDollars string + Ticker string + TradeID string + TradedAt string + type TradesOptions struct + Cursor string + IsBlockTrade *bool + Limit int + MaxTS int64 + MinTS int64 + Ticker string + type TradesPage struct + Cursor string + Trades []Trade + type WeatherIndex struct + City string + ConfigVersion string + Timeseries []WeatherIndexPoint + Units string + type WeatherIndexPoint struct + Contributors *int + Stations []WeatherIndexStationReading + Status string + T int64 + V *fixedPoint + type WeatherIndexStationReading struct + Code string + Source *string + StationID string + TempF *fixedPoint