Versions in this module Expand all Collapse all v0 v0.1.0 Mar 15, 2026 Changes in this version + const DataAPIBase + type APILeaderboardEntry struct + Pnl float64 + ProfileImage string + ProxyWallet string + Rank interface{} + UserName string + VerifiedBadge bool + Vol float64 + XUsername string + type Activity struct + Asset string + ConditionID string + Name string + Outcome string + OutcomeIndex int + Price float64 + ProxyWallet string + Side string + Size float64 + Slug string + Timestamp int64 + Title string + TransactionHash string + Type string + UsdcSize float64 + type ActivityParams struct + End int64 + EventID []int + Limit int + Market []string + Offset int + Side string + SortBy string + SortDirection string + Start int64 + Type string + type ClosedPosition struct + Asset string + AvgPrice float64 + ConditionID string + CurPrice float64 + EndDate string + EventSlug string + Icon string + OppositeAsset string + OppositeOutcome string + Outcome string + OutcomeIndex int + ProxyWallet string + RealizedPnl float64 + Slug string + Timestamp int64 + Title string + TotalBought float64 + type ClosedPositionsParams struct + EventID []int + Limit int + Market []string + Offset int + SortBy string + SortDirection string + Title string + type DataAPIError struct + ErrorMsg string + Message string + StatusCode int + func (e *DataAPIError) Error() string + type DataClient struct + BaseURL string + HTTPClient *http.Client + func NewDataClient(httpClient *http.Client) *DataClient + func (c *DataClient) GetActivity(address string, params ActivityParams) ([]Activity, error) + func (c *DataClient) GetClosedPositions(address string, params ClosedPositionsParams) ([]ClosedPosition, error) + func (c *DataClient) GetLeaderboard(params LeaderboardParams) (*LeaderboardResult, error) + func (c *DataClient) GetPositions(address string, params PositionsParams) ([]Position, error) + func (c *DataClient) GetTrades(params TradesParams) ([]DataTrade, error) + type DataTrade struct + Asset string + Bio string + EventSlug string + ID string + Icon string + Market string + Name string + Outcome string + OutcomeIndex int + Price float64 + ProfileImage string + ProfileImageOptimized string + ProxyWallet string + Pseudonym string + Side string + Size float64 + Slug string + Timestamp int64 + Title string + TransactionHash string + type LeaderboardEntry struct + Address string + Pnl float64 + Positions int + ProfileImage string + Rank int + Trades int + UserName string + VerifiedBadge bool + Volume float64 + XUsername string + type LeaderboardParams struct + Category string + Limit int + Offset int + OrderBy string + TimePeriod string + User string + UserName string + type LeaderboardResult struct + Entries []LeaderboardEntry + HasMore bool + Request LeaderboardParams + type Position struct + Asset string + AvgPrice float64 + CashPnl float64 + ConditionID string + CurPrice float64 + CurrentValue float64 + EndDate string + EventID string + EventSlug string + Icon string + InitialValue float64 + Mergeable bool + NegativeRisk bool + OppositeAsset string + OppositeOutcome string + Outcome string + OutcomeIndex int + PercentPnl float64 + PercentRealizedPnl float64 + ProxyWallet string + RealizedPnl float64 + Redeemable bool + Size float64 + Slug string + Title string + TotalBought float64 + type PositionsParams struct + EventID []int + Limit int + Market []string + Mergeable *bool + Offset int + Redeemable *bool + SizeThreshold float64 + SortBy string + SortDirection string + Title string + type TradesParams struct + EndTimestamp int64 + FilterAmount float64 + FilterType string + Limit int + Market string + Side string + StartTimestamp int64 + TakerOnly *bool + User string