oxinsider

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 12 Imported by: 0

README

0xinsider Go SDK

The official Go client for the 0xinsider Developer API: Polymarket analytics for sports and esports. Every tracked wallet is graded S to F from settled P&L; the API returns grades, large trades, sharp-money flow, positions, market snapshots, reports and search.

Install

go get github.com/0xinsider/0xinsider-go

Use

package main

import (
	"context"
	"fmt"
	"log"
	"os"

	oxinsider "github.com/0xinsider/0xinsider-go"
)

func main() {
	client, err := oxinsider.New(oxinsider.WithBearerToken(os.Getenv("OXI_API_KEY")))
	if err != nil {
		log.Fatal(err)
	}
	limit := 10
	resp, err := client.ListLeaderboardWithResponse(context.Background(), &oxinsider.ListLeaderboardParams{Limit: &limit})
	if err != nil {
		log.Fatal(err)
	}
	if resp.JSON200 == nil {
		log.Fatalf("HTTP %d: %s", resp.StatusCode(), resp.Body)
	}
	for _, trader := range resp.JSON200.Data {
		fmt.Println(trader.Address)
	}
}

Every operation in the OpenAPI document has a typed ...WithResponse method. JSON200 (and the other status fields) hold the decoded body; Body keeps the raw bytes and StatusCode() the status.

  • Credentials. WithBearerToken accepts an API key (oxi_sk_live_...) or an OAuth 2.1 access token (oxi_at_...). Discovery (GetApiDiscovery), health and the platform capability document need none. Data operations need an active Pro subscription.
  • Errors. A 401 carries WWW-Authenticate with the protected-resource metadata URL; a 403 insufficient_scope names the OAuth scope a token lacks; a 429 carries Retry-After. Read the JSON error object's error.code and branch on it; error.message is prose.
  • Numbers. Money and price fields keep the API's full precision. Do not round before you display them.
  • Missing values. A missing, stale, partial or unavailable field means the provider did not report that value. Do not read it as zero.

Run the example, which needs no key for discovery and health:

go run ./examples/discovery
OXI_API_KEY=oxi_sk_live_... go run ./examples/discovery

Regenerate

./scripts/generate.sh fetches the published OpenAPI document, drops the bracketed expand[] query aliases (the SDK always sends expand), regenerates oxinsider.gen.go with oapi-codegen, and vets and builds the module. A weekly workflow opens a pull request when the published document changes.

License

MIT

Documentation

Overview

Package oxinsider is the official Go client for the 0xinsider Developer API: Polymarket analytics for sports and esports, with every tracked wallet graded S to F from settled P&L, large trades, sharp-money flow, positions, market snapshots and reports.

The client is generated from the published OpenAPI 3.1 document at https://0xinsider.com/api/v1/openapi.json. Authenticate with an API key from https://0xinsider.com/developers or an OAuth 2.1 access token; see https://0xinsider.com/auth.md.

client, err := oxinsider.New(oxinsider.WithBearerToken(os.Getenv("OXI_API_KEY")))
board, err := client.ListLeaderboardWithResponse(ctx, &oxinsider.ListLeaderboardParams{})

Package oxinsider provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

View Source
const DefaultServer = "https://api.0xinsider.com"

DefaultServer is the production API origin. Every operation path in this package is relative to it (for example /api/v1/leaderboard).

View Source
const Version = "0.1.0"

Version is this SDK's release, sent in the User-Agent header.

Variables

This section is empty.

Functions

func NewBatchGetMarketIntelRequest

func NewBatchGetMarketIntelRequest(server string, body BatchGetMarketIntelJSONRequestBody) (*http.Request, error)

NewBatchGetMarketIntelRequest calls the generic BatchGetMarketIntel builder with application/json body

func NewBatchGetMarketIntelRequestWithBody

func NewBatchGetMarketIntelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewBatchGetMarketIntelRequestWithBody constructs an http.Request for the BatchGetMarketIntel method, with any body, and a specified content type

func NewBatchGetTradersRequest

func NewBatchGetTradersRequest(server string, body BatchGetTradersJSONRequestBody) (*http.Request, error)

NewBatchGetTradersRequest calls the generic BatchGetTraders builder with application/json body

func NewBatchGetTradersRequestWithBody

func NewBatchGetTradersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewBatchGetTradersRequestWithBody constructs an http.Request for the BatchGetTraders method, with any body, and a specified content type

func NewCreateMcpJsonRpcResponseRequest

func NewCreateMcpJsonRpcResponseRequest(server string, params *CreateMcpJsonRpcResponseParams, body CreateMcpJsonRpcResponseJSONRequestBody) (*http.Request, error)

NewCreateMcpJsonRpcResponseRequest calls the generic CreateMcpJsonRpcResponse builder with application/json body

func NewCreateMcpJsonRpcResponseRequestWithBody

func NewCreateMcpJsonRpcResponseRequestWithBody(server string, params *CreateMcpJsonRpcResponseParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateMcpJsonRpcResponseRequestWithBody constructs an http.Request for the CreateMcpJsonRpcResponse method, with any body, and a specified content type

func NewCreateWebhookRequest

func NewCreateWebhookRequest(server string, params *CreateWebhookParams, body CreateWebhookJSONRequestBody) (*http.Request, error)

NewCreateWebhookRequest calls the generic CreateWebhook builder with application/json body

func NewCreateWebhookRequestWithBody

func NewCreateWebhookRequestWithBody(server string, params *CreateWebhookParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateWebhookRequestWithBody constructs an http.Request for the CreateWebhook method, with any body, and a specified content type

func NewDeleteWebhookRequest

func NewDeleteWebhookRequest(server string, id int64, params *DeleteWebhookParams) (*http.Request, error)

NewDeleteWebhookRequest constructs an http.Request for the DeleteWebhook method

func NewDownloadTraderExportRequest

func NewDownloadTraderExportRequest(server string, address string, params *DownloadTraderExportParams) (*http.Request, error)

NewDownloadTraderExportRequest constructs an http.Request for the DownloadTraderExport method

func NewExploreMarketsRequest

func NewExploreMarketsRequest(server string, params *ExploreMarketsParams) (*http.Request, error)

NewExploreMarketsRequest constructs an http.Request for the ExploreMarkets method

func NewGetApiDiscoveryRequest

func NewGetApiDiscoveryRequest(server string) (*http.Request, error)

NewGetApiDiscoveryRequest constructs an http.Request for the GetApiDiscovery method

func NewGetDailyReportSnapshotRequest

func NewGetDailyReportSnapshotRequest(server string, params *GetDailyReportSnapshotParams) (*http.Request, error)

NewGetDailyReportSnapshotRequest constructs an http.Request for the GetDailyReportSnapshot method

func NewGetEventReplaySinceRequest

func NewGetEventReplaySinceRequest(server string, params *GetEventReplaySinceParams) (*http.Request, error)

NewGetEventReplaySinceRequest constructs an http.Request for the GetEventReplaySince method

func NewGetHealthRequest

func NewGetHealthRequest(server string, params *GetHealthParams) (*http.Request, error)

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetInsiderRadarFlagRequest

func NewGetInsiderRadarFlagRequest(server string, id string, params *GetInsiderRadarFlagParams) (*http.Request, error)

NewGetInsiderRadarFlagRequest constructs an http.Request for the GetInsiderRadarFlag method

func NewGetMarketCandlesRequest

func NewGetMarketCandlesRequest(server string, conditionId string, params *GetMarketCandlesParams) (*http.Request, error)

NewGetMarketCandlesRequest constructs an http.Request for the GetMarketCandles method

func NewGetMarketIntelRequest

func NewGetMarketIntelRequest(server string, conditionId string, params *GetMarketIntelParams) (*http.Request, error)

NewGetMarketIntelRequest constructs an http.Request for the GetMarketIntel method

func NewGetMarketSnapshotRequest

func NewGetMarketSnapshotRequest(server string, conditionId string, params *GetMarketSnapshotParams) (*http.Request, error)

NewGetMarketSnapshotRequest constructs an http.Request for the GetMarketSnapshot method

func NewGetMonthlyReportSnapshotRequest

func NewGetMonthlyReportSnapshotRequest(server string, params *GetMonthlyReportSnapshotParams) (*http.Request, error)

NewGetMonthlyReportSnapshotRequest constructs an http.Request for the GetMonthlyReportSnapshot method

func NewGetPickOfTheDayArchiveRequest

func NewGetPickOfTheDayArchiveRequest(server string, params *GetPickOfTheDayArchiveParams) (*http.Request, error)

NewGetPickOfTheDayArchiveRequest constructs an http.Request for the GetPickOfTheDayArchive method

func NewGetPickOfTheDayRequest

func NewGetPickOfTheDayRequest(server string, params *GetPickOfTheDayParams) (*http.Request, error)

NewGetPickOfTheDayRequest constructs an http.Request for the GetPickOfTheDay method

func NewGetPlatformsRequest

func NewGetPlatformsRequest(server string) (*http.Request, error)

NewGetPlatformsRequest constructs an http.Request for the GetPlatforms method

func NewGetPositionTimelineByIdRequest

func NewGetPositionTimelineByIdRequest(server string, trader string, params *GetPositionTimelineByIdParams) (*http.Request, error)

NewGetPositionTimelineByIdRequest constructs an http.Request for the GetPositionTimelineById method

func NewGetPositionTimelineRequest

func NewGetPositionTimelineRequest(server string, address string, params *GetPositionTimelineParams) (*http.Request, error)

NewGetPositionTimelineRequest constructs an http.Request for the GetPositionTimeline method

func NewGetReportsRequest

func NewGetReportsRequest(server string, params *GetReportsParams) (*http.Request, error)

NewGetReportsRequest constructs an http.Request for the GetReports method

func NewGetStreamRequest

func NewGetStreamRequest(server string, params *GetStreamParams) (*http.Request, error)

NewGetStreamRequest constructs an http.Request for the GetStream method

func NewGetTraderContextMarkdownRequest

func NewGetTraderContextMarkdownRequest(server string, address string) (*http.Request, error)

NewGetTraderContextMarkdownRequest constructs an http.Request for the GetTraderContextMarkdown method

func NewGetTraderContextRequest

func NewGetTraderContextRequest(server string, address string, params *GetTraderContextParams) (*http.Request, error)

NewGetTraderContextRequest constructs an http.Request for the GetTraderContext method

func NewGetTraderExportSnapshotRequest

func NewGetTraderExportSnapshotRequest(server string, address string) (*http.Request, error)

NewGetTraderExportSnapshotRequest constructs an http.Request for the GetTraderExportSnapshot method

func NewGetTraderExportStatusRequest

func NewGetTraderExportStatusRequest(server string, address string, params *GetTraderExportStatusParams) (*http.Request, error)

NewGetTraderExportStatusRequest constructs an http.Request for the GetTraderExportStatus method

func NewGetTraderPnlRequest

func NewGetTraderPnlRequest(server string, address string) (*http.Request, error)

NewGetTraderPnlRequest constructs an http.Request for the GetTraderPnl method

func NewGetTraderRequest

func NewGetTraderRequest(server string, address string, params *GetTraderParams) (*http.Request, error)

NewGetTraderRequest constructs an http.Request for the GetTrader method

func NewGetUsageRequest

func NewGetUsageRequest(server string) (*http.Request, error)

NewGetUsageRequest constructs an http.Request for the GetUsage method

func NewGetWebhookRequest

func NewGetWebhookRequest(server string, id int64) (*http.Request, error)

NewGetWebhookRequest constructs an http.Request for the GetWebhook method

func NewGetWeeklyReportSnapshotRequest

func NewGetWeeklyReportSnapshotRequest(server string, params *GetWeeklyReportSnapshotParams) (*http.Request, error)

NewGetWeeklyReportSnapshotRequest constructs an http.Request for the GetWeeklyReportSnapshot method

func NewGetWhaleTradeRequest

func NewGetWhaleTradeRequest(server string, id string, params *GetWhaleTradeParams) (*http.Request, error)

NewGetWhaleTradeRequest constructs an http.Request for the GetWhaleTrade method

func NewListInsiderRadarRequest

func NewListInsiderRadarRequest(server string, params *ListInsiderRadarParams) (*http.Request, error)

NewListInsiderRadarRequest constructs an http.Request for the ListInsiderRadar method

func NewListLargePositionsRequest

func NewListLargePositionsRequest(server string, params *ListLargePositionsParams) (*http.Request, error)

NewListLargePositionsRequest constructs an http.Request for the ListLargePositions method

func NewListLeaderboardRequest

func NewListLeaderboardRequest(server string, params *ListLeaderboardParams) (*http.Request, error)

NewListLeaderboardRequest constructs an http.Request for the ListLeaderboard method

func NewListPositionsRequest

func NewListPositionsRequest(server string, params *ListPositionsParams) (*http.Request, error)

NewListPositionsRequest constructs an http.Request for the ListPositions method

func NewListSharpMoneyFlowsRequest

func NewListSharpMoneyFlowsRequest(server string, params *ListSharpMoneyFlowsParams) (*http.Request, error)

NewListSharpMoneyFlowsRequest constructs an http.Request for the ListSharpMoneyFlows method

func NewListSmartMoneyFlowsRequest

func NewListSmartMoneyFlowsRequest(server string, params *ListSmartMoneyFlowsParams) (*http.Request, error)

NewListSmartMoneyFlowsRequest constructs an http.Request for the ListSmartMoneyFlows method

func NewListSportsEdgeObservationsRequest

func NewListSportsEdgeObservationsRequest(server string, params *ListSportsEdgeObservationsParams) (*http.Request, error)

NewListSportsEdgeObservationsRequest constructs an http.Request for the ListSportsEdgeObservations method

func NewListSportsEdgeSignalsRequest

func NewListSportsEdgeSignalsRequest(server string, params *ListSportsEdgeSignalsParams) (*http.Request, error)

NewListSportsEdgeSignalsRequest constructs an http.Request for the ListSportsEdgeSignals method

func NewListTrendingWalletsRequest

func NewListTrendingWalletsRequest(server string, params *ListTrendingWalletsParams) (*http.Request, error)

NewListTrendingWalletsRequest constructs an http.Request for the ListTrendingWallets method

func NewListWebhookDeliveriesRequest

func NewListWebhookDeliveriesRequest(server string, id int64, params *ListWebhookDeliveriesParams) (*http.Request, error)

NewListWebhookDeliveriesRequest constructs an http.Request for the ListWebhookDeliveries method

func NewListWebhookEventsRequest

func NewListWebhookEventsRequest(server string) (*http.Request, error)

NewListWebhookEventsRequest constructs an http.Request for the ListWebhookEvents method

func NewListWebhooksRequest

func NewListWebhooksRequest(server string) (*http.Request, error)

NewListWebhooksRequest constructs an http.Request for the ListWebhooks method

func NewListWhaleTradeCounterpartyExecutionsRequest

func NewListWhaleTradeCounterpartyExecutionsRequest(server string, id string, params *ListWhaleTradeCounterpartyExecutionsParams) (*http.Request, error)

NewListWhaleTradeCounterpartyExecutionsRequest constructs an http.Request for the ListWhaleTradeCounterpartyExecutions method

func NewListWhaleTradeCounterpartyMakersRequest

func NewListWhaleTradeCounterpartyMakersRequest(server string, id string, executionId string, params *ListWhaleTradeCounterpartyMakersParams) (*http.Request, error)

NewListWhaleTradeCounterpartyMakersRequest constructs an http.Request for the ListWhaleTradeCounterpartyMakers method

func NewListWhaleTradeHistoryRequest

func NewListWhaleTradeHistoryRequest(server string, params *ListWhaleTradeHistoryParams) (*http.Request, error)

NewListWhaleTradeHistoryRequest constructs an http.Request for the ListWhaleTradeHistory method

func NewListWhaleTradesRequest

func NewListWhaleTradesRequest(server string, params *ListWhaleTradesParams) (*http.Request, error)

NewListWhaleTradesRequest constructs an http.Request for the ListWhaleTrades method

func NewOpenMcpEventStreamRequest

func NewOpenMcpEventStreamRequest(server string, params *OpenMcpEventStreamParams) (*http.Request, error)

NewOpenMcpEventStreamRequest constructs an http.Request for the OpenMcpEventStream method

func NewRedirectApiOpenapiSpecRequest

func NewRedirectApiOpenapiSpecRequest(server string) (*http.Request, error)

NewRedirectApiOpenapiSpecRequest constructs an http.Request for the RedirectApiOpenapiSpec method

func NewRotateWebhookSecretRequest

func NewRotateWebhookSecretRequest(server string, id int64, params *RotateWebhookSecretParams) (*http.Request, error)

NewRotateWebhookSecretRequest constructs an http.Request for the RotateWebhookSecret method

func NewSearchContentRequest

func NewSearchContentRequest(server string, params *SearchContentParams) (*http.Request, error)

NewSearchContentRequest constructs an http.Request for the SearchContent method

func NewSearchMarketsRequest

func NewSearchMarketsRequest(server string, params *SearchMarketsParams) (*http.Request, error)

NewSearchMarketsRequest constructs an http.Request for the SearchMarkets method

func NewSubmitTraderExportRequest

func NewSubmitTraderExportRequest(server string, address string, params *SubmitTraderExportParams) (*http.Request, error)

NewSubmitTraderExportRequest constructs an http.Request for the SubmitTraderExport method

func NewUpdateWebhookRequest

func NewUpdateWebhookRequest(server string, id int64, params *UpdateWebhookParams, body UpdateWebhookJSONRequestBody) (*http.Request, error)

NewUpdateWebhookRequest calls the generic UpdateWebhook builder with application/json body

func NewUpdateWebhookRequestWithBody

func NewUpdateWebhookRequestWithBody(server string, id int64, params *UpdateWebhookParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWebhookRequestWithBody constructs an http.Request for the UpdateWebhook method, with any body, and a specified content type

func NewVerifyWebhookRequest

func NewVerifyWebhookRequest(server string, id int64, body VerifyWebhookJSONRequestBody) (*http.Request, error)

NewVerifyWebhookRequest calls the generic VerifyWebhook builder with application/json body

func NewVerifyWebhookRequestWithBody

func NewVerifyWebhookRequestWithBody(server string, id int64, contentType string, body io.Reader) (*http.Request, error)

NewVerifyWebhookRequestWithBody constructs an http.Request for the VerifyWebhook method, with any body, and a specified content type

Types

type ApiDiscovery

type ApiDiscovery struct {
	// ApiBaseUrl Canonical API origin for public V1 requests.
	ApiBaseUrl string `json:"api_base_url"`

	// AuthenticatedRoutes The complete authenticated route index: one entry per authenticated route this spec documents, in "<METHOD> <path>" form, not a representative subset. GET /api/v1 is the unauthenticated entrypoint an agent hits first, so it hands back the whole authenticated surface rather than a sample the caller would have to guess around. The example on GET /api/v1 is abridged for readability -- the live response returns all of them. Kept in lockstep with this spec by review: it is a hand-maintained const in backend/src/api_v1/discovery.rs and no automated check compares the two, so treat this spec as authoritative if they ever disagree.
	AuthenticatedRoutes []string                   `json:"authenticated_routes"`
	Authentication      ApiDiscoveryAuthentication `json:"authentication"`

	// DocsUrl Full agent-readable API reference.
	DocsUrl string `json:"docs_url"`

	// HealthUrl Unauthenticated API health endpoint.
	HealthUrl string `json:"health_url"`

	// OpenapiUrl Canonical web-origin OpenAPI JSON document.
	OpenapiUrl string `json:"openapi_url"`

	// ProtectedResourceMetadataUrl RFC 9728 protected-resource metadata for the API origin: the document every V1 401 names in its WWW-Authenticate challenge (resource, bearer_methods_supported, resource_documentation). The remote MCP server has its own document at /.well-known/oauth-protected-resource/api/v1/mcp.
	ProtectedResourceMetadataUrl string `json:"protected_resource_metadata_url"`
}

ApiDiscovery defines model for ApiDiscovery.

type ApiDiscoveryAuthentication

type ApiDiscoveryAuthentication string

ApiDiscoveryAuthentication defines model for ApiDiscovery.Authentication.

const (
	BearerAPIKeyRequiredForDataEndpointsDiscoveryapiv1Healthapiv1platformsAndTheMCPHandshakeInitializePingToolslistOnapiv1mcpArePublicA401CarriesWWWAuthenticateWithTheResourceMetadataURL ApiDiscoveryAuthentication = "" /* 234-byte string literal not displayed */
)

Defines values for ApiDiscoveryAuthentication.

func (ApiDiscoveryAuthentication) Valid

func (e ApiDiscoveryAuthentication) Valid() bool

Valid indicates whether the value is a known member of the ApiDiscoveryAuthentication enum.

type ApiError

type ApiError struct {
	Error struct {
		Code    ApiErrorErrorCode `json:"code"`
		DocUrl  *string           `json:"doc_url,omitempty"`
		Message string            `json:"message"`
		Param   *string           `json:"param,omitempty"`

		// Reason ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at.
		Reason *ApiErrorErrorReason `json:"reason,omitempty"`

		// RetryAt The recommended next request instant (RFC3339), always in the future. Present on every retryable error: `pick_not_released`, `rate_limited`, `rate_limit_unavailable`, and `read_model_warming`. Omitted otherwise. The absolute twin of `Retry-After`; prefer the header for the sleep duration. For `pick_not_released`, the earliest of the next scheduled release, the next automatic selector attempt, the operating-window start, or about 60 seconds. See that response.
		RetryAt *time.Time `json:"retry_at,omitempty"`
	} `json:"error"`
	Meta   ResponseMeta   `json:"meta"`
	Object ApiErrorObject `json:"object"`
}

ApiError defines model for ApiError.

type ApiErrorBody

type ApiErrorBody struct {
	Code    ApiErrorBodyCode `json:"code"`
	DocUrl  *string          `json:"doc_url,omitempty"`
	Message string           `json:"message"`
	Param   *string          `json:"param,omitempty"`

	// Reason ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at.
	Reason *ApiErrorBodyReason `json:"reason,omitempty"`

	// RetryAt The recommended next retry instant (RFC3339). Present on every retryable error (reason=pick_not_released, code=rate_limited, code=rate_limit_unavailable, reason=read_model_warming) and omitted otherwise. Always in the future. For pick_not_released: before the 11:00 UTC operating-window start, before a selected pick's stored release, or after a skipped day, it names the automatic system's next boundary. While no candidate exists in the live window it normally names the persisted next automatic selector attempt (~15m). Every value is advisory under supported operator actions: manual publication, release-time override, or admin generation can make a pick available first. When the automatic schedule is absent/due or a pick is overdue it degrades to ~60s. Schedule one request and do not poll. Prefer Retry-After for the duration because it is immune to client clock skew.
	RetryAt *time.Time `json:"retry_at,omitempty"`
}

ApiErrorBody defines model for ApiErrorBody.

type ApiErrorBodyCode

type ApiErrorBodyCode string

ApiErrorBodyCode defines model for ApiErrorBody.Code.

const (
	ApiErrorBodyCodeAccountLocked        ApiErrorBodyCode = "account_locked"
	ApiErrorBodyCodeBadRequest           ApiErrorBodyCode = "bad_request"
	ApiErrorBodyCodeForbidden            ApiErrorBodyCode = "forbidden"
	ApiErrorBodyCodeInternalError        ApiErrorBodyCode = "internal_error"
	ApiErrorBodyCodeInvalidApiKey        ApiErrorBodyCode = "invalid_api_key"
	ApiErrorBodyCodeNotFound             ApiErrorBodyCode = "not_found"
	ApiErrorBodyCodeRateLimitUnavailable ApiErrorBodyCode = "rate_limit_unavailable"
	ApiErrorBodyCodeRateLimited          ApiErrorBodyCode = "rate_limited"
	ApiErrorBodyCodeSubscriptionRequired ApiErrorBodyCode = "subscription_required"
)

Defines values for ApiErrorBodyCode.

func (ApiErrorBodyCode) Valid

func (e ApiErrorBodyCode) Valid() bool

Valid indicates whether the value is a known member of the ApiErrorBodyCode enum.

type ApiErrorBodyReason

type ApiErrorBodyReason string

ApiErrorBodyReason ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at.

const (
	ApiErrorBodyReasonCursorExpired                ApiErrorBodyReason = "cursor_expired"
	ApiErrorBodyReasonDatabaseUnavailable          ApiErrorBodyReason = "database_unavailable"
	ApiErrorBodyReasonIdempotencyInProgress        ApiErrorBodyReason = "idempotency_in_progress"
	ApiErrorBodyReasonPickNotReleased              ApiErrorBodyReason = "pick_not_released"
	ApiErrorBodyReasonReadModelWarming             ApiErrorBodyReason = "read_model_warming"
	ApiErrorBodyReasonRequestAccountingUnavailable ApiErrorBodyReason = "request_accounting_unavailable"
	ApiErrorBodyReasonTraderNotTracked             ApiErrorBodyReason = "trader_not_tracked"
	ApiErrorBodyReasonUnknownEndpoint              ApiErrorBodyReason = "unknown_endpoint"
	ApiErrorBodyReasonWebhookDeliveryInProgress    ApiErrorBodyReason = "webhook_delivery_in_progress"
)

Defines values for ApiErrorBodyReason.

func (ApiErrorBodyReason) Valid

func (e ApiErrorBodyReason) Valid() bool

Valid indicates whether the value is a known member of the ApiErrorBodyReason enum.

type ApiErrorErrorCode

type ApiErrorErrorCode string

ApiErrorErrorCode defines model for ApiError.Error.Code.

const (
	ApiErrorErrorCodeAccountLocked        ApiErrorErrorCode = "account_locked"
	ApiErrorErrorCodeBadRequest           ApiErrorErrorCode = "bad_request"
	ApiErrorErrorCodeForbidden            ApiErrorErrorCode = "forbidden"
	ApiErrorErrorCodeInternalError        ApiErrorErrorCode = "internal_error"
	ApiErrorErrorCodeInvalidApiKey        ApiErrorErrorCode = "invalid_api_key"
	ApiErrorErrorCodeNotFound             ApiErrorErrorCode = "not_found"
	ApiErrorErrorCodeRateLimitUnavailable ApiErrorErrorCode = "rate_limit_unavailable"
	ApiErrorErrorCodeRateLimited          ApiErrorErrorCode = "rate_limited"
	ApiErrorErrorCodeSubscriptionRequired ApiErrorErrorCode = "subscription_required"
)

Defines values for ApiErrorErrorCode.

func (ApiErrorErrorCode) Valid

func (e ApiErrorErrorCode) Valid() bool

Valid indicates whether the value is a known member of the ApiErrorErrorCode enum.

type ApiErrorErrorReason

type ApiErrorErrorReason string

ApiErrorErrorReason ADDITIVE (#7209). The specific, actionable cause behind `code`, when there is one more specific than the code itself. `code` keeps its published values, so existing clients are unaffected; new clients branch on `reason`. Omitted when the code already says everything we know. pick_not_released: no Pick of the Day is published for the current product day; schedule one request against retry_at instead of polling. unknown_endpoint: the PATH is not a route on this API -- read GET /api/v1, do not retry. trader_not_tracked: the wallet is real and the URL is right, but the trader is outside the HOT/WARM sync tiers -- stop asking for this wallet. cursor_expired: pagination went stale mid-walk -- re-request the first page and continue. read_model_warming: the requested endpoint cannot serve its read model yet; exact causes are endpoint-specific and can include a cold or contended refresh or a dependency that prevented refresh. database_unavailable: the API's database or its connection pool is temporarily unreachable (a connection-class failure, not a query fault); code stays rate_limit_unavailable, nothing is rate-limited, retry after Retry-After / retry_at. idempotency_in_progress: retain the exact Idempotency-Key and request body, then retry shortly. webhook_delivery_in_progress: retry the URL or signing-secret configuration change after the destination's active request completes. request_accounting_unavailable: accounting capacity is unavailable before the handler executes; retry after Retry-After / retry_at.

const (
	ApiErrorErrorReasonCursorExpired                ApiErrorErrorReason = "cursor_expired"
	ApiErrorErrorReasonDatabaseUnavailable          ApiErrorErrorReason = "database_unavailable"
	ApiErrorErrorReasonIdempotencyInProgress        ApiErrorErrorReason = "idempotency_in_progress"
	ApiErrorErrorReasonPickNotReleased              ApiErrorErrorReason = "pick_not_released"
	ApiErrorErrorReasonReadModelWarming             ApiErrorErrorReason = "read_model_warming"
	ApiErrorErrorReasonRequestAccountingUnavailable ApiErrorErrorReason = "request_accounting_unavailable"
	ApiErrorErrorReasonTraderNotTracked             ApiErrorErrorReason = "trader_not_tracked"
	ApiErrorErrorReasonUnknownEndpoint              ApiErrorErrorReason = "unknown_endpoint"
	ApiErrorErrorReasonWebhookDeliveryInProgress    ApiErrorErrorReason = "webhook_delivery_in_progress"
)

Defines values for ApiErrorErrorReason.

func (ApiErrorErrorReason) Valid

func (e ApiErrorErrorReason) Valid() bool

Valid indicates whether the value is a known member of the ApiErrorErrorReason enum.

type ApiErrorObject

type ApiErrorObject string

ApiErrorObject defines model for ApiError.Object.

const (
	ApiErrorObjectError ApiErrorObject = "error"
)

Defines values for ApiErrorObject.

func (ApiErrorObject) Valid

func (e ApiErrorObject) Valid() bool

Valid indicates whether the value is a known member of the ApiErrorObject enum.

type BatchGetMarketIntel200JSONResponseBodyObject

type BatchGetMarketIntel200JSONResponseBodyObject string

BatchGetMarketIntel200JSONResponseBodyObject defines parameters for BatchGetMarketIntel.

const (
	MarketIntelBatch BatchGetMarketIntel200JSONResponseBodyObject = "market_intel_batch"
)

Defines values for BatchGetMarketIntel200JSONResponseBodyObject.

func (BatchGetMarketIntel200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the BatchGetMarketIntel200JSONResponseBodyObject enum.

type BatchGetMarketIntelJSONBody

type BatchGetMarketIntelJSONBody struct {
	// ConditionIds Market condition IDs to resolve in input order.
	ConditionIds []string `json:"condition_ids"`

	// Timeframe Lookback window used for flow and trade-count context.
	Timeframe *BatchGetMarketIntelJSONBodyTimeframe `json:"timeframe,omitempty"`
}

BatchGetMarketIntelJSONBody defines parameters for BatchGetMarketIntel.

type BatchGetMarketIntelJSONBodyTimeframe

type BatchGetMarketIntelJSONBodyTimeframe string

BatchGetMarketIntelJSONBodyTimeframe defines parameters for BatchGetMarketIntel.

const (
	BatchGetMarketIntelJSONBodyTimeframeN1h  BatchGetMarketIntelJSONBodyTimeframe = "1h"
	BatchGetMarketIntelJSONBodyTimeframeN24h BatchGetMarketIntelJSONBodyTimeframe = "24h"
	BatchGetMarketIntelJSONBodyTimeframeN4h  BatchGetMarketIntelJSONBodyTimeframe = "4h"
	BatchGetMarketIntelJSONBodyTimeframeN7d  BatchGetMarketIntelJSONBodyTimeframe = "7d"
)

Defines values for BatchGetMarketIntelJSONBodyTimeframe.

func (BatchGetMarketIntelJSONBodyTimeframe) Valid

Valid indicates whether the value is a known member of the BatchGetMarketIntelJSONBodyTimeframe enum.

type BatchGetMarketIntelJSONRequestBody

type BatchGetMarketIntelJSONRequestBody BatchGetMarketIntelJSONBody

BatchGetMarketIntelJSONRequestBody defines body for BatchGetMarketIntel for application/json ContentType.

type BatchGetMarketIntelResponse

type BatchGetMarketIntelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   []BatchMarketIntelItem                       `json:"data"`
		Meta   BatchResponseMeta                            `json:"meta"`
		Object BatchGetMarketIntel200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *BatchGetMarketIntelResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *BatchGetMarketIntelResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *BatchGetMarketIntelResponse503Headers
}

func ParseBatchGetMarketIntelResponse

func ParseBatchGetMarketIntelResponse(rsp *http.Response) (*BatchGetMarketIntelResponse, error)

ParseBatchGetMarketIntelResponse parses an HTTP response from a BatchGetMarketIntelWithResponse call

func (BatchGetMarketIntelResponse) ContentType

func (r BatchGetMarketIntelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BatchGetMarketIntelResponse) GetBody

func (r BatchGetMarketIntelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (BatchGetMarketIntelResponse) GetJSON200

func (r BatchGetMarketIntelResponse) GetJSON200() *struct {
	Data   []BatchMarketIntelItem                       `json:"data"`
	Meta   BatchResponseMeta                            `json:"meta"`
	Object BatchGetMarketIntel200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON400

func (r BatchGetMarketIntelResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON401

func (r BatchGetMarketIntelResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON402

func (r BatchGetMarketIntelResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON403

func (r BatchGetMarketIntelResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON423

func (r BatchGetMarketIntelResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON429

func (r BatchGetMarketIntelResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON500

func (r BatchGetMarketIntelResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (BatchGetMarketIntelResponse) GetJSON503

func (r BatchGetMarketIntelResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (BatchGetMarketIntelResponse) Status

Status returns HTTPResponse.Status

func (BatchGetMarketIntelResponse) StatusCode

func (r BatchGetMarketIntelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BatchGetMarketIntelResponse200Headers

type BatchGetMarketIntelResponse200Headers struct {
	XBatchRateLimitLimit     *int
	XBatchRateLimitRemaining *int
	XBatchRateLimitReset     *int
	XRateLimitLimit          *int
	XRateLimitRemaining      *int
	XRateLimitReset          *int
	XRequestCost             *int
	XRequestId               *string
	XUsageAccounting         *string
}

BatchGetMarketIntelResponse200Headers the declared response headers of an HTTP 200 response for BatchGetMarketIntel

type BatchGetMarketIntelResponse429Headers

type BatchGetMarketIntelResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

BatchGetMarketIntelResponse429Headers the declared response headers of an HTTP 429 response for BatchGetMarketIntel

type BatchGetMarketIntelResponse503Headers

type BatchGetMarketIntelResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

BatchGetMarketIntelResponse503Headers the declared response headers of an HTTP 503 response for BatchGetMarketIntel

type BatchGetTraders200JSONResponseBodyObject

type BatchGetTraders200JSONResponseBodyObject string

BatchGetTraders200JSONResponseBodyObject defines parameters for BatchGetTraders.

const (
	TraderBatch BatchGetTraders200JSONResponseBodyObject = "trader_batch"
)

Defines values for BatchGetTraders200JSONResponseBodyObject.

func (BatchGetTraders200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the BatchGetTraders200JSONResponseBodyObject enum.

type BatchGetTradersJSONBody

type BatchGetTradersJSONBody struct {
	// Expand Shared expand flags applied to every trader item.
	Expand *[]BatchGetTradersJSONBodyExpand `json:"expand,omitempty"`

	// Traders Trader identities to resolve in input order.
	Traders []string `json:"traders"`
}

BatchGetTradersJSONBody defines parameters for BatchGetTraders.

type BatchGetTradersJSONBodyExpand

type BatchGetTradersJSONBodyExpand string

BatchGetTradersJSONBodyExpand defines parameters for BatchGetTraders.

const (
	BatchGetTradersJSONBodyExpandCategories   BatchGetTradersJSONBodyExpand = "categories"
	BatchGetTradersJSONBodyExpandQuantMetrics BatchGetTradersJSONBodyExpand = "quant_metrics"
	BatchGetTradersJSONBodyExpandStrategy     BatchGetTradersJSONBodyExpand = "strategy"
	BatchGetTradersJSONBodyExpandTrust        BatchGetTradersJSONBodyExpand = "trust"
)

Defines values for BatchGetTradersJSONBodyExpand.

func (BatchGetTradersJSONBodyExpand) Valid

Valid indicates whether the value is a known member of the BatchGetTradersJSONBodyExpand enum.

type BatchGetTradersJSONRequestBody

type BatchGetTradersJSONRequestBody BatchGetTradersJSONBody

BatchGetTradersJSONRequestBody defines body for BatchGetTraders for application/json ContentType.

type BatchGetTradersResponse

type BatchGetTradersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   []BatchTraderItem                        `json:"data"`
		Meta   BatchResponseMeta                        `json:"meta"`
		Object BatchGetTraders200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *BatchGetTradersResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *BatchGetTradersResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *BatchGetTradersResponse503Headers
}

func ParseBatchGetTradersResponse

func ParseBatchGetTradersResponse(rsp *http.Response) (*BatchGetTradersResponse, error)

ParseBatchGetTradersResponse parses an HTTP response from a BatchGetTradersWithResponse call

func (BatchGetTradersResponse) ContentType

func (r BatchGetTradersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BatchGetTradersResponse) GetBody

func (r BatchGetTradersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (BatchGetTradersResponse) GetJSON200

func (r BatchGetTradersResponse) GetJSON200() *struct {
	Data   []BatchTraderItem                        `json:"data"`
	Meta   BatchResponseMeta                        `json:"meta"`
	Object BatchGetTraders200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (BatchGetTradersResponse) GetJSON400

func (r BatchGetTradersResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (BatchGetTradersResponse) GetJSON401

func (r BatchGetTradersResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (BatchGetTradersResponse) GetJSON402

func (r BatchGetTradersResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (BatchGetTradersResponse) GetJSON403

func (r BatchGetTradersResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (BatchGetTradersResponse) GetJSON423

func (r BatchGetTradersResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (BatchGetTradersResponse) GetJSON429

func (r BatchGetTradersResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (BatchGetTradersResponse) GetJSON500

func (r BatchGetTradersResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (BatchGetTradersResponse) GetJSON503

func (r BatchGetTradersResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (BatchGetTradersResponse) Status

func (r BatchGetTradersResponse) Status() string

Status returns HTTPResponse.Status

func (BatchGetTradersResponse) StatusCode

func (r BatchGetTradersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BatchGetTradersResponse200Headers

type BatchGetTradersResponse200Headers struct {
	XBatchRateLimitLimit     *int
	XBatchRateLimitRemaining *int
	XBatchRateLimitReset     *int
	XRateLimitLimit          *int
	XRateLimitRemaining      *int
	XRateLimitReset          *int
	XRequestCost             *int
	XRequestId               *string
	XUsageAccounting         *string
}

BatchGetTradersResponse200Headers the declared response headers of an HTTP 200 response for BatchGetTraders

type BatchGetTradersResponse429Headers

type BatchGetTradersResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

BatchGetTradersResponse429Headers the declared response headers of an HTTP 429 response for BatchGetTraders

type BatchGetTradersResponse503Headers

type BatchGetTradersResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

BatchGetTradersResponse503Headers the declared response headers of an HTTP 503 response for BatchGetTraders

type BatchMarketIntelItem

type BatchMarketIntelItem struct {
	Data  *MarketIntel  `json:"data,omitempty"`
	Error *ApiErrorBody `json:"error,omitempty"`

	// Index Zero-based request index. Duplicate inputs keep separate result rows.
	Index  int                        `json:"index"`
	Input  string                     `json:"input"`
	Status BatchMarketIntelItemStatus `json:"status"`
}

BatchMarketIntelItem defines model for BatchMarketIntelItem.

type BatchMarketIntelItemStatus

type BatchMarketIntelItemStatus string

BatchMarketIntelItemStatus defines model for BatchMarketIntelItem.Status.

const (
	BatchMarketIntelItemStatusError BatchMarketIntelItemStatus = "error"
	BatchMarketIntelItemStatusOk    BatchMarketIntelItemStatus = "ok"
)

Defines values for BatchMarketIntelItemStatus.

func (BatchMarketIntelItemStatus) Valid

func (e BatchMarketIntelItemStatus) Valid() bool

Valid indicates whether the value is a known member of the BatchMarketIntelItemStatus enum.

type BatchRateLimitMeta

type BatchRateLimitMeta struct {
	Basis     BatchRateLimitMetaBasis `json:"basis"`
	Limit     int                     `json:"limit"`
	Remaining int                     `json:"remaining"`

	// Reset Unix timestamp when the batch item window resets.
	Reset int `json:"reset"`
}

BatchRateLimitMeta defines model for BatchRateLimitMeta.

type BatchRateLimitMetaBasis

type BatchRateLimitMetaBasis string

BatchRateLimitMetaBasis defines model for BatchRateLimitMeta.Basis.

const (
	BatchItemsPerMinute BatchRateLimitMetaBasis = "batch_items_per_minute"
)

Defines values for BatchRateLimitMetaBasis.

func (BatchRateLimitMetaBasis) Valid

func (e BatchRateLimitMetaBasis) Valid() bool

Valid indicates whether the value is a known member of the BatchRateLimitMetaBasis enum.

type BatchResponseMeta

type BatchResponseMeta struct {
	Cached      bool               `json:"cached"`
	FailedItems int                `json:"failed_items"`
	RateLimit   BatchRateLimitMeta `json:"rate_limit"`

	// RequestCost Number of batch item units reserved before execution.
	RequestCost     int    `json:"request_cost"`
	RequestId       string `json:"request_id"`
	SuccessfulItems int    `json:"successful_items"`
	TotalItems      int    `json:"total_items"`
}

BatchResponseMeta defines model for BatchResponseMeta.

type BatchTraderItem

type BatchTraderItem struct {
	Data  *Trader       `json:"data,omitempty"`
	Error *ApiErrorBody `json:"error,omitempty"`

	// Index Zero-based request index. Duplicate inputs keep separate result rows.
	Index  int                   `json:"index"`
	Input  string                `json:"input"`
	Status BatchTraderItemStatus `json:"status"`
}

BatchTraderItem defines model for BatchTraderItem.

type BatchTraderItemStatus

type BatchTraderItemStatus string

BatchTraderItemStatus defines model for BatchTraderItem.Status.

const (
	BatchTraderItemStatusError BatchTraderItemStatus = "error"
	BatchTraderItemStatusOk    BatchTraderItemStatus = "ok"
)

Defines values for BatchTraderItemStatus.

func (BatchTraderItemStatus) Valid

func (e BatchTraderItemStatus) Valid() bool

Valid indicates whether the value is a known member of the BatchTraderItemStatus enum.

type Candle

type Candle struct {
	// C Close price in provider [0, 1] units (last observed point in the bucket).
	C float32 `json:"c"`

	// H High price in provider [0, 1] units (max observed in the bucket).
	H float32 `json:"h"`

	// L Low price in provider [0, 1] units (min observed in the bucket).
	L float32 `json:"l"`

	// O Open price in provider [0, 1] units (first observed point in the bucket).
	O float32 `json:"o"`

	// T Bucket-start unix epoch (seconds): UTC midnight for 1d, the ISO-week Monday's UTC midnight for 1w.
	T int64 `json:"t"`
}

Candle One bucketed OHLC price candle. Prices are in provider [0, 1] units, truncated to 4 decimals at the rendering edge.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) BatchGetMarketIntel

func (c *Client) BatchGetMarketIntel(ctx context.Context, body BatchGetMarketIntelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

BatchGetMarketIntel Batch market intelligence

Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).

func (*Client) BatchGetMarketIntelWithBody

func (c *Client) BatchGetMarketIntelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

BatchGetMarketIntelWithBody Batch market intelligence

Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).

func (*Client) BatchGetTraders

func (c *Client) BatchGetTraders(ctx context.Context, body BatchGetTradersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

BatchGetTraders Batch trader intelligence

Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).

func (*Client) BatchGetTradersWithBody

func (c *Client) BatchGetTradersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

BatchGetTradersWithBody Batch trader intelligence

Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).

func (*Client) CreateMcpJsonRpcResponse

func (c *Client) CreateMcpJsonRpcResponse(ctx context.Context, params *CreateMcpJsonRpcResponseParams, body CreateMcpJsonRpcResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateMcpJsonRpcResponse Remote MCP endpoint (JSON-RPC)

Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).

func (*Client) CreateMcpJsonRpcResponseWithBody

func (c *Client) CreateMcpJsonRpcResponseWithBody(ctx context.Context, params *CreateMcpJsonRpcResponseParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateMcpJsonRpcResponseWithBody Remote MCP endpoint (JSON-RPC)

Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).

func (*Client) CreateWebhook

func (c *Client) CreateWebhook(ctx context.Context, params *CreateWebhookParams, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateWebhook Create a builder webhook destination

Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).

func (*Client) CreateWebhookWithBody

func (c *Client) CreateWebhookWithBody(ctx context.Context, params *CreateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateWebhookWithBody Create a builder webhook destination

Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(ctx context.Context, id int64, params *DeleteWebhookParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteWebhook Disable a builder webhook destination

Soft-deletes a webhook destination owned by the authenticated API key user. Existing delivery audit rows remain retained.

Corresponds with DELETE /api/v1/webhooks/{id} (the `DeleteWebhook` operationId).

func (*Client) DownloadTraderExport

func (c *Client) DownloadTraderExport(ctx context.Context, address string, params *DownloadTraderExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DownloadTraderExport Download a finished trader export

Redirects (302) to a short-lived presigned URL for the finished export file once the job status is 'ready'. The file is gzip-compressed and served with the format's Content-Type (application/json, application/x-ndjson, or text/csv). Returns 400 while the job is not yet ready (poll the status route first).

Corresponds with GET /api/v1/trader/{address}/export/download (the `DownloadTraderExport` operationId).

func (*Client) ExploreMarkets

func (c *Client) ExploreMarkets(ctx context.Context, params *ExploreMarketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ExploreMarkets Explore markets

Browse whale-active titled markets with category, platform, status, and keyword filters. Explore is Polymarket-only: the platform parameter is accepted for backward-compatibility but every request returns Polymarket markets. Paginates visible discovery entries rather than raw market rows, returns live category/platform facets alongside grouped event clusters or standalone markets, and includes total on the first page only. Each grouped event contains at most 12 markets, retaining the selected representative within that cap. Categories come straight from provider metadata (Polymarket Gamma) and facets are flat value/label/count rows.

Corresponds with GET /api/v1/markets/explore (the `ExploreMarkets` operationId).

func (*Client) GetApiDiscovery

func (c *Client) GetApiDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetApiDiscovery API discovery

Unauthenticated API-origin discovery document pointing agents to the canonical API base URL, full docs, web-origin OpenAPI spec, health check, and the COMPLETE index of authenticated data routes. data.authenticated_routes is the whole authenticated route surface, not a sample: it carries every authenticated route this spec documents, so an agent that starts here never has to guess a path. The index is a hand-maintained const in backend/src/api_v1/discovery.rs kept in step with this spec by review; no automated check compares the two, so treat this spec as authoritative if they ever disagree.

Corresponds with GET /api/v1 (the `GetApiDiscovery` operationId).

func (*Client) GetDailyReportSnapshot

func (c *Client) GetDailyReportSnapshot(ctx context.Context, params *GetDailyReportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDailyReportSnapshot Daily report snapshot

Returns a dated daily whale-activity report snapshot with source_range, snapshot.status, completeness, and reconciliation metadata. Report whale volume is local whale-alert activity volume, not provider lifetime trader volume.

Corresponds with GET /api/v1/reports/daily (the `GetDailyReportSnapshot` operationId).

func (*Client) GetEventReplaySince

func (c *Client) GetEventReplaySince(ctx context.Context, params *GetEventReplaySinceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetEventReplaySince Replay public whale-trade intelligence events

Returns durable public whale-trade intelligence events strictly after an opaque cursor backed by whale_alerts.id. This is a separate API-key contract from the browser/session /api/events/feed stream: browser-only and private alert, following, radar, and position patch events are excluded until they have a durable public outbox.

Corresponds with GET /api/v1/events/feed/since (the `GetEventReplaySince` operationId).

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, params *GetHealthParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHealth Health check

Returns API health status. No authentication required. Limited to 120 requests per minute per IP.

Corresponds with GET /api/v1/health (the `GetHealth` operationId).

func (*Client) GetInsiderRadarFlag

func (c *Client) GetInsiderRadarFlag(ctx context.Context, id string, params *GetInsiderRadarFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetInsiderRadarFlag Get insider radar flag by ID

Returns one suspicious-trading radar flag by raw whale_alerts.id or the rf_-prefixed id emitted by list responses.

Corresponds with GET /api/v1/insider-radar/{id} (the `GetInsiderRadarFlag` operationId).

func (*Client) GetMarketCandles

func (c *Client) GetMarketCandles(ctx context.Context, conditionId string, params *GetMarketCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMarketCandles Get market OHLC price candles

Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (the same series the market-detail chart renders; covers open and resolved markets). Because the stored data is daily, a 1d bucket typically carries one point so its open/high/low/close all equal that day's close; 1w aggregates real OHLC across the observed daily closes. No intraday fidelity is fabricated.

Corresponds with GET /api/v1/market/{condition_id}/candles (the `GetMarketCandles` operationId).

func (*Client) GetMarketIntel

func (c *Client) GetMarketIntel(ctx context.Context, conditionId string, params *GetMarketIntelParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMarketIntel Get market intelligence

Smart money flow analysis for a specific market — net flow direction, whale trade count, buy/sell volumes, and top graded trader positions.

Corresponds with GET /api/v1/market/{condition_id}/intel (the `GetMarketIntel` operationId).

func (*Client) GetMarketSnapshot

func (c *Client) GetMarketSnapshot(ctx context.Context, conditionId string, params *GetMarketSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMarketSnapshot Get market live snapshot

Provider-first market card snapshot with canonical identity, outcome labels, cached top-of-book when available, liquidity, live sports context, and explicit freshness/unavailable states.

Corresponds with GET /api/v1/market/{condition_id}/snapshot (the `GetMarketSnapshot` operationId).

func (*Client) GetMonthlyReportSnapshot

func (c *Client) GetMonthlyReportSnapshot(ctx context.Context, params *GetMonthlyReportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMonthlyReportSnapshot Monthly report snapshot

Returns a UTC monthly whale-activity report snapshot with source_range, completeness, and reconciliation metadata.

Corresponds with GET /api/v1/reports/monthly (the `GetMonthlyReportSnapshot` operationId).

func (*Client) GetPickOfTheDay

func (c *Client) GetPickOfTheDay(ctx context.Context, params *GetPickOfTheDayParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetPickOfTheDay Get today's Pick of the Day

Returns the published picks for the current product day. Pro tier.

`picks` holds up to six ranked picks. Each pick carries the backed side, the pre-game price, the $100 return, the sharp-money holders, the grade, and a thesis. The price is frozen before kickoff. A prior day's pick never appears here; read the archive for it.

`scheduled_picks` lists same-day slots that are selected but not released yet. Each slot exposes only `pick_rank`, `release_at`, and `kickoff`.

When no pick is published for the current product day, the endpoint returns `404` with `error.code="not_found"` and `error.reason="pick_not_released"`. Branch on the reason; the code is frozen. The `404` is a schedule, not an outage.

Do not poll. Read `Retry-After` or `error.retry_at` and schedule one request for that instant. The `404` response below says how the instant is chosen.

Corresponds with GET /api/v1/pick-of-the-day (the `GetPickOfTheDay` operationId).

func (*Client) GetPickOfTheDayArchive

func (c *Client) GetPickOfTheDayArchive(ctx context.Context, params *GetPickOfTheDayArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetPickOfTheDayArchive Get the Pick of the Day track record

Returns every published pick with its outcome, unit score, closing-line value, and the rolling hit rate.

Resolved picks are public. A pending pick's backed side appears only for an authenticated Pro key.

Each row carries a CLV value or the reason it was not measured. Coverage divides measured rows by resolved rows published before kickoff. A post-kickoff publication is `not_applicable`.

Corresponds with GET /api/v1/pick-of-the-day/archive (the `GetPickOfTheDayArchive` operationId).

func (*Client) GetPlatforms

func (c *Client) GetPlatforms(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetPlatforms Get platform capability matrix

Unauthenticated discovery endpoint that declares which V1 intelligence surfaces are supported, partial, or unsupported per provider platform.

Corresponds with GET /api/v1/platforms (the `GetPlatforms` operationId).

func (*Client) GetPositionTimeline

func (c *Client) GetPositionTimeline(ctx context.Context, address string, params *GetPositionTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetPositionTimeline Get a trader's position timeline for one market

Returns stored Polymarket fills for one tracked trader in one market, newest first, with outcome-specific running_amount and running_avg_price including earlier stored fills before pagination. The {address} segment accepts the same identity shapes as the plural alias: wallet, username, trd_-prefixed trader id, bare integer traders.id, or @username, resolved with precedence @username -> wallet -> trd_ -> integer -> username. A leading @ resolves the rest as a username only, which is how to reach an all-digit username that the integer rule reads as an id. Only HOT and WARM traders are served; others return 404. The cumulative buy-weighted fill average is unchanged by sells. Split, merge, redemption and neg-risk activity are excluded; totals are not complete holdings or provider current-position avgPrice. Cursor-paginated; values stay stable across page sizes/cursors for unchanged source history.

Corresponds with GET /api/v1/trader/{address}/position-timeline (the `GetPositionTimeline` operationId).

func (*Client) GetPositionTimelineById

func (c *Client) GetPositionTimelineById(ctx context.Context, trader string, params *GetPositionTimelineByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetPositionTimelineById Get a trader's position timeline (unified identity resolver)

Unified trader-timeline route (#4975). {trader} accepts all five identity shapes - 0x... wallet, username, trd_-prefixed trader id, bare integer id, and @username (a username lookup only, for all-digit usernames) - resolved by the single shared trader-identity resolver. Returns stored Polymarket fills for one tracked trader in one market, newest first, with server-computed running_amount and running_avg_price. Only HOT and WARM tier traders are tracked; other traders return 404. Response payload matches the singular GET /api/v1/trader/{address}/position-timeline route for the same (trader, market), except for the per-request meta.request_id. The prior integer-id-only variant is preserved: the same path now accepts every identity shape.

Corresponds with GET /api/v1/traders/{trader}/position-timeline (the `GetPositionTimelineById` operationId).

func (*Client) GetReports

func (c *Client) GetReports(ctx context.Context, params *GetReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetReports Unified report snapshot (granularity selector)

Unified convenience route (#4975) that consolidates the three singular report routes. Dispatches to the exact per-granularity cap (daily 50, weekly 100, monthly 200) and date window the legacy /api/v1/reports/{daily,weekly,monthly} routes use, so the response body is byte-identical to the matching legacy route for the same period. The three legacy routes stay live. Also reachable via the MCP get_report selector.

Corresponds with GET /api/v1/reports (the `GetReports` operationId).

func (*Client) GetStream

func (c *Client) GetStream(ctx context.Context, params *GetStreamParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetStream Resumable real-time event stream (SSE)

Server-Sent Events stream of the live feed envelopes the platform already broadcasts (whale-trade pulses and other public/Pro feed events). Forwards the same backend-owned envelope shape as the internal feed; no provider data is recomputed. Authenticated via the oxi_sk Bearer key like every other /api/v1 endpoint, and limited to a small number of concurrent connections per API key and a cluster-wide ceiling across all keys (HTTP 429 with Retry-After when either cap is exceeded; HTTP 503 with Retry-After if a required Redis service is briefly unavailable). Each delivered frame carries an SSE id from one cluster-shared sequence that remains valid across backend replicas and process restarts. Reconnect with the Last-Event-ID header (or the last_event_id / seq query fallback) to replay the missed window before resuming live. When the requested resume point is older than the retained window, ahead of the current sequence, or separated from live delivery by an uncovered gap, the stream emits a resync marker event (event: resync) instead of silently skipping frames. Idle connections receive periodic ': keep-alive' comment lines. This is a long-lived response: keep the connection open and read frames as they arrive.

Corresponds with GET /api/v1/stream (the `GetStream` operationId).

func (*Client) GetTrader

func (c *Client) GetTrader(ctx context.Context, address string, params *GetTraderParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTrader Get trader intelligence

Returns a trader's grade (S through F; ranked about 95% by realized profit, with calibration, track record, and consistency as a tie-breaker and proven-trader guardrails), P&L, win rate, and optional strategy/category data. The path accepts either an Ethereum wallet address, a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown lookups return sync_status "unknown" instead of 404.

Corresponds with GET /api/v1/trader/{address} (the `GetTrader` operationId).

func (*Client) GetTraderContext

func (c *Client) GetTraderContext(ctx context.Context, address string, params *GetTraderContextParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTraderContext Get trader context (JSON)

Returns a single structured context object for one trader: the full trader profile (same shape as GET /api/v1/trader/{address}) plus a position_summary (sync coverage and realized/unrealized P&L rollups, with an as_of open-position freshness clock), the data_as_of freshness timestamp (the open-position data's latest /positions snapshot, else last completed sync; the snapshot advances only open positions, so resolved counts and win rate still date to the last full sync; native realized P&L follows its accounting snapshot), and a freshness_note describing the point-in-time snapshot semantics. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. position_summary is omitted when the trader is not in the local database or native net economics is unavailable; realized fields remain numeric when present; unknown lookups return 200 with sync_status 'unknown' on the nested trader (no 404). Append .md to the path for the Markdown rendering.

Corresponds with GET /api/v1/trader/{address}/context (the `GetTraderContext` operationId).

func (*Client) GetTraderContextMarkdown

func (c *Client) GetTraderContextMarkdown(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTraderContextMarkdown Get trader context (Markdown)

Returns a single human- and LLM-readable Markdown briefing for one trader: identity, grade, P&L, position coverage, and freshness. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown traders still return 200 with a degraded 'not yet synced' document (no 404). The Markdown variant does not emit an ETag and does not support conditional requests; use the JSON variant (drop the .md suffix) for ETag/If-None-Match handling.

Corresponds with GET /api/v1/trader/{address}/context.md (the `GetTraderContextMarkdown` operationId).

func (*Client) GetTraderExportSnapshot

func (c *Client) GetTraderExportSnapshot(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTraderExportSnapshot Trader export snapshot metadata

Returns export source-range, completeness, volume reconciliation, row-count estimate, and large-export policy for one trader. To download the full dataset programmatically, POST to this same path to submit an async export job (json | ndjson | csv), then poll the status route and follow the download route once ready.

Corresponds with GET /api/v1/trader/{address}/export (the `GetTraderExportSnapshot` operationId).

func (*Client) GetTraderExportStatus

func (c *Client) GetTraderExportStatus(ctx context.Context, address string, params *GetTraderExportStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTraderExportStatus Poll a trader export job

Returns the current state of a submitted export job (queued | running | ready | failed) for the authenticated API key.

Corresponds with GET /api/v1/trader/{address}/export/status (the `GetTraderExportStatus` operationId).

func (*Client) GetTraderPnl

func (c *Client) GetTraderPnl(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTraderPnl Get trader P&L time series

Returns a trader's daily P&L time series and pre-derived stats from the precomputed daily_pnl read model: entries (daily cumulative P&L), period stats (all/90d/30d/7d), monthly aggregation, per-year totals, and the drawdown series. Reads the refreshed read model, not a per-request equity replay. A resolved trader with no daily P&L returns an empty structured object (HTTP 200); an unknown address returns 404. Spans both providers wherever the read model has the trader's series.

Corresponds with GET /api/v1/trader/{address}/pnl (the `GetTraderPnl` operationId).

func (*Client) GetUsage

func (c *Client) GetUsage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUsage Inspect current API usage without spending primary request quota

Returns the authenticated caller sliding-window request budget and UTC-day usage. This endpoint is authenticated and does not increment the primary Redis rate-limit counter or log itself into the API usage table; it is separately throttled at 100 reads/minute per user to protect the usage-count query. UTC-day totals use finalized quarter-hour rollups plus the disjoint raw interval through request time; unavailable rollup progress returns an error.

Corresponds with GET /api/v1/usage (the `GetUsage` operationId).

func (*Client) GetWebhook

func (c *Client) GetWebhook(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWebhook Get one builder webhook destination

Returns one webhook destination owned by the authenticated API key user.

Corresponds with GET /api/v1/webhooks/{id} (the `GetWebhook` operationId).

func (*Client) GetWeeklyReportSnapshot

func (c *Client) GetWeeklyReportSnapshot(ctx context.Context, params *GetWeeklyReportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWeeklyReportSnapshot Weekly report snapshot

Returns a weekly whale-activity report snapshot. Pass either from/to UTC dates or an ISO YYYY-WW week token. The response identifies closed ranges as final and current ranges as rolling.

Corresponds with GET /api/v1/reports/weekly (the `GetWeeklyReportSnapshot` operationId).

func (*Client) GetWhaleTrade

func (c *Client) GetWhaleTrade(ctx context.Context, id string, params *GetWhaleTradeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWhaleTrade Get whale trade by ID

Returns one whale trade by raw whale_alerts.id or the wt_-prefixed id emitted by list and history responses.

Corresponds with GET /api/v1/whale-trades/{id} (the `GetWhaleTrade` operationId).

func (*Client) ListInsiderRadar

func (c *Client) ListInsiderRadar(ctx context.Context, params *ListInsiderRadarParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListInsiderRadar Get insider radar flags

Stored trades whose recorded suspicion score meets the live flag threshold. Evidence contains the scorer's stored signals. Cursor-paginated by suspicion score.

Corresponds with GET /api/v1/insider-radar (the `ListInsiderRadar` operationId).

func (*Client) ListLargePositions

func (c *Client) ListLargePositions(ctx context.Context, params *ListLargePositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListLargePositions List large positions

Returns the largest current open positions from graded traders, value-descending, with opaque cursor pagination. Polymarket-only by design: the large-positions scanner filters platform = 'polymarket' (backend/crates/large-positions/src/scanner.rs), so only Polymarket rows are scanned and an unknown condition_id filter returns an empty list (never fabricated rows). The teaser cap that the internal product UI applies to anonymous viewers does not apply here: the API key already proves an active Pro subscription (wire tier `insider`), so authed API callers get full access.

Corresponds with GET /api/v1/large-positions (the `ListLargePositions` operationId).

func (*Client) ListLeaderboard

func (c *Client) ListLeaderboard(ctx context.Context, params *ListLeaderboardParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListLeaderboard Get trader leaderboard

Returns ranked traders (grades S/A/B) sorted by score descending. Supports cursor pagination and optional category/strategy filters.

Corresponds with GET /api/v1/leaderboard (the `ListLeaderboard` operationId).

func (*Client) ListPositions

func (c *Client) ListPositions(ctx context.Context, params *ListPositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListPositions List current positions (positions-board feed)

Returns the current positions-board feed backed by the wallet_positions mirror. Ordered by current_value_usd DESC with deterministic (wallet, condition_id, outcome_index) tiebreakers. Pre-reconcile rows (current_value_usd IS NULL) are excluded. Cursor-paginated. Every filter pushes into SQL.

Corresponds with GET /api/v1/positions (the `ListPositions` operationId).

func (*Client) ListSharpMoneyFlows

func (c *Client) ListSharpMoneyFlows(ctx context.Context, params *ListSharpMoneyFlowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSharpMoneyFlows List ranked sharp-money flows

Canonical alias of /api/v1/markets/smart-money-flows, which remains live but deprecated. Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where sharp money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2.

Corresponds with GET /api/v1/markets/sharp-money-flows (the `ListSharpMoneyFlows` operationId).

func (*Client) ListSmartMoneyFlows

func (c *Client) ListSmartMoneyFlows(ctx context.Context, params *ListSmartMoneyFlowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSmartMoneyFlows List ranked smart-money flows

Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where smart money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2. Deprecated alias of GET /api/v1/markets/sharp-money-flows, kept live and never removed; every response carries `Deprecation: @1783276950` (RFC 9745, 2026-07-05T18:42:30Z) and a `Link` to the successor (`rel="successor-version"`) and to the versioning policy (`rel="deprecation"`). No `Sunset` header is sent because no removal is planned.

Corresponds with GET /api/v1/markets/smart-money-flows (the `ListSmartMoneyFlows` operationId). Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*Client) ListSportsEdgeObservations

func (c *Client) ListSportsEdgeObservations(ctx context.Context, params *ListSportsEdgeObservationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSportsEdgeObservations List observation-only sports-edge cohorts

Pro-tier. Measures three explicitly observation-only Polymarket sports cohorts without changing or feeding GET /api/v1/sports-edge-signals: wider_holder measures pre-game holder piles outside the funded route's exact raw signals admission, including recent-flow rows rejected by its event, bucket, or total caps; in_play admits provider-confirmed live games and fails closed when the provider live-board snapshot is stale or unavailable or holder/directional evidence is stale or unavailable; emerging_pile is an additive post-compute projection of wider_holder rows with finite sharp_pct in [0.75, 0.85), holder_scan_complete=true, and a kickoff after its pinned projection cutoff. emerging_pile overlaps wider_holder, remains attributed to that source terminal and denominator, and is not holder-arrival history. Every row carries observation_only=true, provider/holder freshness and completeness fields, and the response carries a required snapshot-wide operational/unknown-completeness degraded boolean plus an accountable per-sport funnel over a closed 25-value terminal-reason vocabulary. Omitted or blank category selects all 14 registered observation sport buckets, including Table Tennis and Pickleball; those two remain outside the funded sports projection. All category and all-sports cache scopes share one global observation provider-work admission, so distinct scope keys cannot multiply concurrent provider fanout. One absolute ~25s compute deadline covers cache coordination, board/universe and primary-signals membership reads, holder cache/provider work, price/metadata evaluation, and directional reads, leaving ~5s below the public router timeout for funnel reconciliation, cleanup, and response transport. A shared pre-holder stage deadline jointly bounds those database reads and board reconciliation to the smaller of 12s or half of the absolute budget remaining when that stage starts, preserving holder/post-holder opportunity; board reads use bounded fair waves and cold holder admission gives each represented canonical sport one row before any sport repeats. A request that finds its scope's refresh in flight waits for that snapshot, and a scope refresh waits for another scope's global provider-work admission while at least ~15s of the absolute deadline remain. Absolute deadline exhaustion before a usable cache, provider-work admission still held at that ~15s bound, an in-flight refresh that ends without publishing while another waiting request takes it over, or pre-holder stage expiry before a usable stored universe or primary-signals membership result returns 503 with error.reason=read_model_warming. Category-resolution SQL errors, Redis coordination failures, observation-universe SQL errors, and primary-signals membership query failures return 500 internal_error instead. Once a usable universe exists, later operational or unknown-completeness board, holder, or price/metadata failures are retained as explicit terminal reasons in a degraded 200 response with degraded=true: board_source_unavailable is a completed board-source failure, board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; both classify only already-started rows, so for the upcoming source read funnel.sports[].board_upcoming_status instead; provider_unavailable is an attempted holder-provider failure, and holder_deadline_unavailable is holder-stage deadline exhaustion. Directional incompleteness is cohort-specific: a wider_holder row remains emitted with terminal wider_holder_emitted and directional_status=unavailable, while an in_play row fails closed with terminal in_play_directional_unavailable. capacity_limited records intentional bounded provider-work admission in the funnel and does not by itself set degraded=true. Healthy wider_holder requests may reuse a snapshot for ~180s; healthy emerging_pile requests may use the same snapshot. in_play never serves a cached observation snapshot older than ~30s, and degraded snapshots use ~30s. The ETag is a weak semantic validator over the stable page payload, including next_cursor page position; request-specific meta excluded; the opaque emerging_pile projection cutoff in next_cursor is not itself a validator input.

Corresponds with GET /api/v1/sports-edge-observations (the `ListSportsEdgeObservations` operationId).

func (*Client) ListSportsEdgeSignals

func (c *Client) ListSportsEdgeSignals(ctx context.Context, params *ListSportsEdgeSignalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSportsEdgeSignals List ranked pre-game sports-edge signals

Pro-tier. Ranked list of upcoming pre-game sports markets (moneyline + props) where graded (S/A/B) sharp money is piled on one side, each row carrying signal_created_at (the UTC time its immutable snapshot was computed), the piled side, its grade distribution, kickoff, piled-side Polymarket CLOB token id, and required shadow-only category_skill evidence. signal_created_at is not provider market creation time or request time. Eligibility and ranking remain the funded FLOW/HOLDER contract; category skill cannot change membership, order, rank, cursor, routing, or sizing. meta exposes explicit category source/model/status plus independently computed pre/post SHA-256 base-vector hashes that must match. Served from a shared server-side snapshot cache (healthy TTL ~180s, degraded ~30s) computed once per category at the maximum 48h horizon and filtered at request time; the cursor pins to that snapshot and a stale cursor is rejected. Polymarket only; source coverage is partial first-observed post-launch Goldsky primary taker BUY fills admitted by the canonical whale-alert thresholds, never reconstructed history. Deliberately not the editorial Pick of the Day ranker.

Corresponds with GET /api/v1/sports-edge-signals (the `ListSportsEdgeSignals` operationId).

func (*Client) ListTrendingWallets

func (c *Client) ListTrendingWallets(ctx context.Context, params *ListTrendingWalletsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTrendingWallets List trending wallets

Returns wallets ranked by Polymarket weekly/monthly P&L (Polymarket-only discovery), with opaque page-cursor pagination. trending_pnl_usd and the by-PNL row order come from Polymarket's canonical leaderboard (data-api.polymarket.com/v1/leaderboard?timePeriod=week|month&orderBy=PNL), not a locally summed realized-leaf total. Each row also carries window volume, distinct markets, grade, hot-streak tier, and a shape-only daily P&L sparkline derived from the Polymarket user-pnl cumulative curve (per-day deltas; not guaranteed to sum to trending_pnl_usd). The underlying read model is warmed into Redis; a cold read returns 503 (warming, retry-after), never a 500 or a fabricated ranking. Polymarket-only: the read model filters platform = 'polymarket'.

Corresponds with GET /api/v1/leaderboard/trending (the `ListTrendingWallets` operationId).

func (*Client) ListWebhookDeliveries

func (c *Client) ListWebhookDeliveries(ctx context.Context, id int64, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWebhookDeliveries List webhook delivery log

Recent delivery attempts for one webhook destination owned by the authenticated API key user, newest first, with opaque cursor pagination. Returns 404 (identical to an unknown id) when the endpoint is not owned by the caller, so a non-owner cannot tell an owned-but-empty log apart from someone else's endpoint. Delivery rows omit the request body and signing secret.

Corresponds with GET /api/v1/webhooks/{id}/deliveries (the `ListWebhookDeliveries` operationId).

func (*Client) ListWebhookEvents

func (c *Client) ListWebhookEvents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWebhookEvents List webhook event catalog

Self-describing catalog of every webhook event type: its description, data payload shape, and whether it is active (has a firing producer) or dormant (subscribable but not yet delivered). The catalog is identical for every authenticated key and exposes no owner-scoped data. Pro-only event types (whale_trades_inserted, wallet_grade_changed, insider_radar_flag_raised, smart_money_flow_detected) appear in the catalog but only deliver to API keys on an active Pro subscription.

Corresponds with GET /api/v1/webhooks/events (the `ListWebhookEvents` operationId).

func (*Client) ListWebhooks

func (c *Client) ListWebhooks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWebhooks List builder webhook destinations

Returns webhook destinations owned by the authenticated API key user. Disabled endpoints are omitted. Subscribable event_types and their payload shapes are described by GET /api/v1/webhooks/events. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market.

Corresponds with GET /api/v1/webhooks (the `ListWebhooks` operationId).

func (*Client) ListWhaleTradeCounterpartyExecutions

func (c *Client) ListWhaleTradeCounterpartyExecutions(ctx context.Context, id string, params *ListWhaleTradeCounterpartyExecutionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWhaleTradeCounterpartyExecutions Page counterparty executions

Returns a bounded execution page from the immutable snapshot emitted by whale-trade detail. A stale or changed snapshot returns a cursor-expired error so clients restart from detail.

Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions (the `ListWhaleTradeCounterpartyExecutions` operationId).

func (*Client) ListWhaleTradeCounterpartyMakers

func (c *Client) ListWhaleTradeCounterpartyMakers(ctx context.Context, id string, executionId string, params *ListWhaleTradeCounterpartyMakersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWhaleTradeCounterpartyMakers Page maker counterparties

Returns a bounded maker-wallet page for one exact execution. Percentages keep the complete execution denominator across pages.

Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions/{execution_id}/makers (the `ListWhaleTradeCounterpartyMakers` operationId).

func (*Client) ListWhaleTradeHistory

func (c *Client) ListWhaleTradeHistory(ctx context.Context, params *ListWhaleTradeHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWhaleTradeHistory Replay historical whale trades

Returns historical whale trades from local whale_alerts rows, not request-time provider fetches. Filter by condition_id, trader, category, minimum grade, persisted suspicion, platform, and RFC3339 from/to windows. All filters are pushed into SQL before LIMIT, every request uses SQL-backed limit + 1 pagination, and results are ordered newest first by traded_at desc, id desc. Metadata exposes local_replay source and best_effort completeness.

Corresponds with GET /api/v1/whale-trades/history (the `ListWhaleTradeHistory` operationId).

func (*Client) ListWhaleTrades

func (c *Client) ListWhaleTrades(ctx context.Context, params *ListWhaleTradesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWhaleTrades List whale trades

Returns recent large trades with signal scoring and persisted suspicion facts. Filter by size, category, trader grade, or persisted suspicion. Filters are applied before pagination, and every request uses SQL-backed limit + 1 pagination so has_more and next_cursor reflect the filtered result set. Cursor-paginated, newest first. Market categories come from provider-backed market_canonical identity.

Corresponds with GET /api/v1/whale-trades (the `ListWhaleTrades` operationId).

func (*Client) OpenMcpEventStream

func (c *Client) OpenMcpEventStream(ctx context.Context, params *OpenMcpEventStreamParams, reqEditors ...RequestEditorFn) (*http.Response, error)

OpenMcpEventStream Open MCP server-to-client stream

Opens a text/event-stream connection for server-initiated notifications as described in the MCP Streamable HTTP transport. The endpoint currently sends no notifications — clients that only care about request/response use POST.

Corresponds with GET /api/v1/mcp (the `OpenMcpEventStream` operationId).

func (*Client) RedirectApiOpenapiSpec

func (c *Client) RedirectApiOpenapiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

RedirectApiOpenapiSpec Redirect to the canonical OpenAPI spec

Unauthenticated API-origin compatibility redirect to the canonical web-origin OpenAPI JSON document at https://0xinsider.com/api/v1/openapi.json.

Corresponds with GET /api/v1/openapi.json (the `RedirectApiOpenapiSpec` operationId).

func (*Client) RotateWebhookSecret

func (c *Client) RotateWebhookSecret(ctx context.Context, id int64, params *RotateWebhookSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

RotateWebhookSecret Rotate a builder webhook signing secret

Rotates the endpoint signing secret and returns the new signing_secret once in the response. Returns 409 with error.reason=webhook_delivery_in_progress while a live delivery freezes the current signing nonce; retry after it completes.

Corresponds with POST /api/v1/webhooks/{id}/rotate-secret (the `RotateWebhookSecret` operationId).

func (*Client) SearchContent

func (c *Client) SearchContent(ctx context.Context, params *SearchContentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SearchContent Search editorial content

Search 0xinsider editorial content by keyword. Returns backend-owned learn, glossary, comparison, research, and trading-strategy items with canonical URLs. Opaque ranking scores are not exposed.

Corresponds with GET /api/v1/content/search (the `SearchContent` operationId).

func (*Client) SearchMarkets

func (c *Client) SearchMarkets(ctx context.Context, params *SearchMarketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SearchMarkets Search markets

Search prediction markets by keyword. Returns representative market matches with status, category, and platform metadata. Cursor pagination advances over grouped market results rather than raw sub-market rows.

Corresponds with GET /api/v1/markets/search (the `SearchMarkets` operationId).

func (*Client) SubmitTraderExport

func (c *Client) SubmitTraderExport(ctx context.Context, address string, params *SubmitTraderExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SubmitTraderExport Submit a trader dataset export job

Queues an async export of the trader's full dataset in the requested format (json default, ndjson, or csv) and returns the job. Poll the status route, then follow the download route once status is 'ready'. Quotas are the per-user daily and per-address hourly export caps, keyed on the API key owner so an API key never widens its owner's quota.

Corresponds with POST /api/v1/trader/{address}/export (the `SubmitTraderExport` operationId).

func (*Client) UpdateWebhook

func (c *Client) UpdateWebhook(ctx context.Context, id int64, params *UpdateWebhookParams, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateWebhook Update a builder webhook destination

Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.

Takes a body of the `application/json` content type.

Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).

func (*Client) UpdateWebhookWithBody

func (c *Client) UpdateWebhookWithBody(ctx context.Context, id int64, params *UpdateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateWebhookWithBody Update a builder webhook destination

Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.

Takes any type of body and a specified content type.

Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).

func (*Client) VerifyWebhook

func (c *Client) VerifyWebhook(ctx context.Context, id int64, body VerifyWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifyWebhook Verify a builder webhook destination

Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.

Takes a body of the `application/json` content type.

Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).

func (*Client) VerifyWebhookWithBody

func (c *Client) VerifyWebhookWithBody(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifyWebhookWithBody Verify a builder webhook destination

Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.

Takes any type of body and a specified content type.

Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).

type ClientInterface

type ClientInterface interface {

	// GetApiDiscovery API discovery
	//
	// Unauthenticated API-origin discovery document pointing agents to the canonical API base URL, full docs, web-origin OpenAPI spec, health check, and the COMPLETE index of authenticated data routes. data.authenticated_routes is the whole authenticated route surface, not a sample: it carries every authenticated route this spec documents, so an agent that starts here never has to guess a path. The index is a hand-maintained const in backend/src/api_v1/discovery.rs kept in step with this spec by review; no automated check compares the two, so treat this spec as authoritative if they ever disagree.
	//
	// Corresponds with GET /api/v1 (the `GetApiDiscovery` operationId).
	GetApiDiscovery(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchContent Search editorial content
	//
	// Search 0xinsider editorial content by keyword. Returns backend-owned learn, glossary, comparison, research, and trading-strategy items with canonical URLs. Opaque ranking scores are not exposed.
	//
	// Corresponds with GET /api/v1/content/search (the `SearchContent` operationId).
	SearchContent(ctx context.Context, params *SearchContentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEventReplaySince Replay public whale-trade intelligence events
	//
	// Returns durable public whale-trade intelligence events strictly after an opaque cursor backed by whale_alerts.id. This is a separate API-key contract from the browser/session /api/events/feed stream: browser-only and private alert, following, radar, and position patch events are excluded until they have a durable public outbox.
	//
	// Corresponds with GET /api/v1/events/feed/since (the `GetEventReplaySince` operationId).
	GetEventReplaySince(ctx context.Context, params *GetEventReplaySinceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHealth Health check
	//
	// Returns API health status. No authentication required. Limited to 120 requests per minute per IP.
	//
	// Corresponds with GET /api/v1/health (the `GetHealth` operationId).
	GetHealth(ctx context.Context, params *GetHealthParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListInsiderRadar Get insider radar flags
	//
	// Stored trades whose recorded suspicion score meets the live flag threshold. Evidence contains the scorer's stored signals. Cursor-paginated by suspicion score.
	//
	// Corresponds with GET /api/v1/insider-radar (the `ListInsiderRadar` operationId).
	ListInsiderRadar(ctx context.Context, params *ListInsiderRadarParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInsiderRadarFlag Get insider radar flag by ID
	//
	// Returns one suspicious-trading radar flag by raw whale_alerts.id or the rf_-prefixed id emitted by list responses.
	//
	// Corresponds with GET /api/v1/insider-radar/{id} (the `GetInsiderRadarFlag` operationId).
	GetInsiderRadarFlag(ctx context.Context, id string, params *GetInsiderRadarFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLargePositions List large positions
	//
	// Returns the largest current open positions from graded traders, value-descending, with opaque cursor pagination. Polymarket-only by design: the large-positions scanner filters platform = 'polymarket' (backend/crates/large-positions/src/scanner.rs), so only Polymarket rows are scanned and an unknown condition_id filter returns an empty list (never fabricated rows). The teaser cap that the internal product UI applies to anonymous viewers does not apply here: the API key already proves an active Pro subscription (wire tier `insider`), so authed API callers get full access.
	//
	// Corresponds with GET /api/v1/large-positions (the `ListLargePositions` operationId).
	ListLargePositions(ctx context.Context, params *ListLargePositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLeaderboard Get trader leaderboard
	//
	// Returns ranked traders (grades S/A/B) sorted by score descending. Supports cursor pagination and optional category/strategy filters.
	//
	// Corresponds with GET /api/v1/leaderboard (the `ListLeaderboard` operationId).
	ListLeaderboard(ctx context.Context, params *ListLeaderboardParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTrendingWallets List trending wallets
	//
	// Returns wallets ranked by Polymarket weekly/monthly P&L (Polymarket-only discovery), with opaque page-cursor pagination. trending_pnl_usd and the by-PNL row order come from Polymarket's canonical leaderboard (data-api.polymarket.com/v1/leaderboard?timePeriod=week|month&orderBy=PNL), not a locally summed realized-leaf total. Each row also carries window volume, distinct markets, grade, hot-streak tier, and a shape-only daily P&L sparkline derived from the Polymarket user-pnl cumulative curve (per-day deltas; not guaranteed to sum to trending_pnl_usd). The underlying read model is warmed into Redis; a cold read returns 503 (warming, retry-after), never a 500 or a fabricated ranking. Polymarket-only: the read model filters platform = 'polymarket'.
	//
	// Corresponds with GET /api/v1/leaderboard/trending (the `ListTrendingWallets` operationId).
	ListTrendingWallets(ctx context.Context, params *ListTrendingWalletsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMarketCandles Get market OHLC price candles
	//
	// Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (the same series the market-detail chart renders; covers open and resolved markets). Because the stored data is daily, a 1d bucket typically carries one point so its open/high/low/close all equal that day's close; 1w aggregates real OHLC across the observed daily closes. No intraday fidelity is fabricated.
	//
	// Corresponds with GET /api/v1/market/{condition_id}/candles (the `GetMarketCandles` operationId).
	GetMarketCandles(ctx context.Context, conditionId string, params *GetMarketCandlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMarketIntel Get market intelligence
	//
	// Smart money flow analysis for a specific market — net flow direction, whale trade count, buy/sell volumes, and top graded trader positions.
	//
	// Corresponds with GET /api/v1/market/{condition_id}/intel (the `GetMarketIntel` operationId).
	GetMarketIntel(ctx context.Context, conditionId string, params *GetMarketIntelParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMarketSnapshot Get market live snapshot
	//
	// Provider-first market card snapshot with canonical identity, outcome labels, cached top-of-book when available, liquidity, live sports context, and explicit freshness/unavailable states.
	//
	// Corresponds with GET /api/v1/market/{condition_id}/snapshot (the `GetMarketSnapshot` operationId).
	GetMarketSnapshot(ctx context.Context, conditionId string, params *GetMarketSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExploreMarkets Explore markets
	//
	// Browse whale-active titled markets with category, platform, status, and keyword filters. Explore is Polymarket-only: the platform parameter is accepted for backward-compatibility but every request returns Polymarket markets. Paginates visible discovery entries rather than raw market rows, returns live category/platform facets alongside grouped event clusters or standalone markets, and includes total on the first page only. Each grouped event contains at most 12 markets, retaining the selected representative within that cap. Categories come straight from provider metadata (Polymarket Gamma) and facets are flat value/label/count rows.
	//
	// Corresponds with GET /api/v1/markets/explore (the `ExploreMarkets` operationId).
	ExploreMarkets(ctx context.Context, params *ExploreMarketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetMarketIntelWithBody Batch market intelligence
	//
	// Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).
	BatchGetMarketIntelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetMarketIntel Batch market intelligence
	//
	// Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).
	BatchGetMarketIntel(ctx context.Context, body BatchGetMarketIntelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchMarkets Search markets
	//
	// Search prediction markets by keyword. Returns representative market matches with status, category, and platform metadata. Cursor pagination advances over grouped market results rather than raw sub-market rows.
	//
	// Corresponds with GET /api/v1/markets/search (the `SearchMarkets` operationId).
	SearchMarkets(ctx context.Context, params *SearchMarketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSharpMoneyFlows List ranked sharp-money flows
	//
	// Canonical alias of /api/v1/markets/smart-money-flows, which remains live but deprecated. Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where sharp money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2.
	//
	// Corresponds with GET /api/v1/markets/sharp-money-flows (the `ListSharpMoneyFlows` operationId).
	ListSharpMoneyFlows(ctx context.Context, params *ListSharpMoneyFlowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSmartMoneyFlows List ranked smart-money flows
	//
	// Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where smart money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2. Deprecated alias of GET /api/v1/markets/sharp-money-flows, kept live and never removed; every response carries `Deprecation: @1783276950` (RFC 9745, 2026-07-05T18:42:30Z) and a `Link` to the successor (`rel="successor-version"`) and to the versioning policy (`rel="deprecation"`). No `Sunset` header is sent because no removal is planned.
	//
	// Corresponds with GET /api/v1/markets/smart-money-flows (the `ListSmartMoneyFlows` operationId).
	//
	// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ListSmartMoneyFlows(ctx context.Context, params *ListSmartMoneyFlowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OpenMcpEventStream Open MCP server-to-client stream
	//
	// Opens a text/event-stream connection for server-initiated notifications as described in the MCP Streamable HTTP transport. The endpoint currently sends no notifications — clients that only care about request/response use POST.
	//
	// Corresponds with GET /api/v1/mcp (the `OpenMcpEventStream` operationId).
	OpenMcpEventStream(ctx context.Context, params *OpenMcpEventStreamParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMcpJsonRpcResponseWithBody Remote MCP endpoint (JSON-RPC)
	//
	// Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).
	CreateMcpJsonRpcResponseWithBody(ctx context.Context, params *CreateMcpJsonRpcResponseParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMcpJsonRpcResponse Remote MCP endpoint (JSON-RPC)
	//
	// Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).
	CreateMcpJsonRpcResponse(ctx context.Context, params *CreateMcpJsonRpcResponseParams, body CreateMcpJsonRpcResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RedirectApiOpenapiSpec Redirect to the canonical OpenAPI spec
	//
	// Unauthenticated API-origin compatibility redirect to the canonical web-origin OpenAPI JSON document at https://0xinsider.com/api/v1/openapi.json.
	//
	// Corresponds with GET /api/v1/openapi.json (the `RedirectApiOpenapiSpec` operationId).
	RedirectApiOpenapiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPickOfTheDay Get today's Pick of the Day
	//
	// Returns the published picks for the current product day. Pro tier.
	//
	// `picks` holds up to six ranked picks. Each pick carries the backed side, the pre-game price, the $100 return, the sharp-money holders, the grade, and a thesis. The price is frozen before kickoff. A prior day's pick never appears here; read the archive for it.
	//
	// `scheduled_picks` lists same-day slots that are selected but not released yet. Each slot exposes only `pick_rank`, `release_at`, and `kickoff`.
	//
	// When no pick is published for the current product day, the endpoint returns `404` with `error.code="not_found"` and `error.reason="pick_not_released"`. Branch on the reason; the code is frozen. The `404` is a schedule, not an outage.
	//
	// Do not poll. Read `Retry-After` or `error.retry_at` and schedule one request for that instant. The `404` response below says how the instant is chosen.
	//
	// Corresponds with GET /api/v1/pick-of-the-day (the `GetPickOfTheDay` operationId).
	GetPickOfTheDay(ctx context.Context, params *GetPickOfTheDayParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPickOfTheDayArchive Get the Pick of the Day track record
	//
	// Returns every published pick with its outcome, unit score, closing-line value, and the rolling hit rate.
	//
	// Resolved picks are public. A pending pick's backed side appears only for an authenticated Pro key.
	//
	// Each row carries a CLV value or the reason it was not measured. Coverage divides measured rows by resolved rows published before kickoff. A post-kickoff publication is `not_applicable`.
	//
	// Corresponds with GET /api/v1/pick-of-the-day/archive (the `GetPickOfTheDayArchive` operationId).
	GetPickOfTheDayArchive(ctx context.Context, params *GetPickOfTheDayArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPlatforms Get platform capability matrix
	//
	// Unauthenticated discovery endpoint that declares which V1 intelligence surfaces are supported, partial, or unsupported per provider platform.
	//
	// Corresponds with GET /api/v1/platforms (the `GetPlatforms` operationId).
	GetPlatforms(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPositions List current positions (positions-board feed)
	//
	// Returns the current positions-board feed backed by the wallet_positions mirror. Ordered by current_value_usd DESC with deterministic (wallet, condition_id, outcome_index) tiebreakers. Pre-reconcile rows (current_value_usd IS NULL) are excluded. Cursor-paginated. Every filter pushes into SQL.
	//
	// Corresponds with GET /api/v1/positions (the `ListPositions` operationId).
	ListPositions(ctx context.Context, params *ListPositionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReports Unified report snapshot (granularity selector)
	//
	// Unified convenience route (#4975) that consolidates the three singular report routes. Dispatches to the exact per-granularity cap (daily 50, weekly 100, monthly 200) and date window the legacy /api/v1/reports/{daily,weekly,monthly} routes use, so the response body is byte-identical to the matching legacy route for the same period. The three legacy routes stay live. Also reachable via the MCP get_report selector.
	//
	// Corresponds with GET /api/v1/reports (the `GetReports` operationId).
	GetReports(ctx context.Context, params *GetReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDailyReportSnapshot Daily report snapshot
	//
	// Returns a dated daily whale-activity report snapshot with source_range, snapshot.status, completeness, and reconciliation metadata. Report whale volume is local whale-alert activity volume, not provider lifetime trader volume.
	//
	// Corresponds with GET /api/v1/reports/daily (the `GetDailyReportSnapshot` operationId).
	GetDailyReportSnapshot(ctx context.Context, params *GetDailyReportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMonthlyReportSnapshot Monthly report snapshot
	//
	// Returns a UTC monthly whale-activity report snapshot with source_range, completeness, and reconciliation metadata.
	//
	// Corresponds with GET /api/v1/reports/monthly (the `GetMonthlyReportSnapshot` operationId).
	GetMonthlyReportSnapshot(ctx context.Context, params *GetMonthlyReportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWeeklyReportSnapshot Weekly report snapshot
	//
	// Returns a weekly whale-activity report snapshot. Pass either from/to UTC dates or an ISO YYYY-WW week token. The response identifies closed ranges as final and current ranges as rolling.
	//
	// Corresponds with GET /api/v1/reports/weekly (the `GetWeeklyReportSnapshot` operationId).
	GetWeeklyReportSnapshot(ctx context.Context, params *GetWeeklyReportSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSportsEdgeObservations List observation-only sports-edge cohorts
	//
	// Pro-tier. Measures three explicitly observation-only Polymarket sports cohorts without changing or feeding GET /api/v1/sports-edge-signals: wider_holder measures pre-game holder piles outside the funded route's exact raw signals admission, including recent-flow rows rejected by its event, bucket, or total caps; in_play admits provider-confirmed live games and fails closed when the provider live-board snapshot is stale or unavailable or holder/directional evidence is stale or unavailable; emerging_pile is an additive post-compute projection of wider_holder rows with finite sharp_pct in [0.75, 0.85), holder_scan_complete=true, and a kickoff after its pinned projection cutoff. emerging_pile overlaps wider_holder, remains attributed to that source terminal and denominator, and is not holder-arrival history. Every row carries observation_only=true, provider/holder freshness and completeness fields, and the response carries a required snapshot-wide operational/unknown-completeness degraded boolean plus an accountable per-sport funnel over a closed 25-value terminal-reason vocabulary. Omitted or blank category selects all 14 registered observation sport buckets, including Table Tennis and Pickleball; those two remain outside the funded sports projection. All category and all-sports cache scopes share one global observation provider-work admission, so distinct scope keys cannot multiply concurrent provider fanout. One absolute ~25s compute deadline covers cache coordination, board/universe and primary-signals membership reads, holder cache/provider work, price/metadata evaluation, and directional reads, leaving ~5s below the public router timeout for funnel reconciliation, cleanup, and response transport. A shared pre-holder stage deadline jointly bounds those database reads and board reconciliation to the smaller of 12s or half of the absolute budget remaining when that stage starts, preserving holder/post-holder opportunity; board reads use bounded fair waves and cold holder admission gives each represented canonical sport one row before any sport repeats. A request that finds its scope's refresh in flight waits for that snapshot, and a scope refresh waits for another scope's global provider-work admission while at least ~15s of the absolute deadline remain. Absolute deadline exhaustion before a usable cache, provider-work admission still held at that ~15s bound, an in-flight refresh that ends without publishing while another waiting request takes it over, or pre-holder stage expiry before a usable stored universe or primary-signals membership result returns 503 with error.reason=read_model_warming. Category-resolution SQL errors, Redis coordination failures, observation-universe SQL errors, and primary-signals membership query failures return 500 internal_error instead. Once a usable universe exists, later operational or unknown-completeness board, holder, or price/metadata failures are retained as explicit terminal reasons in a degraded 200 response with degraded=true: board_source_unavailable is a completed board-source failure, board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; both classify only already-started rows, so for the upcoming source read funnel.sports[].board_upcoming_status instead; provider_unavailable is an attempted holder-provider failure, and holder_deadline_unavailable is holder-stage deadline exhaustion. Directional incompleteness is cohort-specific: a wider_holder row remains emitted with terminal wider_holder_emitted and directional_status=unavailable, while an in_play row fails closed with terminal in_play_directional_unavailable. capacity_limited records intentional bounded provider-work admission in the funnel and does not by itself set degraded=true. Healthy wider_holder requests may reuse a snapshot for ~180s; healthy emerging_pile requests may use the same snapshot. in_play never serves a cached observation snapshot older than ~30s, and degraded snapshots use ~30s. The ETag is a weak semantic validator over the stable page payload, including next_cursor page position; request-specific meta excluded; the opaque emerging_pile projection cutoff in next_cursor is not itself a validator input.
	//
	// Corresponds with GET /api/v1/sports-edge-observations (the `ListSportsEdgeObservations` operationId).
	ListSportsEdgeObservations(ctx context.Context, params *ListSportsEdgeObservationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSportsEdgeSignals List ranked pre-game sports-edge signals
	//
	// Pro-tier. Ranked list of upcoming pre-game sports markets (moneyline + props) where graded (S/A/B) sharp money is piled on one side, each row carrying signal_created_at (the UTC time its immutable snapshot was computed), the piled side, its grade distribution, kickoff, piled-side Polymarket CLOB token id, and required shadow-only category_skill evidence. signal_created_at is not provider market creation time or request time. Eligibility and ranking remain the funded FLOW/HOLDER contract; category skill cannot change membership, order, rank, cursor, routing, or sizing. meta exposes explicit category source/model/status plus independently computed pre/post SHA-256 base-vector hashes that must match. Served from a shared server-side snapshot cache (healthy TTL ~180s, degraded ~30s) computed once per category at the maximum 48h horizon and filtered at request time; the cursor pins to that snapshot and a stale cursor is rejected. Polymarket only; source coverage is partial first-observed post-launch Goldsky primary taker BUY fills admitted by the canonical whale-alert thresholds, never reconstructed history. Deliberately not the editorial Pick of the Day ranker.
	//
	// Corresponds with GET /api/v1/sports-edge-signals (the `ListSportsEdgeSignals` operationId).
	ListSportsEdgeSignals(ctx context.Context, params *ListSportsEdgeSignalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStream Resumable real-time event stream (SSE)
	//
	// Server-Sent Events stream of the live feed envelopes the platform already broadcasts (whale-trade pulses and other public/Pro feed events). Forwards the same backend-owned envelope shape as the internal feed; no provider data is recomputed. Authenticated via the oxi_sk Bearer key like every other /api/v1 endpoint, and limited to a small number of concurrent connections per API key and a cluster-wide ceiling across all keys (HTTP 429 with Retry-After when either cap is exceeded; HTTP 503 with Retry-After if a required Redis service is briefly unavailable). Each delivered frame carries an SSE id from one cluster-shared sequence that remains valid across backend replicas and process restarts. Reconnect with the Last-Event-ID header (or the last_event_id / seq query fallback) to replay the missed window before resuming live. When the requested resume point is older than the retained window, ahead of the current sequence, or separated from live delivery by an uncovered gap, the stream emits a resync marker event (event: resync) instead of silently skipping frames. Idle connections receive periodic ': keep-alive' comment lines. This is a long-lived response: keep the connection open and read frames as they arrive.
	//
	// Corresponds with GET /api/v1/stream (the `GetStream` operationId).
	GetStream(ctx context.Context, params *GetStreamParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTrader Get trader intelligence
	//
	// Returns a trader's grade (S through F; ranked about 95% by realized profit, with calibration, track record, and consistency as a tie-breaker and proven-trader guardrails), P&L, win rate, and optional strategy/category data. The path accepts either an Ethereum wallet address, a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown lookups return sync_status "unknown" instead of 404.
	//
	// Corresponds with GET /api/v1/trader/{address} (the `GetTrader` operationId).
	GetTrader(ctx context.Context, address string, params *GetTraderParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTraderContext Get trader context (JSON)
	//
	// Returns a single structured context object for one trader: the full trader profile (same shape as GET /api/v1/trader/{address}) plus a position_summary (sync coverage and realized/unrealized P&L rollups, with an as_of open-position freshness clock), the data_as_of freshness timestamp (the open-position data's latest /positions snapshot, else last completed sync; the snapshot advances only open positions, so resolved counts and win rate still date to the last full sync; native realized P&L follows its accounting snapshot), and a freshness_note describing the point-in-time snapshot semantics. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. position_summary is omitted when the trader is not in the local database or native net economics is unavailable; realized fields remain numeric when present; unknown lookups return 200 with sync_status 'unknown' on the nested trader (no 404). Append .md to the path for the Markdown rendering.
	//
	// Corresponds with GET /api/v1/trader/{address}/context (the `GetTraderContext` operationId).
	GetTraderContext(ctx context.Context, address string, params *GetTraderContextParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTraderContextMarkdown Get trader context (Markdown)
	//
	// Returns a single human- and LLM-readable Markdown briefing for one trader: identity, grade, P&L, position coverage, and freshness. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown traders still return 200 with a degraded 'not yet synced' document (no 404). The Markdown variant does not emit an ETag and does not support conditional requests; use the JSON variant (drop the .md suffix) for ETag/If-None-Match handling.
	//
	// Corresponds with GET /api/v1/trader/{address}/context.md (the `GetTraderContextMarkdown` operationId).
	GetTraderContextMarkdown(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTraderExportSnapshot Trader export snapshot metadata
	//
	// Returns export source-range, completeness, volume reconciliation, row-count estimate, and large-export policy for one trader. To download the full dataset programmatically, POST to this same path to submit an async export job (json | ndjson | csv), then poll the status route and follow the download route once ready.
	//
	// Corresponds with GET /api/v1/trader/{address}/export (the `GetTraderExportSnapshot` operationId).
	GetTraderExportSnapshot(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitTraderExport Submit a trader dataset export job
	//
	// Queues an async export of the trader's full dataset in the requested format (json default, ndjson, or csv) and returns the job. Poll the status route, then follow the download route once status is 'ready'. Quotas are the per-user daily and per-address hourly export caps, keyed on the API key owner so an API key never widens its owner's quota.
	//
	// Corresponds with POST /api/v1/trader/{address}/export (the `SubmitTraderExport` operationId).
	SubmitTraderExport(ctx context.Context, address string, params *SubmitTraderExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadTraderExport Download a finished trader export
	//
	// Redirects (302) to a short-lived presigned URL for the finished export file once the job status is 'ready'. The file is gzip-compressed and served with the format's Content-Type (application/json, application/x-ndjson, or text/csv). Returns 400 while the job is not yet ready (poll the status route first).
	//
	// Corresponds with GET /api/v1/trader/{address}/export/download (the `DownloadTraderExport` operationId).
	DownloadTraderExport(ctx context.Context, address string, params *DownloadTraderExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTraderExportStatus Poll a trader export job
	//
	// Returns the current state of a submitted export job (queued | running | ready | failed) for the authenticated API key.
	//
	// Corresponds with GET /api/v1/trader/{address}/export/status (the `GetTraderExportStatus` operationId).
	GetTraderExportStatus(ctx context.Context, address string, params *GetTraderExportStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTraderPnl Get trader P&L time series
	//
	// Returns a trader's daily P&L time series and pre-derived stats from the precomputed daily_pnl read model: entries (daily cumulative P&L), period stats (all/90d/30d/7d), monthly aggregation, per-year totals, and the drawdown series. Reads the refreshed read model, not a per-request equity replay. A resolved trader with no daily P&L returns an empty structured object (HTTP 200); an unknown address returns 404. Spans both providers wherever the read model has the trader's series.
	//
	// Corresponds with GET /api/v1/trader/{address}/pnl (the `GetTraderPnl` operationId).
	GetTraderPnl(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPositionTimeline Get a trader's position timeline for one market
	//
	// Returns stored Polymarket fills for one tracked trader in one market, newest first, with outcome-specific running_amount and running_avg_price including earlier stored fills before pagination. The {address} segment accepts the same identity shapes as the plural alias: wallet, username, trd_-prefixed trader id, bare integer traders.id, or @username, resolved with precedence @username -> wallet -> trd_ -> integer -> username. A leading @ resolves the rest as a username only, which is how to reach an all-digit username that the integer rule reads as an id. Only HOT and WARM traders are served; others return 404. The cumulative buy-weighted fill average is unchanged by sells. Split, merge, redemption and neg-risk activity are excluded; totals are not complete holdings or provider current-position avgPrice. Cursor-paginated; values stay stable across page sizes/cursors for unchanged source history.
	//
	// Corresponds with GET /api/v1/trader/{address}/position-timeline (the `GetPositionTimeline` operationId).
	GetPositionTimeline(ctx context.Context, address string, params *GetPositionTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetTradersWithBody Batch trader intelligence
	//
	// Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).
	BatchGetTradersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BatchGetTraders Batch trader intelligence
	//
	// Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).
	BatchGetTraders(ctx context.Context, body BatchGetTradersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPositionTimelineById Get a trader's position timeline (unified identity resolver)
	//
	// Unified trader-timeline route (#4975). {trader} accepts all five identity shapes - 0x... wallet, username, trd_-prefixed trader id, bare integer id, and @username (a username lookup only, for all-digit usernames) - resolved by the single shared trader-identity resolver. Returns stored Polymarket fills for one tracked trader in one market, newest first, with server-computed running_amount and running_avg_price. Only HOT and WARM tier traders are tracked; other traders return 404. Response payload matches the singular GET /api/v1/trader/{address}/position-timeline route for the same (trader, market), except for the per-request meta.request_id. The prior integer-id-only variant is preserved: the same path now accepts every identity shape.
	//
	// Corresponds with GET /api/v1/traders/{trader}/position-timeline (the `GetPositionTimelineById` operationId).
	GetPositionTimelineById(ctx context.Context, trader string, params *GetPositionTimelineByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUsage Inspect current API usage without spending primary request quota
	//
	// Returns the authenticated caller sliding-window request budget and UTC-day usage. This endpoint is authenticated and does not increment the primary Redis rate-limit counter or log itself into the API usage table; it is separately throttled at 100 reads/minute per user to protect the usage-count query. UTC-day totals use finalized quarter-hour rollups plus the disjoint raw interval through request time; unavailable rollup progress returns an error.
	//
	// Corresponds with GET /api/v1/usage (the `GetUsage` operationId).
	GetUsage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhooks List builder webhook destinations
	//
	// Returns webhook destinations owned by the authenticated API key user. Disabled endpoints are omitted. Subscribable event_types and their payload shapes are described by GET /api/v1/webhooks/events. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market.
	//
	// Corresponds with GET /api/v1/webhooks (the `ListWebhooks` operationId).
	ListWebhooks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhookWithBody Create a builder webhook destination
	//
	// Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhookWithBody(ctx context.Context, params *CreateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhook Create a builder webhook destination
	//
	// Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhook(ctx context.Context, params *CreateWebhookParams, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhookEvents List webhook event catalog
	//
	// Self-describing catalog of every webhook event type: its description, data payload shape, and whether it is active (has a firing producer) or dormant (subscribable but not yet delivered). The catalog is identical for every authenticated key and exposes no owner-scoped data. Pro-only event types (whale_trades_inserted, wallet_grade_changed, insider_radar_flag_raised, smart_money_flow_detected) appear in the catalog but only deliver to API keys on an active Pro subscription.
	//
	// Corresponds with GET /api/v1/webhooks/events (the `ListWebhookEvents` operationId).
	ListWebhookEvents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWebhook Disable a builder webhook destination
	//
	// Soft-deletes a webhook destination owned by the authenticated API key user. Existing delivery audit rows remain retained.
	//
	// Corresponds with DELETE /api/v1/webhooks/{id} (the `DeleteWebhook` operationId).
	DeleteWebhook(ctx context.Context, id int64, params *DeleteWebhookParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWebhook Get one builder webhook destination
	//
	// Returns one webhook destination owned by the authenticated API key user.
	//
	// Corresponds with GET /api/v1/webhooks/{id} (the `GetWebhook` operationId).
	GetWebhook(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhookWithBody Update a builder webhook destination
	//
	// Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).
	UpdateWebhookWithBody(ctx context.Context, id int64, params *UpdateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhook Update a builder webhook destination
	//
	// Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).
	UpdateWebhook(ctx context.Context, id int64, params *UpdateWebhookParams, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhookDeliveries List webhook delivery log
	//
	// Recent delivery attempts for one webhook destination owned by the authenticated API key user, newest first, with opaque cursor pagination. Returns 404 (identical to an unknown id) when the endpoint is not owned by the caller, so a non-owner cannot tell an owned-but-empty log apart from someone else's endpoint. Delivery rows omit the request body and signing secret.
	//
	// Corresponds with GET /api/v1/webhooks/{id}/deliveries (the `ListWebhookDeliveries` operationId).
	ListWebhookDeliveries(ctx context.Context, id int64, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotateWebhookSecret Rotate a builder webhook signing secret
	//
	// Rotates the endpoint signing secret and returns the new signing_secret once in the response. Returns 409 with error.reason=webhook_delivery_in_progress while a live delivery freezes the current signing nonce; retry after it completes.
	//
	// Corresponds with POST /api/v1/webhooks/{id}/rotate-secret (the `RotateWebhookSecret` operationId).
	RotateWebhookSecret(ctx context.Context, id int64, params *RotateWebhookSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VerifyWebhookWithBody Verify a builder webhook destination
	//
	// Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).
	VerifyWebhookWithBody(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VerifyWebhook Verify a builder webhook destination
	//
	// Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).
	VerifyWebhook(ctx context.Context, id int64, body VerifyWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWhaleTrades List whale trades
	//
	// Returns recent large trades with signal scoring and persisted suspicion facts. Filter by size, category, trader grade, or persisted suspicion. Filters are applied before pagination, and every request uses SQL-backed limit + 1 pagination so has_more and next_cursor reflect the filtered result set. Cursor-paginated, newest first. Market categories come from provider-backed market_canonical identity.
	//
	// Corresponds with GET /api/v1/whale-trades (the `ListWhaleTrades` operationId).
	ListWhaleTrades(ctx context.Context, params *ListWhaleTradesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWhaleTradeHistory Replay historical whale trades
	//
	// Returns historical whale trades from local whale_alerts rows, not request-time provider fetches. Filter by condition_id, trader, category, minimum grade, persisted suspicion, platform, and RFC3339 from/to windows. All filters are pushed into SQL before LIMIT, every request uses SQL-backed limit + 1 pagination, and results are ordered newest first by traded_at desc, id desc. Metadata exposes local_replay source and best_effort completeness.
	//
	// Corresponds with GET /api/v1/whale-trades/history (the `ListWhaleTradeHistory` operationId).
	ListWhaleTradeHistory(ctx context.Context, params *ListWhaleTradeHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWhaleTrade Get whale trade by ID
	//
	// Returns one whale trade by raw whale_alerts.id or the wt_-prefixed id emitted by list and history responses.
	//
	// Corresponds with GET /api/v1/whale-trades/{id} (the `GetWhaleTrade` operationId).
	GetWhaleTrade(ctx context.Context, id string, params *GetWhaleTradeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWhaleTradeCounterpartyExecutions Page counterparty executions
	//
	// Returns a bounded execution page from the immutable snapshot emitted by whale-trade detail. A stale or changed snapshot returns a cursor-expired error so clients restart from detail.
	//
	// Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions (the `ListWhaleTradeCounterpartyExecutions` operationId).
	ListWhaleTradeCounterpartyExecutions(ctx context.Context, id string, params *ListWhaleTradeCounterpartyExecutionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWhaleTradeCounterpartyMakers Page maker counterparties
	//
	// Returns a bounded maker-wallet page for one exact execution. Percentages keep the complete execution denominator across pages.
	//
	// Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions/{execution_id}/makers (the `ListWhaleTradeCounterpartyMakers` operationId).
	ListWhaleTradeCounterpartyMakers(ctx context.Context, id string, executionId string, params *ListWhaleTradeCounterpartyMakersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithBearerToken

func WithBearerToken(token string) ClientOption

WithBearerToken authenticates every request with an API key (oxi_sk_live_...) or an OAuth 2.1 access token (oxi_at_...). Discovery, health and the platform capability document need no credential.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func New

func New(opts ...ClientOption) (*ClientWithResponses, error)

New returns a typed client for the production API. Pass WithBearerToken for authenticated operations; pass WithBaseURL to target another server.

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) BatchGetMarketIntelWithBodyWithResponse

func (c *ClientWithResponses) BatchGetMarketIntelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetMarketIntelResponse, error)

BatchGetMarketIntelWithBodyWithResponse Batch market intelligence

Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).

func (*ClientWithResponses) BatchGetMarketIntelWithResponse

func (c *ClientWithResponses) BatchGetMarketIntelWithResponse(ctx context.Context, body BatchGetMarketIntelJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchGetMarketIntelResponse, error)

BatchGetMarketIntelWithResponse Batch market intelligence

Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).

func (*ClientWithResponses) BatchGetTradersWithBodyWithResponse

func (c *ClientWithResponses) BatchGetTradersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetTradersResponse, error)

BatchGetTradersWithBodyWithResponse Batch trader intelligence

Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).

func (*ClientWithResponses) BatchGetTradersWithResponse

func (c *ClientWithResponses) BatchGetTradersWithResponse(ctx context.Context, body BatchGetTradersJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchGetTradersResponse, error)

BatchGetTradersWithResponse Batch trader intelligence

Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).

func (*ClientWithResponses) CreateMcpJsonRpcResponseWithBodyWithResponse

func (c *ClientWithResponses) CreateMcpJsonRpcResponseWithBodyWithResponse(ctx context.Context, params *CreateMcpJsonRpcResponseParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMcpJsonRpcResponseResponse, error)

CreateMcpJsonRpcResponseWithBodyWithResponse Remote MCP endpoint (JSON-RPC)

Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).

func (*ClientWithResponses) CreateMcpJsonRpcResponseWithResponse

CreateMcpJsonRpcResponseWithResponse Remote MCP endpoint (JSON-RPC)

Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).

func (*ClientWithResponses) CreateWebhookWithBodyWithResponse

func (c *ClientWithResponses) CreateWebhookWithBodyWithResponse(ctx context.Context, params *CreateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)

CreateWebhookWithBodyWithResponse Create a builder webhook destination

Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).

func (*ClientWithResponses) CreateWebhookWithResponse

func (c *ClientWithResponses) CreateWebhookWithResponse(ctx context.Context, params *CreateWebhookParams, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)

CreateWebhookWithResponse Create a builder webhook destination

Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).

func (*ClientWithResponses) DeleteWebhookWithResponse

func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, id int64, params *DeleteWebhookParams, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)

DeleteWebhookWithResponse Disable a builder webhook destination

Soft-deletes a webhook destination owned by the authenticated API key user. Existing delivery audit rows remain retained.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /api/v1/webhooks/{id} (the `DeleteWebhook` operationId).

func (*ClientWithResponses) DownloadTraderExportWithResponse

func (c *ClientWithResponses) DownloadTraderExportWithResponse(ctx context.Context, address string, params *DownloadTraderExportParams, reqEditors ...RequestEditorFn) (*DownloadTraderExportResponse, error)

DownloadTraderExportWithResponse Download a finished trader export

Redirects (302) to a short-lived presigned URL for the finished export file once the job status is 'ready'. The file is gzip-compressed and served with the format's Content-Type (application/json, application/x-ndjson, or text/csv). Returns 400 while the job is not yet ready (poll the status route first).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/export/download (the `DownloadTraderExport` operationId).

func (*ClientWithResponses) ExploreMarketsWithResponse

func (c *ClientWithResponses) ExploreMarketsWithResponse(ctx context.Context, params *ExploreMarketsParams, reqEditors ...RequestEditorFn) (*ExploreMarketsResponse, error)

ExploreMarketsWithResponse Explore markets

Browse whale-active titled markets with category, platform, status, and keyword filters. Explore is Polymarket-only: the platform parameter is accepted for backward-compatibility but every request returns Polymarket markets. Paginates visible discovery entries rather than raw market rows, returns live category/platform facets alongside grouped event clusters or standalone markets, and includes total on the first page only. Each grouped event contains at most 12 markets, retaining the selected representative within that cap. Categories come straight from provider metadata (Polymarket Gamma) and facets are flat value/label/count rows.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/markets/explore (the `ExploreMarkets` operationId).

func (*ClientWithResponses) GetApiDiscoveryWithResponse

func (c *ClientWithResponses) GetApiDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDiscoveryResponse, error)

GetApiDiscoveryWithResponse API discovery

Unauthenticated API-origin discovery document pointing agents to the canonical API base URL, full docs, web-origin OpenAPI spec, health check, and the COMPLETE index of authenticated data routes. data.authenticated_routes is the whole authenticated route surface, not a sample: it carries every authenticated route this spec documents, so an agent that starts here never has to guess a path. The index is a hand-maintained const in backend/src/api_v1/discovery.rs kept in step with this spec by review; no automated check compares the two, so treat this spec as authoritative if they ever disagree.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1 (the `GetApiDiscovery` operationId).

func (*ClientWithResponses) GetDailyReportSnapshotWithResponse

func (c *ClientWithResponses) GetDailyReportSnapshotWithResponse(ctx context.Context, params *GetDailyReportSnapshotParams, reqEditors ...RequestEditorFn) (*GetDailyReportSnapshotResponse, error)

GetDailyReportSnapshotWithResponse Daily report snapshot

Returns a dated daily whale-activity report snapshot with source_range, snapshot.status, completeness, and reconciliation metadata. Report whale volume is local whale-alert activity volume, not provider lifetime trader volume.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/reports/daily (the `GetDailyReportSnapshot` operationId).

func (*ClientWithResponses) GetEventReplaySinceWithResponse

func (c *ClientWithResponses) GetEventReplaySinceWithResponse(ctx context.Context, params *GetEventReplaySinceParams, reqEditors ...RequestEditorFn) (*GetEventReplaySinceResponse, error)

GetEventReplaySinceWithResponse Replay public whale-trade intelligence events

Returns durable public whale-trade intelligence events strictly after an opaque cursor backed by whale_alerts.id. This is a separate API-key contract from the browser/session /api/events/feed stream: browser-only and private alert, following, radar, and position patch events are excluded until they have a durable public outbox.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/events/feed/since (the `GetEventReplaySince` operationId).

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, params *GetHealthParams, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Health check

Returns API health status. No authentication required. Limited to 120 requests per minute per IP.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/health (the `GetHealth` operationId).

func (*ClientWithResponses) GetInsiderRadarFlagWithResponse

func (c *ClientWithResponses) GetInsiderRadarFlagWithResponse(ctx context.Context, id string, params *GetInsiderRadarFlagParams, reqEditors ...RequestEditorFn) (*GetInsiderRadarFlagResponse, error)

GetInsiderRadarFlagWithResponse Get insider radar flag by ID

Returns one suspicious-trading radar flag by raw whale_alerts.id or the rf_-prefixed id emitted by list responses.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/insider-radar/{id} (the `GetInsiderRadarFlag` operationId).

func (*ClientWithResponses) GetMarketCandlesWithResponse

func (c *ClientWithResponses) GetMarketCandlesWithResponse(ctx context.Context, conditionId string, params *GetMarketCandlesParams, reqEditors ...RequestEditorFn) (*GetMarketCandlesResponse, error)

GetMarketCandlesWithResponse Get market OHLC price candles

Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (the same series the market-detail chart renders; covers open and resolved markets). Because the stored data is daily, a 1d bucket typically carries one point so its open/high/low/close all equal that day's close; 1w aggregates real OHLC across the observed daily closes. No intraday fidelity is fabricated.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/market/{condition_id}/candles (the `GetMarketCandles` operationId).

func (*ClientWithResponses) GetMarketIntelWithResponse

func (c *ClientWithResponses) GetMarketIntelWithResponse(ctx context.Context, conditionId string, params *GetMarketIntelParams, reqEditors ...RequestEditorFn) (*GetMarketIntelResponse, error)

GetMarketIntelWithResponse Get market intelligence

Smart money flow analysis for a specific market — net flow direction, whale trade count, buy/sell volumes, and top graded trader positions.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/market/{condition_id}/intel (the `GetMarketIntel` operationId).

func (*ClientWithResponses) GetMarketSnapshotWithResponse

func (c *ClientWithResponses) GetMarketSnapshotWithResponse(ctx context.Context, conditionId string, params *GetMarketSnapshotParams, reqEditors ...RequestEditorFn) (*GetMarketSnapshotResponse, error)

GetMarketSnapshotWithResponse Get market live snapshot

Provider-first market card snapshot with canonical identity, outcome labels, cached top-of-book when available, liquidity, live sports context, and explicit freshness/unavailable states.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/market/{condition_id}/snapshot (the `GetMarketSnapshot` operationId).

func (*ClientWithResponses) GetMonthlyReportSnapshotWithResponse

func (c *ClientWithResponses) GetMonthlyReportSnapshotWithResponse(ctx context.Context, params *GetMonthlyReportSnapshotParams, reqEditors ...RequestEditorFn) (*GetMonthlyReportSnapshotResponse, error)

GetMonthlyReportSnapshotWithResponse Monthly report snapshot

Returns a UTC monthly whale-activity report snapshot with source_range, completeness, and reconciliation metadata.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/reports/monthly (the `GetMonthlyReportSnapshot` operationId).

func (*ClientWithResponses) GetPickOfTheDayArchiveWithResponse

func (c *ClientWithResponses) GetPickOfTheDayArchiveWithResponse(ctx context.Context, params *GetPickOfTheDayArchiveParams, reqEditors ...RequestEditorFn) (*GetPickOfTheDayArchiveResponse, error)

GetPickOfTheDayArchiveWithResponse Get the Pick of the Day track record

Returns every published pick with its outcome, unit score, closing-line value, and the rolling hit rate.

Resolved picks are public. A pending pick's backed side appears only for an authenticated Pro key.

Each row carries a CLV value or the reason it was not measured. Coverage divides measured rows by resolved rows published before kickoff. A post-kickoff publication is `not_applicable`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/pick-of-the-day/archive (the `GetPickOfTheDayArchive` operationId).

func (*ClientWithResponses) GetPickOfTheDayWithResponse

func (c *ClientWithResponses) GetPickOfTheDayWithResponse(ctx context.Context, params *GetPickOfTheDayParams, reqEditors ...RequestEditorFn) (*GetPickOfTheDayResponse, error)

GetPickOfTheDayWithResponse Get today's Pick of the Day

Returns the published picks for the current product day. Pro tier.

`picks` holds up to six ranked picks. Each pick carries the backed side, the pre-game price, the $100 return, the sharp-money holders, the grade, and a thesis. The price is frozen before kickoff. A prior day's pick never appears here; read the archive for it.

`scheduled_picks` lists same-day slots that are selected but not released yet. Each slot exposes only `pick_rank`, `release_at`, and `kickoff`.

When no pick is published for the current product day, the endpoint returns `404` with `error.code="not_found"` and `error.reason="pick_not_released"`. Branch on the reason; the code is frozen. The `404` is a schedule, not an outage.

Do not poll. Read `Retry-After` or `error.retry_at` and schedule one request for that instant. The `404` response below says how the instant is chosen.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/pick-of-the-day (the `GetPickOfTheDay` operationId).

func (*ClientWithResponses) GetPlatformsWithResponse

func (c *ClientWithResponses) GetPlatformsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlatformsResponse, error)

GetPlatformsWithResponse Get platform capability matrix

Unauthenticated discovery endpoint that declares which V1 intelligence surfaces are supported, partial, or unsupported per provider platform.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/platforms (the `GetPlatforms` operationId).

func (*ClientWithResponses) GetPositionTimelineByIdWithResponse

func (c *ClientWithResponses) GetPositionTimelineByIdWithResponse(ctx context.Context, trader string, params *GetPositionTimelineByIdParams, reqEditors ...RequestEditorFn) (*GetPositionTimelineByIdResponse, error)

GetPositionTimelineByIdWithResponse Get a trader's position timeline (unified identity resolver)

Unified trader-timeline route (#4975). {trader} accepts all five identity shapes - 0x... wallet, username, trd_-prefixed trader id, bare integer id, and @username (a username lookup only, for all-digit usernames) - resolved by the single shared trader-identity resolver. Returns stored Polymarket fills for one tracked trader in one market, newest first, with server-computed running_amount and running_avg_price. Only HOT and WARM tier traders are tracked; other traders return 404. Response payload matches the singular GET /api/v1/trader/{address}/position-timeline route for the same (trader, market), except for the per-request meta.request_id. The prior integer-id-only variant is preserved: the same path now accepts every identity shape.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/traders/{trader}/position-timeline (the `GetPositionTimelineById` operationId).

func (*ClientWithResponses) GetPositionTimelineWithResponse

func (c *ClientWithResponses) GetPositionTimelineWithResponse(ctx context.Context, address string, params *GetPositionTimelineParams, reqEditors ...RequestEditorFn) (*GetPositionTimelineResponse, error)

GetPositionTimelineWithResponse Get a trader's position timeline for one market

Returns stored Polymarket fills for one tracked trader in one market, newest first, with outcome-specific running_amount and running_avg_price including earlier stored fills before pagination. The {address} segment accepts the same identity shapes as the plural alias: wallet, username, trd_-prefixed trader id, bare integer traders.id, or @username, resolved with precedence @username -> wallet -> trd_ -> integer -> username. A leading @ resolves the rest as a username only, which is how to reach an all-digit username that the integer rule reads as an id. Only HOT and WARM traders are served; others return 404. The cumulative buy-weighted fill average is unchanged by sells. Split, merge, redemption and neg-risk activity are excluded; totals are not complete holdings or provider current-position avgPrice. Cursor-paginated; values stay stable across page sizes/cursors for unchanged source history.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/position-timeline (the `GetPositionTimeline` operationId).

func (*ClientWithResponses) GetReportsWithResponse

func (c *ClientWithResponses) GetReportsWithResponse(ctx context.Context, params *GetReportsParams, reqEditors ...RequestEditorFn) (*GetReportsResponse, error)

GetReportsWithResponse Unified report snapshot (granularity selector)

Unified convenience route (#4975) that consolidates the three singular report routes. Dispatches to the exact per-granularity cap (daily 50, weekly 100, monthly 200) and date window the legacy /api/v1/reports/{daily,weekly,monthly} routes use, so the response body is byte-identical to the matching legacy route for the same period. The three legacy routes stay live. Also reachable via the MCP get_report selector.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/reports (the `GetReports` operationId).

func (*ClientWithResponses) GetStreamWithResponse

func (c *ClientWithResponses) GetStreamWithResponse(ctx context.Context, params *GetStreamParams, reqEditors ...RequestEditorFn) (*GetStreamResponse, error)

GetStreamWithResponse Resumable real-time event stream (SSE)

Server-Sent Events stream of the live feed envelopes the platform already broadcasts (whale-trade pulses and other public/Pro feed events). Forwards the same backend-owned envelope shape as the internal feed; no provider data is recomputed. Authenticated via the oxi_sk Bearer key like every other /api/v1 endpoint, and limited to a small number of concurrent connections per API key and a cluster-wide ceiling across all keys (HTTP 429 with Retry-After when either cap is exceeded; HTTP 503 with Retry-After if a required Redis service is briefly unavailable). Each delivered frame carries an SSE id from one cluster-shared sequence that remains valid across backend replicas and process restarts. Reconnect with the Last-Event-ID header (or the last_event_id / seq query fallback) to replay the missed window before resuming live. When the requested resume point is older than the retained window, ahead of the current sequence, or separated from live delivery by an uncovered gap, the stream emits a resync marker event (event: resync) instead of silently skipping frames. Idle connections receive periodic ': keep-alive' comment lines. This is a long-lived response: keep the connection open and read frames as they arrive.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/stream (the `GetStream` operationId).

func (*ClientWithResponses) GetTraderContextMarkdownWithResponse

func (c *ClientWithResponses) GetTraderContextMarkdownWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetTraderContextMarkdownResponse, error)

GetTraderContextMarkdownWithResponse Get trader context (Markdown)

Returns a single human- and LLM-readable Markdown briefing for one trader: identity, grade, P&L, position coverage, and freshness. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown traders still return 200 with a degraded 'not yet synced' document (no 404). The Markdown variant does not emit an ETag and does not support conditional requests; use the JSON variant (drop the .md suffix) for ETag/If-None-Match handling.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/context.md (the `GetTraderContextMarkdown` operationId).

func (*ClientWithResponses) GetTraderContextWithResponse

func (c *ClientWithResponses) GetTraderContextWithResponse(ctx context.Context, address string, params *GetTraderContextParams, reqEditors ...RequestEditorFn) (*GetTraderContextResponse, error)

GetTraderContextWithResponse Get trader context (JSON)

Returns a single structured context object for one trader: the full trader profile (same shape as GET /api/v1/trader/{address}) plus a position_summary (sync coverage and realized/unrealized P&L rollups, with an as_of open-position freshness clock), the data_as_of freshness timestamp (the open-position data's latest /positions snapshot, else last completed sync; the snapshot advances only open positions, so resolved counts and win rate still date to the last full sync; native realized P&L follows its accounting snapshot), and a freshness_note describing the point-in-time snapshot semantics. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. position_summary is omitted when the trader is not in the local database or native net economics is unavailable; realized fields remain numeric when present; unknown lookups return 200 with sync_status 'unknown' on the nested trader (no 404). Append .md to the path for the Markdown rendering.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/context (the `GetTraderContext` operationId).

func (*ClientWithResponses) GetTraderExportSnapshotWithResponse

func (c *ClientWithResponses) GetTraderExportSnapshotWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetTraderExportSnapshotResponse, error)

GetTraderExportSnapshotWithResponse Trader export snapshot metadata

Returns export source-range, completeness, volume reconciliation, row-count estimate, and large-export policy for one trader. To download the full dataset programmatically, POST to this same path to submit an async export job (json | ndjson | csv), then poll the status route and follow the download route once ready.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/export (the `GetTraderExportSnapshot` operationId).

func (*ClientWithResponses) GetTraderExportStatusWithResponse

func (c *ClientWithResponses) GetTraderExportStatusWithResponse(ctx context.Context, address string, params *GetTraderExportStatusParams, reqEditors ...RequestEditorFn) (*GetTraderExportStatusResponse, error)

GetTraderExportStatusWithResponse Poll a trader export job

Returns the current state of a submitted export job (queued | running | ready | failed) for the authenticated API key.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/export/status (the `GetTraderExportStatus` operationId).

func (*ClientWithResponses) GetTraderPnlWithResponse

func (c *ClientWithResponses) GetTraderPnlWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetTraderPnlResponse, error)

GetTraderPnlWithResponse Get trader P&L time series

Returns a trader's daily P&L time series and pre-derived stats from the precomputed daily_pnl read model: entries (daily cumulative P&L), period stats (all/90d/30d/7d), monthly aggregation, per-year totals, and the drawdown series. Reads the refreshed read model, not a per-request equity replay. A resolved trader with no daily P&L returns an empty structured object (HTTP 200); an unknown address returns 404. Spans both providers wherever the read model has the trader's series.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address}/pnl (the `GetTraderPnl` operationId).

func (*ClientWithResponses) GetTraderWithResponse

func (c *ClientWithResponses) GetTraderWithResponse(ctx context.Context, address string, params *GetTraderParams, reqEditors ...RequestEditorFn) (*GetTraderResponse, error)

GetTraderWithResponse Get trader intelligence

Returns a trader's grade (S through F; ranked about 95% by realized profit, with calibration, track record, and consistency as a tie-breaker and proven-trader guardrails), P&L, win rate, and optional strategy/category data. The path accepts either an Ethereum wallet address, a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown lookups return sync_status "unknown" instead of 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/trader/{address} (the `GetTrader` operationId).

func (*ClientWithResponses) GetUsageWithResponse

func (c *ClientWithResponses) GetUsageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsageResponse, error)

GetUsageWithResponse Inspect current API usage without spending primary request quota

Returns the authenticated caller sliding-window request budget and UTC-day usage. This endpoint is authenticated and does not increment the primary Redis rate-limit counter or log itself into the API usage table; it is separately throttled at 100 reads/minute per user to protect the usage-count query. UTC-day totals use finalized quarter-hour rollups plus the disjoint raw interval through request time; unavailable rollup progress returns an error.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/usage (the `GetUsage` operationId).

func (*ClientWithResponses) GetWebhookWithResponse

func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)

GetWebhookWithResponse Get one builder webhook destination

Returns one webhook destination owned by the authenticated API key user.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/webhooks/{id} (the `GetWebhook` operationId).

func (*ClientWithResponses) GetWeeklyReportSnapshotWithResponse

func (c *ClientWithResponses) GetWeeklyReportSnapshotWithResponse(ctx context.Context, params *GetWeeklyReportSnapshotParams, reqEditors ...RequestEditorFn) (*GetWeeklyReportSnapshotResponse, error)

GetWeeklyReportSnapshotWithResponse Weekly report snapshot

Returns a weekly whale-activity report snapshot. Pass either from/to UTC dates or an ISO YYYY-WW week token. The response identifies closed ranges as final and current ranges as rolling.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/reports/weekly (the `GetWeeklyReportSnapshot` operationId).

func (*ClientWithResponses) GetWhaleTradeWithResponse

func (c *ClientWithResponses) GetWhaleTradeWithResponse(ctx context.Context, id string, params *GetWhaleTradeParams, reqEditors ...RequestEditorFn) (*GetWhaleTradeResponse, error)

GetWhaleTradeWithResponse Get whale trade by ID

Returns one whale trade by raw whale_alerts.id or the wt_-prefixed id emitted by list and history responses.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/whale-trades/{id} (the `GetWhaleTrade` operationId).

func (*ClientWithResponses) ListInsiderRadarWithResponse

func (c *ClientWithResponses) ListInsiderRadarWithResponse(ctx context.Context, params *ListInsiderRadarParams, reqEditors ...RequestEditorFn) (*ListInsiderRadarResponse, error)

ListInsiderRadarWithResponse Get insider radar flags

Stored trades whose recorded suspicion score meets the live flag threshold. Evidence contains the scorer's stored signals. Cursor-paginated by suspicion score.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/insider-radar (the `ListInsiderRadar` operationId).

func (*ClientWithResponses) ListLargePositionsWithResponse

func (c *ClientWithResponses) ListLargePositionsWithResponse(ctx context.Context, params *ListLargePositionsParams, reqEditors ...RequestEditorFn) (*ListLargePositionsResponse, error)

ListLargePositionsWithResponse List large positions

Returns the largest current open positions from graded traders, value-descending, with opaque cursor pagination. Polymarket-only by design: the large-positions scanner filters platform = 'polymarket' (backend/crates/large-positions/src/scanner.rs), so only Polymarket rows are scanned and an unknown condition_id filter returns an empty list (never fabricated rows). The teaser cap that the internal product UI applies to anonymous viewers does not apply here: the API key already proves an active Pro subscription (wire tier `insider`), so authed API callers get full access.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/large-positions (the `ListLargePositions` operationId).

func (*ClientWithResponses) ListLeaderboardWithResponse

func (c *ClientWithResponses) ListLeaderboardWithResponse(ctx context.Context, params *ListLeaderboardParams, reqEditors ...RequestEditorFn) (*ListLeaderboardResponse, error)

ListLeaderboardWithResponse Get trader leaderboard

Returns ranked traders (grades S/A/B) sorted by score descending. Supports cursor pagination and optional category/strategy filters.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/leaderboard (the `ListLeaderboard` operationId).

func (*ClientWithResponses) ListPositionsWithResponse

func (c *ClientWithResponses) ListPositionsWithResponse(ctx context.Context, params *ListPositionsParams, reqEditors ...RequestEditorFn) (*ListPositionsResponse, error)

ListPositionsWithResponse List current positions (positions-board feed)

Returns the current positions-board feed backed by the wallet_positions mirror. Ordered by current_value_usd DESC with deterministic (wallet, condition_id, outcome_index) tiebreakers. Pre-reconcile rows (current_value_usd IS NULL) are excluded. Cursor-paginated. Every filter pushes into SQL.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/positions (the `ListPositions` operationId).

func (*ClientWithResponses) ListSharpMoneyFlowsWithResponse

func (c *ClientWithResponses) ListSharpMoneyFlowsWithResponse(ctx context.Context, params *ListSharpMoneyFlowsParams, reqEditors ...RequestEditorFn) (*ListSharpMoneyFlowsResponse, error)

ListSharpMoneyFlowsWithResponse List ranked sharp-money flows

Canonical alias of /api/v1/markets/smart-money-flows, which remains live but deprecated. Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where sharp money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/markets/sharp-money-flows (the `ListSharpMoneyFlows` operationId).

func (*ClientWithResponses) ListSmartMoneyFlowsWithResponse deprecated

func (c *ClientWithResponses) ListSmartMoneyFlowsWithResponse(ctx context.Context, params *ListSmartMoneyFlowsParams, reqEditors ...RequestEditorFn) (*ListSmartMoneyFlowsResponse, error)

ListSmartMoneyFlowsWithResponse List ranked smart-money flows

Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where smart money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2. Deprecated alias of GET /api/v1/markets/sharp-money-flows, kept live and never removed; every response carries `Deprecation: @1783276950` (RFC 9745, 2026-07-05T18:42:30Z) and a `Link` to the successor (`rel="successor-version"`) and to the versioning policy (`rel="deprecation"`). No `Sunset` header is sent because no removal is planned.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/markets/smart-money-flows (the `ListSmartMoneyFlows` operationId).

Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set

func (*ClientWithResponses) ListSportsEdgeObservationsWithResponse

func (c *ClientWithResponses) ListSportsEdgeObservationsWithResponse(ctx context.Context, params *ListSportsEdgeObservationsParams, reqEditors ...RequestEditorFn) (*ListSportsEdgeObservationsResponse, error)

ListSportsEdgeObservationsWithResponse List observation-only sports-edge cohorts

Pro-tier. Measures three explicitly observation-only Polymarket sports cohorts without changing or feeding GET /api/v1/sports-edge-signals: wider_holder measures pre-game holder piles outside the funded route's exact raw signals admission, including recent-flow rows rejected by its event, bucket, or total caps; in_play admits provider-confirmed live games and fails closed when the provider live-board snapshot is stale or unavailable or holder/directional evidence is stale or unavailable; emerging_pile is an additive post-compute projection of wider_holder rows with finite sharp_pct in [0.75, 0.85), holder_scan_complete=true, and a kickoff after its pinned projection cutoff. emerging_pile overlaps wider_holder, remains attributed to that source terminal and denominator, and is not holder-arrival history. Every row carries observation_only=true, provider/holder freshness and completeness fields, and the response carries a required snapshot-wide operational/unknown-completeness degraded boolean plus an accountable per-sport funnel over a closed 25-value terminal-reason vocabulary. Omitted or blank category selects all 14 registered observation sport buckets, including Table Tennis and Pickleball; those two remain outside the funded sports projection. All category and all-sports cache scopes share one global observation provider-work admission, so distinct scope keys cannot multiply concurrent provider fanout. One absolute ~25s compute deadline covers cache coordination, board/universe and primary-signals membership reads, holder cache/provider work, price/metadata evaluation, and directional reads, leaving ~5s below the public router timeout for funnel reconciliation, cleanup, and response transport. A shared pre-holder stage deadline jointly bounds those database reads and board reconciliation to the smaller of 12s or half of the absolute budget remaining when that stage starts, preserving holder/post-holder opportunity; board reads use bounded fair waves and cold holder admission gives each represented canonical sport one row before any sport repeats. A request that finds its scope's refresh in flight waits for that snapshot, and a scope refresh waits for another scope's global provider-work admission while at least ~15s of the absolute deadline remain. Absolute deadline exhaustion before a usable cache, provider-work admission still held at that ~15s bound, an in-flight refresh that ends without publishing while another waiting request takes it over, or pre-holder stage expiry before a usable stored universe or primary-signals membership result returns 503 with error.reason=read_model_warming. Category-resolution SQL errors, Redis coordination failures, observation-universe SQL errors, and primary-signals membership query failures return 500 internal_error instead. Once a usable universe exists, later operational or unknown-completeness board, holder, or price/metadata failures are retained as explicit terminal reasons in a degraded 200 response with degraded=true: board_source_unavailable is a completed board-source failure, board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; both classify only already-started rows, so for the upcoming source read funnel.sports[].board_upcoming_status instead; provider_unavailable is an attempted holder-provider failure, and holder_deadline_unavailable is holder-stage deadline exhaustion. Directional incompleteness is cohort-specific: a wider_holder row remains emitted with terminal wider_holder_emitted and directional_status=unavailable, while an in_play row fails closed with terminal in_play_directional_unavailable. capacity_limited records intentional bounded provider-work admission in the funnel and does not by itself set degraded=true. Healthy wider_holder requests may reuse a snapshot for ~180s; healthy emerging_pile requests may use the same snapshot. in_play never serves a cached observation snapshot older than ~30s, and degraded snapshots use ~30s. The ETag is a weak semantic validator over the stable page payload, including next_cursor page position; request-specific meta excluded; the opaque emerging_pile projection cutoff in next_cursor is not itself a validator input.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/sports-edge-observations (the `ListSportsEdgeObservations` operationId).

func (*ClientWithResponses) ListSportsEdgeSignalsWithResponse

func (c *ClientWithResponses) ListSportsEdgeSignalsWithResponse(ctx context.Context, params *ListSportsEdgeSignalsParams, reqEditors ...RequestEditorFn) (*ListSportsEdgeSignalsResponse, error)

ListSportsEdgeSignalsWithResponse List ranked pre-game sports-edge signals

Pro-tier. Ranked list of upcoming pre-game sports markets (moneyline + props) where graded (S/A/B) sharp money is piled on one side, each row carrying signal_created_at (the UTC time its immutable snapshot was computed), the piled side, its grade distribution, kickoff, piled-side Polymarket CLOB token id, and required shadow-only category_skill evidence. signal_created_at is not provider market creation time or request time. Eligibility and ranking remain the funded FLOW/HOLDER contract; category skill cannot change membership, order, rank, cursor, routing, or sizing. meta exposes explicit category source/model/status plus independently computed pre/post SHA-256 base-vector hashes that must match. Served from a shared server-side snapshot cache (healthy TTL ~180s, degraded ~30s) computed once per category at the maximum 48h horizon and filtered at request time; the cursor pins to that snapshot and a stale cursor is rejected. Polymarket only; source coverage is partial first-observed post-launch Goldsky primary taker BUY fills admitted by the canonical whale-alert thresholds, never reconstructed history. Deliberately not the editorial Pick of the Day ranker.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/sports-edge-signals (the `ListSportsEdgeSignals` operationId).

func (*ClientWithResponses) ListTrendingWalletsWithResponse

func (c *ClientWithResponses) ListTrendingWalletsWithResponse(ctx context.Context, params *ListTrendingWalletsParams, reqEditors ...RequestEditorFn) (*ListTrendingWalletsResponse, error)

ListTrendingWalletsWithResponse List trending wallets

Returns wallets ranked by Polymarket weekly/monthly P&L (Polymarket-only discovery), with opaque page-cursor pagination. trending_pnl_usd and the by-PNL row order come from Polymarket's canonical leaderboard (data-api.polymarket.com/v1/leaderboard?timePeriod=week|month&orderBy=PNL), not a locally summed realized-leaf total. Each row also carries window volume, distinct markets, grade, hot-streak tier, and a shape-only daily P&L sparkline derived from the Polymarket user-pnl cumulative curve (per-day deltas; not guaranteed to sum to trending_pnl_usd). The underlying read model is warmed into Redis; a cold read returns 503 (warming, retry-after), never a 500 or a fabricated ranking. Polymarket-only: the read model filters platform = 'polymarket'.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/leaderboard/trending (the `ListTrendingWallets` operationId).

func (*ClientWithResponses) ListWebhookDeliveriesWithResponse

func (c *ClientWithResponses) ListWebhookDeliveriesWithResponse(ctx context.Context, id int64, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListWebhookDeliveriesResponse, error)

ListWebhookDeliveriesWithResponse List webhook delivery log

Recent delivery attempts for one webhook destination owned by the authenticated API key user, newest first, with opaque cursor pagination. Returns 404 (identical to an unknown id) when the endpoint is not owned by the caller, so a non-owner cannot tell an owned-but-empty log apart from someone else's endpoint. Delivery rows omit the request body and signing secret.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/webhooks/{id}/deliveries (the `ListWebhookDeliveries` operationId).

func (*ClientWithResponses) ListWebhookEventsWithResponse

func (c *ClientWithResponses) ListWebhookEventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWebhookEventsResponse, error)

ListWebhookEventsWithResponse List webhook event catalog

Self-describing catalog of every webhook event type: its description, data payload shape, and whether it is active (has a firing producer) or dormant (subscribable but not yet delivered). The catalog is identical for every authenticated key and exposes no owner-scoped data. Pro-only event types (whale_trades_inserted, wallet_grade_changed, insider_radar_flag_raised, smart_money_flow_detected) appear in the catalog but only deliver to API keys on an active Pro subscription.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/webhooks/events (the `ListWebhookEvents` operationId).

func (*ClientWithResponses) ListWebhooksWithResponse

func (c *ClientWithResponses) ListWebhooksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)

ListWebhooksWithResponse List builder webhook destinations

Returns webhook destinations owned by the authenticated API key user. Disabled endpoints are omitted. Subscribable event_types and their payload shapes are described by GET /api/v1/webhooks/events. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/webhooks (the `ListWebhooks` operationId).

func (*ClientWithResponses) ListWhaleTradeCounterpartyExecutionsWithResponse

func (c *ClientWithResponses) ListWhaleTradeCounterpartyExecutionsWithResponse(ctx context.Context, id string, params *ListWhaleTradeCounterpartyExecutionsParams, reqEditors ...RequestEditorFn) (*ListWhaleTradeCounterpartyExecutionsResponse, error)

ListWhaleTradeCounterpartyExecutionsWithResponse Page counterparty executions

Returns a bounded execution page from the immutable snapshot emitted by whale-trade detail. A stale or changed snapshot returns a cursor-expired error so clients restart from detail.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions (the `ListWhaleTradeCounterpartyExecutions` operationId).

func (*ClientWithResponses) ListWhaleTradeCounterpartyMakersWithResponse

func (c *ClientWithResponses) ListWhaleTradeCounterpartyMakersWithResponse(ctx context.Context, id string, executionId string, params *ListWhaleTradeCounterpartyMakersParams, reqEditors ...RequestEditorFn) (*ListWhaleTradeCounterpartyMakersResponse, error)

ListWhaleTradeCounterpartyMakersWithResponse Page maker counterparties

Returns a bounded maker-wallet page for one exact execution. Percentages keep the complete execution denominator across pages.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions/{execution_id}/makers (the `ListWhaleTradeCounterpartyMakers` operationId).

func (*ClientWithResponses) ListWhaleTradeHistoryWithResponse

func (c *ClientWithResponses) ListWhaleTradeHistoryWithResponse(ctx context.Context, params *ListWhaleTradeHistoryParams, reqEditors ...RequestEditorFn) (*ListWhaleTradeHistoryResponse, error)

ListWhaleTradeHistoryWithResponse Replay historical whale trades

Returns historical whale trades from local whale_alerts rows, not request-time provider fetches. Filter by condition_id, trader, category, minimum grade, persisted suspicion, platform, and RFC3339 from/to windows. All filters are pushed into SQL before LIMIT, every request uses SQL-backed limit + 1 pagination, and results are ordered newest first by traded_at desc, id desc. Metadata exposes local_replay source and best_effort completeness.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/whale-trades/history (the `ListWhaleTradeHistory` operationId).

func (*ClientWithResponses) ListWhaleTradesWithResponse

func (c *ClientWithResponses) ListWhaleTradesWithResponse(ctx context.Context, params *ListWhaleTradesParams, reqEditors ...RequestEditorFn) (*ListWhaleTradesResponse, error)

ListWhaleTradesWithResponse List whale trades

Returns recent large trades with signal scoring and persisted suspicion facts. Filter by size, category, trader grade, or persisted suspicion. Filters are applied before pagination, and every request uses SQL-backed limit + 1 pagination so has_more and next_cursor reflect the filtered result set. Cursor-paginated, newest first. Market categories come from provider-backed market_canonical identity.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/whale-trades (the `ListWhaleTrades` operationId).

func (*ClientWithResponses) OpenMcpEventStreamWithResponse

func (c *ClientWithResponses) OpenMcpEventStreamWithResponse(ctx context.Context, params *OpenMcpEventStreamParams, reqEditors ...RequestEditorFn) (*OpenMcpEventStreamResponse, error)

OpenMcpEventStreamWithResponse Open MCP server-to-client stream

Opens a text/event-stream connection for server-initiated notifications as described in the MCP Streamable HTTP transport. The endpoint currently sends no notifications — clients that only care about request/response use POST.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/mcp (the `OpenMcpEventStream` operationId).

func (*ClientWithResponses) RedirectApiOpenapiSpecWithResponse

func (c *ClientWithResponses) RedirectApiOpenapiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RedirectApiOpenapiSpecResponse, error)

RedirectApiOpenapiSpecWithResponse Redirect to the canonical OpenAPI spec

Unauthenticated API-origin compatibility redirect to the canonical web-origin OpenAPI JSON document at https://0xinsider.com/api/v1/openapi.json.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/openapi.json (the `RedirectApiOpenapiSpec` operationId).

func (*ClientWithResponses) RotateWebhookSecretWithResponse

func (c *ClientWithResponses) RotateWebhookSecretWithResponse(ctx context.Context, id int64, params *RotateWebhookSecretParams, reqEditors ...RequestEditorFn) (*RotateWebhookSecretResponse, error)

RotateWebhookSecretWithResponse Rotate a builder webhook signing secret

Rotates the endpoint signing secret and returns the new signing_secret once in the response. Returns 409 with error.reason=webhook_delivery_in_progress while a live delivery freezes the current signing nonce; retry after it completes.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/webhooks/{id}/rotate-secret (the `RotateWebhookSecret` operationId).

func (*ClientWithResponses) SearchContentWithResponse

func (c *ClientWithResponses) SearchContentWithResponse(ctx context.Context, params *SearchContentParams, reqEditors ...RequestEditorFn) (*SearchContentResponse, error)

SearchContentWithResponse Search editorial content

Search 0xinsider editorial content by keyword. Returns backend-owned learn, glossary, comparison, research, and trading-strategy items with canonical URLs. Opaque ranking scores are not exposed.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/content/search (the `SearchContent` operationId).

func (*ClientWithResponses) SearchMarketsWithResponse

func (c *ClientWithResponses) SearchMarketsWithResponse(ctx context.Context, params *SearchMarketsParams, reqEditors ...RequestEditorFn) (*SearchMarketsResponse, error)

SearchMarketsWithResponse Search markets

Search prediction markets by keyword. Returns representative market matches with status, category, and platform metadata. Cursor pagination advances over grouped market results rather than raw sub-market rows.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /api/v1/markets/search (the `SearchMarkets` operationId).

func (*ClientWithResponses) SubmitTraderExportWithResponse

func (c *ClientWithResponses) SubmitTraderExportWithResponse(ctx context.Context, address string, params *SubmitTraderExportParams, reqEditors ...RequestEditorFn) (*SubmitTraderExportResponse, error)

SubmitTraderExportWithResponse Submit a trader dataset export job

Queues an async export of the trader's full dataset in the requested format (json default, ndjson, or csv) and returns the job. Poll the status route, then follow the download route once status is 'ready'. Quotas are the per-user daily and per-address hourly export caps, keyed on the API key owner so an API key never widens its owner's quota.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/trader/{address}/export (the `SubmitTraderExport` operationId).

func (*ClientWithResponses) UpdateWebhookWithBodyWithResponse

func (c *ClientWithResponses) UpdateWebhookWithBodyWithResponse(ctx context.Context, id int64, params *UpdateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)

UpdateWebhookWithBodyWithResponse Update a builder webhook destination

Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).

func (*ClientWithResponses) UpdateWebhookWithResponse

func (c *ClientWithResponses) UpdateWebhookWithResponse(ctx context.Context, id int64, params *UpdateWebhookParams, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)

UpdateWebhookWithResponse Update a builder webhook destination

Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).

func (*ClientWithResponses) VerifyWebhookWithBodyWithResponse

func (c *ClientWithResponses) VerifyWebhookWithBodyWithResponse(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyWebhookResponse, error)

VerifyWebhookWithBodyWithResponse Verify a builder webhook destination

Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).

func (*ClientWithResponses) VerifyWebhookWithResponse

func (c *ClientWithResponses) VerifyWebhookWithResponse(ctx context.Context, id int64, body VerifyWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyWebhookResponse, error)

VerifyWebhookWithResponse Verify a builder webhook destination

Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetApiDiscoveryWithResponse API discovery
	//
	// Unauthenticated API-origin discovery document pointing agents to the canonical API base URL, full docs, web-origin OpenAPI spec, health check, and the COMPLETE index of authenticated data routes. data.authenticated_routes is the whole authenticated route surface, not a sample: it carries every authenticated route this spec documents, so an agent that starts here never has to guess a path. The index is a hand-maintained const in backend/src/api_v1/discovery.rs kept in step with this spec by review; no automated check compares the two, so treat this spec as authoritative if they ever disagree.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1 (the `GetApiDiscovery` operationId).
	GetApiDiscoveryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiDiscoveryResponse, error)

	// SearchContentWithResponse Search editorial content
	//
	// Search 0xinsider editorial content by keyword. Returns backend-owned learn, glossary, comparison, research, and trading-strategy items with canonical URLs. Opaque ranking scores are not exposed.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/content/search (the `SearchContent` operationId).
	SearchContentWithResponse(ctx context.Context, params *SearchContentParams, reqEditors ...RequestEditorFn) (*SearchContentResponse, error)

	// GetEventReplaySinceWithResponse Replay public whale-trade intelligence events
	//
	// Returns durable public whale-trade intelligence events strictly after an opaque cursor backed by whale_alerts.id. This is a separate API-key contract from the browser/session /api/events/feed stream: browser-only and private alert, following, radar, and position patch events are excluded until they have a durable public outbox.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/events/feed/since (the `GetEventReplaySince` operationId).
	GetEventReplaySinceWithResponse(ctx context.Context, params *GetEventReplaySinceParams, reqEditors ...RequestEditorFn) (*GetEventReplaySinceResponse, error)

	// GetHealthWithResponse Health check
	//
	// Returns API health status. No authentication required. Limited to 120 requests per minute per IP.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/health (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, params *GetHealthParams, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// ListInsiderRadarWithResponse Get insider radar flags
	//
	// Stored trades whose recorded suspicion score meets the live flag threshold. Evidence contains the scorer's stored signals. Cursor-paginated by suspicion score.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/insider-radar (the `ListInsiderRadar` operationId).
	ListInsiderRadarWithResponse(ctx context.Context, params *ListInsiderRadarParams, reqEditors ...RequestEditorFn) (*ListInsiderRadarResponse, error)

	// GetInsiderRadarFlagWithResponse Get insider radar flag by ID
	//
	// Returns one suspicious-trading radar flag by raw whale_alerts.id or the rf_-prefixed id emitted by list responses.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/insider-radar/{id} (the `GetInsiderRadarFlag` operationId).
	GetInsiderRadarFlagWithResponse(ctx context.Context, id string, params *GetInsiderRadarFlagParams, reqEditors ...RequestEditorFn) (*GetInsiderRadarFlagResponse, error)

	// ListLargePositionsWithResponse List large positions
	//
	// Returns the largest current open positions from graded traders, value-descending, with opaque cursor pagination. Polymarket-only by design: the large-positions scanner filters platform = 'polymarket' (backend/crates/large-positions/src/scanner.rs), so only Polymarket rows are scanned and an unknown condition_id filter returns an empty list (never fabricated rows). The teaser cap that the internal product UI applies to anonymous viewers does not apply here: the API key already proves an active Pro subscription (wire tier `insider`), so authed API callers get full access.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/large-positions (the `ListLargePositions` operationId).
	ListLargePositionsWithResponse(ctx context.Context, params *ListLargePositionsParams, reqEditors ...RequestEditorFn) (*ListLargePositionsResponse, error)

	// ListLeaderboardWithResponse Get trader leaderboard
	//
	// Returns ranked traders (grades S/A/B) sorted by score descending. Supports cursor pagination and optional category/strategy filters.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/leaderboard (the `ListLeaderboard` operationId).
	ListLeaderboardWithResponse(ctx context.Context, params *ListLeaderboardParams, reqEditors ...RequestEditorFn) (*ListLeaderboardResponse, error)

	// ListTrendingWalletsWithResponse List trending wallets
	//
	// Returns wallets ranked by Polymarket weekly/monthly P&L (Polymarket-only discovery), with opaque page-cursor pagination. trending_pnl_usd and the by-PNL row order come from Polymarket's canonical leaderboard (data-api.polymarket.com/v1/leaderboard?timePeriod=week|month&orderBy=PNL), not a locally summed realized-leaf total. Each row also carries window volume, distinct markets, grade, hot-streak tier, and a shape-only daily P&L sparkline derived from the Polymarket user-pnl cumulative curve (per-day deltas; not guaranteed to sum to trending_pnl_usd). The underlying read model is warmed into Redis; a cold read returns 503 (warming, retry-after), never a 500 or a fabricated ranking. Polymarket-only: the read model filters platform = 'polymarket'.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/leaderboard/trending (the `ListTrendingWallets` operationId).
	ListTrendingWalletsWithResponse(ctx context.Context, params *ListTrendingWalletsParams, reqEditors ...RequestEditorFn) (*ListTrendingWalletsResponse, error)

	// GetMarketCandlesWithResponse Get market OHLC price candles
	//
	// Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (the same series the market-detail chart renders; covers open and resolved markets). Because the stored data is daily, a 1d bucket typically carries one point so its open/high/low/close all equal that day's close; 1w aggregates real OHLC across the observed daily closes. No intraday fidelity is fabricated.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/market/{condition_id}/candles (the `GetMarketCandles` operationId).
	GetMarketCandlesWithResponse(ctx context.Context, conditionId string, params *GetMarketCandlesParams, reqEditors ...RequestEditorFn) (*GetMarketCandlesResponse, error)

	// GetMarketIntelWithResponse Get market intelligence
	//
	// Smart money flow analysis for a specific market — net flow direction, whale trade count, buy/sell volumes, and top graded trader positions.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/market/{condition_id}/intel (the `GetMarketIntel` operationId).
	GetMarketIntelWithResponse(ctx context.Context, conditionId string, params *GetMarketIntelParams, reqEditors ...RequestEditorFn) (*GetMarketIntelResponse, error)

	// GetMarketSnapshotWithResponse Get market live snapshot
	//
	// Provider-first market card snapshot with canonical identity, outcome labels, cached top-of-book when available, liquidity, live sports context, and explicit freshness/unavailable states.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/market/{condition_id}/snapshot (the `GetMarketSnapshot` operationId).
	GetMarketSnapshotWithResponse(ctx context.Context, conditionId string, params *GetMarketSnapshotParams, reqEditors ...RequestEditorFn) (*GetMarketSnapshotResponse, error)

	// ExploreMarketsWithResponse Explore markets
	//
	// Browse whale-active titled markets with category, platform, status, and keyword filters. Explore is Polymarket-only: the platform parameter is accepted for backward-compatibility but every request returns Polymarket markets. Paginates visible discovery entries rather than raw market rows, returns live category/platform facets alongside grouped event clusters or standalone markets, and includes total on the first page only. Each grouped event contains at most 12 markets, retaining the selected representative within that cap. Categories come straight from provider metadata (Polymarket Gamma) and facets are flat value/label/count rows.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/markets/explore (the `ExploreMarkets` operationId).
	ExploreMarketsWithResponse(ctx context.Context, params *ExploreMarketsParams, reqEditors ...RequestEditorFn) (*ExploreMarketsResponse, error)

	// BatchGetMarketIntelWithBodyWithResponse Batch market intelligence
	//
	// Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).
	BatchGetMarketIntelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetMarketIntelResponse, error)

	// BatchGetMarketIntelWithResponse Batch market intelligence
	//
	// Returns smart-money market intelligence for 1-25 raw provider condition_id values. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Do not pass prefixed mkt_ IDs; use market.condition_id from search or explore.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/markets/intel/batch (the `BatchGetMarketIntel` operationId).
	BatchGetMarketIntelWithResponse(ctx context.Context, body BatchGetMarketIntelJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchGetMarketIntelResponse, error)

	// SearchMarketsWithResponse Search markets
	//
	// Search prediction markets by keyword. Returns representative market matches with status, category, and platform metadata. Cursor pagination advances over grouped market results rather than raw sub-market rows.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/markets/search (the `SearchMarkets` operationId).
	SearchMarketsWithResponse(ctx context.Context, params *SearchMarketsParams, reqEditors ...RequestEditorFn) (*SearchMarketsResponse, error)

	// ListSharpMoneyFlowsWithResponse List ranked sharp-money flows
	//
	// Canonical alias of /api/v1/markets/smart-money-flows, which remains live but deprecated. Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where sharp money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/markets/sharp-money-flows (the `ListSharpMoneyFlows` operationId).
	ListSharpMoneyFlowsWithResponse(ctx context.Context, params *ListSharpMoneyFlowsParams, reqEditors ...RequestEditorFn) (*ListSharpMoneyFlowsResponse, error)

	// ListSmartMoneyFlowsWithResponse List ranked smart-money flows
	//
	// Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where smart money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2. Deprecated alias of GET /api/v1/markets/sharp-money-flows, kept live and never removed; every response carries `Deprecation: @1783276950` (RFC 9745, 2026-07-05T18:42:30Z) and a `Link` to the successor (`rel="successor-version"`) and to the versioning policy (`rel="deprecation"`). No `Sunset` header is sent because no removal is planned.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/markets/smart-money-flows (the `ListSmartMoneyFlows` operationId).
	//
	// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ListSmartMoneyFlowsWithResponse(ctx context.Context, params *ListSmartMoneyFlowsParams, reqEditors ...RequestEditorFn) (*ListSmartMoneyFlowsResponse, error)

	// OpenMcpEventStreamWithResponse Open MCP server-to-client stream
	//
	// Opens a text/event-stream connection for server-initiated notifications as described in the MCP Streamable HTTP transport. The endpoint currently sends no notifications — clients that only care about request/response use POST.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/mcp (the `OpenMcpEventStream` operationId).
	OpenMcpEventStreamWithResponse(ctx context.Context, params *OpenMcpEventStreamParams, reqEditors ...RequestEditorFn) (*OpenMcpEventStreamResponse, error)

	// CreateMcpJsonRpcResponseWithBodyWithResponse Remote MCP endpoint (JSON-RPC)
	//
	// Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).
	CreateMcpJsonRpcResponseWithBodyWithResponse(ctx context.Context, params *CreateMcpJsonRpcResponseParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMcpJsonRpcResponseResponse, error)

	// CreateMcpJsonRpcResponseWithResponse Remote MCP endpoint (JSON-RPC)
	//
	// Model Context Protocol (MCP) Streamable HTTP transport. Accepts a JSON-RPC 2.0 request and returns a JSON-RPC response. Supported methods: initialize, notifications/initialized, ping, tools/list, tools/call. Remote MCP exposes 33 read-only tools for public V1 read operations: get_leaderboard, get_trader, batch_get_traders, get_whale_trades, get_whale_trade, get_whale_trades_history, get_market_intel, batch_get_market_intel, get_smart_money_flows, get_sharp_money_flows, get_market_snapshot, get_insider_radar, get_insider_radar_flag, get_positions, get_position_timeline, get_position_timeline_by_id, search_markets, search_content, explore_markets, get_event_replay_since, list_webhooks, get_webhook, get_daily_report_snapshot, get_weekly_report_snapshot, get_monthly_report_snapshot, get_report, get_trader_export_snapshot, get_platforms, get_large_positions, get_trending_wallets, get_trader_pnl, get_pick_of_the_day, get_pick_of_the_day_archive. Webhook create/update/delete/verify/rotate operations are intentionally not exposed as remote MCP tools. The remote endpoint advertises tools only; it does not implement resources/list, resources/read, prompts/list, or prompts/get. Each tool dispatches to the matching /api/v1/* handler in-process so auth, rate limits, and payload shape match. initialize, notifications/initialized, ping and tools/list answer without a credential; tools/call and the GET event stream need Authorization: Bearer <token> with an OAuth 2.1 access token (see the oauth2 security scheme; a tool outside the token's scopes returns isError) or an API key, and without one answer HTTP 401 with a WWW-Authenticate challenge whose resource_metadata names the RFC 9728 document at /.well-known/oauth-protected-resource/api/v1/mcp. Legacy ?token=<token> authentication works only on exact /api/v1/mcp. Every other protected V1 route rejects query-string API keys. Prefer headers or the stdio package because URL secrets can land in shell history, browser history, and logs. The retirement date is unknown until external URL-only client compatibility is checked. Mcp-Session-Id is minted on initialize and echoed on every response. Origin header, when present, is validated against the 0xinsider + localhost allowlist.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/mcp (the `CreateMcpJsonRpcResponse` operationId).
	CreateMcpJsonRpcResponseWithResponse(ctx context.Context, params *CreateMcpJsonRpcResponseParams, body CreateMcpJsonRpcResponseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMcpJsonRpcResponseResponse, error)

	// RedirectApiOpenapiSpecWithResponse Redirect to the canonical OpenAPI spec
	//
	// Unauthenticated API-origin compatibility redirect to the canonical web-origin OpenAPI JSON document at https://0xinsider.com/api/v1/openapi.json.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/openapi.json (the `RedirectApiOpenapiSpec` operationId).
	RedirectApiOpenapiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RedirectApiOpenapiSpecResponse, error)

	// GetPickOfTheDayWithResponse Get today's Pick of the Day
	//
	// Returns the published picks for the current product day. Pro tier.
	//
	// `picks` holds up to six ranked picks. Each pick carries the backed side, the pre-game price, the $100 return, the sharp-money holders, the grade, and a thesis. The price is frozen before kickoff. A prior day's pick never appears here; read the archive for it.
	//
	// `scheduled_picks` lists same-day slots that are selected but not released yet. Each slot exposes only `pick_rank`, `release_at`, and `kickoff`.
	//
	// When no pick is published for the current product day, the endpoint returns `404` with `error.code="not_found"` and `error.reason="pick_not_released"`. Branch on the reason; the code is frozen. The `404` is a schedule, not an outage.
	//
	// Do not poll. Read `Retry-After` or `error.retry_at` and schedule one request for that instant. The `404` response below says how the instant is chosen.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/pick-of-the-day (the `GetPickOfTheDay` operationId).
	GetPickOfTheDayWithResponse(ctx context.Context, params *GetPickOfTheDayParams, reqEditors ...RequestEditorFn) (*GetPickOfTheDayResponse, error)

	// GetPickOfTheDayArchiveWithResponse Get the Pick of the Day track record
	//
	// Returns every published pick with its outcome, unit score, closing-line value, and the rolling hit rate.
	//
	// Resolved picks are public. A pending pick's backed side appears only for an authenticated Pro key.
	//
	// Each row carries a CLV value or the reason it was not measured. Coverage divides measured rows by resolved rows published before kickoff. A post-kickoff publication is `not_applicable`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/pick-of-the-day/archive (the `GetPickOfTheDayArchive` operationId).
	GetPickOfTheDayArchiveWithResponse(ctx context.Context, params *GetPickOfTheDayArchiveParams, reqEditors ...RequestEditorFn) (*GetPickOfTheDayArchiveResponse, error)

	// GetPlatformsWithResponse Get platform capability matrix
	//
	// Unauthenticated discovery endpoint that declares which V1 intelligence surfaces are supported, partial, or unsupported per provider platform.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/platforms (the `GetPlatforms` operationId).
	GetPlatformsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlatformsResponse, error)

	// ListPositionsWithResponse List current positions (positions-board feed)
	//
	// Returns the current positions-board feed backed by the wallet_positions mirror. Ordered by current_value_usd DESC with deterministic (wallet, condition_id, outcome_index) tiebreakers. Pre-reconcile rows (current_value_usd IS NULL) are excluded. Cursor-paginated. Every filter pushes into SQL.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/positions (the `ListPositions` operationId).
	ListPositionsWithResponse(ctx context.Context, params *ListPositionsParams, reqEditors ...RequestEditorFn) (*ListPositionsResponse, error)

	// GetReportsWithResponse Unified report snapshot (granularity selector)
	//
	// Unified convenience route (#4975) that consolidates the three singular report routes. Dispatches to the exact per-granularity cap (daily 50, weekly 100, monthly 200) and date window the legacy /api/v1/reports/{daily,weekly,monthly} routes use, so the response body is byte-identical to the matching legacy route for the same period. The three legacy routes stay live. Also reachable via the MCP get_report selector.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/reports (the `GetReports` operationId).
	GetReportsWithResponse(ctx context.Context, params *GetReportsParams, reqEditors ...RequestEditorFn) (*GetReportsResponse, error)

	// GetDailyReportSnapshotWithResponse Daily report snapshot
	//
	// Returns a dated daily whale-activity report snapshot with source_range, snapshot.status, completeness, and reconciliation metadata. Report whale volume is local whale-alert activity volume, not provider lifetime trader volume.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/reports/daily (the `GetDailyReportSnapshot` operationId).
	GetDailyReportSnapshotWithResponse(ctx context.Context, params *GetDailyReportSnapshotParams, reqEditors ...RequestEditorFn) (*GetDailyReportSnapshotResponse, error)

	// GetMonthlyReportSnapshotWithResponse Monthly report snapshot
	//
	// Returns a UTC monthly whale-activity report snapshot with source_range, completeness, and reconciliation metadata.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/reports/monthly (the `GetMonthlyReportSnapshot` operationId).
	GetMonthlyReportSnapshotWithResponse(ctx context.Context, params *GetMonthlyReportSnapshotParams, reqEditors ...RequestEditorFn) (*GetMonthlyReportSnapshotResponse, error)

	// GetWeeklyReportSnapshotWithResponse Weekly report snapshot
	//
	// Returns a weekly whale-activity report snapshot. Pass either from/to UTC dates or an ISO YYYY-WW week token. The response identifies closed ranges as final and current ranges as rolling.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/reports/weekly (the `GetWeeklyReportSnapshot` operationId).
	GetWeeklyReportSnapshotWithResponse(ctx context.Context, params *GetWeeklyReportSnapshotParams, reqEditors ...RequestEditorFn) (*GetWeeklyReportSnapshotResponse, error)

	// ListSportsEdgeObservationsWithResponse List observation-only sports-edge cohorts
	//
	// Pro-tier. Measures three explicitly observation-only Polymarket sports cohorts without changing or feeding GET /api/v1/sports-edge-signals: wider_holder measures pre-game holder piles outside the funded route's exact raw signals admission, including recent-flow rows rejected by its event, bucket, or total caps; in_play admits provider-confirmed live games and fails closed when the provider live-board snapshot is stale or unavailable or holder/directional evidence is stale or unavailable; emerging_pile is an additive post-compute projection of wider_holder rows with finite sharp_pct in [0.75, 0.85), holder_scan_complete=true, and a kickoff after its pinned projection cutoff. emerging_pile overlaps wider_holder, remains attributed to that source terminal and denominator, and is not holder-arrival history. Every row carries observation_only=true, provider/holder freshness and completeness fields, and the response carries a required snapshot-wide operational/unknown-completeness degraded boolean plus an accountable per-sport funnel over a closed 25-value terminal-reason vocabulary. Omitted or blank category selects all 14 registered observation sport buckets, including Table Tennis and Pickleball; those two remain outside the funded sports projection. All category and all-sports cache scopes share one global observation provider-work admission, so distinct scope keys cannot multiply concurrent provider fanout. One absolute ~25s compute deadline covers cache coordination, board/universe and primary-signals membership reads, holder cache/provider work, price/metadata evaluation, and directional reads, leaving ~5s below the public router timeout for funnel reconciliation, cleanup, and response transport. A shared pre-holder stage deadline jointly bounds those database reads and board reconciliation to the smaller of 12s or half of the absolute budget remaining when that stage starts, preserving holder/post-holder opportunity; board reads use bounded fair waves and cold holder admission gives each represented canonical sport one row before any sport repeats. A request that finds its scope's refresh in flight waits for that snapshot, and a scope refresh waits for another scope's global provider-work admission while at least ~15s of the absolute deadline remain. Absolute deadline exhaustion before a usable cache, provider-work admission still held at that ~15s bound, an in-flight refresh that ends without publishing while another waiting request takes it over, or pre-holder stage expiry before a usable stored universe or primary-signals membership result returns 503 with error.reason=read_model_warming. Category-resolution SQL errors, Redis coordination failures, observation-universe SQL errors, and primary-signals membership query failures return 500 internal_error instead. Once a usable universe exists, later operational or unknown-completeness board, holder, or price/metadata failures are retained as explicit terminal reasons in a degraded 200 response with degraded=true: board_source_unavailable is a completed board-source failure, board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; both classify only already-started rows, so for the upcoming source read funnel.sports[].board_upcoming_status instead; provider_unavailable is an attempted holder-provider failure, and holder_deadline_unavailable is holder-stage deadline exhaustion. Directional incompleteness is cohort-specific: a wider_holder row remains emitted with terminal wider_holder_emitted and directional_status=unavailable, while an in_play row fails closed with terminal in_play_directional_unavailable. capacity_limited records intentional bounded provider-work admission in the funnel and does not by itself set degraded=true. Healthy wider_holder requests may reuse a snapshot for ~180s; healthy emerging_pile requests may use the same snapshot. in_play never serves a cached observation snapshot older than ~30s, and degraded snapshots use ~30s. The ETag is a weak semantic validator over the stable page payload, including next_cursor page position; request-specific meta excluded; the opaque emerging_pile projection cutoff in next_cursor is not itself a validator input.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/sports-edge-observations (the `ListSportsEdgeObservations` operationId).
	ListSportsEdgeObservationsWithResponse(ctx context.Context, params *ListSportsEdgeObservationsParams, reqEditors ...RequestEditorFn) (*ListSportsEdgeObservationsResponse, error)

	// ListSportsEdgeSignalsWithResponse List ranked pre-game sports-edge signals
	//
	// Pro-tier. Ranked list of upcoming pre-game sports markets (moneyline + props) where graded (S/A/B) sharp money is piled on one side, each row carrying signal_created_at (the UTC time its immutable snapshot was computed), the piled side, its grade distribution, kickoff, piled-side Polymarket CLOB token id, and required shadow-only category_skill evidence. signal_created_at is not provider market creation time or request time. Eligibility and ranking remain the funded FLOW/HOLDER contract; category skill cannot change membership, order, rank, cursor, routing, or sizing. meta exposes explicit category source/model/status plus independently computed pre/post SHA-256 base-vector hashes that must match. Served from a shared server-side snapshot cache (healthy TTL ~180s, degraded ~30s) computed once per category at the maximum 48h horizon and filtered at request time; the cursor pins to that snapshot and a stale cursor is rejected. Polymarket only; source coverage is partial first-observed post-launch Goldsky primary taker BUY fills admitted by the canonical whale-alert thresholds, never reconstructed history. Deliberately not the editorial Pick of the Day ranker.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/sports-edge-signals (the `ListSportsEdgeSignals` operationId).
	ListSportsEdgeSignalsWithResponse(ctx context.Context, params *ListSportsEdgeSignalsParams, reqEditors ...RequestEditorFn) (*ListSportsEdgeSignalsResponse, error)

	// GetStreamWithResponse Resumable real-time event stream (SSE)
	//
	// Server-Sent Events stream of the live feed envelopes the platform already broadcasts (whale-trade pulses and other public/Pro feed events). Forwards the same backend-owned envelope shape as the internal feed; no provider data is recomputed. Authenticated via the oxi_sk Bearer key like every other /api/v1 endpoint, and limited to a small number of concurrent connections per API key and a cluster-wide ceiling across all keys (HTTP 429 with Retry-After when either cap is exceeded; HTTP 503 with Retry-After if a required Redis service is briefly unavailable). Each delivered frame carries an SSE id from one cluster-shared sequence that remains valid across backend replicas and process restarts. Reconnect with the Last-Event-ID header (or the last_event_id / seq query fallback) to replay the missed window before resuming live. When the requested resume point is older than the retained window, ahead of the current sequence, or separated from live delivery by an uncovered gap, the stream emits a resync marker event (event: resync) instead of silently skipping frames. Idle connections receive periodic ': keep-alive' comment lines. This is a long-lived response: keep the connection open and read frames as they arrive.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/stream (the `GetStream` operationId).
	GetStreamWithResponse(ctx context.Context, params *GetStreamParams, reqEditors ...RequestEditorFn) (*GetStreamResponse, error)

	// GetTraderWithResponse Get trader intelligence
	//
	// Returns a trader's grade (S through F; ranked about 95% by realized profit, with calibration, track record, and consistency as a tie-breaker and proven-trader guardrails), P&L, win rate, and optional strategy/category data. The path accepts either an Ethereum wallet address, a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown lookups return sync_status "unknown" instead of 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address} (the `GetTrader` operationId).
	GetTraderWithResponse(ctx context.Context, address string, params *GetTraderParams, reqEditors ...RequestEditorFn) (*GetTraderResponse, error)

	// GetTraderContextWithResponse Get trader context (JSON)
	//
	// Returns a single structured context object for one trader: the full trader profile (same shape as GET /api/v1/trader/{address}) plus a position_summary (sync coverage and realized/unrealized P&L rollups, with an as_of open-position freshness clock), the data_as_of freshness timestamp (the open-position data's latest /positions snapshot, else last completed sync; the snapshot advances only open positions, so resolved counts and win rate still date to the last full sync; native realized P&L follows its accounting snapshot), and a freshness_note describing the point-in-time snapshot semantics. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. position_summary is omitted when the trader is not in the local database or native net economics is unavailable; realized fields remain numeric when present; unknown lookups return 200 with sync_status 'unknown' on the nested trader (no 404). Append .md to the path for the Markdown rendering.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/context (the `GetTraderContext` operationId).
	GetTraderContextWithResponse(ctx context.Context, address string, params *GetTraderContextParams, reqEditors ...RequestEditorFn) (*GetTraderContextResponse, error)

	// GetTraderContextMarkdownWithResponse Get trader context (Markdown)
	//
	// Returns a single human- and LLM-readable Markdown briefing for one trader: identity, grade, P&L, position coverage, and freshness. The path accepts an Ethereum wallet address (0x...), a known trader username, or a trd_-prefixed trader ID emitted by this API. Unknown traders still return 200 with a degraded 'not yet synced' document (no 404). The Markdown variant does not emit an ETag and does not support conditional requests; use the JSON variant (drop the .md suffix) for ETag/If-None-Match handling.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/context.md (the `GetTraderContextMarkdown` operationId).
	GetTraderContextMarkdownWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetTraderContextMarkdownResponse, error)

	// GetTraderExportSnapshotWithResponse Trader export snapshot metadata
	//
	// Returns export source-range, completeness, volume reconciliation, row-count estimate, and large-export policy for one trader. To download the full dataset programmatically, POST to this same path to submit an async export job (json | ndjson | csv), then poll the status route and follow the download route once ready.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/export (the `GetTraderExportSnapshot` operationId).
	GetTraderExportSnapshotWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetTraderExportSnapshotResponse, error)

	// SubmitTraderExportWithResponse Submit a trader dataset export job
	//
	// Queues an async export of the trader's full dataset in the requested format (json default, ndjson, or csv) and returns the job. Poll the status route, then follow the download route once status is 'ready'. Quotas are the per-user daily and per-address hourly export caps, keyed on the API key owner so an API key never widens its owner's quota.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/trader/{address}/export (the `SubmitTraderExport` operationId).
	SubmitTraderExportWithResponse(ctx context.Context, address string, params *SubmitTraderExportParams, reqEditors ...RequestEditorFn) (*SubmitTraderExportResponse, error)

	// DownloadTraderExportWithResponse Download a finished trader export
	//
	// Redirects (302) to a short-lived presigned URL for the finished export file once the job status is 'ready'. The file is gzip-compressed and served with the format's Content-Type (application/json, application/x-ndjson, or text/csv). Returns 400 while the job is not yet ready (poll the status route first).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/export/download (the `DownloadTraderExport` operationId).
	DownloadTraderExportWithResponse(ctx context.Context, address string, params *DownloadTraderExportParams, reqEditors ...RequestEditorFn) (*DownloadTraderExportResponse, error)

	// GetTraderExportStatusWithResponse Poll a trader export job
	//
	// Returns the current state of a submitted export job (queued | running | ready | failed) for the authenticated API key.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/export/status (the `GetTraderExportStatus` operationId).
	GetTraderExportStatusWithResponse(ctx context.Context, address string, params *GetTraderExportStatusParams, reqEditors ...RequestEditorFn) (*GetTraderExportStatusResponse, error)

	// GetTraderPnlWithResponse Get trader P&L time series
	//
	// Returns a trader's daily P&L time series and pre-derived stats from the precomputed daily_pnl read model: entries (daily cumulative P&L), period stats (all/90d/30d/7d), monthly aggregation, per-year totals, and the drawdown series. Reads the refreshed read model, not a per-request equity replay. A resolved trader with no daily P&L returns an empty structured object (HTTP 200); an unknown address returns 404. Spans both providers wherever the read model has the trader's series.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/pnl (the `GetTraderPnl` operationId).
	GetTraderPnlWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetTraderPnlResponse, error)

	// GetPositionTimelineWithResponse Get a trader's position timeline for one market
	//
	// Returns stored Polymarket fills for one tracked trader in one market, newest first, with outcome-specific running_amount and running_avg_price including earlier stored fills before pagination. The {address} segment accepts the same identity shapes as the plural alias: wallet, username, trd_-prefixed trader id, bare integer traders.id, or @username, resolved with precedence @username -> wallet -> trd_ -> integer -> username. A leading @ resolves the rest as a username only, which is how to reach an all-digit username that the integer rule reads as an id. Only HOT and WARM traders are served; others return 404. The cumulative buy-weighted fill average is unchanged by sells. Split, merge, redemption and neg-risk activity are excluded; totals are not complete holdings or provider current-position avgPrice. Cursor-paginated; values stay stable across page sizes/cursors for unchanged source history.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/trader/{address}/position-timeline (the `GetPositionTimeline` operationId).
	GetPositionTimelineWithResponse(ctx context.Context, address string, params *GetPositionTimelineParams, reqEditors ...RequestEditorFn) (*GetPositionTimelineResponse, error)

	// BatchGetTradersWithBodyWithResponse Batch trader intelligence
	//
	// Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).
	BatchGetTradersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BatchGetTradersResponse, error)

	// BatchGetTradersWithResponse Batch trader intelligence
	//
	// Returns trader intelligence for 1-25 wallet addresses or known usernames. Results preserve request order, duplicate inputs return duplicate rows, and each item is charged one batch item unit before execution. Unknown trader lookups return data with sync_status "unknown" matching the single trader endpoint.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/traders/batch (the `BatchGetTraders` operationId).
	BatchGetTradersWithResponse(ctx context.Context, body BatchGetTradersJSONRequestBody, reqEditors ...RequestEditorFn) (*BatchGetTradersResponse, error)

	// GetPositionTimelineByIdWithResponse Get a trader's position timeline (unified identity resolver)
	//
	// Unified trader-timeline route (#4975). {trader} accepts all five identity shapes - 0x... wallet, username, trd_-prefixed trader id, bare integer id, and @username (a username lookup only, for all-digit usernames) - resolved by the single shared trader-identity resolver. Returns stored Polymarket fills for one tracked trader in one market, newest first, with server-computed running_amount and running_avg_price. Only HOT and WARM tier traders are tracked; other traders return 404. Response payload matches the singular GET /api/v1/trader/{address}/position-timeline route for the same (trader, market), except for the per-request meta.request_id. The prior integer-id-only variant is preserved: the same path now accepts every identity shape.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/traders/{trader}/position-timeline (the `GetPositionTimelineById` operationId).
	GetPositionTimelineByIdWithResponse(ctx context.Context, trader string, params *GetPositionTimelineByIdParams, reqEditors ...RequestEditorFn) (*GetPositionTimelineByIdResponse, error)

	// GetUsageWithResponse Inspect current API usage without spending primary request quota
	//
	// Returns the authenticated caller sliding-window request budget and UTC-day usage. This endpoint is authenticated and does not increment the primary Redis rate-limit counter or log itself into the API usage table; it is separately throttled at 100 reads/minute per user to protect the usage-count query. UTC-day totals use finalized quarter-hour rollups plus the disjoint raw interval through request time; unavailable rollup progress returns an error.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/usage (the `GetUsage` operationId).
	GetUsageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsageResponse, error)

	// ListWebhooksWithResponse List builder webhook destinations
	//
	// Returns webhook destinations owned by the authenticated API key user. Disabled endpoints are omitted. Subscribable event_types and their payload shapes are described by GET /api/v1/webhooks/events. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/webhooks (the `ListWebhooks` operationId).
	ListWebhooksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)

	// CreateWebhookWithBodyWithResponse Create a builder webhook destination
	//
	// Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhookWithBodyWithResponse(ctx context.Context, params *CreateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)

	// CreateWebhookWithResponse Create a builder webhook destination
	//
	// Creates a pending HTTPS webhook destination. The response includes one-time signing_secret and verification.token values. Deliveries are not sent until the endpoint is verified, and verification requires the destination to answer 2xx to a signed webhook.verification challenge (see POST /api/v1/webhooks/{id}/verify). The subscribable event_types and their data payload shapes are described by GET /api/v1/webhooks/events; the per-endpoint delivery log is GET /api/v1/webhooks/{id}/deliveries. Four subscribable event types are Pro-only and only deliver to API keys on an active Pro subscription. whale_trades_inserted is one of them, gated by the same SubscriberScope::InsiderOnly mechanism as the other three (each type carries its own LiveEventContract entry; they share the scope value). The other three: wallet_grade_changed (data: wallet, trader_id, old_grade, new_grade, direction (upgrade|downgrade), skill_index, final_score, date) fires on a Pass-2 grade transition; insider_radar_flag_raised (data: trade_id, wallet, trader_id, condition_id, suspicion_score, track, side (yes|no), size, price) fires the first time a trade's suspicion score crosses the radar flag threshold; smart_money_flow_detected (data: condition_id, net_flow_usd, abs_net_flow_usd, dominant_side (yes|no), grade_floor (S|A|B|C|D|F), whale_trade_count, window) fires when a scheduled scanner detects ranked-trader net flow crossing a threshold (up or down) on a market. Delivery signing: each delivery request carries an HMAC-SHA256 signature in the x-0xinsider-signature header formatted as v1=<hex>, where <hex> is HMAC-SHA256(signing_secret, "<timestamp>.<raw_request_body>"). The signed <timestamp> is sent separately as x-0xinsider-timestamp (unix seconds). To verify a delivery: read x-0xinsider-timestamp, reject it if it differs from the current time by more than 300 seconds, recompute v1=<hex> over "<timestamp>.<raw_body>" with your signing_secret, and compare against x-0xinsider-signature using a constant-time comparison. Each delivery also carries x-0xinsider-event-id, x-0xinsider-event-type, x-0xinsider-delivery-id, and x-0xinsider-delivery-attempt headers.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/webhooks (the `CreateWebhook` operationId).
	CreateWebhookWithResponse(ctx context.Context, params *CreateWebhookParams, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)

	// ListWebhookEventsWithResponse List webhook event catalog
	//
	// Self-describing catalog of every webhook event type: its description, data payload shape, and whether it is active (has a firing producer) or dormant (subscribable but not yet delivered). The catalog is identical for every authenticated key and exposes no owner-scoped data. Pro-only event types (whale_trades_inserted, wallet_grade_changed, insider_radar_flag_raised, smart_money_flow_detected) appear in the catalog but only deliver to API keys on an active Pro subscription.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/webhooks/events (the `ListWebhookEvents` operationId).
	ListWebhookEventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWebhookEventsResponse, error)

	// DeleteWebhookWithResponse Disable a builder webhook destination
	//
	// Soft-deletes a webhook destination owned by the authenticated API key user. Existing delivery audit rows remain retained.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /api/v1/webhooks/{id} (the `DeleteWebhook` operationId).
	DeleteWebhookWithResponse(ctx context.Context, id int64, params *DeleteWebhookParams, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)

	// GetWebhookWithResponse Get one builder webhook destination
	//
	// Returns one webhook destination owned by the authenticated API key user.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/webhooks/{id} (the `GetWebhook` operationId).
	GetWebhookWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)

	// UpdateWebhookWithBodyWithResponse Update a builder webhook destination
	//
	// Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).
	UpdateWebhookWithBodyWithResponse(ctx context.Context, id int64, params *UpdateWebhookParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)

	// UpdateWebhookWithResponse Update a builder webhook destination
	//
	// Updates name, HTTPS URL, event types, or enabled state. URL changes force pending_verification and return a new verification token; the new destination must answer 2xx to the signed webhook.verification challenge before deliveries resume. A URL change returns 409 with error.reason=webhook_delivery_in_progress while this destination has an active delivery; retry the same mutation after that request completes.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /api/v1/webhooks/{id} (the `UpdateWebhook` operationId).
	UpdateWebhookWithResponse(ctx context.Context, id int64, params *UpdateWebhookParams, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)

	// ListWebhookDeliveriesWithResponse List webhook delivery log
	//
	// Recent delivery attempts for one webhook destination owned by the authenticated API key user, newest first, with opaque cursor pagination. Returns 404 (identical to an unknown id) when the endpoint is not owned by the caller, so a non-owner cannot tell an owned-but-empty log apart from someone else's endpoint. Delivery rows omit the request body and signing secret.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/webhooks/{id}/deliveries (the `ListWebhookDeliveries` operationId).
	ListWebhookDeliveriesWithResponse(ctx context.Context, id int64, params *ListWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListWebhookDeliveriesResponse, error)

	// RotateWebhookSecretWithResponse Rotate a builder webhook signing secret
	//
	// Rotates the endpoint signing secret and returns the new signing_secret once in the response. Returns 409 with error.reason=webhook_delivery_in_progress while a live delivery freezes the current signing nonce; retry after it completes.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/webhooks/{id}/rotate-secret (the `RotateWebhookSecret` operationId).
	RotateWebhookSecretWithResponse(ctx context.Context, id int64, params *RotateWebhookSecretParams, reqEditors ...RequestEditorFn) (*RotateWebhookSecretResponse, error)

	// VerifyWebhookWithBodyWithResponse Verify a builder webhook destination
	//
	// Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).
	VerifyWebhookWithBodyWithResponse(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyWebhookResponse, error)

	// VerifyWebhookWithResponse Verify a builder webhook destination
	//
	// Activates a pending webhook destination. Two conditions must both hold: the one-time verification token matches and has not expired, AND the destination answers 2xx to a signed challenge this operation POSTs to the endpoint's stored url. The challenge body is {"type":"webhook.verification","token":"<verification_token>","webhook_id":<id>}. It carries x-0xinsider-event-type: webhook.verification plus the same x-0xinsider-timestamp and x-0xinsider-signature headers a delivery carries, signed with that endpoint's signing_secret, so verify it exactly as you verify a delivery. Answer any 2xx within 10 seconds; the challenge response body is never read, and the challenge follows no redirects. A status outside 2xx, no answer within 10 seconds, or a url that does not resolve to a publicly routable address leaves status at pending_verification and returns 422. The token alone never activates an endpoint.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /api/v1/webhooks/{id}/verify (the `VerifyWebhook` operationId).
	VerifyWebhookWithResponse(ctx context.Context, id int64, body VerifyWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyWebhookResponse, error)

	// ListWhaleTradesWithResponse List whale trades
	//
	// Returns recent large trades with signal scoring and persisted suspicion facts. Filter by size, category, trader grade, or persisted suspicion. Filters are applied before pagination, and every request uses SQL-backed limit + 1 pagination so has_more and next_cursor reflect the filtered result set. Cursor-paginated, newest first. Market categories come from provider-backed market_canonical identity.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/whale-trades (the `ListWhaleTrades` operationId).
	ListWhaleTradesWithResponse(ctx context.Context, params *ListWhaleTradesParams, reqEditors ...RequestEditorFn) (*ListWhaleTradesResponse, error)

	// ListWhaleTradeHistoryWithResponse Replay historical whale trades
	//
	// Returns historical whale trades from local whale_alerts rows, not request-time provider fetches. Filter by condition_id, trader, category, minimum grade, persisted suspicion, platform, and RFC3339 from/to windows. All filters are pushed into SQL before LIMIT, every request uses SQL-backed limit + 1 pagination, and results are ordered newest first by traded_at desc, id desc. Metadata exposes local_replay source and best_effort completeness.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/whale-trades/history (the `ListWhaleTradeHistory` operationId).
	ListWhaleTradeHistoryWithResponse(ctx context.Context, params *ListWhaleTradeHistoryParams, reqEditors ...RequestEditorFn) (*ListWhaleTradeHistoryResponse, error)

	// GetWhaleTradeWithResponse Get whale trade by ID
	//
	// Returns one whale trade by raw whale_alerts.id or the wt_-prefixed id emitted by list and history responses.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/whale-trades/{id} (the `GetWhaleTrade` operationId).
	GetWhaleTradeWithResponse(ctx context.Context, id string, params *GetWhaleTradeParams, reqEditors ...RequestEditorFn) (*GetWhaleTradeResponse, error)

	// ListWhaleTradeCounterpartyExecutionsWithResponse Page counterparty executions
	//
	// Returns a bounded execution page from the immutable snapshot emitted by whale-trade detail. A stale or changed snapshot returns a cursor-expired error so clients restart from detail.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions (the `ListWhaleTradeCounterpartyExecutions` operationId).
	ListWhaleTradeCounterpartyExecutionsWithResponse(ctx context.Context, id string, params *ListWhaleTradeCounterpartyExecutionsParams, reqEditors ...RequestEditorFn) (*ListWhaleTradeCounterpartyExecutionsResponse, error)

	// ListWhaleTradeCounterpartyMakersWithResponse Page maker counterparties
	//
	// Returns a bounded maker-wallet page for one exact execution. Percentages keep the complete execution denominator across pages.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /api/v1/whale-trades/{id}/counterparties/executions/{execution_id}/makers (the `ListWhaleTradeCounterpartyMakers` operationId).
	ListWhaleTradeCounterpartyMakersWithResponse(ctx context.Context, id string, executionId string, params *ListWhaleTradeCounterpartyMakersParams, reqEditors ...RequestEditorFn) (*ListWhaleTradeCounterpartyMakersResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ContentSearchResult

type ContentSearchResult struct {
	// ContentId Backend-owned stable editorial content identifier.
	ContentId string `json:"content_id"`

	// Excerpt Search-result excerpt.
	Excerpt string `json:"excerpt"`

	// Kind Editorial content kind.
	Kind ContentSearchResultKind `json:"kind"`

	// Slug Backend-owned content slug.
	Slug string `json:"slug"`

	// Title Editorial title.
	Title string `json:"title"`

	// Url Canonical first-party content URL.
	Url string `json:"url"`
}

ContentSearchResult defines model for ContentSearchResult.

type ContentSearchResultKind

type ContentSearchResultKind string

ContentSearchResultKind Editorial content kind.

const (
	ContentSearchResultKindComparison ContentSearchResultKind = "comparison"
	ContentSearchResultKindGlossary   ContentSearchResultKind = "glossary"
	ContentSearchResultKindLearn      ContentSearchResultKind = "learn"
	ContentSearchResultKindResearch   ContentSearchResultKind = "research"
	ContentSearchResultKindStrategy   ContentSearchResultKind = "strategy"
)

Defines values for ContentSearchResultKind.

func (ContentSearchResultKind) Valid

func (e ContentSearchResultKind) Valid() bool

Valid indicates whether the value is a known member of the ContentSearchResultKind enum.

type CounterpartyAnalysis

type CounterpartyAnalysis struct {
	// AnalysisId Stable digest binding page cursors to one snapshot and execution set.
	AnalysisId              *string                 `json:"analysis_id,omitempty"`
	AvailableExecutionCount int                     `json:"available_execution_count"`
	ExecutionCount          int                     `json:"execution_count"`
	Executions              []CounterpartyExecution `json:"executions"`

	// ExecutionsNextCursor Stable cursor after the last execution included in the bounded inline page.
	ExecutionsNextCursor *string `json:"executions_next_cursor,omitempty"`

	// SnapshotId Deterministic immutable membership snapshot for this detail response.
	SnapshotId                *string                    `json:"snapshot_id,omitempty"`
	Status                    CounterpartyAnalysisStatus `json:"status"`
	UnavailableExecutionCount int                        `json:"unavailable_execution_count"`
	UnavailableReason         *string                    `json:"unavailable_reason,omitempty"`
}

CounterpartyAnalysis defines model for CounterpartyAnalysis.

type CounterpartyAnalysisStatus

type CounterpartyAnalysisStatus string

CounterpartyAnalysisStatus defines model for CounterpartyAnalysis.Status.

const (
	CounterpartyAnalysisStatusAvailable   CounterpartyAnalysisStatus = "available"
	CounterpartyAnalysisStatusPartial     CounterpartyAnalysisStatus = "partial"
	CounterpartyAnalysisStatusUnavailable CounterpartyAnalysisStatus = "unavailable"
)

Defines values for CounterpartyAnalysisStatus.

func (CounterpartyAnalysisStatus) Valid

func (e CounterpartyAnalysisStatus) Valid() bool

Valid indicates whether the value is a known member of the CounterpartyAnalysisStatus enum.

type CounterpartyExecution

type CounterpartyExecution struct {
	ExchangeFamily CounterpartyExecutionExchangeFamily `json:"exchange_family"`
	ExecutionId    string                              `json:"execution_id"`
	Makers         []CounterpartyParticipant           `json:"makers"`

	// MakersNextCursor Stable cursor after the last maker included in the bounded inline page.
	MakersNextCursor      *string                 `json:"makers_next_cursor,omitempty"`
	OrdersMatchedLogIndex int                     `json:"orders_matched_log_index"`
	Taker                 CounterpartyParticipant `json:"taker"`
	TransactionHash       string                  `json:"transaction_hash"`
}

CounterpartyExecution defines model for CounterpartyExecution.

type CounterpartyExecutionExchangeFamily

type CounterpartyExecutionExchangeFamily string

CounterpartyExecutionExchangeFamily defines model for CounterpartyExecution.ExchangeFamily.

const (
	CtfV2        CounterpartyExecutionExchangeFamily = "ctf_v2"
	NegRiskCtfV2 CounterpartyExecutionExchangeFamily = "neg_risk_ctf_v2"
)

Defines values for CounterpartyExecutionExchangeFamily.

func (CounterpartyExecutionExchangeFamily) Valid

Valid indicates whether the value is a known member of the CounterpartyExecutionExchangeFamily enum.

type CounterpartyMakerPage

type CounterpartyMakerPage struct {
	AnalysisId  string                    `json:"analysis_id"`
	ExecutionId string                    `json:"execution_id"`
	Items       []CounterpartyParticipant `json:"items"`

	// NextCursor Cursor bound to the analysis, execution, last full-denominator share total, and wallet.
	NextCursor *string `json:"next_cursor,omitempty"`
	SnapshotId string  `json:"snapshot_id"`
}

CounterpartyMakerPage defines model for CounterpartyMakerPage.

type CounterpartyMatchBreakdown

type CounterpartyMatchBreakdown struct {
	// FilledShares Exact decimal shares.
	FilledShares   string                              `json:"filled_shares"`
	MakerFillCount int                                 `json:"maker_fill_count"`
	MatchType      CounterpartyMatchBreakdownMatchType `json:"match_type"`
}

CounterpartyMatchBreakdown defines model for CounterpartyMatchBreakdown.

type CounterpartyMatchBreakdownMatchType

type CounterpartyMatchBreakdownMatchType string

CounterpartyMatchBreakdownMatchType defines model for CounterpartyMatchBreakdown.MatchType.

const (
	COMPLEMENTARY CounterpartyMatchBreakdownMatchType = "COMPLEMENTARY"
	MERGE         CounterpartyMatchBreakdownMatchType = "MERGE"
	MINT          CounterpartyMatchBreakdownMatchType = "MINT"
)

Defines values for CounterpartyMatchBreakdownMatchType.

func (CounterpartyMatchBreakdownMatchType) Valid

Valid indicates whether the value is a known member of the CounterpartyMatchBreakdownMatchType enum.

type CounterpartyParticipant

type CounterpartyParticipant struct {
	CounterpartyKey string  `json:"counterparty_key"`
	DisplayName     *string `json:"display_name,omitempty"`

	// ExecutionWallet Lowercase Polygon wallet from the exact OrderFilled log.
	ExecutionWallet string `json:"execution_wallet"`

	// FilledShares Exact decimal shares.
	FilledShares string `json:"filled_shares"`

	// FilledUsdc Exact decimal USDC amount.
	FilledUsdc     string                                `json:"filled_usdc"`
	Grade          *string                               `json:"grade,omitempty"`
	IdentityStatus CounterpartyParticipantIdentityStatus `json:"identity_status"`
	MakerFillCount int                                   `json:"maker_fill_count"`
	MatchBreakdown []CounterpartyMatchBreakdown          `json:"match_breakdown"`

	// ProfileSegment 0xinsider profile path segment for this participant, present only when the execution wallet has a tracked trader: `@<username>` when that username resolves to the trader alone, otherwise the trader's lowercase wallet. Percent-encode the part after `@` and append to `https://0xinsider.com/profile/`.
	ProfileSegment   *string `json:"profile_segment,omitempty"`
	ResolutionBlock  *int    `json:"resolution_block,omitempty"`
	ResolutionSource *string `json:"resolution_source,omitempty"`
	ResolvedUserId   *string `json:"resolved_user_id,omitempty"`

	// SharePct Participant share of the exact execution, from 0 through 100.
	SharePct     string  `json:"share_pct"`
	WalletFamily *string `json:"wallet_family,omitempty"`
}

CounterpartyParticipant defines model for CounterpartyParticipant.

type CounterpartyParticipantIdentityStatus

type CounterpartyParticipantIdentityStatus string

CounterpartyParticipantIdentityStatus defines model for CounterpartyParticipant.IdentityStatus.

const (
	CounterpartyParticipantIdentityStatusInfrastructure CounterpartyParticipantIdentityStatus = "infrastructure"
	CounterpartyParticipantIdentityStatusResolved       CounterpartyParticipantIdentityStatus = "resolved"
	CounterpartyParticipantIdentityStatusUnavailable    CounterpartyParticipantIdentityStatus = "unavailable"
)

Defines values for CounterpartyParticipantIdentityStatus.

func (CounterpartyParticipantIdentityStatus) Valid

Valid indicates whether the value is a known member of the CounterpartyParticipantIdentityStatus enum.

type CreateMcpJsonRpcResponse200JSONResponseBodyId0

type CreateMcpJsonRpcResponse200JSONResponseBodyId0 = string

CreateMcpJsonRpcResponse200JSONResponseBodyId0 defines parameters for CreateMcpJsonRpcResponse.

type CreateMcpJsonRpcResponse200JSONResponseBodyId1

type CreateMcpJsonRpcResponse200JSONResponseBodyId1 = float32

CreateMcpJsonRpcResponse200JSONResponseBodyId1 defines parameters for CreateMcpJsonRpcResponse.

type CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc

type CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc string

CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc defines parameters for CreateMcpJsonRpcResponse.

const (
	CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpcN20 CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc = "2.0"
)

Defines values for CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc.

func (CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc) Valid

Valid indicates whether the value is a known member of the CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc enum.

type CreateMcpJsonRpcResponse200JSONResponseBody_Id

type CreateMcpJsonRpcResponse200JSONResponseBody_Id struct {
	// contains filtered or unexported fields
}

CreateMcpJsonRpcResponse200JSONResponseBody_Id defines parameters for CreateMcpJsonRpcResponse.

func (CreateMcpJsonRpcResponse200JSONResponseBody_Id) AsCreateMcpJsonRpcResponse200JSONResponseBodyId0

func (t CreateMcpJsonRpcResponse200JSONResponseBody_Id) AsCreateMcpJsonRpcResponse200JSONResponseBodyId0() (CreateMcpJsonRpcResponse200JSONResponseBodyId0, error)

AsCreateMcpJsonRpcResponse200JSONResponseBodyId0 returns the union data inside the CreateMcpJsonRpcResponse200JSONResponseBody_Id as a CreateMcpJsonRpcResponse200JSONResponseBodyId0

func (CreateMcpJsonRpcResponse200JSONResponseBody_Id) AsCreateMcpJsonRpcResponse200JSONResponseBodyId1

func (t CreateMcpJsonRpcResponse200JSONResponseBody_Id) AsCreateMcpJsonRpcResponse200JSONResponseBodyId1() (CreateMcpJsonRpcResponse200JSONResponseBodyId1, error)

AsCreateMcpJsonRpcResponse200JSONResponseBodyId1 returns the union data inside the CreateMcpJsonRpcResponse200JSONResponseBody_Id as a CreateMcpJsonRpcResponse200JSONResponseBodyId1

func (*CreateMcpJsonRpcResponse200JSONResponseBody_Id) FromCreateMcpJsonRpcResponse200JSONResponseBodyId0

func (t *CreateMcpJsonRpcResponse200JSONResponseBody_Id) FromCreateMcpJsonRpcResponse200JSONResponseBodyId0(v CreateMcpJsonRpcResponse200JSONResponseBodyId0) error

FromCreateMcpJsonRpcResponse200JSONResponseBodyId0 overwrites any union data inside the CreateMcpJsonRpcResponse200JSONResponseBody_Id as the provided CreateMcpJsonRpcResponse200JSONResponseBodyId0

func (*CreateMcpJsonRpcResponse200JSONResponseBody_Id) FromCreateMcpJsonRpcResponse200JSONResponseBodyId1

func (t *CreateMcpJsonRpcResponse200JSONResponseBody_Id) FromCreateMcpJsonRpcResponse200JSONResponseBodyId1(v CreateMcpJsonRpcResponse200JSONResponseBodyId1) error

FromCreateMcpJsonRpcResponse200JSONResponseBodyId1 overwrites any union data inside the CreateMcpJsonRpcResponse200JSONResponseBody_Id as the provided CreateMcpJsonRpcResponse200JSONResponseBodyId1

func (CreateMcpJsonRpcResponse200JSONResponseBody_Id) MarshalJSON

func (*CreateMcpJsonRpcResponse200JSONResponseBody_Id) MergeCreateMcpJsonRpcResponse200JSONResponseBodyId0

func (t *CreateMcpJsonRpcResponse200JSONResponseBody_Id) MergeCreateMcpJsonRpcResponse200JSONResponseBodyId0(v CreateMcpJsonRpcResponse200JSONResponseBodyId0) error

MergeCreateMcpJsonRpcResponse200JSONResponseBodyId0 performs a merge with any union data inside the CreateMcpJsonRpcResponse200JSONResponseBody_Id, using the provided CreateMcpJsonRpcResponse200JSONResponseBodyId0

func (*CreateMcpJsonRpcResponse200JSONResponseBody_Id) MergeCreateMcpJsonRpcResponse200JSONResponseBodyId1

func (t *CreateMcpJsonRpcResponse200JSONResponseBody_Id) MergeCreateMcpJsonRpcResponse200JSONResponseBodyId1(v CreateMcpJsonRpcResponse200JSONResponseBodyId1) error

MergeCreateMcpJsonRpcResponse200JSONResponseBodyId1 performs a merge with any union data inside the CreateMcpJsonRpcResponse200JSONResponseBody_Id, using the provided CreateMcpJsonRpcResponse200JSONResponseBodyId1

func (*CreateMcpJsonRpcResponse200JSONResponseBody_Id) UnmarshalJSON

type CreateMcpJsonRpcResponseJSONBody

type CreateMcpJsonRpcResponseJSONBody struct {
	// Id Request identifier echoed in the JSON-RPC response; notifications omit it.
	Id *CreateMcpJsonRpcResponseJSONBody_Id `json:"id,omitempty"`

	// Jsonrpc JSON-RPC protocol version; this server accepts 2.0.
	Jsonrpc CreateMcpJsonRpcResponseJSONBodyJsonrpc `json:"jsonrpc"`

	// Method MCP method to invoke.
	Method CreateMcpJsonRpcResponseJSONBodyMethod `json:"method"`

	// Params Method-specific MCP parameters.
	Params *map[string]interface{} `json:"params,omitempty"`
}

CreateMcpJsonRpcResponseJSONBody defines parameters for CreateMcpJsonRpcResponse.

type CreateMcpJsonRpcResponseJSONBodyId0

type CreateMcpJsonRpcResponseJSONBodyId0 = string

CreateMcpJsonRpcResponseJSONBodyId0 defines parameters for CreateMcpJsonRpcResponse.

type CreateMcpJsonRpcResponseJSONBodyId1

type CreateMcpJsonRpcResponseJSONBodyId1 = float32

CreateMcpJsonRpcResponseJSONBodyId1 defines parameters for CreateMcpJsonRpcResponse.

type CreateMcpJsonRpcResponseJSONBodyJsonrpc

type CreateMcpJsonRpcResponseJSONBodyJsonrpc string

CreateMcpJsonRpcResponseJSONBodyJsonrpc defines parameters for CreateMcpJsonRpcResponse.

const (
	CreateMcpJsonRpcResponseJSONBodyJsonrpcN20 CreateMcpJsonRpcResponseJSONBodyJsonrpc = "2.0"
)

Defines values for CreateMcpJsonRpcResponseJSONBodyJsonrpc.

func (CreateMcpJsonRpcResponseJSONBodyJsonrpc) Valid

Valid indicates whether the value is a known member of the CreateMcpJsonRpcResponseJSONBodyJsonrpc enum.

type CreateMcpJsonRpcResponseJSONBodyMethod

type CreateMcpJsonRpcResponseJSONBodyMethod string

CreateMcpJsonRpcResponseJSONBodyMethod defines parameters for CreateMcpJsonRpcResponse.

const (
	Initialize               CreateMcpJsonRpcResponseJSONBodyMethod = "initialize"
	Notificationsinitialized CreateMcpJsonRpcResponseJSONBodyMethod = "notifications/initialized"
	Ping                     CreateMcpJsonRpcResponseJSONBodyMethod = "ping"
	Toolscall                CreateMcpJsonRpcResponseJSONBodyMethod = "tools/call"
	Toolslist                CreateMcpJsonRpcResponseJSONBodyMethod = "tools/list"
)

Defines values for CreateMcpJsonRpcResponseJSONBodyMethod.

func (CreateMcpJsonRpcResponseJSONBodyMethod) Valid

Valid indicates whether the value is a known member of the CreateMcpJsonRpcResponseJSONBodyMethod enum.

type CreateMcpJsonRpcResponseJSONBody_Id

type CreateMcpJsonRpcResponseJSONBody_Id struct {
	// contains filtered or unexported fields
}

CreateMcpJsonRpcResponseJSONBody_Id defines parameters for CreateMcpJsonRpcResponse.

func (CreateMcpJsonRpcResponseJSONBody_Id) AsCreateMcpJsonRpcResponseJSONBodyId0

func (t CreateMcpJsonRpcResponseJSONBody_Id) AsCreateMcpJsonRpcResponseJSONBodyId0() (CreateMcpJsonRpcResponseJSONBodyId0, error)

AsCreateMcpJsonRpcResponseJSONBodyId0 returns the union data inside the CreateMcpJsonRpcResponseJSONBody_Id as a CreateMcpJsonRpcResponseJSONBodyId0

func (CreateMcpJsonRpcResponseJSONBody_Id) AsCreateMcpJsonRpcResponseJSONBodyId1

func (t CreateMcpJsonRpcResponseJSONBody_Id) AsCreateMcpJsonRpcResponseJSONBodyId1() (CreateMcpJsonRpcResponseJSONBodyId1, error)

AsCreateMcpJsonRpcResponseJSONBodyId1 returns the union data inside the CreateMcpJsonRpcResponseJSONBody_Id as a CreateMcpJsonRpcResponseJSONBodyId1

func (*CreateMcpJsonRpcResponseJSONBody_Id) FromCreateMcpJsonRpcResponseJSONBodyId0

func (t *CreateMcpJsonRpcResponseJSONBody_Id) FromCreateMcpJsonRpcResponseJSONBodyId0(v CreateMcpJsonRpcResponseJSONBodyId0) error

FromCreateMcpJsonRpcResponseJSONBodyId0 overwrites any union data inside the CreateMcpJsonRpcResponseJSONBody_Id as the provided CreateMcpJsonRpcResponseJSONBodyId0

func (*CreateMcpJsonRpcResponseJSONBody_Id) FromCreateMcpJsonRpcResponseJSONBodyId1

func (t *CreateMcpJsonRpcResponseJSONBody_Id) FromCreateMcpJsonRpcResponseJSONBodyId1(v CreateMcpJsonRpcResponseJSONBodyId1) error

FromCreateMcpJsonRpcResponseJSONBodyId1 overwrites any union data inside the CreateMcpJsonRpcResponseJSONBody_Id as the provided CreateMcpJsonRpcResponseJSONBodyId1

func (CreateMcpJsonRpcResponseJSONBody_Id) MarshalJSON

func (t CreateMcpJsonRpcResponseJSONBody_Id) MarshalJSON() ([]byte, error)

func (*CreateMcpJsonRpcResponseJSONBody_Id) MergeCreateMcpJsonRpcResponseJSONBodyId0

func (t *CreateMcpJsonRpcResponseJSONBody_Id) MergeCreateMcpJsonRpcResponseJSONBodyId0(v CreateMcpJsonRpcResponseJSONBodyId0) error

MergeCreateMcpJsonRpcResponseJSONBodyId0 performs a merge with any union data inside the CreateMcpJsonRpcResponseJSONBody_Id, using the provided CreateMcpJsonRpcResponseJSONBodyId0

func (*CreateMcpJsonRpcResponseJSONBody_Id) MergeCreateMcpJsonRpcResponseJSONBodyId1

func (t *CreateMcpJsonRpcResponseJSONBody_Id) MergeCreateMcpJsonRpcResponseJSONBodyId1(v CreateMcpJsonRpcResponseJSONBodyId1) error

MergeCreateMcpJsonRpcResponseJSONBodyId1 performs a merge with any union data inside the CreateMcpJsonRpcResponseJSONBody_Id, using the provided CreateMcpJsonRpcResponseJSONBodyId1

func (*CreateMcpJsonRpcResponseJSONBody_Id) UnmarshalJSON

func (t *CreateMcpJsonRpcResponseJSONBody_Id) UnmarshalJSON(b []byte) error

type CreateMcpJsonRpcResponseJSONRequestBody

type CreateMcpJsonRpcResponseJSONRequestBody CreateMcpJsonRpcResponseJSONBody

CreateMcpJsonRpcResponseJSONRequestBody defines body for CreateMcpJsonRpcResponse for application/json ContentType.

type CreateMcpJsonRpcResponseParams

type CreateMcpJsonRpcResponseParams struct {
	// Token Legacy API-key query parameter for exact /api/v1/mcp only. Every other protected V1 route rejects it. Prefer Authorization: Bearer <token> or the stdio package because URL secrets are easier to leak through logs and history. The retirement date is unknown until external URL-only client compatibility is checked.
	Token *string `form:"token,omitempty" json:"token,omitempty"`

	// McpSessionId Session ID minted by the server on initialize; echoed on every subsequent request.
	McpSessionId *string `json:"Mcp-Session-Id,omitempty"`
}

CreateMcpJsonRpcResponseParams defines parameters for CreateMcpJsonRpcResponse.

type CreateMcpJsonRpcResponseResponse

type CreateMcpJsonRpcResponseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Error *struct {
			Code    int    `json:"code"`
			Message string `json:"message"`
		} `json:"error,omitempty"`
		Id      *CreateMcpJsonRpcResponse200JSONResponseBody_Id    `json:"id"`
		Jsonrpc CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc `json:"jsonrpc"`
		Result  *map[string]interface{}                            `json:"result,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *McpJsonRpcError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CreateMcpJsonRpcResponseResponse200Headers
	// Headers202 the parsed response headers for an HTTP 202 response
	Headers202 *CreateMcpJsonRpcResponseResponse202Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateMcpJsonRpcResponseResponse429Headers
}

func ParseCreateMcpJsonRpcResponseResponse

func ParseCreateMcpJsonRpcResponseResponse(rsp *http.Response) (*CreateMcpJsonRpcResponseResponse, error)

ParseCreateMcpJsonRpcResponseResponse parses an HTTP response from a CreateMcpJsonRpcResponseWithResponse call

func (CreateMcpJsonRpcResponseResponse) ContentType

func (r CreateMcpJsonRpcResponseResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateMcpJsonRpcResponseResponse) GetBody

func (r CreateMcpJsonRpcResponseResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateMcpJsonRpcResponseResponse) GetJSON200

func (r CreateMcpJsonRpcResponseResponse) GetJSON200() *struct {
	Error *struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"error,omitempty"`
	Id      *CreateMcpJsonRpcResponse200JSONResponseBody_Id    `json:"id"`
	Jsonrpc CreateMcpJsonRpcResponse200JSONResponseBodyJsonrpc `json:"jsonrpc"`
	Result  *map[string]interface{}                            `json:"result,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateMcpJsonRpcResponseResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateMcpJsonRpcResponseResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateMcpJsonRpcResponseResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (CreateMcpJsonRpcResponseResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateMcpJsonRpcResponseResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (CreateMcpJsonRpcResponseResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateMcpJsonRpcResponseResponse) Status

Status returns HTTPResponse.Status

func (CreateMcpJsonRpcResponseResponse) StatusCode

func (r CreateMcpJsonRpcResponseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMcpJsonRpcResponseResponse200Headers

type CreateMcpJsonRpcResponseResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

CreateMcpJsonRpcResponseResponse200Headers the declared response headers of an HTTP 200 response for CreateMcpJsonRpcResponse

type CreateMcpJsonRpcResponseResponse202Headers

type CreateMcpJsonRpcResponseResponse202Headers struct {
	XUsageAccounting *string
}

CreateMcpJsonRpcResponseResponse202Headers the declared response headers of an HTTP 202 response for CreateMcpJsonRpcResponse

type CreateMcpJsonRpcResponseResponse429Headers

type CreateMcpJsonRpcResponseResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

CreateMcpJsonRpcResponseResponse429Headers the declared response headers of an HTTP 429 response for CreateMcpJsonRpcResponse

type CreateWebhook200JSONResponseBodyObject

type CreateWebhook200JSONResponseBodyObject string

CreateWebhook200JSONResponseBodyObject defines parameters for CreateWebhook.

const (
	CreateWebhook200JSONResponseBodyObjectWebhook CreateWebhook200JSONResponseBodyObject = "webhook"
)

Defines values for CreateWebhook200JSONResponseBodyObject.

func (CreateWebhook200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the CreateWebhook200JSONResponseBodyObject enum.

type CreateWebhookJSONRequestBody

type CreateWebhookJSONRequestBody = CreateWebhookRequest

CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType.

type CreateWebhookParams

type CreateWebhookParams struct {
	// IdempotencyKey Optional safe-retry key. Reuse the same value only when retrying the exact same mutation request body; a different body returns 422 and an in-flight matching request returns 409.
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

CreateWebhookParams defines parameters for CreateWebhook.

type CreateWebhookRequest

type CreateWebhookRequest struct {
	EventTypes []WebhookEventType `json:"event_types"`
	Name       string             `json:"name"`

	// Url Public HTTPS callback URL on the default port 443. Local, private, and internal targets are rejected, as is any explicit port other than 443 and any URL carrying credentials. Each user's URLs are unique after normalizing HTTPS scheme/host case, trailing DNS dots and port 443; path/query case is preserved. Pending verification and PATCH-disabled endpoints still reserve their stored URL. The destination must answer the signed webhook.verification challenge with a 2xx before POST /api/v1/webhooks/{id}/verify can activate the endpoint.
	Url string `json:"url"`
}

CreateWebhookRequest defines model for CreateWebhookRequest.

type CreateWebhookResponse

type CreateWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WebhookEndpoint                        `json:"data"`
		Meta   ResponseMeta                           `json:"meta"`
		Object CreateWebhook200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *ApiError
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CreateWebhookResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateWebhookResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CreateWebhookResponse503Headers
}

func ParseCreateWebhookResponse

func ParseCreateWebhookResponse(rsp *http.Response) (*CreateWebhookResponse, error)

ParseCreateWebhookResponse parses an HTTP response from a CreateWebhookWithResponse call

func (CreateWebhookResponse) ContentType

func (r CreateWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateWebhookResponse) GetBody

func (r CreateWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateWebhookResponse) GetJSON200

func (r CreateWebhookResponse) GetJSON200() *struct {
	Data   WebhookEndpoint                        `json:"data"`
	Meta   ResponseMeta                           `json:"meta"`
	Object CreateWebhook200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateWebhookResponse) GetJSON400

func (r CreateWebhookResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateWebhookResponse) GetJSON401

func (r CreateWebhookResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateWebhookResponse) GetJSON402

func (r CreateWebhookResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (CreateWebhookResponse) GetJSON403

func (r CreateWebhookResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateWebhookResponse) GetJSON409

func (r CreateWebhookResponse) GetJSON409() *ApiError

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateWebhookResponse) GetJSON422

func (r CreateWebhookResponse) GetJSON422() *ApiError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateWebhookResponse) GetJSON423

func (r CreateWebhookResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (CreateWebhookResponse) GetJSON429

func (r CreateWebhookResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (CreateWebhookResponse) GetJSON500

func (r CreateWebhookResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateWebhookResponse) GetJSON503

func (r CreateWebhookResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CreateWebhookResponse) Status

func (r CreateWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (CreateWebhookResponse) StatusCode

func (r CreateWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWebhookResponse200Headers

type CreateWebhookResponse200Headers struct {
	XUsageAccounting *string
}

CreateWebhookResponse200Headers the declared response headers of an HTTP 200 response for CreateWebhook

type CreateWebhookResponse429Headers

type CreateWebhookResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

CreateWebhookResponse429Headers the declared response headers of an HTTP 429 response for CreateWebhook

type CreateWebhookResponse503Headers

type CreateWebhookResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

CreateWebhookResponse503Headers the declared response headers of an HTTP 503 response for CreateWebhook

type DeleteWebhook200JSONResponseBodyObject

type DeleteWebhook200JSONResponseBodyObject string

DeleteWebhook200JSONResponseBodyObject defines parameters for DeleteWebhook.

const (
	DeleteWebhook200JSONResponseBodyObjectWebhook DeleteWebhook200JSONResponseBodyObject = "webhook"
)

Defines values for DeleteWebhook200JSONResponseBodyObject.

func (DeleteWebhook200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the DeleteWebhook200JSONResponseBodyObject enum.

type DeleteWebhookParams

type DeleteWebhookParams struct {
	// IdempotencyKey Optional safe-retry key. Reuse the same value only when retrying the exact same mutation request body; a different body returns 422 and an in-flight matching request returns 409.
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

DeleteWebhookParams defines parameters for DeleteWebhook.

type DeleteWebhookResponse

type DeleteWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WebhookEndpoint                        `json:"data"`
		Meta   ResponseMeta                           `json:"meta"`
		Object DeleteWebhook200JSONResponseBodyObject `json:"object"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *ApiError
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *DeleteWebhookResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteWebhookResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *DeleteWebhookResponse503Headers
}

func ParseDeleteWebhookResponse

func ParseDeleteWebhookResponse(rsp *http.Response) (*DeleteWebhookResponse, error)

ParseDeleteWebhookResponse parses an HTTP response from a DeleteWebhookWithResponse call

func (DeleteWebhookResponse) ContentType

func (r DeleteWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteWebhookResponse) GetBody

func (r DeleteWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteWebhookResponse) GetJSON200

func (r DeleteWebhookResponse) GetJSON200() *struct {
	Data   WebhookEndpoint                        `json:"data"`
	Meta   ResponseMeta                           `json:"meta"`
	Object DeleteWebhook200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteWebhookResponse) GetJSON401

func (r DeleteWebhookResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteWebhookResponse) GetJSON402

func (r DeleteWebhookResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (DeleteWebhookResponse) GetJSON403

func (r DeleteWebhookResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteWebhookResponse) GetJSON404

func (r DeleteWebhookResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteWebhookResponse) GetJSON409

func (r DeleteWebhookResponse) GetJSON409() *ApiError

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteWebhookResponse) GetJSON422

func (r DeleteWebhookResponse) GetJSON422() *ApiError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (DeleteWebhookResponse) GetJSON423

func (r DeleteWebhookResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (DeleteWebhookResponse) GetJSON429

func (r DeleteWebhookResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DeleteWebhookResponse) GetJSON500

func (r DeleteWebhookResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteWebhookResponse) GetJSON503

func (r DeleteWebhookResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DeleteWebhookResponse) Status

func (r DeleteWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteWebhookResponse) StatusCode

func (r DeleteWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWebhookResponse200Headers

type DeleteWebhookResponse200Headers struct {
	XUsageAccounting *string
}

DeleteWebhookResponse200Headers the declared response headers of an HTTP 200 response for DeleteWebhook

type DeleteWebhookResponse429Headers

type DeleteWebhookResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

DeleteWebhookResponse429Headers the declared response headers of an HTTP 429 response for DeleteWebhook

type DeleteWebhookResponse503Headers

type DeleteWebhookResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

DeleteWebhookResponse503Headers the declared response headers of an HTTP 503 response for DeleteWebhook

type DownloadTraderExportParams

type DownloadTraderExportParams struct {
	// JobId Export job id returned by the submit route.
	JobId int64 `form:"job_id" json:"job_id"`
}

DownloadTraderExportParams defines parameters for DownloadTraderExport.

type DownloadTraderExportResponse

type DownloadTraderExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers302 the parsed response headers for an HTTP 302 response
	Headers302 *DownloadTraderExportResponse302Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DownloadTraderExportResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *DownloadTraderExportResponse503Headers
}

func ParseDownloadTraderExportResponse

func ParseDownloadTraderExportResponse(rsp *http.Response) (*DownloadTraderExportResponse, error)

ParseDownloadTraderExportResponse parses an HTTP response from a DownloadTraderExportWithResponse call

func (DownloadTraderExportResponse) ContentType

func (r DownloadTraderExportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DownloadTraderExportResponse) GetBody

func (r DownloadTraderExportResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DownloadTraderExportResponse) GetJSON400

func (r DownloadTraderExportResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DownloadTraderExportResponse) GetJSON401

func (r DownloadTraderExportResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DownloadTraderExportResponse) GetJSON402

func (r DownloadTraderExportResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (DownloadTraderExportResponse) GetJSON403

func (r DownloadTraderExportResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DownloadTraderExportResponse) GetJSON404

func (r DownloadTraderExportResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DownloadTraderExportResponse) GetJSON423

func (r DownloadTraderExportResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (DownloadTraderExportResponse) GetJSON429

func (r DownloadTraderExportResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DownloadTraderExportResponse) GetJSON500

func (r DownloadTraderExportResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DownloadTraderExportResponse) GetJSON503

func (r DownloadTraderExportResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DownloadTraderExportResponse) Status

Status returns HTTPResponse.Status

func (DownloadTraderExportResponse) StatusCode

func (r DownloadTraderExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadTraderExportResponse302Headers

type DownloadTraderExportResponse302Headers struct {
	Location string
}

DownloadTraderExportResponse302Headers the declared response headers of an HTTP 302 response for DownloadTraderExport

type DownloadTraderExportResponse429Headers

type DownloadTraderExportResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

DownloadTraderExportResponse429Headers the declared response headers of an HTTP 429 response for DownloadTraderExport

type DownloadTraderExportResponse503Headers

type DownloadTraderExportResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

DownloadTraderExportResponse503Headers the declared response headers of an HTTP 503 response for DownloadTraderExport

type EventReplayEvent

type EventReplayEvent struct {
	// Cursor Cursor positioned at this event.
	Cursor    string               `json:"cursor"`
	Freshness EventReplayFreshness `json:"freshness"`

	// Id Opaque event ID; currently identical to cursor for the whale_alerts.id sequence.
	Id          string                 `json:"id"`
	Payload     map[string]interface{} `json:"payload"`
	PublishedAt time.Time              `json:"published_at"`

	// Sequence Global whale_alerts.id sequence.
	Sequence int                  `json:"sequence"`
	Source   EventReplaySource    `json:"source"`
	Type     EventReplayEventType `json:"type"`
}

EventReplayEvent defines model for EventReplayEvent.

type EventReplayEventType

type EventReplayEventType string

EventReplayEventType defines model for EventReplayEvent.Type.

const (
	EventReplayEventTypeWhaleTradesInserted EventReplayEventType = "whale_trades_inserted"
)

Defines values for EventReplayEventType.

func (EventReplayEventType) Valid

func (e EventReplayEventType) Valid() bool

Valid indicates whether the value is a known member of the EventReplayEventType enum.

type EventReplayFreshness

type EventReplayFreshness struct {
	ObservedAt time.Time                  `json:"observed_at"`
	Status     EventReplayFreshnessStatus `json:"status"`
}

EventReplayFreshness defines model for EventReplayFreshness.

type EventReplayFreshnessStatus

type EventReplayFreshnessStatus string

EventReplayFreshnessStatus defines model for EventReplayFreshness.Status.

const (
	Observed EventReplayFreshnessStatus = "observed"
)

Defines values for EventReplayFreshnessStatus.

func (EventReplayFreshnessStatus) Valid

func (e EventReplayFreshnessStatus) Valid() bool

Valid indicates whether the value is a known member of the EventReplayFreshnessStatus enum.

type EventReplayMeta

type EventReplayMeta struct {
	CacheAgeS    *int `json:"cache_age_s,omitempty"`
	Cached       bool `json:"cached"`
	Completeness struct {
		Reason string                            `json:"reason"`
		Status EventReplayMetaCompletenessStatus `json:"status"`
	} `json:"completeness"`

	// Cost Advisory request weight (relative compute cost). 1 for simple reads; higher for heavier endpoints. Not a credit/price.
	Cost   int `json:"cost"`
	Replay struct {
		FromCursor   string                        `json:"from_cursor"`
		FromSequence int                           `json:"from_sequence"`
		Ordering     EventReplayMetaReplayOrdering `json:"ordering"`
		ToCursor     string                        `json:"to_cursor"`
		ToSequence   int                           `json:"to_sequence"`
	} `json:"replay"`

	// RequestId Unique request ID (req_ prefix).
	RequestId string `json:"request_id"`
	Retention struct {
		CursorExpired  EventReplayMetaRetentionCursorExpired `json:"cursor_expired"`
		RetainedEvents int                                   `json:"retained_events"`
		Status         EventReplayMetaRetentionStatus        `json:"status"`
	} `json:"retention"`
}

EventReplayMeta defines model for EventReplayMeta.

type EventReplayMetaCompletenessStatus

type EventReplayMetaCompletenessStatus string

EventReplayMetaCompletenessStatus defines model for EventReplayMeta.Completeness.Status.

const (
	EventReplayMetaCompletenessStatusCaughtUp EventReplayMetaCompletenessStatus = "caught_up"
	EventReplayMetaCompletenessStatusComplete EventReplayMetaCompletenessStatus = "complete"
)

Defines values for EventReplayMetaCompletenessStatus.

func (EventReplayMetaCompletenessStatus) Valid

Valid indicates whether the value is a known member of the EventReplayMetaCompletenessStatus enum.

type EventReplayMetaReplayOrdering

type EventReplayMetaReplayOrdering string

EventReplayMetaReplayOrdering defines model for EventReplayMeta.Replay.Ordering.

const (
	WhaleAlertsIdAsc EventReplayMetaReplayOrdering = "whale_alerts_id_asc"
)

Defines values for EventReplayMetaReplayOrdering.

func (EventReplayMetaReplayOrdering) Valid

Valid indicates whether the value is a known member of the EventReplayMetaReplayOrdering enum.

type EventReplayMetaRetentionCursorExpired

type EventReplayMetaRetentionCursorExpired bool

EventReplayMetaRetentionCursorExpired defines model for EventReplayMeta.Retention.CursorExpired.

const (
	EventReplayMetaRetentionCursorExpiredFalse EventReplayMetaRetentionCursorExpired = false
)

Defines values for EventReplayMetaRetentionCursorExpired.

func (EventReplayMetaRetentionCursorExpired) Valid

Valid indicates whether the value is a known member of the EventReplayMetaRetentionCursorExpired enum.

type EventReplayMetaRetentionStatus

type EventReplayMetaRetentionStatus string

EventReplayMetaRetentionStatus defines model for EventReplayMeta.Retention.Status.

const (
	DurableDatabase EventReplayMetaRetentionStatus = "durable_database"
)

Defines values for EventReplayMetaRetentionStatus.

func (EventReplayMetaRetentionStatus) Valid

Valid indicates whether the value is a known member of the EventReplayMetaRetentionStatus enum.

type EventReplaySource

type EventReplaySource struct {
	Kind                       EventReplaySourceKind                       `json:"kind"`
	Owner                      EventReplaySourceOwner                      `json:"owner"`
	ProducerFamily             EventReplaySourceProducerFamily             `json:"producer_family"`
	ProviderFetchAtRequestTime EventReplaySourceProviderFetchAtRequestTime `json:"provider_fetch_at_request_time"`
}

EventReplaySource defines model for EventReplaySource.

type EventReplaySourceKind

type EventReplaySourceKind string

EventReplaySourceKind defines model for EventReplaySource.Kind.

const (
	LocalDurableReplay EventReplaySourceKind = "local_durable_replay"
)

Defines values for EventReplaySourceKind.

func (EventReplaySourceKind) Valid

func (e EventReplaySourceKind) Valid() bool

Valid indicates whether the value is a known member of the EventReplaySourceKind enum.

type EventReplaySourceOwner

type EventReplaySourceOwner string

EventReplaySourceOwner defines model for EventReplaySource.Owner.

const (
	EventReplaySourceOwnerWhaleAlerts EventReplaySourceOwner = "whale_alerts"
)

Defines values for EventReplaySourceOwner.

func (EventReplaySourceOwner) Valid

func (e EventReplaySourceOwner) Valid() bool

Valid indicates whether the value is a known member of the EventReplaySourceOwner enum.

type EventReplaySourceProducerFamily

type EventReplaySourceProducerFamily string

EventReplaySourceProducerFamily defines model for EventReplaySource.ProducerFamily.

const (
	WhaleTrades EventReplaySourceProducerFamily = "whale_trades"
)

Defines values for EventReplaySourceProducerFamily.

func (EventReplaySourceProducerFamily) Valid

Valid indicates whether the value is a known member of the EventReplaySourceProducerFamily enum.

type EventReplaySourceProviderFetchAtRequestTime

type EventReplaySourceProviderFetchAtRequestTime bool

EventReplaySourceProviderFetchAtRequestTime defines model for EventReplaySource.ProviderFetchAtRequestTime.

const (
	EventReplaySourceProviderFetchAtRequestTimeFalse EventReplaySourceProviderFetchAtRequestTime = false
)

Defines values for EventReplaySourceProviderFetchAtRequestTime.

func (EventReplaySourceProviderFetchAtRequestTime) Valid

Valid indicates whether the value is a known member of the EventReplaySourceProviderFetchAtRequestTime enum.

type ExploreEntry

type ExploreEntry struct {
	// contains filtered or unexported fields
}

ExploreEntry defines model for ExploreEntry.

func (ExploreEntry) AsExploreGroup

func (t ExploreEntry) AsExploreGroup() (ExploreGroup, error)

AsExploreGroup returns the union data inside the ExploreEntry as a ExploreGroup

func (ExploreEntry) AsExploreStandalone

func (t ExploreEntry) AsExploreStandalone() (ExploreStandalone, error)

AsExploreStandalone returns the union data inside the ExploreEntry as a ExploreStandalone

func (ExploreEntry) Discriminator

func (t ExploreEntry) Discriminator() (string, error)

func (*ExploreEntry) FromExploreGroup

func (t *ExploreEntry) FromExploreGroup(v ExploreGroup) error

FromExploreGroup overwrites any union data inside the ExploreEntry as the provided ExploreGroup

func (*ExploreEntry) FromExploreStandalone

func (t *ExploreEntry) FromExploreStandalone(v ExploreStandalone) error

FromExploreStandalone overwrites any union data inside the ExploreEntry as the provided ExploreStandalone

func (ExploreEntry) MarshalJSON

func (t ExploreEntry) MarshalJSON() ([]byte, error)

func (*ExploreEntry) MergeExploreGroup

func (t *ExploreEntry) MergeExploreGroup(v ExploreGroup) error

MergeExploreGroup performs a merge with any union data inside the ExploreEntry, using the provided ExploreGroup

func (*ExploreEntry) MergeExploreStandalone

func (t *ExploreEntry) MergeExploreStandalone(v ExploreStandalone) error

MergeExploreStandalone performs a merge with any union data inside the ExploreEntry, using the provided ExploreStandalone

func (*ExploreEntry) UnmarshalJSON

func (t *ExploreEntry) UnmarshalJSON(b []byte) error

func (ExploreEntry) ValueByDiscriminator

func (t ExploreEntry) ValueByDiscriminator() (interface{}, error)

type ExploreFacetValue

type ExploreFacetValue struct {
	Count int    `json:"count"`
	Label string `json:"label"`
	Value string `json:"value"`
}

ExploreFacetValue defines model for ExploreFacetValue.

type ExploreFacets

type ExploreFacets struct {
	Categories []ExploreFacetValue `json:"categories"`
	Platforms  []ExploreFacetValue `json:"platforms"`
}

ExploreFacets defines model for ExploreFacets.

type ExploreGroup

type ExploreGroup struct {
	Category  *string `json:"category,omitempty"`
	EventSlug string  `json:"event_slug"`
	Image     *string `json:"image,omitempty"`

	// Markets Markets in the event cluster, ranked by volume with condition_id as the tie-breaker. The selected representative is retained within the 12-market cap.
	Markets     []ExploreMarket  `json:"markets"`
	ParentTitle string           `json:"parent_title"`
	Platform    *string          `json:"platform,omitempty"`
	RepVolume   *float32         `json:"rep_volume,omitempty"`
	RepWhales   *int             `json:"rep_whales,omitempty"`
	Type        ExploreGroupType `json:"type"`
}

ExploreGroup defines model for ExploreGroup.

type ExploreGroupType

type ExploreGroupType string

ExploreGroupType defines model for ExploreGroup.Type.

const (
	Group ExploreGroupType = "group"
)

Defines values for ExploreGroupType.

func (ExploreGroupType) Valid

func (e ExploreGroupType) Valid() bool

Valid indicates whether the value is a known member of the ExploreGroupType enum.

type ExploreMarket

type ExploreMarket struct {
	Category     *string    `json:"category,omitempty"`
	ChangePct24h *float32   `json:"change_pct_24h,omitempty"`
	ConditionId  string     `json:"condition_id"`
	CreatedAt    *time.Time `json:"created_at,omitempty"`

	// DiscoverScore Backend-owned deterministic market discovery score used by the hot sort.
	DiscoverScore *float32   `json:"discover_score,omitempty"`
	EndDate       *time.Time `json:"end_date,omitempty"`
	EventSlug     *string    `json:"event_slug,omitempty"`
	Freshness     *struct {
		EnrichmentStatus ExploreMarketFreshnessEnrichmentStatus `json:"enrichment_status"`
		PriceStatus      ExploreMarketFreshnessPriceStatus      `json:"price_status"`
	} `json:"freshness,omitempty"`
	Icon           *string      `json:"icon,omitempty"`
	Id             string       `json:"id"`
	Image          *string      `json:"image,omitempty"`
	LastPrice      *float32     `json:"last_price,omitempty"`
	Liquidity      *float32     `json:"liquidity,omitempty"`
	NoChangePct24h *float32     `json:"no_change_pct_24h,omitempty"`
	NoLastPrice    *float32     `json:"no_last_price,omitempty"`
	NoPricePoints  *[][]float32 `json:"no_price_points,omitempty"`
	OiChangePct    *float32     `json:"oi_change_pct,omitempty"`
	OpenInterest   *float32     `json:"open_interest,omitempty"`
	OutcomeNo      *string      `json:"outcome_no,omitempty"`

	// OutcomeNoLabel Display label for the NO/outcome_index=1 side, enriched from provider outcome metadata when available.
	OutcomeNoLabel *string `json:"outcome_no_label,omitempty"`

	// OutcomeNoProviderId Provider-owned NO/outcome_index=1 identifier when available for trade-ticket wiring.
	OutcomeNoProviderId *int    `json:"outcome_no_provider_id,omitempty"`
	OutcomeYes          *string `json:"outcome_yes,omitempty"`

	// OutcomeYesLabel Display label for the YES/outcome_index=0 side, enriched from provider outcome metadata when available.
	OutcomeYesLabel *string `json:"outcome_yes_label,omitempty"`

	// OutcomeYesProviderId Provider-owned YES/outcome_index=0 identifier when available for trade-ticket wiring.
	OutcomeYesProviderId *int         `json:"outcome_yes_provider_id,omitempty"`
	Platform             *string      `json:"platform,omitempty"`
	PricePoints          *[][]float32 `json:"price_points,omitempty"`
	ScoreComponents      *struct {
		LiquiditySignal     *float32 `json:"liquidity_signal,omitempty"`
		MissingPricePenalty float32  `json:"missing_price_penalty"`
		PriceMoveSignal     *float32 `json:"price_move_signal,omitempty"`
		RecencySignal       *float32 `json:"recency_signal,omitempty"`
		SmartMoneySignal    *float32 `json:"smart_money_signal,omitempty"`
		VolumeSignal        *float32 `json:"volume_signal,omitempty"`
		WhaleSignal         *float32 `json:"whale_signal,omitempty"`
	} `json:"score_components,omitempty"`

	// Slug Provider-native market slug.
	Slug       *string             `json:"slug,omitempty"`
	SmartCount *int                `json:"smart_count,omitempty"`
	SmartLabel *string             `json:"smart_label,omitempty"`
	SmartScore *float32            `json:"smart_score,omitempty"`
	Status     ExploreMarketStatus `json:"status"`

	// Title Non-empty market title.
	Title string `json:"title"`

	// TokenIdNo The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the NO outcome; null when unavailable (e.g. unsynced markets).
	TokenIdNo *string `json:"token_id_no,omitempty"`

	// TokenIdYes The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the YES outcome; null when unavailable (e.g. unsynced markets).
	TokenIdYes *string `json:"token_id_yes,omitempty"`

	// UrlSlug First-party market page slug used for internal links.
	UrlSlug              *string    `json:"url_slug,omitempty"`
	Volume               *float32   `json:"volume,omitempty"`
	WhaleDistinctWallets *int       `json:"whale_distinct_wallets,omitempty"`
	WhaleLastTradeAt     *time.Time `json:"whale_last_trade_at,omitempty"`
	WhaleTotalUsd        *float32   `json:"whale_total_usd,omitempty"`
	WhaleTradeCount      *int       `json:"whale_trade_count,omitempty"`
}

ExploreMarket defines model for ExploreMarket.

type ExploreMarketFreshnessEnrichmentStatus

type ExploreMarketFreshnessEnrichmentStatus string

ExploreMarketFreshnessEnrichmentStatus defines model for ExploreMarket.Freshness.EnrichmentStatus.

const (
	ExploreMarketFreshnessEnrichmentStatusAvailable   ExploreMarketFreshnessEnrichmentStatus = "available"
	ExploreMarketFreshnessEnrichmentStatusUnavailable ExploreMarketFreshnessEnrichmentStatus = "unavailable"
)

Defines values for ExploreMarketFreshnessEnrichmentStatus.

func (ExploreMarketFreshnessEnrichmentStatus) Valid

Valid indicates whether the value is a known member of the ExploreMarketFreshnessEnrichmentStatus enum.

type ExploreMarketFreshnessPriceStatus

type ExploreMarketFreshnessPriceStatus string

ExploreMarketFreshnessPriceStatus defines model for ExploreMarket.Freshness.PriceStatus.

const (
	ExploreMarketFreshnessPriceStatusAvailable   ExploreMarketFreshnessPriceStatus = "available"
	ExploreMarketFreshnessPriceStatusUnavailable ExploreMarketFreshnessPriceStatus = "unavailable"
)

Defines values for ExploreMarketFreshnessPriceStatus.

func (ExploreMarketFreshnessPriceStatus) Valid

Valid indicates whether the value is a known member of the ExploreMarketFreshnessPriceStatus enum.

type ExploreMarketStatus

type ExploreMarketStatus string

ExploreMarketStatus defines model for ExploreMarket.Status.

const (
	ExploreMarketStatusActive ExploreMarketStatus = "active"
	ExploreMarketStatusClosed ExploreMarketStatus = "closed"
)

Defines values for ExploreMarketStatus.

func (ExploreMarketStatus) Valid

func (e ExploreMarketStatus) Valid() bool

Valid indicates whether the value is a known member of the ExploreMarketStatus enum.

type ExploreMarkets200JSONResponseBodyObject

type ExploreMarkets200JSONResponseBodyObject string

ExploreMarkets200JSONResponseBodyObject defines parameters for ExploreMarkets.

const (
	ExploreMarkets200JSONResponseBodyObjectList ExploreMarkets200JSONResponseBodyObject = "list"
)

Defines values for ExploreMarkets200JSONResponseBodyObject.

func (ExploreMarkets200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ExploreMarkets200JSONResponseBodyObject enum.

type ExploreMarketsParams

type ExploreMarketsParams struct {
	// Category Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket. Facet values are returned as the canonical bucket.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Status Filter by market status.
	Status *ExploreMarketsParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// Platform Filter by source platform. Explore is Polymarket-only; polymarket is the only supported value and the parameter is accepted for backward-compatibility but does not change the result set.
	Platform *ExploreMarketsParamsPlatform `form:"platform,omitempty" json:"platform,omitempty"`

	// Sort Sort order for the discovery feed.
	Sort *ExploreMarketsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Cursor Opaque pagination cursor from the previous response.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Page size.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Q Keyword search against market titles. At most 64 characters before whitespace trimming.
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ExploreMarketsParams defines parameters for ExploreMarkets.

type ExploreMarketsParamsPlatform

type ExploreMarketsParamsPlatform string

ExploreMarketsParamsPlatform defines parameters for ExploreMarkets.

const (
	ExploreMarketsParamsPlatformPolymarket ExploreMarketsParamsPlatform = "polymarket"
)

Defines values for ExploreMarketsParamsPlatform.

func (ExploreMarketsParamsPlatform) Valid

Valid indicates whether the value is a known member of the ExploreMarketsParamsPlatform enum.

type ExploreMarketsParamsSort

type ExploreMarketsParamsSort string

ExploreMarketsParamsSort defines parameters for ExploreMarkets.

const (
	ExploreMarketsParamsSortExpiring ExploreMarketsParamsSort = "expiring"
	ExploreMarketsParamsSortHot      ExploreMarketsParamsSort = "hot"
	ExploreMarketsParamsSortNewest   ExploreMarketsParamsSort = "newest"
	ExploreMarketsParamsSortTrending ExploreMarketsParamsSort = "trending"
	ExploreMarketsParamsSortVolume   ExploreMarketsParamsSort = "volume"
	ExploreMarketsParamsSortWhales   ExploreMarketsParamsSort = "whales"
)

Defines values for ExploreMarketsParamsSort.

func (ExploreMarketsParamsSort) Valid

func (e ExploreMarketsParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ExploreMarketsParamsSort enum.

type ExploreMarketsParamsStatus

type ExploreMarketsParamsStatus string

ExploreMarketsParamsStatus defines parameters for ExploreMarkets.

const (
	ExploreMarketsParamsStatusActive ExploreMarketsParamsStatus = "active"
	ExploreMarketsParamsStatusAll    ExploreMarketsParamsStatus = "all"
	ExploreMarketsParamsStatusClosed ExploreMarketsParamsStatus = "closed"
)

Defines values for ExploreMarketsParamsStatus.

func (ExploreMarketsParamsStatus) Valid

func (e ExploreMarketsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ExploreMarketsParamsStatus enum.

type ExploreMarketsResponse

type ExploreMarketsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		// ComputedAt When this response body was computed. Present whenever the body came from, or was just written to, the 60s explore cache. Pair it with fresh_for_seconds to derive how much longer the body may be reused: fresh_for_seconds - age(computed_at). Excluded from the ETag validator, so a body recomputed with identical data keeps its validator.
		ComputedAt *time.Time     `json:"computed_at,omitempty"`
		Data       []ExploreEntry `json:"data"`
		Facets     ExploreFacets  `json:"facets"`

		// FreshForSeconds How long the body computed at computed_at is good for, in seconds. Deliberately not pre-subtracted: a cached body cannot carry a number that changes while it sits in the cache. Excluded from the ETag validator.
		FreshForSeconds *int                                    `json:"fresh_for_seconds,omitempty"`
		HasMore         bool                                    `json:"has_more"`
		Meta            ResponseMeta                            `json:"meta"`
		NextCursor      *string                                 `json:"next_cursor,omitempty"`
		Object          ExploreMarkets200JSONResponseBodyObject `json:"object"`

		// Total Total matching visible entries after grouping. Present on the first page and omitted on cursor pages.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ExploreMarketsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ExploreMarketsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ExploreMarketsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ExploreMarketsResponse503Headers
}

func ParseExploreMarketsResponse

func ParseExploreMarketsResponse(rsp *http.Response) (*ExploreMarketsResponse, error)

ParseExploreMarketsResponse parses an HTTP response from a ExploreMarketsWithResponse call

func (ExploreMarketsResponse) ContentType

func (r ExploreMarketsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ExploreMarketsResponse) GetBody

func (r ExploreMarketsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ExploreMarketsResponse) GetJSON200

func (r ExploreMarketsResponse) GetJSON200() *struct {
	// ComputedAt When this response body was computed. Present whenever the body came from, or was just written to, the 60s explore cache. Pair it with fresh_for_seconds to derive how much longer the body may be reused: fresh_for_seconds - age(computed_at). Excluded from the ETag validator, so a body recomputed with identical data keeps its validator.
	ComputedAt *time.Time     `json:"computed_at,omitempty"`
	Data       []ExploreEntry `json:"data"`
	Facets     ExploreFacets  `json:"facets"`

	// FreshForSeconds How long the body computed at computed_at is good for, in seconds. Deliberately not pre-subtracted: a cached body cannot carry a number that changes while it sits in the cache. Excluded from the ETag validator.
	FreshForSeconds *int                                    `json:"fresh_for_seconds,omitempty"`
	HasMore         bool                                    `json:"has_more"`
	Meta            ResponseMeta                            `json:"meta"`
	NextCursor      *string                                 `json:"next_cursor,omitempty"`
	Object          ExploreMarkets200JSONResponseBodyObject `json:"object"`

	// Total Total matching visible entries after grouping. Present on the first page and omitted on cursor pages.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ExploreMarketsResponse) GetJSON400

func (r ExploreMarketsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ExploreMarketsResponse) GetJSON401

func (r ExploreMarketsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ExploreMarketsResponse) GetJSON402

func (r ExploreMarketsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ExploreMarketsResponse) GetJSON403

func (r ExploreMarketsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ExploreMarketsResponse) GetJSON423

func (r ExploreMarketsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ExploreMarketsResponse) GetJSON429

func (r ExploreMarketsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ExploreMarketsResponse) GetJSON503

func (r ExploreMarketsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ExploreMarketsResponse) Status

func (r ExploreMarketsResponse) Status() string

Status returns HTTPResponse.Status

func (ExploreMarketsResponse) StatusCode

func (r ExploreMarketsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ExploreMarketsResponse200Headers

type ExploreMarketsResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ExploreMarketsResponse200Headers the declared response headers of an HTTP 200 response for ExploreMarkets

type ExploreMarketsResponse304Headers

type ExploreMarketsResponse304Headers struct {
	ETag *string
}

ExploreMarketsResponse304Headers the declared response headers of an HTTP 304 response for ExploreMarkets

type ExploreMarketsResponse429Headers

type ExploreMarketsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ExploreMarketsResponse429Headers the declared response headers of an HTTP 429 response for ExploreMarkets

type ExploreMarketsResponse503Headers

type ExploreMarketsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ExploreMarketsResponse503Headers the declared response headers of an HTTP 503 response for ExploreMarkets

type ExploreStandalone

type ExploreStandalone struct {
	Market ExploreMarket         `json:"market"`
	Type   ExploreStandaloneType `json:"type"`
}

ExploreStandalone defines model for ExploreStandalone.

type ExploreStandaloneType

type ExploreStandaloneType string

ExploreStandaloneType defines model for ExploreStandalone.Type.

const (
	Standalone ExploreStandaloneType = "standalone"
)

Defines values for ExploreStandaloneType.

func (ExploreStandaloneType) Valid

func (e ExploreStandaloneType) Valid() bool

Valid indicates whether the value is a known member of the ExploreStandaloneType enum.

type ExportCompleteness

type ExportCompleteness struct {
	Reason       string                   `json:"reason"`
	Status       ExportCompletenessStatus `json:"status"`
	SyncCoverage float32                  `json:"sync_coverage"`
}

ExportCompleteness defines model for ExportCompleteness.

type ExportCompletenessStatus

type ExportCompletenessStatus string

ExportCompletenessStatus defines model for ExportCompleteness.Status.

const (
	ExportCompletenessStatusComplete ExportCompletenessStatus = "complete"
	ExportCompletenessStatusEmpty    ExportCompletenessStatus = "empty"
	ExportCompletenessStatusPartial  ExportCompletenessStatus = "partial"
)

Defines values for ExportCompletenessStatus.

func (ExportCompletenessStatus) Valid

func (e ExportCompletenessStatus) Valid() bool

Valid indicates whether the value is a known member of the ExportCompletenessStatus enum.

type ExportCounts

type ExportCounts struct {
	EstimatedSizeMb    float32 `json:"estimated_size_mb"`
	EstimatedTradeRows int     `json:"estimated_trade_rows"`
	ExportedMarkets    int     `json:"exported_markets"`
	PnlDays            int     `json:"pnl_days"`
}

ExportCounts defines model for ExportCounts.

type ExportSourceRange

type ExportSourceRange struct {
	FirstPnlDate           *openapi_types.Date `json:"first_pnl_date,omitempty"`
	LastPnlDate            *openapi_types.Date `json:"last_pnl_date,omitempty"`
	LatestMarketActivityAt *time.Time          `json:"latest_market_activity_at,omitempty"`
	LatestTradeAt          *time.Time          `json:"latest_trade_at,omitempty"`
}

ExportSourceRange defines model for ExportSourceRange.

type ExportVolumeReconciliation

type ExportVolumeReconciliation struct {
	ActivityVolumeCoverage    *float32 `json:"activity_volume_coverage,omitempty"`
	ExportedActivityVolume    float32  `json:"exported_activity_volume"`
	ExportedMarketCostBasis   float32  `json:"exported_market_cost_basis"`
	ProviderActivityVolumeGap *float32 `json:"provider_activity_volume_gap,omitempty"`
	ProviderLifetimeVolume    *float32 `json:"provider_lifetime_volume,omitempty"`
}

ExportVolumeReconciliation defines model for ExportVolumeReconciliation.

type GetApiDiscovery200JSONResponseBodyObject

type GetApiDiscovery200JSONResponseBodyObject string

GetApiDiscovery200JSONResponseBodyObject defines parameters for GetApiDiscovery.

const (
	GetApiDiscovery200JSONResponseBodyObjectApiDiscovery GetApiDiscovery200JSONResponseBodyObject = "api_discovery"
)

Defines values for GetApiDiscovery200JSONResponseBodyObject.

func (GetApiDiscovery200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetApiDiscovery200JSONResponseBodyObject enum.

type GetApiDiscoveryResponse

type GetApiDiscoveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   ApiDiscovery                             `json:"data"`
		Meta   ResponseMeta                             `json:"meta"`
		Object GetApiDiscovery200JSONResponseBodyObject `json:"object"`
	}
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetApiDiscoveryResponse429Headers
}

func ParseGetApiDiscoveryResponse

func ParseGetApiDiscoveryResponse(rsp *http.Response) (*GetApiDiscoveryResponse, error)

ParseGetApiDiscoveryResponse parses an HTTP response from a GetApiDiscoveryWithResponse call

func (GetApiDiscoveryResponse) ContentType

func (r GetApiDiscoveryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetApiDiscoveryResponse) GetBody

func (r GetApiDiscoveryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetApiDiscoveryResponse) GetJSON200

func (r GetApiDiscoveryResponse) GetJSON200() *struct {
	Data   ApiDiscovery                             `json:"data"`
	Meta   ResponseMeta                             `json:"meta"`
	Object GetApiDiscovery200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetApiDiscoveryResponse) GetJSON429

func (r GetApiDiscoveryResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetApiDiscoveryResponse) Status

func (r GetApiDiscoveryResponse) Status() string

Status returns HTTPResponse.Status

func (GetApiDiscoveryResponse) StatusCode

func (r GetApiDiscoveryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApiDiscoveryResponse429Headers

type GetApiDiscoveryResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetApiDiscoveryResponse429Headers the declared response headers of an HTTP 429 response for GetApiDiscovery

type GetDailyReportSnapshot200JSONResponseBodyObject

type GetDailyReportSnapshot200JSONResponseBodyObject string

GetDailyReportSnapshot200JSONResponseBodyObject defines parameters for GetDailyReportSnapshot.

const (
	GetDailyReportSnapshot200JSONResponseBodyObjectReportSnapshot GetDailyReportSnapshot200JSONResponseBodyObject = "report_snapshot"
)

Defines values for GetDailyReportSnapshot200JSONResponseBodyObject.

func (GetDailyReportSnapshot200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetDailyReportSnapshot200JSONResponseBodyObject enum.

type GetDailyReportSnapshotParams

type GetDailyReportSnapshotParams struct {
	// Date UTC report date in YYYY-MM-DD format.
	Date string `form:"date" json:"date"`
}

GetDailyReportSnapshotParams defines parameters for GetDailyReportSnapshot.

type GetDailyReportSnapshotResponse

type GetDailyReportSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   ReportSnapshot                                  `json:"data"`
		Meta   ResponseMeta                                    `json:"meta"`
		Object GetDailyReportSnapshot200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetDailyReportSnapshotResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetDailyReportSnapshotResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetDailyReportSnapshotResponse503Headers
}

func ParseGetDailyReportSnapshotResponse

func ParseGetDailyReportSnapshotResponse(rsp *http.Response) (*GetDailyReportSnapshotResponse, error)

ParseGetDailyReportSnapshotResponse parses an HTTP response from a GetDailyReportSnapshotWithResponse call

func (GetDailyReportSnapshotResponse) ContentType

func (r GetDailyReportSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDailyReportSnapshotResponse) GetBody

func (r GetDailyReportSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetDailyReportSnapshotResponse) GetJSON200

func (r GetDailyReportSnapshotResponse) GetJSON200() *struct {
	Data   ReportSnapshot                                  `json:"data"`
	Meta   ResponseMeta                                    `json:"meta"`
	Object GetDailyReportSnapshot200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON400

func (r GetDailyReportSnapshotResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON401

func (r GetDailyReportSnapshotResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON402

func (r GetDailyReportSnapshotResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON403

func (r GetDailyReportSnapshotResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON423

func (r GetDailyReportSnapshotResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON429

func (r GetDailyReportSnapshotResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON500

func (r GetDailyReportSnapshotResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetDailyReportSnapshotResponse) GetJSON503

func (r GetDailyReportSnapshotResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetDailyReportSnapshotResponse) Status

Status returns HTTPResponse.Status

func (GetDailyReportSnapshotResponse) StatusCode

func (r GetDailyReportSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDailyReportSnapshotResponse200Headers

type GetDailyReportSnapshotResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetDailyReportSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetDailyReportSnapshot

type GetDailyReportSnapshotResponse429Headers

type GetDailyReportSnapshotResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetDailyReportSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetDailyReportSnapshot

type GetDailyReportSnapshotResponse503Headers

type GetDailyReportSnapshotResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetDailyReportSnapshotResponse503Headers the declared response headers of an HTTP 503 response for GetDailyReportSnapshot

type GetEventReplaySince200JSONResponseBodyObject

type GetEventReplaySince200JSONResponseBodyObject string

GetEventReplaySince200JSONResponseBodyObject defines parameters for GetEventReplaySince.

const (
	EventReplay GetEventReplaySince200JSONResponseBodyObject = "event_replay"
)

Defines values for GetEventReplaySince200JSONResponseBodyObject.

func (GetEventReplaySince200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetEventReplaySince200JSONResponseBodyObject enum.

type GetEventReplaySinceParams

type GetEventReplaySinceParams struct {
	// Cursor Opaque event replay cursor returned as next_cursor by a prior response. The cursor maps to whale_alerts.id and is valid across backend replicas. Omit to fetch the latest durable public suffix.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Maximum durable public whale-trade events to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetEventReplaySinceParams defines parameters for GetEventReplaySince.

type GetEventReplaySinceResponse

type GetEventReplaySinceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []EventReplayEvent                           `json:"data"`
		HasMore    bool                                         `json:"has_more"`
		Meta       EventReplayMeta                              `json:"meta"`
		NextCursor string                                       `json:"next_cursor"`
		Object     GetEventReplaySince200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetEventReplaySinceResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetEventReplaySinceResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetEventReplaySinceResponse503Headers
}

func ParseGetEventReplaySinceResponse

func ParseGetEventReplaySinceResponse(rsp *http.Response) (*GetEventReplaySinceResponse, error)

ParseGetEventReplaySinceResponse parses an HTTP response from a GetEventReplaySinceWithResponse call

func (GetEventReplaySinceResponse) ContentType

func (r GetEventReplaySinceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEventReplaySinceResponse) GetBody

func (r GetEventReplaySinceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetEventReplaySinceResponse) GetJSON200

func (r GetEventReplaySinceResponse) GetJSON200() *struct {
	Data       []EventReplayEvent                           `json:"data"`
	HasMore    bool                                         `json:"has_more"`
	Meta       EventReplayMeta                              `json:"meta"`
	NextCursor string                                       `json:"next_cursor"`
	Object     GetEventReplaySince200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetEventReplaySinceResponse) GetJSON400

func (r GetEventReplaySinceResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetEventReplaySinceResponse) GetJSON401

func (r GetEventReplaySinceResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetEventReplaySinceResponse) GetJSON402

func (r GetEventReplaySinceResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetEventReplaySinceResponse) GetJSON403

func (r GetEventReplaySinceResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetEventReplaySinceResponse) GetJSON423

func (r GetEventReplaySinceResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetEventReplaySinceResponse) GetJSON429

func (r GetEventReplaySinceResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetEventReplaySinceResponse) GetJSON503

func (r GetEventReplaySinceResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetEventReplaySinceResponse) Status

Status returns HTTPResponse.Status

func (GetEventReplaySinceResponse) StatusCode

func (r GetEventReplaySinceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEventReplaySinceResponse200Headers

type GetEventReplaySinceResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetEventReplaySinceResponse200Headers the declared response headers of an HTTP 200 response for GetEventReplaySince

type GetEventReplaySinceResponse429Headers

type GetEventReplaySinceResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetEventReplaySinceResponse429Headers the declared response headers of an HTTP 429 response for GetEventReplaySince

type GetEventReplaySinceResponse503Headers

type GetEventReplaySinceResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetEventReplaySinceResponse503Headers the declared response headers of an HTTP 503 response for GetEventReplaySince

type GetHealth200JSONResponseBodyDataStatus

type GetHealth200JSONResponseBodyDataStatus string

GetHealth200JSONResponseBodyDataStatus defines parameters for GetHealth.

const (
	GetHealth200JSONResponseBodyDataStatusDegraded    GetHealth200JSONResponseBodyDataStatus = "degraded"
	GetHealth200JSONResponseBodyDataStatusDown        GetHealth200JSONResponseBodyDataStatus = "down"
	GetHealth200JSONResponseBodyDataStatusMaintenance GetHealth200JSONResponseBodyDataStatus = "maintenance"
	GetHealth200JSONResponseBodyDataStatusOk          GetHealth200JSONResponseBodyDataStatus = "ok"
)

Defines values for GetHealth200JSONResponseBodyDataStatus.

func (GetHealth200JSONResponseBodyDataStatus) Valid

Valid indicates whether the value is a known member of the GetHealth200JSONResponseBodyDataStatus enum.

type GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus

type GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus string

GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus defines parameters for GetHealth.

const (
	GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatusDegraded   GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus = "degraded"
	GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatusDown       GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus = "down"
	GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatusNotChecked GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus = "not_checked"
	GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatusOk         GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus = "ok"
)

Defines values for GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus.

func (GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus) Valid

Valid indicates whether the value is a known member of the GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus enum.

type GetHealth200JSONResponseBodyObject

type GetHealth200JSONResponseBodyObject string

GetHealth200JSONResponseBodyObject defines parameters for GetHealth.

const (
	Health GetHealth200JSONResponseBodyObject = "health"
)

Defines values for GetHealth200JSONResponseBodyObject.

func (GetHealth200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetHealth200JSONResponseBodyObject enum.

type GetHealthParams

type GetHealthParams struct {
	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetHealthParams defines parameters for GetHealth.

type GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data struct {
			Cache      *bool                                   `json:"cache,omitempty"`
			Db         *bool                                   `json:"db,omitempty"`
			Status     *GetHealth200JSONResponseBodyDataStatus `json:"status,omitempty"`
			Subsystems *struct {
				// BackgroundJobs Public-safe aggregate status for expected background job successful-completion heartbeats. Does not expose Redis keys, job names, raw errors, provider payloads, wallet addresses, or condition IDs.
				BackgroundJobs struct {
					Checked bool `json:"checked"`
					Healthy int  `json:"healthy"`
					Invalid int  `json:"invalid"`
					Missing int  `json:"missing"`

					// Paused Heavy-periodic jobs that are stale/missing/invalid while the heavy executor is disabled (heavy_pipeline_control.executor_mode != 'active'), so this binary does not dispatch them. Observable but expected; they never drive status to 'down' (paused > 0 yields 'degraded').
					Paused       int                                                            `json:"paused"`
					Stale        int                                                            `json:"stale"`
					Status       GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus `json:"status"`
					Total        int                                                            `json:"total"`
					Unconfigured int                                                            `json:"unconfigured"`
				} `json:"background_jobs"`
			} `json:"subsystems,omitempty"`
		} `json:"data"`
		Meta   ResponseMeta                       `json:"meta"`
		Object GetHealth200JSONResponseBodyObject `json:"object"`
	}
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetHealthResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetHealthResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetHealthResponse429Headers
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType

func (r GetHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthResponse) GetBody

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200

func (r GetHealthResponse) GetJSON200() *struct {
	Data struct {
		Cache      *bool                                   `json:"cache,omitempty"`
		Db         *bool                                   `json:"db,omitempty"`
		Status     *GetHealth200JSONResponseBodyDataStatus `json:"status,omitempty"`
		Subsystems *struct {
			// BackgroundJobs Public-safe aggregate status for expected background job successful-completion heartbeats. Does not expose Redis keys, job names, raw errors, provider payloads, wallet addresses, or condition IDs.
			BackgroundJobs struct {
				Checked bool `json:"checked"`
				Healthy int  `json:"healthy"`
				Invalid int  `json:"invalid"`
				Missing int  `json:"missing"`

				// Paused Heavy-periodic jobs that are stale/missing/invalid while the heavy executor is disabled (heavy_pipeline_control.executor_mode != 'active'), so this binary does not dispatch them. Observable but expected; they never drive status to 'down' (paused > 0 yields 'degraded').
				Paused       int                                                            `json:"paused"`
				Stale        int                                                            `json:"stale"`
				Status       GetHealth200JSONResponseBodyDataSubsystemsBackgroundJobsStatus `json:"status"`
				Total        int                                                            `json:"total"`
				Unconfigured int                                                            `json:"unconfigured"`
			} `json:"background_jobs"`
		} `json:"subsystems,omitempty"`
	} `json:"data"`
	Meta   ResponseMeta                       `json:"meta"`
	Object GetHealth200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) GetJSON429

func (r GetHealthResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthResponse200Headers

type GetHealthResponse200Headers struct {
	ETag *string
}

GetHealthResponse200Headers the declared response headers of an HTTP 200 response for GetHealth

type GetHealthResponse304Headers

type GetHealthResponse304Headers struct {
	ETag *string
}

GetHealthResponse304Headers the declared response headers of an HTTP 304 response for GetHealth

type GetHealthResponse429Headers

type GetHealthResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetHealthResponse429Headers the declared response headers of an HTTP 429 response for GetHealth

type GetInsiderRadarFlag200JSONResponseBodyObject

type GetInsiderRadarFlag200JSONResponseBodyObject string

GetInsiderRadarFlag200JSONResponseBodyObject defines parameters for GetInsiderRadarFlag.

const (
	GetInsiderRadarFlag200JSONResponseBodyObjectRadarFlag GetInsiderRadarFlag200JSONResponseBodyObject = "radar_flag"
)

Defines values for GetInsiderRadarFlag200JSONResponseBodyObject.

func (GetInsiderRadarFlag200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetInsiderRadarFlag200JSONResponseBodyObject enum.

type GetInsiderRadarFlagParams

type GetInsiderRadarFlagParams struct {
	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetInsiderRadarFlagParams defines parameters for GetInsiderRadarFlag.

type GetInsiderRadarFlagResponse

type GetInsiderRadarFlagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   RadarFlag                                    `json:"data"`
		Meta   ResponseMeta                                 `json:"meta"`
		Object GetInsiderRadarFlag200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetInsiderRadarFlagResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetInsiderRadarFlagResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetInsiderRadarFlagResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetInsiderRadarFlagResponse503Headers
}

func ParseGetInsiderRadarFlagResponse

func ParseGetInsiderRadarFlagResponse(rsp *http.Response) (*GetInsiderRadarFlagResponse, error)

ParseGetInsiderRadarFlagResponse parses an HTTP response from a GetInsiderRadarFlagWithResponse call

func (GetInsiderRadarFlagResponse) ContentType

func (r GetInsiderRadarFlagResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetInsiderRadarFlagResponse) GetBody

func (r GetInsiderRadarFlagResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetInsiderRadarFlagResponse) GetJSON200

func (r GetInsiderRadarFlagResponse) GetJSON200() *struct {
	Data   RadarFlag                                    `json:"data"`
	Meta   ResponseMeta                                 `json:"meta"`
	Object GetInsiderRadarFlag200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON400

func (r GetInsiderRadarFlagResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON401

func (r GetInsiderRadarFlagResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON402

func (r GetInsiderRadarFlagResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON403

func (r GetInsiderRadarFlagResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON404

func (r GetInsiderRadarFlagResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON423

func (r GetInsiderRadarFlagResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON429

func (r GetInsiderRadarFlagResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetInsiderRadarFlagResponse) GetJSON503

func (r GetInsiderRadarFlagResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetInsiderRadarFlagResponse) Status

Status returns HTTPResponse.Status

func (GetInsiderRadarFlagResponse) StatusCode

func (r GetInsiderRadarFlagResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInsiderRadarFlagResponse200Headers

type GetInsiderRadarFlagResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetInsiderRadarFlagResponse200Headers the declared response headers of an HTTP 200 response for GetInsiderRadarFlag

type GetInsiderRadarFlagResponse304Headers

type GetInsiderRadarFlagResponse304Headers struct {
	ETag *string
}

GetInsiderRadarFlagResponse304Headers the declared response headers of an HTTP 304 response for GetInsiderRadarFlag

type GetInsiderRadarFlagResponse429Headers

type GetInsiderRadarFlagResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetInsiderRadarFlagResponse429Headers the declared response headers of an HTTP 429 response for GetInsiderRadarFlag

type GetInsiderRadarFlagResponse503Headers

type GetInsiderRadarFlagResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetInsiderRadarFlagResponse503Headers the declared response headers of an HTTP 503 response for GetInsiderRadarFlag

type GetMarketCandles200JSONResponseBodyObject

type GetMarketCandles200JSONResponseBodyObject string

GetMarketCandles200JSONResponseBodyObject defines parameters for GetMarketCandles.

const (
	GetMarketCandles200JSONResponseBodyObjectMarketCandles GetMarketCandles200JSONResponseBodyObject = "market_candles"
)

Defines values for GetMarketCandles200JSONResponseBodyObject.

func (GetMarketCandles200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetMarketCandles200JSONResponseBodyObject enum.

type GetMarketCandlesParams

type GetMarketCandlesParams struct {
	// Resolution Bucketing granularity. 1d aggregates by UTC calendar day, 1w by ISO week (Monday 00:00 UTC start). Defaults to 1d.
	Resolution *GetMarketCandlesParamsResolution `form:"resolution,omitempty" json:"resolution,omitempty"`

	// From Exclusive lower bound as a unix timestamp in seconds; points at or before this timestamp are omitted (the underlying daily snapshot read filters bucket_start > from). Note: for resolution=1w a surviving mid-week point can yield a weekly candle whose t (Monday 00:00 UTC) precedes from.
	From *int64 `form:"from,omitempty" json:"from,omitempty"`

	// To Inclusive upper bound as a unix timestamp in seconds; points after this timestamp are omitted.
	To *int64 `form:"to,omitempty" json:"to,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetMarketCandlesParams defines parameters for GetMarketCandles.

type GetMarketCandlesParamsResolution

type GetMarketCandlesParamsResolution string

GetMarketCandlesParamsResolution defines parameters for GetMarketCandles.

const (
	GetMarketCandlesParamsResolutionN1d GetMarketCandlesParamsResolution = "1d"
	GetMarketCandlesParamsResolutionN1w GetMarketCandlesParamsResolution = "1w"
)

Defines values for GetMarketCandlesParamsResolution.

func (GetMarketCandlesParamsResolution) Valid

Valid indicates whether the value is a known member of the GetMarketCandlesParamsResolution enum.

type GetMarketCandlesResponse

type GetMarketCandlesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		// Data Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (covers open and resolved markets).
		Data   MarketCandles                             `json:"data"`
		Meta   ResponseMeta                              `json:"meta"`
		Object GetMarketCandles200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMarketCandlesResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetMarketCandlesResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMarketCandlesResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetMarketCandlesResponse503Headers
}

func ParseGetMarketCandlesResponse

func ParseGetMarketCandlesResponse(rsp *http.Response) (*GetMarketCandlesResponse, error)

ParseGetMarketCandlesResponse parses an HTTP response from a GetMarketCandlesWithResponse call

func (GetMarketCandlesResponse) ContentType

func (r GetMarketCandlesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMarketCandlesResponse) GetBody

func (r GetMarketCandlesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMarketCandlesResponse) GetJSON200

func (r GetMarketCandlesResponse) GetJSON200() *struct {
	// Data Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (covers open and resolved markets).
	Data   MarketCandles                             `json:"data"`
	Meta   ResponseMeta                              `json:"meta"`
	Object GetMarketCandles200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMarketCandlesResponse) GetJSON400

func (r GetMarketCandlesResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMarketCandlesResponse) GetJSON401

func (r GetMarketCandlesResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMarketCandlesResponse) GetJSON402

func (r GetMarketCandlesResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetMarketCandlesResponse) GetJSON403

func (r GetMarketCandlesResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMarketCandlesResponse) GetJSON404

func (r GetMarketCandlesResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetMarketCandlesResponse) GetJSON423

func (r GetMarketCandlesResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetMarketCandlesResponse) GetJSON429

func (r GetMarketCandlesResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetMarketCandlesResponse) GetJSON503

func (r GetMarketCandlesResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetMarketCandlesResponse) Status

func (r GetMarketCandlesResponse) Status() string

Status returns HTTPResponse.Status

func (GetMarketCandlesResponse) StatusCode

func (r GetMarketCandlesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMarketCandlesResponse200Headers

type GetMarketCandlesResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetMarketCandlesResponse200Headers the declared response headers of an HTTP 200 response for GetMarketCandles

type GetMarketCandlesResponse304Headers

type GetMarketCandlesResponse304Headers struct {
	ETag *string
}

GetMarketCandlesResponse304Headers the declared response headers of an HTTP 304 response for GetMarketCandles

type GetMarketCandlesResponse429Headers

type GetMarketCandlesResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetMarketCandlesResponse429Headers the declared response headers of an HTTP 429 response for GetMarketCandles

type GetMarketCandlesResponse503Headers

type GetMarketCandlesResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetMarketCandlesResponse503Headers the declared response headers of an HTTP 503 response for GetMarketCandles

type GetMarketIntel200JSONResponseBodyObject

type GetMarketIntel200JSONResponseBodyObject string

GetMarketIntel200JSONResponseBodyObject defines parameters for GetMarketIntel.

const (
	GetMarketIntel200JSONResponseBodyObjectMarketIntel GetMarketIntel200JSONResponseBodyObject = "market_intel"
)

Defines values for GetMarketIntel200JSONResponseBodyObject.

func (GetMarketIntel200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetMarketIntel200JSONResponseBodyObject enum.

type GetMarketIntelParams

type GetMarketIntelParams struct {
	// Timeframe Lookback window for whale flow aggregation.
	Timeframe *GetMarketIntelParamsTimeframe `form:"timeframe,omitempty" json:"timeframe,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetMarketIntelParams defines parameters for GetMarketIntel.

type GetMarketIntelParamsTimeframe

type GetMarketIntelParamsTimeframe string

GetMarketIntelParamsTimeframe defines parameters for GetMarketIntel.

const (
	GetMarketIntelParamsTimeframeN1h  GetMarketIntelParamsTimeframe = "1h"
	GetMarketIntelParamsTimeframeN24h GetMarketIntelParamsTimeframe = "24h"
	GetMarketIntelParamsTimeframeN4h  GetMarketIntelParamsTimeframe = "4h"
	GetMarketIntelParamsTimeframeN7d  GetMarketIntelParamsTimeframe = "7d"
)

Defines values for GetMarketIntelParamsTimeframe.

func (GetMarketIntelParamsTimeframe) Valid

Valid indicates whether the value is a known member of the GetMarketIntelParamsTimeframe enum.

type GetMarketIntelResponse

type GetMarketIntelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   MarketIntel                             `json:"data"`
		Meta   ResponseMeta                            `json:"meta"`
		Object GetMarketIntel200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMarketIntelResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetMarketIntelResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMarketIntelResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetMarketIntelResponse503Headers
}

func ParseGetMarketIntelResponse

func ParseGetMarketIntelResponse(rsp *http.Response) (*GetMarketIntelResponse, error)

ParseGetMarketIntelResponse parses an HTTP response from a GetMarketIntelWithResponse call

func (GetMarketIntelResponse) ContentType

func (r GetMarketIntelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMarketIntelResponse) GetBody

func (r GetMarketIntelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMarketIntelResponse) GetJSON200

func (r GetMarketIntelResponse) GetJSON200() *struct {
	Data   MarketIntel                             `json:"data"`
	Meta   ResponseMeta                            `json:"meta"`
	Object GetMarketIntel200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMarketIntelResponse) GetJSON400

func (r GetMarketIntelResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMarketIntelResponse) GetJSON401

func (r GetMarketIntelResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMarketIntelResponse) GetJSON402

func (r GetMarketIntelResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetMarketIntelResponse) GetJSON403

func (r GetMarketIntelResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMarketIntelResponse) GetJSON404

func (r GetMarketIntelResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetMarketIntelResponse) GetJSON423

func (r GetMarketIntelResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetMarketIntelResponse) GetJSON429

func (r GetMarketIntelResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetMarketIntelResponse) GetJSON503

func (r GetMarketIntelResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetMarketIntelResponse) Status

func (r GetMarketIntelResponse) Status() string

Status returns HTTPResponse.Status

func (GetMarketIntelResponse) StatusCode

func (r GetMarketIntelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMarketIntelResponse200Headers

type GetMarketIntelResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetMarketIntelResponse200Headers the declared response headers of an HTTP 200 response for GetMarketIntel

type GetMarketIntelResponse304Headers

type GetMarketIntelResponse304Headers struct {
	ETag *string
}

GetMarketIntelResponse304Headers the declared response headers of an HTTP 304 response for GetMarketIntel

type GetMarketIntelResponse429Headers

type GetMarketIntelResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetMarketIntelResponse429Headers the declared response headers of an HTTP 429 response for GetMarketIntel

type GetMarketIntelResponse503Headers

type GetMarketIntelResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetMarketIntelResponse503Headers the declared response headers of an HTTP 503 response for GetMarketIntel

type GetMarketSnapshot200JSONResponseBodyObject

type GetMarketSnapshot200JSONResponseBodyObject string

GetMarketSnapshot200JSONResponseBodyObject defines parameters for GetMarketSnapshot.

const (
	GetMarketSnapshot200JSONResponseBodyObjectMarketSnapshot GetMarketSnapshot200JSONResponseBodyObject = "market_snapshot"
)

Defines values for GetMarketSnapshot200JSONResponseBodyObject.

func (GetMarketSnapshot200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetMarketSnapshot200JSONResponseBodyObject enum.

type GetMarketSnapshotParams

type GetMarketSnapshotParams struct {
	// Expand Include trust metadata for current_price and spread_bps. Repeatable: trust.
	Expand *[]GetMarketSnapshotParamsExpand `form:"expand,omitempty" json:"expand,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetMarketSnapshotParams defines parameters for GetMarketSnapshot.

type GetMarketSnapshotParamsExpand

type GetMarketSnapshotParamsExpand string

GetMarketSnapshotParamsExpand defines parameters for GetMarketSnapshot.

const (
	GetMarketSnapshotParamsExpandTrust GetMarketSnapshotParamsExpand = "trust"
)

Defines values for GetMarketSnapshotParamsExpand.

func (GetMarketSnapshotParamsExpand) Valid

Valid indicates whether the value is a known member of the GetMarketSnapshotParamsExpand enum.

type GetMarketSnapshotResponse

type GetMarketSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   MarketSnapshot                             `json:"data"`
		Meta   ResponseMeta                               `json:"meta"`
		Object GetMarketSnapshot200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMarketSnapshotResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetMarketSnapshotResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMarketSnapshotResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetMarketSnapshotResponse503Headers
}

func ParseGetMarketSnapshotResponse

func ParseGetMarketSnapshotResponse(rsp *http.Response) (*GetMarketSnapshotResponse, error)

ParseGetMarketSnapshotResponse parses an HTTP response from a GetMarketSnapshotWithResponse call

func (GetMarketSnapshotResponse) ContentType

func (r GetMarketSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMarketSnapshotResponse) GetBody

func (r GetMarketSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMarketSnapshotResponse) GetJSON200

func (r GetMarketSnapshotResponse) GetJSON200() *struct {
	Data   MarketSnapshot                             `json:"data"`
	Meta   ResponseMeta                               `json:"meta"`
	Object GetMarketSnapshot200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMarketSnapshotResponse) GetJSON400

func (r GetMarketSnapshotResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMarketSnapshotResponse) GetJSON401

func (r GetMarketSnapshotResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMarketSnapshotResponse) GetJSON402

func (r GetMarketSnapshotResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetMarketSnapshotResponse) GetJSON403

func (r GetMarketSnapshotResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMarketSnapshotResponse) GetJSON404

func (r GetMarketSnapshotResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetMarketSnapshotResponse) GetJSON423

func (r GetMarketSnapshotResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetMarketSnapshotResponse) GetJSON429

func (r GetMarketSnapshotResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetMarketSnapshotResponse) GetJSON503

func (r GetMarketSnapshotResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetMarketSnapshotResponse) Status

func (r GetMarketSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (GetMarketSnapshotResponse) StatusCode

func (r GetMarketSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMarketSnapshotResponse200Headers

type GetMarketSnapshotResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetMarketSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetMarketSnapshot

type GetMarketSnapshotResponse304Headers

type GetMarketSnapshotResponse304Headers struct {
	ETag *string
}

GetMarketSnapshotResponse304Headers the declared response headers of an HTTP 304 response for GetMarketSnapshot

type GetMarketSnapshotResponse429Headers

type GetMarketSnapshotResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetMarketSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetMarketSnapshot

type GetMarketSnapshotResponse503Headers

type GetMarketSnapshotResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetMarketSnapshotResponse503Headers the declared response headers of an HTTP 503 response for GetMarketSnapshot

type GetMonthlyReportSnapshot200JSONResponseBodyObject

type GetMonthlyReportSnapshot200JSONResponseBodyObject string

GetMonthlyReportSnapshot200JSONResponseBodyObject defines parameters for GetMonthlyReportSnapshot.

const (
	GetMonthlyReportSnapshot200JSONResponseBodyObjectReportSnapshot GetMonthlyReportSnapshot200JSONResponseBodyObject = "report_snapshot"
)

Defines values for GetMonthlyReportSnapshot200JSONResponseBodyObject.

func (GetMonthlyReportSnapshot200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetMonthlyReportSnapshot200JSONResponseBodyObject enum.

type GetMonthlyReportSnapshotParams

type GetMonthlyReportSnapshotParams struct {
	// Month UTC report month in YYYY-MM format.
	Month string `form:"month" json:"month"`
}

GetMonthlyReportSnapshotParams defines parameters for GetMonthlyReportSnapshot.

type GetMonthlyReportSnapshotResponse

type GetMonthlyReportSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   ReportSnapshot                                    `json:"data"`
		Meta   ResponseMeta                                      `json:"meta"`
		Object GetMonthlyReportSnapshot200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMonthlyReportSnapshotResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetMonthlyReportSnapshotResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetMonthlyReportSnapshotResponse503Headers
}

func ParseGetMonthlyReportSnapshotResponse

func ParseGetMonthlyReportSnapshotResponse(rsp *http.Response) (*GetMonthlyReportSnapshotResponse, error)

ParseGetMonthlyReportSnapshotResponse parses an HTTP response from a GetMonthlyReportSnapshotWithResponse call

func (GetMonthlyReportSnapshotResponse) ContentType

func (r GetMonthlyReportSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMonthlyReportSnapshotResponse) GetBody

func (r GetMonthlyReportSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMonthlyReportSnapshotResponse) GetJSON200

func (r GetMonthlyReportSnapshotResponse) GetJSON200() *struct {
	Data   ReportSnapshot                                    `json:"data"`
	Meta   ResponseMeta                                      `json:"meta"`
	Object GetMonthlyReportSnapshot200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON423

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetMonthlyReportSnapshotResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetMonthlyReportSnapshotResponse) Status

Status returns HTTPResponse.Status

func (GetMonthlyReportSnapshotResponse) StatusCode

func (r GetMonthlyReportSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMonthlyReportSnapshotResponse200Headers

type GetMonthlyReportSnapshotResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetMonthlyReportSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetMonthlyReportSnapshot

type GetMonthlyReportSnapshotResponse429Headers

type GetMonthlyReportSnapshotResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetMonthlyReportSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetMonthlyReportSnapshot

type GetMonthlyReportSnapshotResponse503Headers

type GetMonthlyReportSnapshotResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetMonthlyReportSnapshotResponse503Headers the declared response headers of an HTTP 503 response for GetMonthlyReportSnapshot

type GetPickOfTheDay200JSONResponseBodyObject

type GetPickOfTheDay200JSONResponseBodyObject string

GetPickOfTheDay200JSONResponseBodyObject defines parameters for GetPickOfTheDay.

const (
	GetPickOfTheDay200JSONResponseBodyObjectPickOfTheDay GetPickOfTheDay200JSONResponseBodyObject = "pick_of_the_day"
)

Defines values for GetPickOfTheDay200JSONResponseBodyObject.

func (GetPickOfTheDay200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetPickOfTheDay200JSONResponseBodyObject enum.

type GetPickOfTheDayArchive200JSONResponseBodyObject

type GetPickOfTheDayArchive200JSONResponseBodyObject string

GetPickOfTheDayArchive200JSONResponseBodyObject defines parameters for GetPickOfTheDayArchive.

const (
	GetPickOfTheDayArchive200JSONResponseBodyObjectPickOfTheDayArchive GetPickOfTheDayArchive200JSONResponseBodyObject = "pick_of_the_day_archive"
)

Defines values for GetPickOfTheDayArchive200JSONResponseBodyObject.

func (GetPickOfTheDayArchive200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetPickOfTheDayArchive200JSONResponseBodyObject enum.

type GetPickOfTheDayArchiveParams

type GetPickOfTheDayArchiveParams struct {
	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetPickOfTheDayArchiveParams defines parameters for GetPickOfTheDayArchive.

type GetPickOfTheDayArchiveResponse

type GetPickOfTheDayArchiveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   PickOfTheDayArchive                             `json:"data"`
		Meta   ResponseMeta                                    `json:"meta"`
		Object GetPickOfTheDayArchive200JSONResponseBodyObject `json:"object"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPickOfTheDayArchiveResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetPickOfTheDayArchiveResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPickOfTheDayArchiveResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetPickOfTheDayArchiveResponse503Headers
}

func ParseGetPickOfTheDayArchiveResponse

func ParseGetPickOfTheDayArchiveResponse(rsp *http.Response) (*GetPickOfTheDayArchiveResponse, error)

ParseGetPickOfTheDayArchiveResponse parses an HTTP response from a GetPickOfTheDayArchiveWithResponse call

func (GetPickOfTheDayArchiveResponse) ContentType

func (r GetPickOfTheDayArchiveResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPickOfTheDayArchiveResponse) GetBody

func (r GetPickOfTheDayArchiveResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPickOfTheDayArchiveResponse) GetJSON200

func (r GetPickOfTheDayArchiveResponse) GetJSON200() *struct {
	Data   PickOfTheDayArchive                             `json:"data"`
	Meta   ResponseMeta                                    `json:"meta"`
	Object GetPickOfTheDayArchive200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPickOfTheDayArchiveResponse) GetJSON401

func (r GetPickOfTheDayArchiveResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetPickOfTheDayArchiveResponse) GetJSON402

func (r GetPickOfTheDayArchiveResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetPickOfTheDayArchiveResponse) GetJSON403

func (r GetPickOfTheDayArchiveResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetPickOfTheDayArchiveResponse) GetJSON423

func (r GetPickOfTheDayArchiveResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetPickOfTheDayArchiveResponse) GetJSON429

func (r GetPickOfTheDayArchiveResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetPickOfTheDayArchiveResponse) GetJSON503

func (r GetPickOfTheDayArchiveResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetPickOfTheDayArchiveResponse) Status

Status returns HTTPResponse.Status

func (GetPickOfTheDayArchiveResponse) StatusCode

func (r GetPickOfTheDayArchiveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPickOfTheDayArchiveResponse200Headers

type GetPickOfTheDayArchiveResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetPickOfTheDayArchiveResponse200Headers the declared response headers of an HTTP 200 response for GetPickOfTheDayArchive

type GetPickOfTheDayArchiveResponse304Headers

type GetPickOfTheDayArchiveResponse304Headers struct {
	ETag *string
}

GetPickOfTheDayArchiveResponse304Headers the declared response headers of an HTTP 304 response for GetPickOfTheDayArchive

type GetPickOfTheDayArchiveResponse429Headers

type GetPickOfTheDayArchiveResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetPickOfTheDayArchiveResponse429Headers the declared response headers of an HTTP 429 response for GetPickOfTheDayArchive

type GetPickOfTheDayArchiveResponse503Headers

type GetPickOfTheDayArchiveResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetPickOfTheDayArchiveResponse503Headers the declared response headers of an HTTP 503 response for GetPickOfTheDayArchive

type GetPickOfTheDayParams

type GetPickOfTheDayParams struct {
	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetPickOfTheDayParams defines parameters for GetPickOfTheDay.

type GetPickOfTheDayResponse

type GetPickOfTheDayResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   PickOfTheDay                             `json:"data"`
		Meta   ResponseMeta                             `json:"meta"`
		Object GetPickOfTheDay200JSONResponseBodyObject `json:"object"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPickOfTheDayResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetPickOfTheDayResponse304Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetPickOfTheDayResponse404Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPickOfTheDayResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetPickOfTheDayResponse503Headers
}

func ParseGetPickOfTheDayResponse

func ParseGetPickOfTheDayResponse(rsp *http.Response) (*GetPickOfTheDayResponse, error)

ParseGetPickOfTheDayResponse parses an HTTP response from a GetPickOfTheDayWithResponse call

func (GetPickOfTheDayResponse) ContentType

func (r GetPickOfTheDayResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPickOfTheDayResponse) GetBody

func (r GetPickOfTheDayResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPickOfTheDayResponse) GetJSON200

func (r GetPickOfTheDayResponse) GetJSON200() *struct {
	Data   PickOfTheDay                             `json:"data"`
	Meta   ResponseMeta                             `json:"meta"`
	Object GetPickOfTheDay200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPickOfTheDayResponse) GetJSON401

func (r GetPickOfTheDayResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetPickOfTheDayResponse) GetJSON402

func (r GetPickOfTheDayResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetPickOfTheDayResponse) GetJSON403

func (r GetPickOfTheDayResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetPickOfTheDayResponse) GetJSON404

func (r GetPickOfTheDayResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetPickOfTheDayResponse) GetJSON423

func (r GetPickOfTheDayResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetPickOfTheDayResponse) GetJSON429

func (r GetPickOfTheDayResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetPickOfTheDayResponse) GetJSON503

func (r GetPickOfTheDayResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetPickOfTheDayResponse) Status

func (r GetPickOfTheDayResponse) Status() string

Status returns HTTPResponse.Status

func (GetPickOfTheDayResponse) StatusCode

func (r GetPickOfTheDayResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPickOfTheDayResponse200Headers

type GetPickOfTheDayResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetPickOfTheDayResponse200Headers the declared response headers of an HTTP 200 response for GetPickOfTheDay

type GetPickOfTheDayResponse304Headers

type GetPickOfTheDayResponse304Headers struct {
	ETag *string
}

GetPickOfTheDayResponse304Headers the declared response headers of an HTTP 304 response for GetPickOfTheDay

type GetPickOfTheDayResponse404Headers

type GetPickOfTheDayResponse404Headers struct {
	RetryAfter *int
}

GetPickOfTheDayResponse404Headers the declared response headers of an HTTP 404 response for GetPickOfTheDay

type GetPickOfTheDayResponse429Headers

type GetPickOfTheDayResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetPickOfTheDayResponse429Headers the declared response headers of an HTTP 429 response for GetPickOfTheDay

type GetPickOfTheDayResponse503Headers

type GetPickOfTheDayResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetPickOfTheDayResponse503Headers the declared response headers of an HTTP 503 response for GetPickOfTheDay

type GetPlatforms200JSONResponseBodyObject

type GetPlatforms200JSONResponseBodyObject string

GetPlatforms200JSONResponseBodyObject defines parameters for GetPlatforms.

const (
	GetPlatforms200JSONResponseBodyObjectPlatforms GetPlatforms200JSONResponseBodyObject = "platforms"
)

Defines values for GetPlatforms200JSONResponseBodyObject.

func (GetPlatforms200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetPlatforms200JSONResponseBodyObject enum.

type GetPlatformsResponse

type GetPlatformsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   Platforms                             `json:"data"`
		Meta   ResponseMeta                          `json:"meta"`
		Object GetPlatforms200JSONResponseBodyObject `json:"object"`
	}
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPlatformsResponse429Headers
}

func ParseGetPlatformsResponse

func ParseGetPlatformsResponse(rsp *http.Response) (*GetPlatformsResponse, error)

ParseGetPlatformsResponse parses an HTTP response from a GetPlatformsWithResponse call

func (GetPlatformsResponse) ContentType

func (r GetPlatformsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPlatformsResponse) GetBody

func (r GetPlatformsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPlatformsResponse) GetJSON200

func (r GetPlatformsResponse) GetJSON200() *struct {
	Data   Platforms                             `json:"data"`
	Meta   ResponseMeta                          `json:"meta"`
	Object GetPlatforms200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPlatformsResponse) GetJSON429

func (r GetPlatformsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetPlatformsResponse) GetJSON500

func (r GetPlatformsResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetPlatformsResponse) Status

func (r GetPlatformsResponse) Status() string

Status returns HTTPResponse.Status

func (GetPlatformsResponse) StatusCode

func (r GetPlatformsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPlatformsResponse429Headers

type GetPlatformsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetPlatformsResponse429Headers the declared response headers of an HTTP 429 response for GetPlatforms

type GetPositionTimeline200JSONResponseBodyObject

type GetPositionTimeline200JSONResponseBodyObject string

GetPositionTimeline200JSONResponseBodyObject defines parameters for GetPositionTimeline.

const (
	GetPositionTimeline200JSONResponseBodyObjectList GetPositionTimeline200JSONResponseBodyObject = "list"
)

Defines values for GetPositionTimeline200JSONResponseBodyObject.

func (GetPositionTimeline200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetPositionTimeline200JSONResponseBodyObject enum.

type GetPositionTimelineById200JSONResponseBodyObject

type GetPositionTimelineById200JSONResponseBodyObject string

GetPositionTimelineById200JSONResponseBodyObject defines parameters for GetPositionTimelineById.

const (
	GetPositionTimelineById200JSONResponseBodyObjectList GetPositionTimelineById200JSONResponseBodyObject = "list"
)

Defines values for GetPositionTimelineById200JSONResponseBodyObject.

func (GetPositionTimelineById200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetPositionTimelineById200JSONResponseBodyObject enum.

type GetPositionTimelineByIdParams

type GetPositionTimelineByIdParams struct {
	// ConditionId Market condition_id. One timeline per (trader, market).
	ConditionId string `form:"condition_id" json:"condition_id"`

	// Limit Maximum number of timeline events to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetPositionTimelineByIdParams defines parameters for GetPositionTimelineById.

type GetPositionTimelineByIdResponse

type GetPositionTimelineByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []PositionTimelineEvent                          `json:"data"`
		HasMore    bool                                             `json:"has_more"`
		Meta       ResponseMeta                                     `json:"meta"`
		NextCursor *string                                          `json:"next_cursor,omitempty"`
		Object     GetPositionTimelineById200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPositionTimelineByIdResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetPositionTimelineByIdResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPositionTimelineByIdResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetPositionTimelineByIdResponse503Headers
}

func ParseGetPositionTimelineByIdResponse

func ParseGetPositionTimelineByIdResponse(rsp *http.Response) (*GetPositionTimelineByIdResponse, error)

ParseGetPositionTimelineByIdResponse parses an HTTP response from a GetPositionTimelineByIdWithResponse call

func (GetPositionTimelineByIdResponse) ContentType

func (r GetPositionTimelineByIdResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPositionTimelineByIdResponse) GetBody

func (r GetPositionTimelineByIdResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPositionTimelineByIdResponse) GetJSON200

func (r GetPositionTimelineByIdResponse) GetJSON200() *struct {
	Data       []PositionTimelineEvent                          `json:"data"`
	HasMore    bool                                             `json:"has_more"`
	Meta       ResponseMeta                                     `json:"meta"`
	NextCursor *string                                          `json:"next_cursor,omitempty"`
	Object     GetPositionTimelineById200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON400

func (r GetPositionTimelineByIdResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON401

func (r GetPositionTimelineByIdResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON402

func (r GetPositionTimelineByIdResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON403

func (r GetPositionTimelineByIdResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON404

func (r GetPositionTimelineByIdResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON423

func (r GetPositionTimelineByIdResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON429

func (r GetPositionTimelineByIdResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON500

func (r GetPositionTimelineByIdResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetPositionTimelineByIdResponse) GetJSON503

func (r GetPositionTimelineByIdResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetPositionTimelineByIdResponse) Status

Status returns HTTPResponse.Status

func (GetPositionTimelineByIdResponse) StatusCode

func (r GetPositionTimelineByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPositionTimelineByIdResponse200Headers

type GetPositionTimelineByIdResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetPositionTimelineByIdResponse200Headers the declared response headers of an HTTP 200 response for GetPositionTimelineById

type GetPositionTimelineByIdResponse304Headers

type GetPositionTimelineByIdResponse304Headers struct {
	ETag *string
}

GetPositionTimelineByIdResponse304Headers the declared response headers of an HTTP 304 response for GetPositionTimelineById

type GetPositionTimelineByIdResponse429Headers

type GetPositionTimelineByIdResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetPositionTimelineByIdResponse429Headers the declared response headers of an HTTP 429 response for GetPositionTimelineById

type GetPositionTimelineByIdResponse503Headers

type GetPositionTimelineByIdResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetPositionTimelineByIdResponse503Headers the declared response headers of an HTTP 503 response for GetPositionTimelineById

type GetPositionTimelineParams

type GetPositionTimelineParams struct {
	// ConditionId Market condition_id. One timeline per (trader, market).
	ConditionId string `form:"condition_id" json:"condition_id"`

	// Limit Maximum number of timeline events to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetPositionTimelineParams defines parameters for GetPositionTimeline.

type GetPositionTimelineResponse

type GetPositionTimelineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []PositionTimelineEvent                      `json:"data"`
		HasMore    bool                                         `json:"has_more"`
		Meta       ResponseMeta                                 `json:"meta"`
		NextCursor *string                                      `json:"next_cursor,omitempty"`
		Object     GetPositionTimeline200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPositionTimelineResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetPositionTimelineResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetPositionTimelineResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetPositionTimelineResponse503Headers
}

func ParseGetPositionTimelineResponse

func ParseGetPositionTimelineResponse(rsp *http.Response) (*GetPositionTimelineResponse, error)

ParseGetPositionTimelineResponse parses an HTTP response from a GetPositionTimelineWithResponse call

func (GetPositionTimelineResponse) ContentType

func (r GetPositionTimelineResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPositionTimelineResponse) GetBody

func (r GetPositionTimelineResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPositionTimelineResponse) GetJSON200

func (r GetPositionTimelineResponse) GetJSON200() *struct {
	Data       []PositionTimelineEvent                      `json:"data"`
	HasMore    bool                                         `json:"has_more"`
	Meta       ResponseMeta                                 `json:"meta"`
	NextCursor *string                                      `json:"next_cursor,omitempty"`
	Object     GetPositionTimeline200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPositionTimelineResponse) GetJSON400

func (r GetPositionTimelineResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetPositionTimelineResponse) GetJSON401

func (r GetPositionTimelineResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetPositionTimelineResponse) GetJSON402

func (r GetPositionTimelineResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetPositionTimelineResponse) GetJSON403

func (r GetPositionTimelineResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetPositionTimelineResponse) GetJSON404

func (r GetPositionTimelineResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetPositionTimelineResponse) GetJSON423

func (r GetPositionTimelineResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetPositionTimelineResponse) GetJSON429

func (r GetPositionTimelineResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetPositionTimelineResponse) GetJSON500

func (r GetPositionTimelineResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetPositionTimelineResponse) GetJSON503

func (r GetPositionTimelineResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetPositionTimelineResponse) Status

Status returns HTTPResponse.Status

func (GetPositionTimelineResponse) StatusCode

func (r GetPositionTimelineResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPositionTimelineResponse200Headers

type GetPositionTimelineResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetPositionTimelineResponse200Headers the declared response headers of an HTTP 200 response for GetPositionTimeline

type GetPositionTimelineResponse304Headers

type GetPositionTimelineResponse304Headers struct {
	ETag *string
}

GetPositionTimelineResponse304Headers the declared response headers of an HTTP 304 response for GetPositionTimeline

type GetPositionTimelineResponse429Headers

type GetPositionTimelineResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetPositionTimelineResponse429Headers the declared response headers of an HTTP 429 response for GetPositionTimeline

type GetPositionTimelineResponse503Headers

type GetPositionTimelineResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetPositionTimelineResponse503Headers the declared response headers of an HTTP 503 response for GetPositionTimeline

type GetReports200JSONResponseBodyObject

type GetReports200JSONResponseBodyObject string

GetReports200JSONResponseBodyObject defines parameters for GetReports.

const (
	GetReports200JSONResponseBodyObjectReportSnapshot GetReports200JSONResponseBodyObject = "report_snapshot"
)

Defines values for GetReports200JSONResponseBodyObject.

func (GetReports200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetReports200JSONResponseBodyObject enum.

type GetReportsParams

type GetReportsParams struct {
	// Granularity Report granularity selector.
	Granularity GetReportsParamsGranularity `form:"granularity" json:"granularity"`

	// Period Period token for the granularity. daily: UTC date YYYY-MM-DD. weekly: ISO week YYYY-WW, or a from,to YYYY-MM-DD pair. monthly: UTC month YYYY-MM.
	Period string `form:"period" json:"period"`
}

GetReportsParams defines parameters for GetReports.

type GetReportsParamsGranularity

type GetReportsParamsGranularity string

GetReportsParamsGranularity defines parameters for GetReports.

const (
	GetReportsParamsGranularityDaily   GetReportsParamsGranularity = "daily"
	GetReportsParamsGranularityMonthly GetReportsParamsGranularity = "monthly"
	GetReportsParamsGranularityWeekly  GetReportsParamsGranularity = "weekly"
)

Defines values for GetReportsParamsGranularity.

func (GetReportsParamsGranularity) Valid

Valid indicates whether the value is a known member of the GetReportsParamsGranularity enum.

type GetReportsResponse

type GetReportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   ReportSnapshot                      `json:"data"`
		Meta   ResponseMeta                        `json:"meta"`
		Object GetReports200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetReportsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetReportsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetReportsResponse503Headers
}

func ParseGetReportsResponse

func ParseGetReportsResponse(rsp *http.Response) (*GetReportsResponse, error)

ParseGetReportsResponse parses an HTTP response from a GetReportsWithResponse call

func (GetReportsResponse) ContentType

func (r GetReportsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetReportsResponse) GetBody

func (r GetReportsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetReportsResponse) GetJSON200

func (r GetReportsResponse) GetJSON200() *struct {
	Data   ReportSnapshot                      `json:"data"`
	Meta   ResponseMeta                        `json:"meta"`
	Object GetReports200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetReportsResponse) GetJSON400

func (r GetReportsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetReportsResponse) GetJSON401

func (r GetReportsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetReportsResponse) GetJSON402

func (r GetReportsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetReportsResponse) GetJSON403

func (r GetReportsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetReportsResponse) GetJSON423

func (r GetReportsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetReportsResponse) GetJSON429

func (r GetReportsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetReportsResponse) GetJSON500

func (r GetReportsResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetReportsResponse) GetJSON503

func (r GetReportsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetReportsResponse) Status

func (r GetReportsResponse) Status() string

Status returns HTTPResponse.Status

func (GetReportsResponse) StatusCode

func (r GetReportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReportsResponse200Headers

type GetReportsResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetReportsResponse200Headers the declared response headers of an HTTP 200 response for GetReports

type GetReportsResponse429Headers

type GetReportsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetReportsResponse429Headers the declared response headers of an HTTP 429 response for GetReports

type GetReportsResponse503Headers

type GetReportsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetReportsResponse503Headers the declared response headers of an HTTP 503 response for GetReports

type GetStreamParams

type GetStreamParams struct {
	// LastEventId Query-string fallback for the Last-Event-ID resume cursor when the client cannot set the request header. Numeric cluster-shared sequence id; non-numeric or absent attaches live with no replay. A future or expired id emits resync.
	LastEventId *string `form:"last_event_id,omitempty" json:"last_event_id,omitempty"`

	// Seq Alias for last_event_id. Numeric cluster-shared sequence id to resume after; non-numeric or absent attaches live with no replay. A future or expired id emits resync.
	Seq *string `form:"seq,omitempty" json:"seq,omitempty"`

	// Event Optional per-connection subscribe-time filter. Comma-separated list of frame wire types (the SSE 'type' discriminator, e.g. WhaleTradesInserted,wallet_grade_changed); a frame passes only when its type is in the set. An unknown token returns HTTP 400 naming the offending value. An empty/all-whitespace value is treated as absent (no constraint). Applied to BOTH the replay window and live frames, and always AFTER the per-subscriber privacy gate, so it can never widen visibility beyond what the key may already see. Combines with condition_id and min_grade as a logical AND; an absent param adds no constraint.
	Event *string `form:"event,omitempty" json:"event,omitempty"`

	// ConditionId Optional per-connection subscribe-time filter. Raw provider condition_id or mkt_-prefixed market id (normalized the same way the other v1 market endpoints normalize). A frame passes only when it carries a matching condition_id field; frames that carry no condition_id (e.g. whale-pulse events) are EXCLUDED while this is set. An empty value after normalization returns HTTP 400. Combines with event and min_grade as a logical AND; an absent param adds no constraint.
	ConditionId *string `form:"condition_id,omitempty" json:"condition_id,omitempty"`

	// MinGrade Optional per-connection subscribe-time filter. A frame passes only when it carries a grade field whose grade is better-or-equal to this minimum (S is best). Frames that carry no grade field (every frame except wallet_grade_changed) are EXCLUDED while this is set. An invalid grade returns HTTP 400. Combines with event and condition_id as a logical AND; an absent param adds no constraint.
	MinGrade *GetStreamParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// LastEventID Cluster-shared sequence id of the last frame the client successfully processed. The stream replays the strictly-newer retained window before resuming live, even when reconnect routing changes replicas. A future or expired id emits resync. Browser EventSource clients send this automatically on reconnect. Omit to attach live from now.
	LastEventID *string `json:"Last-Event-ID,omitempty"`
}

GetStreamParams defines parameters for GetStream.

type GetStreamParamsMinGrade

type GetStreamParamsMinGrade string

GetStreamParamsMinGrade defines parameters for GetStream.

const (
	GetStreamParamsMinGradeA GetStreamParamsMinGrade = "A"
	GetStreamParamsMinGradeB GetStreamParamsMinGrade = "B"
	GetStreamParamsMinGradeC GetStreamParamsMinGrade = "C"
	GetStreamParamsMinGradeD GetStreamParamsMinGrade = "D"
	GetStreamParamsMinGradeF GetStreamParamsMinGrade = "F"
	GetStreamParamsMinGradeS GetStreamParamsMinGrade = "S"
)

Defines values for GetStreamParamsMinGrade.

func (GetStreamParamsMinGrade) Valid

func (e GetStreamParamsMinGrade) Valid() bool

Valid indicates whether the value is a known member of the GetStreamParamsMinGrade enum.

type GetStreamResponse

type GetStreamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetStreamResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetStreamResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetStreamResponse503Headers
}

func ParseGetStreamResponse

func ParseGetStreamResponse(rsp *http.Response) (*GetStreamResponse, error)

ParseGetStreamResponse parses an HTTP response from a GetStreamWithResponse call

func (GetStreamResponse) ContentType

func (r GetStreamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStreamResponse) GetBody

func (r GetStreamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetStreamResponse) GetJSON400

func (r GetStreamResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetStreamResponse) GetJSON401

func (r GetStreamResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetStreamResponse) GetJSON402

func (r GetStreamResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetStreamResponse) GetJSON403

func (r GetStreamResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetStreamResponse) GetJSON423

func (r GetStreamResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetStreamResponse) GetJSON429

func (r GetStreamResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetStreamResponse) GetJSON503

func (r GetStreamResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetStreamResponse) Status

func (r GetStreamResponse) Status() string

Status returns HTTPResponse.Status

func (GetStreamResponse) StatusCode

func (r GetStreamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStreamResponse200Headers

type GetStreamResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetStreamResponse200Headers the declared response headers of an HTTP 200 response for GetStream

type GetStreamResponse429Headers

type GetStreamResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetStreamResponse429Headers the declared response headers of an HTTP 429 response for GetStream

type GetStreamResponse503Headers

type GetStreamResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetStreamResponse503Headers the declared response headers of an HTTP 503 response for GetStream

type GetTrader200JSONResponseBodyObject

type GetTrader200JSONResponseBodyObject string

GetTrader200JSONResponseBodyObject defines parameters for GetTrader.

const (
	GetTrader200JSONResponseBodyObjectTrader GetTrader200JSONResponseBodyObject = "trader"
)

Defines values for GetTrader200JSONResponseBodyObject.

func (GetTrader200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetTrader200JSONResponseBodyObject enum.

type GetTraderContext200JSONResponseBodyObject

type GetTraderContext200JSONResponseBodyObject string

GetTraderContext200JSONResponseBodyObject defines parameters for GetTraderContext.

const (
	GetTraderContext200JSONResponseBodyObjectTraderContext GetTraderContext200JSONResponseBodyObject = "trader_context"
)

Defines values for GetTraderContext200JSONResponseBodyObject.

func (GetTraderContext200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetTraderContext200JSONResponseBodyObject enum.

type GetTraderContextMarkdownResponse

type GetTraderContextMarkdownResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTraderContextMarkdownResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTraderContextMarkdownResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetTraderContextMarkdownResponse503Headers
}

func ParseGetTraderContextMarkdownResponse

func ParseGetTraderContextMarkdownResponse(rsp *http.Response) (*GetTraderContextMarkdownResponse, error)

ParseGetTraderContextMarkdownResponse parses an HTTP response from a GetTraderContextMarkdownWithResponse call

func (GetTraderContextMarkdownResponse) ContentType

func (r GetTraderContextMarkdownResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTraderContextMarkdownResponse) GetBody

func (r GetTraderContextMarkdownResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTraderContextMarkdownResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON423

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTraderContextMarkdownResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTraderContextMarkdownResponse) Status

Status returns HTTPResponse.Status

func (GetTraderContextMarkdownResponse) StatusCode

func (r GetTraderContextMarkdownResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTraderContextMarkdownResponse200Headers

type GetTraderContextMarkdownResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetTraderContextMarkdownResponse200Headers the declared response headers of an HTTP 200 response for GetTraderContextMarkdown

type GetTraderContextMarkdownResponse429Headers

type GetTraderContextMarkdownResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetTraderContextMarkdownResponse429Headers the declared response headers of an HTTP 429 response for GetTraderContextMarkdown

type GetTraderContextMarkdownResponse503Headers

type GetTraderContextMarkdownResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetTraderContextMarkdownResponse503Headers the declared response headers of an HTTP 503 response for GetTraderContextMarkdown

type GetTraderContextParams

type GetTraderContextParams struct {
	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetTraderContextParams defines parameters for GetTraderContext.

type GetTraderContextResponse

type GetTraderContextResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   TraderContext                             `json:"data"`
		Meta   ResponseMeta                              `json:"meta"`
		Object GetTraderContext200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTraderContextResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetTraderContextResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTraderContextResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetTraderContextResponse503Headers
}

func ParseGetTraderContextResponse

func ParseGetTraderContextResponse(rsp *http.Response) (*GetTraderContextResponse, error)

ParseGetTraderContextResponse parses an HTTP response from a GetTraderContextWithResponse call

func (GetTraderContextResponse) ContentType

func (r GetTraderContextResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTraderContextResponse) GetBody

func (r GetTraderContextResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTraderContextResponse) GetJSON200

func (r GetTraderContextResponse) GetJSON200() *struct {
	Data   TraderContext                             `json:"data"`
	Meta   ResponseMeta                              `json:"meta"`
	Object GetTraderContext200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTraderContextResponse) GetJSON400

func (r GetTraderContextResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTraderContextResponse) GetJSON401

func (r GetTraderContextResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTraderContextResponse) GetJSON402

func (r GetTraderContextResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetTraderContextResponse) GetJSON403

func (r GetTraderContextResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTraderContextResponse) GetJSON423

func (r GetTraderContextResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetTraderContextResponse) GetJSON429

func (r GetTraderContextResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTraderContextResponse) GetJSON500

func (r GetTraderContextResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTraderContextResponse) GetJSON503

func (r GetTraderContextResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTraderContextResponse) Status

func (r GetTraderContextResponse) Status() string

Status returns HTTPResponse.Status

func (GetTraderContextResponse) StatusCode

func (r GetTraderContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTraderContextResponse200Headers

type GetTraderContextResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetTraderContextResponse200Headers the declared response headers of an HTTP 200 response for GetTraderContext

type GetTraderContextResponse304Headers

type GetTraderContextResponse304Headers struct {
	ETag *string
}

GetTraderContextResponse304Headers the declared response headers of an HTTP 304 response for GetTraderContext

type GetTraderContextResponse429Headers

type GetTraderContextResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetTraderContextResponse429Headers the declared response headers of an HTTP 429 response for GetTraderContext

type GetTraderContextResponse503Headers

type GetTraderContextResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetTraderContextResponse503Headers the declared response headers of an HTTP 503 response for GetTraderContext

type GetTraderExportSnapshot200JSONResponseBodyObject

type GetTraderExportSnapshot200JSONResponseBodyObject string

GetTraderExportSnapshot200JSONResponseBodyObject defines parameters for GetTraderExportSnapshot.

const (
	GetTraderExportSnapshot200JSONResponseBodyObjectTraderExportSnapshot GetTraderExportSnapshot200JSONResponseBodyObject = "trader_export_snapshot"
)

Defines values for GetTraderExportSnapshot200JSONResponseBodyObject.

func (GetTraderExportSnapshot200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetTraderExportSnapshot200JSONResponseBodyObject enum.

type GetTraderExportSnapshotResponse

type GetTraderExportSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   TraderExportSnapshot                             `json:"data"`
		Meta   ResponseMeta                                     `json:"meta"`
		Object GetTraderExportSnapshot200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTraderExportSnapshotResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTraderExportSnapshotResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetTraderExportSnapshotResponse503Headers
}

func ParseGetTraderExportSnapshotResponse

func ParseGetTraderExportSnapshotResponse(rsp *http.Response) (*GetTraderExportSnapshotResponse, error)

ParseGetTraderExportSnapshotResponse parses an HTTP response from a GetTraderExportSnapshotWithResponse call

func (GetTraderExportSnapshotResponse) ContentType

func (r GetTraderExportSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTraderExportSnapshotResponse) GetBody

func (r GetTraderExportSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTraderExportSnapshotResponse) GetJSON200

func (r GetTraderExportSnapshotResponse) GetJSON200() *struct {
	Data   TraderExportSnapshot                             `json:"data"`
	Meta   ResponseMeta                                     `json:"meta"`
	Object GetTraderExportSnapshot200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON400

func (r GetTraderExportSnapshotResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON401

func (r GetTraderExportSnapshotResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON402

func (r GetTraderExportSnapshotResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON403

func (r GetTraderExportSnapshotResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON404

func (r GetTraderExportSnapshotResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON423

func (r GetTraderExportSnapshotResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON429

func (r GetTraderExportSnapshotResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON500

func (r GetTraderExportSnapshotResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTraderExportSnapshotResponse) GetJSON503

func (r GetTraderExportSnapshotResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTraderExportSnapshotResponse) Status

Status returns HTTPResponse.Status

func (GetTraderExportSnapshotResponse) StatusCode

func (r GetTraderExportSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTraderExportSnapshotResponse200Headers

type GetTraderExportSnapshotResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetTraderExportSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetTraderExportSnapshot

type GetTraderExportSnapshotResponse429Headers

type GetTraderExportSnapshotResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetTraderExportSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetTraderExportSnapshot

type GetTraderExportSnapshotResponse503Headers

type GetTraderExportSnapshotResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetTraderExportSnapshotResponse503Headers the declared response headers of an HTTP 503 response for GetTraderExportSnapshot

type GetTraderExportStatusParams

type GetTraderExportStatusParams struct {
	// JobId Export job id returned by the submit route.
	JobId int64 `form:"job_id" json:"job_id"`
}

GetTraderExportStatusParams defines parameters for GetTraderExportStatus.

type GetTraderExportStatusResponse

type GetTraderExportStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TraderExportJob
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTraderExportStatusResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTraderExportStatusResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetTraderExportStatusResponse503Headers
}

func ParseGetTraderExportStatusResponse

func ParseGetTraderExportStatusResponse(rsp *http.Response) (*GetTraderExportStatusResponse, error)

ParseGetTraderExportStatusResponse parses an HTTP response from a GetTraderExportStatusWithResponse call

func (GetTraderExportStatusResponse) ContentType

func (r GetTraderExportStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTraderExportStatusResponse) GetBody

func (r GetTraderExportStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTraderExportStatusResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTraderExportStatusResponse) GetJSON401

func (r GetTraderExportStatusResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTraderExportStatusResponse) GetJSON402

func (r GetTraderExportStatusResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetTraderExportStatusResponse) GetJSON403

func (r GetTraderExportStatusResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTraderExportStatusResponse) GetJSON404

func (r GetTraderExportStatusResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTraderExportStatusResponse) GetJSON423

func (r GetTraderExportStatusResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetTraderExportStatusResponse) GetJSON429

func (r GetTraderExportStatusResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTraderExportStatusResponse) GetJSON500

func (r GetTraderExportStatusResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTraderExportStatusResponse) GetJSON503

func (r GetTraderExportStatusResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTraderExportStatusResponse) Status

Status returns HTTPResponse.Status

func (GetTraderExportStatusResponse) StatusCode

func (r GetTraderExportStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTraderExportStatusResponse200Headers

type GetTraderExportStatusResponse200Headers struct {
	XUsageAccounting *string
}

GetTraderExportStatusResponse200Headers the declared response headers of an HTTP 200 response for GetTraderExportStatus

type GetTraderExportStatusResponse429Headers

type GetTraderExportStatusResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetTraderExportStatusResponse429Headers the declared response headers of an HTTP 429 response for GetTraderExportStatus

type GetTraderExportStatusResponse503Headers

type GetTraderExportStatusResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetTraderExportStatusResponse503Headers the declared response headers of an HTTP 503 response for GetTraderExportStatus

type GetTraderParams

type GetTraderParams struct {
	// Expand Include heavy fields and trust metadata. Repeatable: strategy, categories, quant_metrics, trust.
	Expand *[]GetTraderParamsExpand `form:"expand,omitempty" json:"expand,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetTraderParams defines parameters for GetTrader.

type GetTraderParamsExpand

type GetTraderParamsExpand string

GetTraderParamsExpand defines parameters for GetTrader.

const (
	GetTraderParamsExpandCategories   GetTraderParamsExpand = "categories"
	GetTraderParamsExpandQuantMetrics GetTraderParamsExpand = "quant_metrics"
	GetTraderParamsExpandStrategy     GetTraderParamsExpand = "strategy"
	GetTraderParamsExpandTrust        GetTraderParamsExpand = "trust"
)

Defines values for GetTraderParamsExpand.

func (GetTraderParamsExpand) Valid

func (e GetTraderParamsExpand) Valid() bool

Valid indicates whether the value is a known member of the GetTraderParamsExpand enum.

type GetTraderPnl200JSONResponseBodyObject

type GetTraderPnl200JSONResponseBodyObject string

GetTraderPnl200JSONResponseBodyObject defines parameters for GetTraderPnl.

const (
	GetTraderPnl200JSONResponseBodyObjectTraderPnl GetTraderPnl200JSONResponseBodyObject = "trader_pnl"
)

Defines values for GetTraderPnl200JSONResponseBodyObject.

func (GetTraderPnl200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetTraderPnl200JSONResponseBodyObject enum.

type GetTraderPnlResponse

type GetTraderPnlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   TraderPnl                             `json:"data"`
		Meta   ResponseMeta                          `json:"meta"`
		Object GetTraderPnl200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTraderPnlResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetTraderPnlResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTraderPnlResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetTraderPnlResponse503Headers
}

func ParseGetTraderPnlResponse

func ParseGetTraderPnlResponse(rsp *http.Response) (*GetTraderPnlResponse, error)

ParseGetTraderPnlResponse parses an HTTP response from a GetTraderPnlWithResponse call

func (GetTraderPnlResponse) ContentType

func (r GetTraderPnlResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTraderPnlResponse) GetBody

func (r GetTraderPnlResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTraderPnlResponse) GetJSON200

func (r GetTraderPnlResponse) GetJSON200() *struct {
	Data   TraderPnl                             `json:"data"`
	Meta   ResponseMeta                          `json:"meta"`
	Object GetTraderPnl200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTraderPnlResponse) GetJSON400

func (r GetTraderPnlResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTraderPnlResponse) GetJSON401

func (r GetTraderPnlResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTraderPnlResponse) GetJSON402

func (r GetTraderPnlResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetTraderPnlResponse) GetJSON403

func (r GetTraderPnlResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTraderPnlResponse) GetJSON404

func (r GetTraderPnlResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTraderPnlResponse) GetJSON423

func (r GetTraderPnlResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetTraderPnlResponse) GetJSON429

func (r GetTraderPnlResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTraderPnlResponse) GetJSON503

func (r GetTraderPnlResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTraderPnlResponse) Status

func (r GetTraderPnlResponse) Status() string

Status returns HTTPResponse.Status

func (GetTraderPnlResponse) StatusCode

func (r GetTraderPnlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTraderPnlResponse200Headers

type GetTraderPnlResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetTraderPnlResponse200Headers the declared response headers of an HTTP 200 response for GetTraderPnl

type GetTraderPnlResponse304Headers

type GetTraderPnlResponse304Headers struct {
	ETag *string
}

GetTraderPnlResponse304Headers the declared response headers of an HTTP 304 response for GetTraderPnl

type GetTraderPnlResponse429Headers

type GetTraderPnlResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetTraderPnlResponse429Headers the declared response headers of an HTTP 429 response for GetTraderPnl

type GetTraderPnlResponse503Headers

type GetTraderPnlResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetTraderPnlResponse503Headers the declared response headers of an HTTP 503 response for GetTraderPnl

type GetTraderResponse

type GetTraderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   Trader                             `json:"data"`
		Meta   ResponseMeta                       `json:"meta"`
		Object GetTrader200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetTraderResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetTraderResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetTraderResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetTraderResponse503Headers
}

func ParseGetTraderResponse

func ParseGetTraderResponse(rsp *http.Response) (*GetTraderResponse, error)

ParseGetTraderResponse parses an HTTP response from a GetTraderWithResponse call

func (GetTraderResponse) ContentType

func (r GetTraderResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTraderResponse) GetBody

func (r GetTraderResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTraderResponse) GetJSON200

func (r GetTraderResponse) GetJSON200() *struct {
	Data   Trader                             `json:"data"`
	Meta   ResponseMeta                       `json:"meta"`
	Object GetTrader200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTraderResponse) GetJSON400

func (r GetTraderResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTraderResponse) GetJSON401

func (r GetTraderResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTraderResponse) GetJSON402

func (r GetTraderResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetTraderResponse) GetJSON403

func (r GetTraderResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTraderResponse) GetJSON423

func (r GetTraderResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetTraderResponse) GetJSON429

func (r GetTraderResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetTraderResponse) GetJSON500

func (r GetTraderResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTraderResponse) GetJSON503

func (r GetTraderResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetTraderResponse) Status

func (r GetTraderResponse) Status() string

Status returns HTTPResponse.Status

func (GetTraderResponse) StatusCode

func (r GetTraderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTraderResponse200Headers

type GetTraderResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetTraderResponse200Headers the declared response headers of an HTTP 200 response for GetTrader

type GetTraderResponse304Headers

type GetTraderResponse304Headers struct {
	ETag *string
}

GetTraderResponse304Headers the declared response headers of an HTTP 304 response for GetTrader

type GetTraderResponse429Headers

type GetTraderResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetTraderResponse429Headers the declared response headers of an HTTP 429 response for GetTrader

type GetTraderResponse503Headers

type GetTraderResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetTraderResponse503Headers the declared response headers of an HTTP 503 response for GetTrader

type GetUsageResponse

type GetUsageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Usage
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetUsageResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetUsageResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetUsageResponse503Headers
}

func ParseGetUsageResponse

func ParseGetUsageResponse(rsp *http.Response) (*GetUsageResponse, error)

ParseGetUsageResponse parses an HTTP response from a GetUsageWithResponse call

func (GetUsageResponse) ContentType

func (r GetUsageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUsageResponse) GetBody

func (r GetUsageResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUsageResponse) GetJSON200

func (r GetUsageResponse) GetJSON200() *Usage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUsageResponse) GetJSON401

func (r GetUsageResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetUsageResponse) GetJSON402

func (r GetUsageResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetUsageResponse) GetJSON403

func (r GetUsageResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetUsageResponse) GetJSON423

func (r GetUsageResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetUsageResponse) GetJSON429

func (r GetUsageResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetUsageResponse) GetJSON503

func (r GetUsageResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetUsageResponse) Status

func (r GetUsageResponse) Status() string

Status returns HTTPResponse.Status

func (GetUsageResponse) StatusCode

func (r GetUsageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUsageResponse200Headers

type GetUsageResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetUsageResponse200Headers the declared response headers of an HTTP 200 response for GetUsage

type GetUsageResponse429Headers

type GetUsageResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetUsageResponse429Headers the declared response headers of an HTTP 429 response for GetUsage

type GetUsageResponse503Headers

type GetUsageResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetUsageResponse503Headers the declared response headers of an HTTP 503 response for GetUsage

type GetWebhook200JSONResponseBodyObject

type GetWebhook200JSONResponseBodyObject string

GetWebhook200JSONResponseBodyObject defines parameters for GetWebhook.

const (
	GetWebhook200JSONResponseBodyObjectWebhook GetWebhook200JSONResponseBodyObject = "webhook"
)

Defines values for GetWebhook200JSONResponseBodyObject.

func (GetWebhook200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetWebhook200JSONResponseBodyObject enum.

type GetWebhookResponse

type GetWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WebhookEndpoint                     `json:"data"`
		Meta   ResponseMeta                        `json:"meta"`
		Object GetWebhook200JSONResponseBodyObject `json:"object"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetWebhookResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetWebhookResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetWebhookResponse503Headers
}

func ParseGetWebhookResponse

func ParseGetWebhookResponse(rsp *http.Response) (*GetWebhookResponse, error)

ParseGetWebhookResponse parses an HTTP response from a GetWebhookWithResponse call

func (GetWebhookResponse) ContentType

func (r GetWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWebhookResponse) GetBody

func (r GetWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWebhookResponse) GetJSON200

func (r GetWebhookResponse) GetJSON200() *struct {
	Data   WebhookEndpoint                     `json:"data"`
	Meta   ResponseMeta                        `json:"meta"`
	Object GetWebhook200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWebhookResponse) GetJSON401

func (r GetWebhookResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWebhookResponse) GetJSON402

func (r GetWebhookResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetWebhookResponse) GetJSON403

func (r GetWebhookResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWebhookResponse) GetJSON404

func (r GetWebhookResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWebhookResponse) GetJSON423

func (r GetWebhookResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetWebhookResponse) GetJSON429

func (r GetWebhookResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetWebhookResponse) GetJSON500

func (r GetWebhookResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetWebhookResponse) GetJSON503

func (r GetWebhookResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWebhookResponse) Status

func (r GetWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (GetWebhookResponse) StatusCode

func (r GetWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWebhookResponse200Headers

type GetWebhookResponse200Headers struct {
	XUsageAccounting *string
}

GetWebhookResponse200Headers the declared response headers of an HTTP 200 response for GetWebhook

type GetWebhookResponse429Headers

type GetWebhookResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetWebhookResponse429Headers the declared response headers of an HTTP 429 response for GetWebhook

type GetWebhookResponse503Headers

type GetWebhookResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetWebhookResponse503Headers the declared response headers of an HTTP 503 response for GetWebhook

type GetWeeklyReportSnapshot200JSONResponseBodyObject

type GetWeeklyReportSnapshot200JSONResponseBodyObject string

GetWeeklyReportSnapshot200JSONResponseBodyObject defines parameters for GetWeeklyReportSnapshot.

const (
	GetWeeklyReportSnapshot200JSONResponseBodyObjectReportSnapshot GetWeeklyReportSnapshot200JSONResponseBodyObject = "report_snapshot"
)

Defines values for GetWeeklyReportSnapshot200JSONResponseBodyObject.

func (GetWeeklyReportSnapshot200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetWeeklyReportSnapshot200JSONResponseBodyObject enum.

type GetWeeklyReportSnapshotParams

type GetWeeklyReportSnapshotParams struct {
	// From UTC source-range start in YYYY-MM-DD format; required with to.
	From *string `form:"from,omitempty" json:"from,omitempty"`

	// To UTC source-range end in YYYY-MM-DD format; required with from.
	To *string `form:"to,omitempty" json:"to,omitempty"`

	// Week ISO week selector in YYYY-WW format; alternative to from/to.
	Week *string `form:"week,omitempty" json:"week,omitempty"`
}

GetWeeklyReportSnapshotParams defines parameters for GetWeeklyReportSnapshot.

type GetWeeklyReportSnapshotResponse

type GetWeeklyReportSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   ReportSnapshot                                   `json:"data"`
		Meta   ResponseMeta                                     `json:"meta"`
		Object GetWeeklyReportSnapshot200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetWeeklyReportSnapshotResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetWeeklyReportSnapshotResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetWeeklyReportSnapshotResponse503Headers
}

func ParseGetWeeklyReportSnapshotResponse

func ParseGetWeeklyReportSnapshotResponse(rsp *http.Response) (*GetWeeklyReportSnapshotResponse, error)

ParseGetWeeklyReportSnapshotResponse parses an HTTP response from a GetWeeklyReportSnapshotWithResponse call

func (GetWeeklyReportSnapshotResponse) ContentType

func (r GetWeeklyReportSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWeeklyReportSnapshotResponse) GetBody

func (r GetWeeklyReportSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWeeklyReportSnapshotResponse) GetJSON200

func (r GetWeeklyReportSnapshotResponse) GetJSON200() *struct {
	Data   ReportSnapshot                                   `json:"data"`
	Meta   ResponseMeta                                     `json:"meta"`
	Object GetWeeklyReportSnapshot200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON400

func (r GetWeeklyReportSnapshotResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON401

func (r GetWeeklyReportSnapshotResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON402

func (r GetWeeklyReportSnapshotResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON403

func (r GetWeeklyReportSnapshotResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON423

func (r GetWeeklyReportSnapshotResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON429

func (r GetWeeklyReportSnapshotResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON500

func (r GetWeeklyReportSnapshotResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetWeeklyReportSnapshotResponse) GetJSON503

func (r GetWeeklyReportSnapshotResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWeeklyReportSnapshotResponse) Status

Status returns HTTPResponse.Status

func (GetWeeklyReportSnapshotResponse) StatusCode

func (r GetWeeklyReportSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWeeklyReportSnapshotResponse200Headers

type GetWeeklyReportSnapshotResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetWeeklyReportSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetWeeklyReportSnapshot

type GetWeeklyReportSnapshotResponse429Headers

type GetWeeklyReportSnapshotResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetWeeklyReportSnapshotResponse429Headers the declared response headers of an HTTP 429 response for GetWeeklyReportSnapshot

type GetWeeklyReportSnapshotResponse503Headers

type GetWeeklyReportSnapshotResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetWeeklyReportSnapshotResponse503Headers the declared response headers of an HTTP 503 response for GetWeeklyReportSnapshot

type GetWhaleTrade200JSONResponseBodyObject

type GetWhaleTrade200JSONResponseBodyObject string

GetWhaleTrade200JSONResponseBodyObject defines parameters for GetWhaleTrade.

const (
	GetWhaleTrade200JSONResponseBodyObjectWhaleTrade GetWhaleTrade200JSONResponseBodyObject = "whale_trade"
)

Defines values for GetWhaleTrade200JSONResponseBodyObject.

func (GetWhaleTrade200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the GetWhaleTrade200JSONResponseBodyObject enum.

type GetWhaleTradeParams

type GetWhaleTradeParams struct {
	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

GetWhaleTradeParams defines parameters for GetWhaleTrade.

type GetWhaleTradeResponse

type GetWhaleTradeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WhaleTradeDetail                       `json:"data"`
		Meta   ResponseMeta                           `json:"meta"`
		Object GetWhaleTrade200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetWhaleTradeResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetWhaleTradeResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetWhaleTradeResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetWhaleTradeResponse503Headers
}

func ParseGetWhaleTradeResponse

func ParseGetWhaleTradeResponse(rsp *http.Response) (*GetWhaleTradeResponse, error)

ParseGetWhaleTradeResponse parses an HTTP response from a GetWhaleTradeWithResponse call

func (GetWhaleTradeResponse) ContentType

func (r GetWhaleTradeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWhaleTradeResponse) GetBody

func (r GetWhaleTradeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWhaleTradeResponse) GetJSON200

func (r GetWhaleTradeResponse) GetJSON200() *struct {
	Data   WhaleTradeDetail                       `json:"data"`
	Meta   ResponseMeta                           `json:"meta"`
	Object GetWhaleTrade200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWhaleTradeResponse) GetJSON400

func (r GetWhaleTradeResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWhaleTradeResponse) GetJSON401

func (r GetWhaleTradeResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWhaleTradeResponse) GetJSON402

func (r GetWhaleTradeResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetWhaleTradeResponse) GetJSON403

func (r GetWhaleTradeResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWhaleTradeResponse) GetJSON404

func (r GetWhaleTradeResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWhaleTradeResponse) GetJSON423

func (r GetWhaleTradeResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (GetWhaleTradeResponse) GetJSON429

func (r GetWhaleTradeResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetWhaleTradeResponse) GetJSON503

func (r GetWhaleTradeResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWhaleTradeResponse) Status

func (r GetWhaleTradeResponse) Status() string

Status returns HTTPResponse.Status

func (GetWhaleTradeResponse) StatusCode

func (r GetWhaleTradeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWhaleTradeResponse200Headers

type GetWhaleTradeResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

GetWhaleTradeResponse200Headers the declared response headers of an HTTP 200 response for GetWhaleTrade

type GetWhaleTradeResponse304Headers

type GetWhaleTradeResponse304Headers struct {
	ETag *string
}

GetWhaleTradeResponse304Headers the declared response headers of an HTTP 304 response for GetWhaleTrade

type GetWhaleTradeResponse429Headers

type GetWhaleTradeResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

GetWhaleTradeResponse429Headers the declared response headers of an HTTP 429 response for GetWhaleTrade

type GetWhaleTradeResponse503Headers

type GetWhaleTradeResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

GetWhaleTradeResponse503Headers the declared response headers of an HTTP 503 response for GetWhaleTrade

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type LargeExportPolicy

type LargeExportPolicy struct {
	AsyncJob             map[string]interface{} `json:"async_job"`
	CurrentInternalRoute string                 `json:"current_internal_route"`
	DirectStreaming      map[string]interface{} `json:"direct_streaming"`
	Mode                 LargeExportPolicyMode  `json:"mode"`
	RateLimit            map[string]interface{} `json:"rate_limit"`

	// V1Async Programmatic API-key-gated export routes (submit/status/download) and supported formats (json, ndjson, csv).
	V1Async struct {
		// DownloadRoute GET route template that 302-redirects to the file.
		DownloadRoute *string `json:"download_route,omitempty"`

		// Formats Supported ?format= values.
		Formats *[]LargeExportPolicyV1AsyncFormats `json:"formats,omitempty"`

		// Retention How long a finished export is retained before expiry.
		Retention *string `json:"retention,omitempty"`

		// StatusRoute GET route template to poll job status.
		StatusRoute *string `json:"status_route,omitempty"`

		// StatusValues Possible job status values.
		StatusValues *[]LargeExportPolicyV1AsyncStatusValues `json:"status_values,omitempty"`

		// SubmitRoute POST route template to submit an export job.
		SubmitRoute *string `json:"submit_route,omitempty"`
	} `json:"v1_async"`
}

LargeExportPolicy defines model for LargeExportPolicy.

type LargeExportPolicyMode

type LargeExportPolicyMode string

LargeExportPolicyMode defines model for LargeExportPolicy.Mode.

const (
	V1AsyncExport LargeExportPolicyMode = "v1_async_export"
)

Defines values for LargeExportPolicyMode.

func (LargeExportPolicyMode) Valid

func (e LargeExportPolicyMode) Valid() bool

Valid indicates whether the value is a known member of the LargeExportPolicyMode enum.

type LargeExportPolicyV1AsyncFormats

type LargeExportPolicyV1AsyncFormats string

LargeExportPolicyV1AsyncFormats defines model for LargeExportPolicy.V1Async.Formats.

const (
	LargeExportPolicyV1AsyncFormatsCsv    LargeExportPolicyV1AsyncFormats = "csv"
	LargeExportPolicyV1AsyncFormatsJson   LargeExportPolicyV1AsyncFormats = "json"
	LargeExportPolicyV1AsyncFormatsNdjson LargeExportPolicyV1AsyncFormats = "ndjson"
)

Defines values for LargeExportPolicyV1AsyncFormats.

func (LargeExportPolicyV1AsyncFormats) Valid

Valid indicates whether the value is a known member of the LargeExportPolicyV1AsyncFormats enum.

type LargeExportPolicyV1AsyncStatusValues

type LargeExportPolicyV1AsyncStatusValues string

LargeExportPolicyV1AsyncStatusValues defines model for LargeExportPolicy.V1Async.StatusValues.

const (
	LargeExportPolicyV1AsyncStatusValuesFailed  LargeExportPolicyV1AsyncStatusValues = "failed"
	LargeExportPolicyV1AsyncStatusValuesQueued  LargeExportPolicyV1AsyncStatusValues = "queued"
	LargeExportPolicyV1AsyncStatusValuesReady   LargeExportPolicyV1AsyncStatusValues = "ready"
	LargeExportPolicyV1AsyncStatusValuesRunning LargeExportPolicyV1AsyncStatusValues = "running"
)

Defines values for LargeExportPolicyV1AsyncStatusValues.

func (LargeExportPolicyV1AsyncStatusValues) Valid

Valid indicates whether the value is a known member of the LargeExportPolicyV1AsyncStatusValues enum.

type LargePosition

type LargePosition struct {
	// AvgEntryPrice Volume-weighted entry price.
	AvgEntryPrice *float32 `json:"avg_entry_price,omitempty"`

	// CurrentPrice Latest provider mark price for the position's token.
	CurrentPrice *float32 `json:"current_price,omitempty"`

	// EventLegCount Legs collapsed into this representative row for one (wallet, event, outcome side) group. 1 means standalone.
	EventLegCount int `json:"event_leg_count"`

	// EventTotalValueUsd Aggregate provider currentValue across collapsed sibling legs; equals total_size_usd when event_leg_count = 1.
	EventTotalValueUsd *float32  `json:"event_total_value_usd,omitempty"`
	FirstSeenAt        time.Time `json:"first_seen_at"`

	// Id Composite prefixed ID `pos_<wallet>:<condition_id>:<outcome_index>`.
	Id            string    `json:"id"`
	LastUpdatedAt time.Time `json:"last_updated_at"`
	Market        struct {
		Category    *string `json:"category,omitempty"`
		ConditionId string  `json:"condition_id"`
		EventSlug   *string `json:"event_slug,omitempty"`

		// Id Prefixed ID (`mkt_...`).
		Id    string  `json:"id"`
		Slug  *string `json:"slug,omitempty"`
		Title *string `json:"title,omitempty"`
	} `json:"market"`

	// OutcomeLabel Backend-resolved outcome label (provider outcome, else Yes/No from the binary index).
	OutcomeLabel *string `json:"outcome_label,omitempty"`

	// Platform Provider discriminator. Always polymarket.
	Platform LargePositionPlatform `json:"platform"`

	// PositionUnrealizedPnl Provider per-position unrealized P&L (trader_markets.unrealized_pnl_num, from Polymarket cashPnl).
	PositionUnrealizedPnl *float32 `json:"position_unrealized_pnl,omitempty"`

	// ShareCount Live share count for this position.
	ShareCount float32 `json:"share_count"`

	// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for this outcome; null when unavailable (e.g. unsynced markets).
	TokenId *string `json:"token_id,omitempty"`

	// TotalSizeUsd Aggregate provider currentValue for this position leg in USD.
	TotalSizeUsd *float32 `json:"total_size_usd,omitempty"`
	Trader       struct {
		Address string                    `json:"address"`
		Grade   *LargePositionTraderGrade `json:"grade,omitempty"`

		// Id Prefixed ID (`trd_...`).
		Id            string `json:"id"`
		MarketsTraded *int   `json:"markets_traded,omitempty"`

		// Pnl Trader lifetime realized P&L across all markets.
		Pnl      *float32 `json:"pnl,omitempty"`
		Username *string  `json:"username,omitempty"`
		WinRate  *float32 `json:"win_rate,omitempty"`
	} `json:"trader"`
}

LargePosition defines model for LargePosition.

type LargePositionPlatform

type LargePositionPlatform string

LargePositionPlatform Provider discriminator. Always polymarket.

const (
	LargePositionPlatformPolymarket LargePositionPlatform = "polymarket"
)

Defines values for LargePositionPlatform.

func (LargePositionPlatform) Valid

func (e LargePositionPlatform) Valid() bool

Valid indicates whether the value is a known member of the LargePositionPlatform enum.

type LargePositionTraderGrade

type LargePositionTraderGrade string

LargePositionTraderGrade defines model for LargePosition.Trader.Grade.

const (
	LargePositionTraderGradeA LargePositionTraderGrade = "A"
	LargePositionTraderGradeB LargePositionTraderGrade = "B"
	LargePositionTraderGradeC LargePositionTraderGrade = "C"
	LargePositionTraderGradeD LargePositionTraderGrade = "D"
	LargePositionTraderGradeF LargePositionTraderGrade = "F"
	LargePositionTraderGradeS LargePositionTraderGrade = "S"
)

Defines values for LargePositionTraderGrade.

func (LargePositionTraderGrade) Valid

func (e LargePositionTraderGrade) Valid() bool

Valid indicates whether the value is a known member of the LargePositionTraderGrade enum.

type LeaderboardEntry

type LeaderboardEntry struct {
	Address       string     `json:"address"`
	Grade         *string    `json:"grade,omitempty"`
	Id            string     `json:"id"`
	LastActive    *time.Time `json:"last_active,omitempty"`
	MarketsTraded *int       `json:"markets_traded,omitempty"`
	Platform      string     `json:"platform"`

	// Pnl All-time P&L in USD (total_pnl), including unrealized open positions. Kept for back-compat; prefer realized_pnl for the banked figure.
	Pnl *float32 `json:"pnl,omitempty"`

	// RealizedPnl All-time banked realized P&L in USD (total_pnl - open_pnl), excluding unrealized open positions. Matches the realized-P&L-dominant grade/board.
	RealizedPnl  *float32 `json:"realized_pnl,omitempty"`
	Score        *float32 `json:"score,omitempty"`
	StrategyType *string  `json:"strategy_type,omitempty"`

	// StreakTier Hot-streak tier (trailing-7d cross-sectional percentile); a separate axis from the all-time grade. Null when no recent activity.
	StreakTier *LeaderboardEntryStreakTier `json:"streak_tier,omitempty"`
	Username   *string                     `json:"username,omitempty"`
	Volume     *float32                    `json:"volume,omitempty"`
	WinRate    *float32                    `json:"win_rate,omitempty"`
}

LeaderboardEntry defines model for LeaderboardEntry.

type LeaderboardEntryStreakTier

type LeaderboardEntryStreakTier string

LeaderboardEntryStreakTier Hot-streak tier (trailing-7d cross-sectional percentile); a separate axis from the all-time grade. Null when no recent activity.

const (
	LeaderboardEntryStreakTierCold    LeaderboardEntryStreakTier = "cold"
	LeaderboardEntryStreakTierCooling LeaderboardEntryStreakTier = "cooling"
	LeaderboardEntryStreakTierHot     LeaderboardEntryStreakTier = "hot"
	LeaderboardEntryStreakTierNeutral LeaderboardEntryStreakTier = "neutral"
	LeaderboardEntryStreakTierRising  LeaderboardEntryStreakTier = "rising"
)

Defines values for LeaderboardEntryStreakTier.

func (LeaderboardEntryStreakTier) Valid

func (e LeaderboardEntryStreakTier) Valid() bool

Valid indicates whether the value is a known member of the LeaderboardEntryStreakTier enum.

type ListInsiderRadar200JSONResponseBodyObject

type ListInsiderRadar200JSONResponseBodyObject string

ListInsiderRadar200JSONResponseBodyObject defines parameters for ListInsiderRadar.

const (
	ListInsiderRadar200JSONResponseBodyObjectList ListInsiderRadar200JSONResponseBodyObject = "list"
)

Defines values for ListInsiderRadar200JSONResponseBodyObject.

func (ListInsiderRadar200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListInsiderRadar200JSONResponseBodyObject enum.

type ListInsiderRadarParams

type ListInsiderRadarParams struct {
	// Limit Maximum number of radar flags to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// MinSuspicion Minimum suspicion score (0-100). The live flag floor of 60 also applies.
	MinSuspicion *float32 `form:"min_suspicion,omitempty" json:"min_suspicion,omitempty"`

	// Severity Compatible filter. flag selects live threshold crossings. watch returns no rows because no live watch policy exists.
	Severity *ListInsiderRadarParamsSeverity `form:"severity,omitempty" json:"severity,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListInsiderRadarParams defines parameters for ListInsiderRadar.

type ListInsiderRadarParamsSeverity

type ListInsiderRadarParamsSeverity string

ListInsiderRadarParamsSeverity defines parameters for ListInsiderRadar.

const (
	ListInsiderRadarParamsSeverityFlag  ListInsiderRadarParamsSeverity = "flag"
	ListInsiderRadarParamsSeverityWatch ListInsiderRadarParamsSeverity = "watch"
)

Defines values for ListInsiderRadarParamsSeverity.

func (ListInsiderRadarParamsSeverity) Valid

Valid indicates whether the value is a known member of the ListInsiderRadarParamsSeverity enum.

type ListInsiderRadarResponse

type ListInsiderRadarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []RadarFlag                               `json:"data"`
		HasMore    bool                                      `json:"has_more"`
		Meta       ResponseMeta                              `json:"meta"`
		NextCursor *string                                   `json:"next_cursor,omitempty"`
		Object     ListInsiderRadar200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListInsiderRadarResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListInsiderRadarResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListInsiderRadarResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListInsiderRadarResponse503Headers
}

func ParseListInsiderRadarResponse

func ParseListInsiderRadarResponse(rsp *http.Response) (*ListInsiderRadarResponse, error)

ParseListInsiderRadarResponse parses an HTTP response from a ListInsiderRadarWithResponse call

func (ListInsiderRadarResponse) ContentType

func (r ListInsiderRadarResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListInsiderRadarResponse) GetBody

func (r ListInsiderRadarResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListInsiderRadarResponse) GetJSON200

func (r ListInsiderRadarResponse) GetJSON200() *struct {
	Data       []RadarFlag                               `json:"data"`
	HasMore    bool                                      `json:"has_more"`
	Meta       ResponseMeta                              `json:"meta"`
	NextCursor *string                                   `json:"next_cursor,omitempty"`
	Object     ListInsiderRadar200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListInsiderRadarResponse) GetJSON400

func (r ListInsiderRadarResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListInsiderRadarResponse) GetJSON401

func (r ListInsiderRadarResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListInsiderRadarResponse) GetJSON402

func (r ListInsiderRadarResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListInsiderRadarResponse) GetJSON403

func (r ListInsiderRadarResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListInsiderRadarResponse) GetJSON423

func (r ListInsiderRadarResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListInsiderRadarResponse) GetJSON429

func (r ListInsiderRadarResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListInsiderRadarResponse) GetJSON503

func (r ListInsiderRadarResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListInsiderRadarResponse) Status

func (r ListInsiderRadarResponse) Status() string

Status returns HTTPResponse.Status

func (ListInsiderRadarResponse) StatusCode

func (r ListInsiderRadarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListInsiderRadarResponse200Headers

type ListInsiderRadarResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListInsiderRadarResponse200Headers the declared response headers of an HTTP 200 response for ListInsiderRadar

type ListInsiderRadarResponse304Headers

type ListInsiderRadarResponse304Headers struct {
	ETag *string
}

ListInsiderRadarResponse304Headers the declared response headers of an HTTP 304 response for ListInsiderRadar

type ListInsiderRadarResponse429Headers

type ListInsiderRadarResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListInsiderRadarResponse429Headers the declared response headers of an HTTP 429 response for ListInsiderRadar

type ListInsiderRadarResponse503Headers

type ListInsiderRadarResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListInsiderRadarResponse503Headers the declared response headers of an HTTP 503 response for ListInsiderRadar

type ListLargePositions200JSONResponseBodyObject

type ListLargePositions200JSONResponseBodyObject string

ListLargePositions200JSONResponseBodyObject defines parameters for ListLargePositions.

const (
	ListLargePositions200JSONResponseBodyObjectList ListLargePositions200JSONResponseBodyObject = "list"
)

Defines values for ListLargePositions200JSONResponseBodyObject.

func (ListLargePositions200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListLargePositions200JSONResponseBodyObject enum.

type ListLargePositionsParams

type ListLargePositionsParams struct {
	// Limit Maximum number of large positions to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque pagination cursor from a previous response.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// MinSize Minimum position value in USD.
	MinSize *float32 `form:"min_size,omitempty" json:"min_size,omitempty"`

	// Category One RFC 4180 CSV record of exact current provider-backed market_canonical.category values. Legacy unquoted lists such as NBA,WNBA remain valid; values containing commas, quotes, or newlines are CSV-quoted. Matching is case-insensitive. Malformed quoted input fails closed as one unknown exact category.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// MinGrade Minimum trader grade.
	MinGrade *ListLargePositionsParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// ConditionId Scope to one market. Accepts the raw provider condition_id or the mkt_-prefixed market id (round-trips a value from a list response). Polymarket-only; an unknown id returns [].
	ConditionId *string `form:"condition_id,omitempty" json:"condition_id,omitempty"`
}

ListLargePositionsParams defines parameters for ListLargePositions.

type ListLargePositionsParamsMinGrade

type ListLargePositionsParamsMinGrade string

ListLargePositionsParamsMinGrade defines parameters for ListLargePositions.

const (
	ListLargePositionsParamsMinGradeA ListLargePositionsParamsMinGrade = "A"
	ListLargePositionsParamsMinGradeB ListLargePositionsParamsMinGrade = "B"
	ListLargePositionsParamsMinGradeC ListLargePositionsParamsMinGrade = "C"
	ListLargePositionsParamsMinGradeD ListLargePositionsParamsMinGrade = "D"
	ListLargePositionsParamsMinGradeF ListLargePositionsParamsMinGrade = "F"
	ListLargePositionsParamsMinGradeS ListLargePositionsParamsMinGrade = "S"
)

Defines values for ListLargePositionsParamsMinGrade.

func (ListLargePositionsParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListLargePositionsParamsMinGrade enum.

type ListLargePositionsResponse

type ListLargePositionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data    []LargePosition `json:"data"`
		HasMore bool            `json:"has_more"`
		Meta    ResponseMeta    `json:"meta"`

		// NextCursor Opaque cursor for the next page; absent on the last page.
		NextCursor *string                                     `json:"next_cursor,omitempty"`
		Object     ListLargePositions200JSONResponseBodyObject `json:"object"`

		// Total Total ranked rows when the read model exposes a count; may be absent.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListLargePositionsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListLargePositionsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListLargePositionsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListLargePositionsResponse503Headers
}

func ParseListLargePositionsResponse

func ParseListLargePositionsResponse(rsp *http.Response) (*ListLargePositionsResponse, error)

ParseListLargePositionsResponse parses an HTTP response from a ListLargePositionsWithResponse call

func (ListLargePositionsResponse) ContentType

func (r ListLargePositionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLargePositionsResponse) GetBody

func (r ListLargePositionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListLargePositionsResponse) GetJSON200

func (r ListLargePositionsResponse) GetJSON200() *struct {
	Data    []LargePosition `json:"data"`
	HasMore bool            `json:"has_more"`
	Meta    ResponseMeta    `json:"meta"`

	// NextCursor Opaque cursor for the next page; absent on the last page.
	NextCursor *string                                     `json:"next_cursor,omitempty"`
	Object     ListLargePositions200JSONResponseBodyObject `json:"object"`

	// Total Total ranked rows when the read model exposes a count; may be absent.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListLargePositionsResponse) GetJSON400

func (r ListLargePositionsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListLargePositionsResponse) GetJSON401

func (r ListLargePositionsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListLargePositionsResponse) GetJSON402

func (r ListLargePositionsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListLargePositionsResponse) GetJSON403

func (r ListLargePositionsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListLargePositionsResponse) GetJSON423

func (r ListLargePositionsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListLargePositionsResponse) GetJSON429

func (r ListLargePositionsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListLargePositionsResponse) GetJSON503

func (r ListLargePositionsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListLargePositionsResponse) Status

Status returns HTTPResponse.Status

func (ListLargePositionsResponse) StatusCode

func (r ListLargePositionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLargePositionsResponse200Headers

type ListLargePositionsResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListLargePositionsResponse200Headers the declared response headers of an HTTP 200 response for ListLargePositions

type ListLargePositionsResponse304Headers

type ListLargePositionsResponse304Headers struct {
	ETag *string
}

ListLargePositionsResponse304Headers the declared response headers of an HTTP 304 response for ListLargePositions

type ListLargePositionsResponse429Headers

type ListLargePositionsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListLargePositionsResponse429Headers the declared response headers of an HTTP 429 response for ListLargePositions

type ListLargePositionsResponse503Headers

type ListLargePositionsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListLargePositionsResponse503Headers the declared response headers of an HTTP 503 response for ListLargePositions

type ListLeaderboard200JSONResponseBodyObject

type ListLeaderboard200JSONResponseBodyObject string

ListLeaderboard200JSONResponseBodyObject defines parameters for ListLeaderboard.

const (
	ListLeaderboard200JSONResponseBodyObjectList ListLeaderboard200JSONResponseBodyObject = "list"
)

Defines values for ListLeaderboard200JSONResponseBodyObject.

func (ListLeaderboard200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListLeaderboard200JSONResponseBodyObject enum.

type ListLeaderboardParams

type ListLeaderboardParams struct {
	// Limit Maximum number of ranked traders to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque lbv1_ pagination cursor from a prior response. It binds the finite score/address boundary to the committed leaderboard generation and the effective category/strategy filters; legacy, malformed, non-finite, and unsupported-version cursors are rejected.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Category Filter by category. Values are matched to canonical category buckets: political variants (Elections, Global Politics, U.S. Politics, ...) fold into Politics, Geopolitics stays distinct, Culture/Entertainment map to Pop Culture, Science maps to Science & Tech, and Finance/Business map to Stocks. Mapped buckets are case-insensitive; passthrough categories (Crypto, NBA, and the sports leagues) match case-sensitively against the provider-native bucket key, so use exact casing (e.g. Crypto, NBA).
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Strategy Filter by ML-detected strategy type. Values come from backend/crates/analytics/src/trader_analysis/classification/decision_tree.rs and are matched exactly against ml_trader_category.primary_type. Values outside the declared enum return HTTP 400.
	Strategy *ListLeaderboardParamsStrategy `form:"strategy,omitempty" json:"strategy,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListLeaderboardParams defines parameters for ListLeaderboard.

type ListLeaderboardParamsStrategy

type ListLeaderboardParamsStrategy string

ListLeaderboardParamsStrategy defines parameters for ListLeaderboard.

const (
	Accumulator ListLeaderboardParamsStrategy = "accumulator"
	AlgoTrader  ListLeaderboardParamsStrategy = "algo_trader"
	Arbitrageur ListLeaderboardParamsStrategy = "arbitrageur"
	Directional ListLeaderboardParamsStrategy = "directional"
	EventDriven ListLeaderboardParamsStrategy = "event_driven"
	MarketMaker ListLeaderboardParamsStrategy = "market_maker"
	Momentum    ListLeaderboardParamsStrategy = "momentum"
	Scalper     ListLeaderboardParamsStrategy = "scalper"
	Speculator  ListLeaderboardParamsStrategy = "speculator"
	SwingTrader ListLeaderboardParamsStrategy = "swing_trader"
)

Defines values for ListLeaderboardParamsStrategy.

func (ListLeaderboardParamsStrategy) Valid

Valid indicates whether the value is a known member of the ListLeaderboardParamsStrategy enum.

type ListLeaderboardResponse

type ListLeaderboardResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []LeaderboardEntry                       `json:"data"`
		HasMore    bool                                     `json:"has_more"`
		Meta       ResponseMeta                             `json:"meta"`
		NextCursor *string                                  `json:"next_cursor,omitempty"`
		Object     ListLeaderboard200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListLeaderboardResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListLeaderboardResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListLeaderboardResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListLeaderboardResponse503Headers
}

func ParseListLeaderboardResponse

func ParseListLeaderboardResponse(rsp *http.Response) (*ListLeaderboardResponse, error)

ParseListLeaderboardResponse parses an HTTP response from a ListLeaderboardWithResponse call

func (ListLeaderboardResponse) ContentType

func (r ListLeaderboardResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLeaderboardResponse) GetBody

func (r ListLeaderboardResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListLeaderboardResponse) GetJSON200

func (r ListLeaderboardResponse) GetJSON200() *struct {
	Data       []LeaderboardEntry                       `json:"data"`
	HasMore    bool                                     `json:"has_more"`
	Meta       ResponseMeta                             `json:"meta"`
	NextCursor *string                                  `json:"next_cursor,omitempty"`
	Object     ListLeaderboard200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListLeaderboardResponse) GetJSON400

func (r ListLeaderboardResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListLeaderboardResponse) GetJSON401

func (r ListLeaderboardResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListLeaderboardResponse) GetJSON402

func (r ListLeaderboardResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListLeaderboardResponse) GetJSON403

func (r ListLeaderboardResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListLeaderboardResponse) GetJSON423

func (r ListLeaderboardResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListLeaderboardResponse) GetJSON429

func (r ListLeaderboardResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListLeaderboardResponse) GetJSON503

func (r ListLeaderboardResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListLeaderboardResponse) Status

func (r ListLeaderboardResponse) Status() string

Status returns HTTPResponse.Status

func (ListLeaderboardResponse) StatusCode

func (r ListLeaderboardResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLeaderboardResponse200Headers

type ListLeaderboardResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListLeaderboardResponse200Headers the declared response headers of an HTTP 200 response for ListLeaderboard

type ListLeaderboardResponse304Headers

type ListLeaderboardResponse304Headers struct {
	ETag *string
}

ListLeaderboardResponse304Headers the declared response headers of an HTTP 304 response for ListLeaderboard

type ListLeaderboardResponse429Headers

type ListLeaderboardResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListLeaderboardResponse429Headers the declared response headers of an HTTP 429 response for ListLeaderboard

type ListLeaderboardResponse503Headers

type ListLeaderboardResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListLeaderboardResponse503Headers the declared response headers of an HTTP 503 response for ListLeaderboard

type ListPositions200JSONResponseBodyObject

type ListPositions200JSONResponseBodyObject string

ListPositions200JSONResponseBodyObject defines parameters for ListPositions.

const (
	ListPositions200JSONResponseBodyObjectList ListPositions200JSONResponseBodyObject = "list"
)

Defines values for ListPositions200JSONResponseBodyObject.

func (ListPositions200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListPositions200JSONResponseBodyObject enum.

type ListPositionsParams

type ListPositionsParams struct {
	// Limit Maximum number of current positions to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// MinSize Minimum current position value in USD.
	MinSize *float32 `form:"min_size,omitempty" json:"min_size,omitempty"`

	// Category Exact match against provider-backed market_canonical.category.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// MinGrade Minimum trader grade allowlist. `A` matches S and A; `B` matches S, A, B; etc.
	MinGrade *ListPositionsParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// Side Filter by the binary outcome side. `yes` maps to outcome_index=0, `no` to outcome_index=1.
	Side *ListPositionsParamsSide `form:"side,omitempty" json:"side,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListPositionsParams defines parameters for ListPositions.

type ListPositionsParamsMinGrade

type ListPositionsParamsMinGrade string

ListPositionsParamsMinGrade defines parameters for ListPositions.

const (
	ListPositionsParamsMinGradeA ListPositionsParamsMinGrade = "A"
	ListPositionsParamsMinGradeB ListPositionsParamsMinGrade = "B"
	ListPositionsParamsMinGradeC ListPositionsParamsMinGrade = "C"
	ListPositionsParamsMinGradeD ListPositionsParamsMinGrade = "D"
	ListPositionsParamsMinGradeF ListPositionsParamsMinGrade = "F"
	ListPositionsParamsMinGradeS ListPositionsParamsMinGrade = "S"
)

Defines values for ListPositionsParamsMinGrade.

func (ListPositionsParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListPositionsParamsMinGrade enum.

type ListPositionsParamsSide

type ListPositionsParamsSide string

ListPositionsParamsSide defines parameters for ListPositions.

const (
	ListPositionsParamsSideNo  ListPositionsParamsSide = "no"
	ListPositionsParamsSideYes ListPositionsParamsSide = "yes"
)

Defines values for ListPositionsParamsSide.

func (ListPositionsParamsSide) Valid

func (e ListPositionsParamsSide) Valid() bool

Valid indicates whether the value is a known member of the ListPositionsParamsSide enum.

type ListPositionsResponse

type ListPositionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []Position                             `json:"data"`
		HasMore    bool                                   `json:"has_more"`
		Meta       ResponseMeta                           `json:"meta"`
		NextCursor *string                                `json:"next_cursor,omitempty"`
		Object     ListPositions200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListPositionsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListPositionsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListPositionsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListPositionsResponse503Headers
}

func ParseListPositionsResponse

func ParseListPositionsResponse(rsp *http.Response) (*ListPositionsResponse, error)

ParseListPositionsResponse parses an HTTP response from a ListPositionsWithResponse call

func (ListPositionsResponse) ContentType

func (r ListPositionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPositionsResponse) GetBody

func (r ListPositionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPositionsResponse) GetJSON200

func (r ListPositionsResponse) GetJSON200() *struct {
	Data       []Position                             `json:"data"`
	HasMore    bool                                   `json:"has_more"`
	Meta       ResponseMeta                           `json:"meta"`
	NextCursor *string                                `json:"next_cursor,omitempty"`
	Object     ListPositions200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPositionsResponse) GetJSON400

func (r ListPositionsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListPositionsResponse) GetJSON401

func (r ListPositionsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListPositionsResponse) GetJSON402

func (r ListPositionsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListPositionsResponse) GetJSON403

func (r ListPositionsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListPositionsResponse) GetJSON423

func (r ListPositionsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListPositionsResponse) GetJSON429

func (r ListPositionsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListPositionsResponse) GetJSON503

func (r ListPositionsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListPositionsResponse) Status

func (r ListPositionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListPositionsResponse) StatusCode

func (r ListPositionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPositionsResponse200Headers

type ListPositionsResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListPositionsResponse200Headers the declared response headers of an HTTP 200 response for ListPositions

type ListPositionsResponse304Headers

type ListPositionsResponse304Headers struct {
	ETag *string
}

ListPositionsResponse304Headers the declared response headers of an HTTP 304 response for ListPositions

type ListPositionsResponse429Headers

type ListPositionsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListPositionsResponse429Headers the declared response headers of an HTTP 429 response for ListPositions

type ListPositionsResponse503Headers

type ListPositionsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListPositionsResponse503Headers the declared response headers of an HTTP 503 response for ListPositions

type ListSharpMoneyFlows200JSONResponseBodyObject

type ListSharpMoneyFlows200JSONResponseBodyObject string

ListSharpMoneyFlows200JSONResponseBodyObject defines parameters for ListSharpMoneyFlows.

const (
	ListSharpMoneyFlows200JSONResponseBodyObjectList ListSharpMoneyFlows200JSONResponseBodyObject = "list"
)

Defines values for ListSharpMoneyFlows200JSONResponseBodyObject.

func (ListSharpMoneyFlows200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListSharpMoneyFlows200JSONResponseBodyObject enum.

type ListSharpMoneyFlowsParams

type ListSharpMoneyFlowsParams struct {
	// Timeframe Lookback window for grade-filtered whale flow aggregation.
	Timeframe *ListSharpMoneyFlowsParamsTimeframe `form:"timeframe,omitempty" json:"timeframe,omitempty"`

	// Limit Page size.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor from previous response's next_cursor. Encodes the first-page as_of timestamp plus the last row's absolute net flow and condition_id.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Category Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Platform Filter by source platform. all is a request-side no-op.
	Platform *ListSharpMoneyFlowsParamsPlatform `form:"platform,omitempty" json:"platform,omitempty"`

	// MinGrade Minimum latest trader grade included in the flow. Default B means S/A/B only; unranked traders are excluded.
	MinGrade *ListSharpMoneyFlowsParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// Direction Optional post-aggregate flow direction filter.
	Direction *ListSharpMoneyFlowsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListSharpMoneyFlowsParams defines parameters for ListSharpMoneyFlows.

type ListSharpMoneyFlowsParamsDirection

type ListSharpMoneyFlowsParamsDirection string

ListSharpMoneyFlowsParamsDirection defines parameters for ListSharpMoneyFlows.

const (
	ListSharpMoneyFlowsParamsDirectionNO  ListSharpMoneyFlowsParamsDirection = "NO"
	ListSharpMoneyFlowsParamsDirectionYES ListSharpMoneyFlowsParamsDirection = "YES"
)

Defines values for ListSharpMoneyFlowsParamsDirection.

func (ListSharpMoneyFlowsParamsDirection) Valid

Valid indicates whether the value is a known member of the ListSharpMoneyFlowsParamsDirection enum.

type ListSharpMoneyFlowsParamsMinGrade

type ListSharpMoneyFlowsParamsMinGrade string

ListSharpMoneyFlowsParamsMinGrade defines parameters for ListSharpMoneyFlows.

const (
	ListSharpMoneyFlowsParamsMinGradeA ListSharpMoneyFlowsParamsMinGrade = "A"
	ListSharpMoneyFlowsParamsMinGradeB ListSharpMoneyFlowsParamsMinGrade = "B"
	ListSharpMoneyFlowsParamsMinGradeC ListSharpMoneyFlowsParamsMinGrade = "C"
	ListSharpMoneyFlowsParamsMinGradeD ListSharpMoneyFlowsParamsMinGrade = "D"
	ListSharpMoneyFlowsParamsMinGradeF ListSharpMoneyFlowsParamsMinGrade = "F"
	ListSharpMoneyFlowsParamsMinGradeS ListSharpMoneyFlowsParamsMinGrade = "S"
)

Defines values for ListSharpMoneyFlowsParamsMinGrade.

func (ListSharpMoneyFlowsParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListSharpMoneyFlowsParamsMinGrade enum.

type ListSharpMoneyFlowsParamsPlatform

type ListSharpMoneyFlowsParamsPlatform string

ListSharpMoneyFlowsParamsPlatform defines parameters for ListSharpMoneyFlows.

const (
	ListSharpMoneyFlowsParamsPlatformAll        ListSharpMoneyFlowsParamsPlatform = "all"
	ListSharpMoneyFlowsParamsPlatformPolymarket ListSharpMoneyFlowsParamsPlatform = "polymarket"
)

Defines values for ListSharpMoneyFlowsParamsPlatform.

func (ListSharpMoneyFlowsParamsPlatform) Valid

Valid indicates whether the value is a known member of the ListSharpMoneyFlowsParamsPlatform enum.

type ListSharpMoneyFlowsParamsTimeframe

type ListSharpMoneyFlowsParamsTimeframe string

ListSharpMoneyFlowsParamsTimeframe defines parameters for ListSharpMoneyFlows.

const (
	ListSharpMoneyFlowsParamsTimeframeN1h  ListSharpMoneyFlowsParamsTimeframe = "1h"
	ListSharpMoneyFlowsParamsTimeframeN24h ListSharpMoneyFlowsParamsTimeframe = "24h"
	ListSharpMoneyFlowsParamsTimeframeN4h  ListSharpMoneyFlowsParamsTimeframe = "4h"
	ListSharpMoneyFlowsParamsTimeframeN7d  ListSharpMoneyFlowsParamsTimeframe = "7d"
)

Defines values for ListSharpMoneyFlowsParamsTimeframe.

func (ListSharpMoneyFlowsParamsTimeframe) Valid

Valid indicates whether the value is a known member of the ListSharpMoneyFlowsParamsTimeframe enum.

type ListSharpMoneyFlowsResponse

type ListSharpMoneyFlowsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []SmartMoneyFlowMarket                       `json:"data"`
		HasMore    bool                                         `json:"has_more"`
		Meta       ResponseMeta                                 `json:"meta"`
		NextCursor *string                                      `json:"next_cursor,omitempty"`
		Object     ListSharpMoneyFlows200JSONResponseBodyObject `json:"object"`
		Total      *int                                         `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSharpMoneyFlowsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListSharpMoneyFlowsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSharpMoneyFlowsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSharpMoneyFlowsResponse503Headers
}

func ParseListSharpMoneyFlowsResponse

func ParseListSharpMoneyFlowsResponse(rsp *http.Response) (*ListSharpMoneyFlowsResponse, error)

ParseListSharpMoneyFlowsResponse parses an HTTP response from a ListSharpMoneyFlowsWithResponse call

func (ListSharpMoneyFlowsResponse) ContentType

func (r ListSharpMoneyFlowsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSharpMoneyFlowsResponse) GetBody

func (r ListSharpMoneyFlowsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSharpMoneyFlowsResponse) GetJSON200

func (r ListSharpMoneyFlowsResponse) GetJSON200() *struct {
	Data       []SmartMoneyFlowMarket                       `json:"data"`
	HasMore    bool                                         `json:"has_more"`
	Meta       ResponseMeta                                 `json:"meta"`
	NextCursor *string                                      `json:"next_cursor,omitempty"`
	Object     ListSharpMoneyFlows200JSONResponseBodyObject `json:"object"`
	Total      *int                                         `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON400

func (r ListSharpMoneyFlowsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON401

func (r ListSharpMoneyFlowsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON402

func (r ListSharpMoneyFlowsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON403

func (r ListSharpMoneyFlowsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON423

func (r ListSharpMoneyFlowsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON429

func (r ListSharpMoneyFlowsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSharpMoneyFlowsResponse) GetJSON503

func (r ListSharpMoneyFlowsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSharpMoneyFlowsResponse) Status

Status returns HTTPResponse.Status

func (ListSharpMoneyFlowsResponse) StatusCode

func (r ListSharpMoneyFlowsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSharpMoneyFlowsResponse200Headers

type ListSharpMoneyFlowsResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListSharpMoneyFlowsResponse200Headers the declared response headers of an HTTP 200 response for ListSharpMoneyFlows

type ListSharpMoneyFlowsResponse304Headers

type ListSharpMoneyFlowsResponse304Headers struct {
	ETag *string
}

ListSharpMoneyFlowsResponse304Headers the declared response headers of an HTTP 304 response for ListSharpMoneyFlows

type ListSharpMoneyFlowsResponse429Headers

type ListSharpMoneyFlowsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListSharpMoneyFlowsResponse429Headers the declared response headers of an HTTP 429 response for ListSharpMoneyFlows

type ListSharpMoneyFlowsResponse503Headers

type ListSharpMoneyFlowsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListSharpMoneyFlowsResponse503Headers the declared response headers of an HTTP 503 response for ListSharpMoneyFlows

type ListSmartMoneyFlows200JSONResponseBodyObject

type ListSmartMoneyFlows200JSONResponseBodyObject string

ListSmartMoneyFlows200JSONResponseBodyObject defines parameters for ListSmartMoneyFlows.

const (
	ListSmartMoneyFlows200JSONResponseBodyObjectList ListSmartMoneyFlows200JSONResponseBodyObject = "list"
)

Defines values for ListSmartMoneyFlows200JSONResponseBodyObject.

func (ListSmartMoneyFlows200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListSmartMoneyFlows200JSONResponseBodyObject enum.

type ListSmartMoneyFlowsParams

type ListSmartMoneyFlowsParams struct {
	// Timeframe Lookback window for grade-filtered whale flow aggregation.
	Timeframe *ListSmartMoneyFlowsParamsTimeframe `form:"timeframe,omitempty" json:"timeframe,omitempty"`

	// Limit Page size.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor from previous response's next_cursor. Encodes the first-page as_of timestamp plus the last row's absolute net flow and condition_id.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Category Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Platform Filter by source platform. all is a request-side no-op.
	Platform *ListSmartMoneyFlowsParamsPlatform `form:"platform,omitempty" json:"platform,omitempty"`

	// MinGrade Minimum latest trader grade included in the flow. Default B means S/A/B only; unranked traders are excluded.
	MinGrade *ListSmartMoneyFlowsParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// Direction Optional post-aggregate flow direction filter.
	Direction *ListSmartMoneyFlowsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListSmartMoneyFlowsParams defines parameters for ListSmartMoneyFlows.

type ListSmartMoneyFlowsParamsDirection

type ListSmartMoneyFlowsParamsDirection string

ListSmartMoneyFlowsParamsDirection defines parameters for ListSmartMoneyFlows.

const (
	ListSmartMoneyFlowsParamsDirectionNO  ListSmartMoneyFlowsParamsDirection = "NO"
	ListSmartMoneyFlowsParamsDirectionYES ListSmartMoneyFlowsParamsDirection = "YES"
)

Defines values for ListSmartMoneyFlowsParamsDirection.

func (ListSmartMoneyFlowsParamsDirection) Valid

Valid indicates whether the value is a known member of the ListSmartMoneyFlowsParamsDirection enum.

type ListSmartMoneyFlowsParamsMinGrade

type ListSmartMoneyFlowsParamsMinGrade string

ListSmartMoneyFlowsParamsMinGrade defines parameters for ListSmartMoneyFlows.

const (
	ListSmartMoneyFlowsParamsMinGradeA ListSmartMoneyFlowsParamsMinGrade = "A"
	ListSmartMoneyFlowsParamsMinGradeB ListSmartMoneyFlowsParamsMinGrade = "B"
	ListSmartMoneyFlowsParamsMinGradeC ListSmartMoneyFlowsParamsMinGrade = "C"
	ListSmartMoneyFlowsParamsMinGradeD ListSmartMoneyFlowsParamsMinGrade = "D"
	ListSmartMoneyFlowsParamsMinGradeF ListSmartMoneyFlowsParamsMinGrade = "F"
	ListSmartMoneyFlowsParamsMinGradeS ListSmartMoneyFlowsParamsMinGrade = "S"
)

Defines values for ListSmartMoneyFlowsParamsMinGrade.

func (ListSmartMoneyFlowsParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListSmartMoneyFlowsParamsMinGrade enum.

type ListSmartMoneyFlowsParamsPlatform

type ListSmartMoneyFlowsParamsPlatform string

ListSmartMoneyFlowsParamsPlatform defines parameters for ListSmartMoneyFlows.

const (
	ListSmartMoneyFlowsParamsPlatformAll        ListSmartMoneyFlowsParamsPlatform = "all"
	ListSmartMoneyFlowsParamsPlatformPolymarket ListSmartMoneyFlowsParamsPlatform = "polymarket"
)

Defines values for ListSmartMoneyFlowsParamsPlatform.

func (ListSmartMoneyFlowsParamsPlatform) Valid

Valid indicates whether the value is a known member of the ListSmartMoneyFlowsParamsPlatform enum.

type ListSmartMoneyFlowsParamsTimeframe

type ListSmartMoneyFlowsParamsTimeframe string

ListSmartMoneyFlowsParamsTimeframe defines parameters for ListSmartMoneyFlows.

const (
	ListSmartMoneyFlowsParamsTimeframeN1h  ListSmartMoneyFlowsParamsTimeframe = "1h"
	ListSmartMoneyFlowsParamsTimeframeN24h ListSmartMoneyFlowsParamsTimeframe = "24h"
	ListSmartMoneyFlowsParamsTimeframeN4h  ListSmartMoneyFlowsParamsTimeframe = "4h"
	ListSmartMoneyFlowsParamsTimeframeN7d  ListSmartMoneyFlowsParamsTimeframe = "7d"
)

Defines values for ListSmartMoneyFlowsParamsTimeframe.

func (ListSmartMoneyFlowsParamsTimeframe) Valid

Valid indicates whether the value is a known member of the ListSmartMoneyFlowsParamsTimeframe enum.

type ListSmartMoneyFlowsResponse

type ListSmartMoneyFlowsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []SmartMoneyFlowMarket                       `json:"data"`
		HasMore    bool                                         `json:"has_more"`
		Meta       ResponseMeta                                 `json:"meta"`
		NextCursor *string                                      `json:"next_cursor,omitempty"`
		Object     ListSmartMoneyFlows200JSONResponseBodyObject `json:"object"`
		Total      *int                                         `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSmartMoneyFlowsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListSmartMoneyFlowsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSmartMoneyFlowsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSmartMoneyFlowsResponse503Headers
}

func ParseListSmartMoneyFlowsResponse

func ParseListSmartMoneyFlowsResponse(rsp *http.Response) (*ListSmartMoneyFlowsResponse, error)

ParseListSmartMoneyFlowsResponse parses an HTTP response from a ListSmartMoneyFlowsWithResponse call

func (ListSmartMoneyFlowsResponse) ContentType

func (r ListSmartMoneyFlowsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSmartMoneyFlowsResponse) GetBody

func (r ListSmartMoneyFlowsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSmartMoneyFlowsResponse) GetJSON200

func (r ListSmartMoneyFlowsResponse) GetJSON200() *struct {
	Data       []SmartMoneyFlowMarket                       `json:"data"`
	HasMore    bool                                         `json:"has_more"`
	Meta       ResponseMeta                                 `json:"meta"`
	NextCursor *string                                      `json:"next_cursor,omitempty"`
	Object     ListSmartMoneyFlows200JSONResponseBodyObject `json:"object"`
	Total      *int                                         `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON400

func (r ListSmartMoneyFlowsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON401

func (r ListSmartMoneyFlowsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON402

func (r ListSmartMoneyFlowsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON403

func (r ListSmartMoneyFlowsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON423

func (r ListSmartMoneyFlowsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON429

func (r ListSmartMoneyFlowsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSmartMoneyFlowsResponse) GetJSON503

func (r ListSmartMoneyFlowsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSmartMoneyFlowsResponse) Status

Status returns HTTPResponse.Status

func (ListSmartMoneyFlowsResponse) StatusCode

func (r ListSmartMoneyFlowsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSmartMoneyFlowsResponse200Headers

type ListSmartMoneyFlowsResponse200Headers struct {
	Deprecation         *string
	ETag                *string
	Link                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListSmartMoneyFlowsResponse200Headers the declared response headers of an HTTP 200 response for ListSmartMoneyFlows

type ListSmartMoneyFlowsResponse304Headers

type ListSmartMoneyFlowsResponse304Headers struct {
	ETag *string
}

ListSmartMoneyFlowsResponse304Headers the declared response headers of an HTTP 304 response for ListSmartMoneyFlows

type ListSmartMoneyFlowsResponse429Headers

type ListSmartMoneyFlowsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListSmartMoneyFlowsResponse429Headers the declared response headers of an HTTP 429 response for ListSmartMoneyFlows

type ListSmartMoneyFlowsResponse503Headers

type ListSmartMoneyFlowsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListSmartMoneyFlowsResponse503Headers the declared response headers of an HTTP 503 response for ListSmartMoneyFlows

type ListSportsEdgeObservations200JSONResponseBodyObject

type ListSportsEdgeObservations200JSONResponseBodyObject string

ListSportsEdgeObservations200JSONResponseBodyObject defines parameters for ListSportsEdgeObservations.

const (
	ListSportsEdgeObservations200JSONResponseBodyObjectList ListSportsEdgeObservations200JSONResponseBodyObject = "list"
)

Defines values for ListSportsEdgeObservations200JSONResponseBodyObject.

func (ListSportsEdgeObservations200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListSportsEdgeObservations200JSONResponseBodyObject enum.

type ListSportsEdgeObservationsParams

type ListSportsEdgeObservationsParams struct {
	// Cohort Observation cohort. wider_holder measures pre-game holder piles outside the funded route's exact raw signals admission. in_play admits only provider-confirmed live games and excludes stale or unavailable provider live-board, holder, or directional evidence. emerging_pile is a post-compute wider_holder projection for finite sharp_pct in [0.75, 0.85) with holder_scan_complete=true and a kickoff after its pinned projection cutoff; it overlaps wider_holder, is not an independent denominator, and is not arrival history.
	Cohort ListSportsEdgeObservationsParamsCohort `form:"cohort" json:"cohort"`

	// Category Optional canonical sport bucket. Omitted or blank selects all registered sports. Raw provider categories resolve through the canonical taxonomy, including table-tennis or table tennis to Table Tennis and pickleball to Pickleball; a non-sport category returns an empty list.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Limit Page size.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Server-authenticated opaque seo_v2_ cursor from next_cursor. Pins snapshot_as_of, cohort, rank, and condition_id; pre-deploy unsigned seo_ cursors are rejected, so clients must request the first page after this contract ships; emerging_pile cursors also pin the first-page projection_now cutoff so kickoff filtering cannot renumber continuation pages. Client edits fail closed; it cannot cross cohorts; a refreshed snapshot invalidates it with 400.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IfNoneMatch Conditional GET using a previous weak semantic ETag. Matching stable payloads return 304 Not Modified with an empty body; request-specific meta and the opaque emerging_pile projection cutoff inside next_cursor are excluded from validation.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListSportsEdgeObservationsParams defines parameters for ListSportsEdgeObservations.

type ListSportsEdgeObservationsParamsCohort

type ListSportsEdgeObservationsParamsCohort string

ListSportsEdgeObservationsParamsCohort defines parameters for ListSportsEdgeObservations.

const (
	ListSportsEdgeObservationsParamsCohortEmergingPile ListSportsEdgeObservationsParamsCohort = "emerging_pile"
	ListSportsEdgeObservationsParamsCohortInPlay       ListSportsEdgeObservationsParamsCohort = "in_play"
	ListSportsEdgeObservationsParamsCohortWiderHolder  ListSportsEdgeObservationsParamsCohort = "wider_holder"
)

Defines values for ListSportsEdgeObservationsParamsCohort.

func (ListSportsEdgeObservationsParamsCohort) Valid

Valid indicates whether the value is a known member of the ListSportsEdgeObservationsParamsCohort enum.

type ListSportsEdgeObservationsResponse

type ListSportsEdgeObservationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data []SportsEdgeObservation `json:"data"`

		// Degraded True when an operational failure or unknown provider-board, holder, directional, reconciliation, or internal completeness state made this snapshot partial. This is snapshot-wide and can retain degradation that the funnel's one-terminal-per-input accounting cannot represent. Intentional bounded capacity_limited rows remain fully accounted in the funnel and do not by themselves set this field.
		Degraded bool `json:"degraded"`

		// Funnel Per-sport accountable funnel for the full observation snapshot, returned on every page.
		Funnel     SportsEdgeFunnelReport                              `json:"funnel"`
		HasMore    bool                                                `json:"has_more"`
		Meta       ResponseMeta                                        `json:"meta"`
		NextCursor string                                              `json:"next_cursor"`
		Object     ListSportsEdgeObservations200JSONResponseBodyObject `json:"object"`

		// SnapshotAsOf Completion time of the shared observation snapshot pinned by the cursor.
		SnapshotAsOf time.Time `json:"snapshot_as_of"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSportsEdgeObservationsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListSportsEdgeObservationsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSportsEdgeObservationsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSportsEdgeObservationsResponse503Headers
}

func ParseListSportsEdgeObservationsResponse

func ParseListSportsEdgeObservationsResponse(rsp *http.Response) (*ListSportsEdgeObservationsResponse, error)

ParseListSportsEdgeObservationsResponse parses an HTTP response from a ListSportsEdgeObservationsWithResponse call

func (ListSportsEdgeObservationsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSportsEdgeObservationsResponse) GetBody

GetBody returns the raw response body bytes

func (ListSportsEdgeObservationsResponse) GetJSON200

func (r ListSportsEdgeObservationsResponse) GetJSON200() *struct {
	Data []SportsEdgeObservation `json:"data"`

	// Degraded True when an operational failure or unknown provider-board, holder, directional, reconciliation, or internal completeness state made this snapshot partial. This is snapshot-wide and can retain degradation that the funnel's one-terminal-per-input accounting cannot represent. Intentional bounded capacity_limited rows remain fully accounted in the funnel and do not by themselves set this field.
	Degraded bool `json:"degraded"`

	// Funnel Per-sport accountable funnel for the full observation snapshot, returned on every page.
	Funnel     SportsEdgeFunnelReport                              `json:"funnel"`
	HasMore    bool                                                `json:"has_more"`
	Meta       ResponseMeta                                        `json:"meta"`
	NextCursor string                                              `json:"next_cursor"`
	Object     ListSportsEdgeObservations200JSONResponseBodyObject `json:"object"`

	// SnapshotAsOf Completion time of the shared observation snapshot pinned by the cursor.
	SnapshotAsOf time.Time `json:"snapshot_as_of"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON423

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListSportsEdgeObservationsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSportsEdgeObservationsResponse) Status

Status returns HTTPResponse.Status

func (ListSportsEdgeObservationsResponse) StatusCode

func (r ListSportsEdgeObservationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSportsEdgeObservationsResponse200Headers

type ListSportsEdgeObservationsResponse200Headers struct {
	CacheControl        *string
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListSportsEdgeObservationsResponse200Headers the declared response headers of an HTTP 200 response for ListSportsEdgeObservations

type ListSportsEdgeObservationsResponse304Headers

type ListSportsEdgeObservationsResponse304Headers struct {
	CacheControl *string
	ETag         *string
}

ListSportsEdgeObservationsResponse304Headers the declared response headers of an HTTP 304 response for ListSportsEdgeObservations

type ListSportsEdgeObservationsResponse429Headers

type ListSportsEdgeObservationsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListSportsEdgeObservationsResponse429Headers the declared response headers of an HTTP 429 response for ListSportsEdgeObservations

type ListSportsEdgeObservationsResponse503Headers

type ListSportsEdgeObservationsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListSportsEdgeObservationsResponse503Headers the declared response headers of an HTTP 503 response for ListSportsEdgeObservations

type ListSportsEdgeSignals200JSONResponseBodyObject

type ListSportsEdgeSignals200JSONResponseBodyObject string

ListSportsEdgeSignals200JSONResponseBodyObject defines parameters for ListSportsEdgeSignals.

const (
	ListSportsEdgeSignals200JSONResponseBodyObjectList ListSportsEdgeSignals200JSONResponseBodyObject = "list"
)

Defines values for ListSportsEdgeSignals200JSONResponseBodyObject.

func (ListSportsEdgeSignals200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListSportsEdgeSignals200JSONResponseBodyObject enum.

type ListSportsEdgeSignalsParams

type ListSportsEdgeSignalsParams struct {
	// Category Optional canonical sport bucket filter (e.g. Basketball, Tennis, Soccer). A raw provider value (NBA) resolves to its canonical bucket. A non-sport category returns an empty list.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// Limit Page size.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor from a previous response's next_cursor. Encodes the snapshot anchor plus the last row's directional_rank_score, conviction_score, smart_score and condition_id. A cursor from an expired snapshot returns 400.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// HorizonHours Kickoff ceiling in hours from now; the floor is now (only games not yet started). Clamped to 1..48.
	HorizonHours *int `form:"horizon_hours,omitempty" json:"horizon_hours,omitempty"`

	// MinGrade Minimum trader grade required on the piled side. Only S, A, B are accepted (the piled-side grade distribution is S/A/B only; C, D, F return 400). Default B means at least one S/A/B holder is piled; S requires an S holder, A requires an S or A holder.
	MinGrade *ListSportsEdgeSignalsParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListSportsEdgeSignalsParams defines parameters for ListSportsEdgeSignals.

type ListSportsEdgeSignalsParamsMinGrade

type ListSportsEdgeSignalsParamsMinGrade string

ListSportsEdgeSignalsParamsMinGrade defines parameters for ListSportsEdgeSignals.

const (
	ListSportsEdgeSignalsParamsMinGradeA ListSportsEdgeSignalsParamsMinGrade = "A"
	ListSportsEdgeSignalsParamsMinGradeB ListSportsEdgeSignalsParamsMinGrade = "B"
	ListSportsEdgeSignalsParamsMinGradeS ListSportsEdgeSignalsParamsMinGrade = "S"
)

Defines values for ListSportsEdgeSignalsParamsMinGrade.

func (ListSportsEdgeSignalsParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListSportsEdgeSignalsParamsMinGrade enum.

type ListSportsEdgeSignalsResponse

type ListSportsEdgeSignalsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []SportsEdgeSignal                             `json:"data"`
		HasMore    bool                                           `json:"has_more"`
		Meta       ResponseMeta                                   `json:"meta"`
		NextCursor *string                                        `json:"next_cursor,omitempty"`
		Object     ListSportsEdgeSignals200JSONResponseBodyObject `json:"object"`
		Total      *int                                           `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSportsEdgeSignalsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListSportsEdgeSignalsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSportsEdgeSignalsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSportsEdgeSignalsResponse503Headers
}

func ParseListSportsEdgeSignalsResponse

func ParseListSportsEdgeSignalsResponse(rsp *http.Response) (*ListSportsEdgeSignalsResponse, error)

ParseListSportsEdgeSignalsResponse parses an HTTP response from a ListSportsEdgeSignalsWithResponse call

func (ListSportsEdgeSignalsResponse) ContentType

func (r ListSportsEdgeSignalsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSportsEdgeSignalsResponse) GetBody

func (r ListSportsEdgeSignalsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSportsEdgeSignalsResponse) GetJSON200

func (r ListSportsEdgeSignalsResponse) GetJSON200() *struct {
	Data       []SportsEdgeSignal                             `json:"data"`
	HasMore    bool                                           `json:"has_more"`
	Meta       ResponseMeta                                   `json:"meta"`
	NextCursor *string                                        `json:"next_cursor,omitempty"`
	Object     ListSportsEdgeSignals200JSONResponseBodyObject `json:"object"`
	Total      *int                                           `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON400

func (r ListSportsEdgeSignalsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON401

func (r ListSportsEdgeSignalsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON402

func (r ListSportsEdgeSignalsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON403

func (r ListSportsEdgeSignalsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON423

func (r ListSportsEdgeSignalsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON429

func (r ListSportsEdgeSignalsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSportsEdgeSignalsResponse) GetJSON503

func (r ListSportsEdgeSignalsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSportsEdgeSignalsResponse) Status

Status returns HTTPResponse.Status

func (ListSportsEdgeSignalsResponse) StatusCode

func (r ListSportsEdgeSignalsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSportsEdgeSignalsResponse200Headers

type ListSportsEdgeSignalsResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListSportsEdgeSignalsResponse200Headers the declared response headers of an HTTP 200 response for ListSportsEdgeSignals

type ListSportsEdgeSignalsResponse304Headers

type ListSportsEdgeSignalsResponse304Headers struct {
	ETag *string
}

ListSportsEdgeSignalsResponse304Headers the declared response headers of an HTTP 304 response for ListSportsEdgeSignals

type ListSportsEdgeSignalsResponse429Headers

type ListSportsEdgeSignalsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListSportsEdgeSignalsResponse429Headers the declared response headers of an HTTP 429 response for ListSportsEdgeSignals

type ListSportsEdgeSignalsResponse503Headers

type ListSportsEdgeSignalsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListSportsEdgeSignalsResponse503Headers the declared response headers of an HTTP 503 response for ListSportsEdgeSignals

type ListTrendingWallets200JSONResponseBodyObject

type ListTrendingWallets200JSONResponseBodyObject string

ListTrendingWallets200JSONResponseBodyObject defines parameters for ListTrendingWallets.

const (
	ListTrendingWallets200JSONResponseBodyObjectList ListTrendingWallets200JSONResponseBodyObject = "list"
)

Defines values for ListTrendingWallets200JSONResponseBodyObject.

func (ListTrendingWallets200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListTrendingWallets200JSONResponseBodyObject enum.

type ListTrendingWalletsParams

type ListTrendingWalletsParams struct {
	// Limit Polymarket's weekly leaderboard caps the ranked set at 50 wallets; requests above 50 still return at most 50.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque pagination cursor from a previous response.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Window Trailing window.
	Window *ListTrendingWalletsParamsWindow `form:"window,omitempty" json:"window,omitempty"`
}

ListTrendingWalletsParams defines parameters for ListTrendingWallets.

type ListTrendingWalletsParamsWindow

type ListTrendingWalletsParamsWindow string

ListTrendingWalletsParamsWindow defines parameters for ListTrendingWallets.

const (
	ListTrendingWalletsParamsWindowN30d ListTrendingWalletsParamsWindow = "30d"
	ListTrendingWalletsParamsWindowN7d  ListTrendingWalletsParamsWindow = "7d"
)

Defines values for ListTrendingWalletsParamsWindow.

func (ListTrendingWalletsParamsWindow) Valid

Valid indicates whether the value is a known member of the ListTrendingWalletsParamsWindow enum.

type ListTrendingWalletsResponse

type ListTrendingWalletsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data    []TrendingWallet `json:"data"`
		HasMore bool             `json:"has_more"`
		Meta    ResponseMeta     `json:"meta"`

		// NextCursor Opaque cursor for the next page; absent on the last page.
		NextCursor *string                                      `json:"next_cursor,omitempty"`
		Object     ListTrendingWallets200JSONResponseBodyObject `json:"object"`

		// Total Total ranked rows when the read model exposes a count; may be absent.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListTrendingWalletsResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListTrendingWalletsResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListTrendingWalletsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListTrendingWalletsResponse503Headers
}

func ParseListTrendingWalletsResponse

func ParseListTrendingWalletsResponse(rsp *http.Response) (*ListTrendingWalletsResponse, error)

ParseListTrendingWalletsResponse parses an HTTP response from a ListTrendingWalletsWithResponse call

func (ListTrendingWalletsResponse) ContentType

func (r ListTrendingWalletsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTrendingWalletsResponse) GetBody

func (r ListTrendingWalletsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTrendingWalletsResponse) GetJSON200

func (r ListTrendingWalletsResponse) GetJSON200() *struct {
	Data    []TrendingWallet `json:"data"`
	HasMore bool             `json:"has_more"`
	Meta    ResponseMeta     `json:"meta"`

	// NextCursor Opaque cursor for the next page; absent on the last page.
	NextCursor *string                                      `json:"next_cursor,omitempty"`
	Object     ListTrendingWallets200JSONResponseBodyObject `json:"object"`

	// Total Total ranked rows when the read model exposes a count; may be absent.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTrendingWalletsResponse) GetJSON400

func (r ListTrendingWalletsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListTrendingWalletsResponse) GetJSON401

func (r ListTrendingWalletsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListTrendingWalletsResponse) GetJSON402

func (r ListTrendingWalletsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListTrendingWalletsResponse) GetJSON403

func (r ListTrendingWalletsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListTrendingWalletsResponse) GetJSON423

func (r ListTrendingWalletsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListTrendingWalletsResponse) GetJSON429

func (r ListTrendingWalletsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListTrendingWalletsResponse) GetJSON503

func (r ListTrendingWalletsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListTrendingWalletsResponse) Status

Status returns HTTPResponse.Status

func (ListTrendingWalletsResponse) StatusCode

func (r ListTrendingWalletsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTrendingWalletsResponse200Headers

type ListTrendingWalletsResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListTrendingWalletsResponse200Headers the declared response headers of an HTTP 200 response for ListTrendingWallets

type ListTrendingWalletsResponse304Headers

type ListTrendingWalletsResponse304Headers struct {
	ETag *string
}

ListTrendingWalletsResponse304Headers the declared response headers of an HTTP 304 response for ListTrendingWallets

type ListTrendingWalletsResponse429Headers

type ListTrendingWalletsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListTrendingWalletsResponse429Headers the declared response headers of an HTTP 429 response for ListTrendingWallets

type ListTrendingWalletsResponse503Headers

type ListTrendingWalletsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListTrendingWalletsResponse503Headers the declared response headers of an HTTP 503 response for ListTrendingWallets

type ListWebhookDeliveries200JSONResponseBodyObject

type ListWebhookDeliveries200JSONResponseBodyObject string

ListWebhookDeliveries200JSONResponseBodyObject defines parameters for ListWebhookDeliveries.

const (
	ListWebhookDeliveries200JSONResponseBodyObjectList ListWebhookDeliveries200JSONResponseBodyObject = "list"
)

Defines values for ListWebhookDeliveries200JSONResponseBodyObject.

func (ListWebhookDeliveries200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWebhookDeliveries200JSONResponseBodyObject enum.

type ListWebhookDeliveriesParams

type ListWebhookDeliveriesParams struct {
	// Cursor Opaque pagination cursor returned as next_cursor by a prior response. Omit to fetch the newest page.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Maximum delivery rows to return per page.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListWebhookDeliveriesParams defines parameters for ListWebhookDeliveries.

type ListWebhookDeliveriesResponse

type ListWebhookDeliveriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []WebhookDelivery                              `json:"data"`
		HasMore    bool                                           `json:"has_more"`
		Meta       ResponseMeta                                   `json:"meta"`
		NextCursor *string                                        `json:"next_cursor,omitempty"`
		Object     ListWebhookDeliveries200JSONResponseBodyObject `json:"object"`
		Total      *int                                           `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWebhookDeliveriesResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWebhookDeliveriesResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWebhookDeliveriesResponse503Headers
}

func ParseListWebhookDeliveriesResponse

func ParseListWebhookDeliveriesResponse(rsp *http.Response) (*ListWebhookDeliveriesResponse, error)

ParseListWebhookDeliveriesResponse parses an HTTP response from a ListWebhookDeliveriesWithResponse call

func (ListWebhookDeliveriesResponse) ContentType

func (r ListWebhookDeliveriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhookDeliveriesResponse) GetBody

func (r ListWebhookDeliveriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWebhookDeliveriesResponse) GetJSON200

func (r ListWebhookDeliveriesResponse) GetJSON200() *struct {
	Data       []WebhookDelivery                              `json:"data"`
	HasMore    bool                                           `json:"has_more"`
	Meta       ResponseMeta                                   `json:"meta"`
	NextCursor *string                                        `json:"next_cursor,omitempty"`
	Object     ListWebhookDeliveries200JSONResponseBodyObject `json:"object"`
	Total      *int                                           `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON400

func (r ListWebhookDeliveriesResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON401

func (r ListWebhookDeliveriesResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON402

func (r ListWebhookDeliveriesResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON403

func (r ListWebhookDeliveriesResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON404

func (r ListWebhookDeliveriesResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON423

func (r ListWebhookDeliveriesResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON429

func (r ListWebhookDeliveriesResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON500

func (r ListWebhookDeliveriesResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListWebhookDeliveriesResponse) GetJSON503

func (r ListWebhookDeliveriesResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWebhookDeliveriesResponse) Status

Status returns HTTPResponse.Status

func (ListWebhookDeliveriesResponse) StatusCode

func (r ListWebhookDeliveriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhookDeliveriesResponse200Headers

type ListWebhookDeliveriesResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListWebhookDeliveriesResponse200Headers the declared response headers of an HTTP 200 response for ListWebhookDeliveries

type ListWebhookDeliveriesResponse429Headers

type ListWebhookDeliveriesResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWebhookDeliveriesResponse429Headers the declared response headers of an HTTP 429 response for ListWebhookDeliveries

type ListWebhookDeliveriesResponse503Headers

type ListWebhookDeliveriesResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWebhookDeliveriesResponse503Headers the declared response headers of an HTTP 503 response for ListWebhookDeliveries

type ListWebhookEvents200JSONResponseBodyObject

type ListWebhookEvents200JSONResponseBodyObject string

ListWebhookEvents200JSONResponseBodyObject defines parameters for ListWebhookEvents.

const (
	ListWebhookEvents200JSONResponseBodyObjectList ListWebhookEvents200JSONResponseBodyObject = "list"
)

Defines values for ListWebhookEvents200JSONResponseBodyObject.

func (ListWebhookEvents200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWebhookEvents200JSONResponseBodyObject enum.

type ListWebhookEventsResponse

type ListWebhookEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []WebhookEventDescriptor                   `json:"data"`
		HasMore    bool                                       `json:"has_more"`
		Meta       ResponseMeta                               `json:"meta"`
		NextCursor *string                                    `json:"next_cursor,omitempty"`
		Object     ListWebhookEvents200JSONResponseBodyObject `json:"object"`
		Total      *int                                       `json:"total,omitempty"`
	}
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWebhookEventsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWebhookEventsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWebhookEventsResponse503Headers
}

func ParseListWebhookEventsResponse

func ParseListWebhookEventsResponse(rsp *http.Response) (*ListWebhookEventsResponse, error)

ParseListWebhookEventsResponse parses an HTTP response from a ListWebhookEventsWithResponse call

func (ListWebhookEventsResponse) ContentType

func (r ListWebhookEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhookEventsResponse) GetBody

func (r ListWebhookEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWebhookEventsResponse) GetJSON200

func (r ListWebhookEventsResponse) GetJSON200() *struct {
	Data       []WebhookEventDescriptor                   `json:"data"`
	HasMore    bool                                       `json:"has_more"`
	Meta       ResponseMeta                               `json:"meta"`
	NextCursor *string                                    `json:"next_cursor,omitempty"`
	Object     ListWebhookEvents200JSONResponseBodyObject `json:"object"`
	Total      *int                                       `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWebhookEventsResponse) GetJSON401

func (r ListWebhookEventsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWebhookEventsResponse) GetJSON402

func (r ListWebhookEventsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWebhookEventsResponse) GetJSON403

func (r ListWebhookEventsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWebhookEventsResponse) GetJSON423

func (r ListWebhookEventsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListWebhookEventsResponse) GetJSON429

func (r ListWebhookEventsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWebhookEventsResponse) GetJSON500

func (r ListWebhookEventsResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListWebhookEventsResponse) GetJSON503

func (r ListWebhookEventsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWebhookEventsResponse) Status

func (r ListWebhookEventsResponse) Status() string

Status returns HTTPResponse.Status

func (ListWebhookEventsResponse) StatusCode

func (r ListWebhookEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhookEventsResponse200Headers

type ListWebhookEventsResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListWebhookEventsResponse200Headers the declared response headers of an HTTP 200 response for ListWebhookEvents

type ListWebhookEventsResponse429Headers

type ListWebhookEventsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWebhookEventsResponse429Headers the declared response headers of an HTTP 429 response for ListWebhookEvents

type ListWebhookEventsResponse503Headers

type ListWebhookEventsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWebhookEventsResponse503Headers the declared response headers of an HTTP 503 response for ListWebhookEvents

type ListWebhooks200JSONResponseBodyObject

type ListWebhooks200JSONResponseBodyObject string

ListWebhooks200JSONResponseBodyObject defines parameters for ListWebhooks.

const (
	ListWebhooks200JSONResponseBodyObjectList ListWebhooks200JSONResponseBodyObject = "list"
)

Defines values for ListWebhooks200JSONResponseBodyObject.

func (ListWebhooks200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWebhooks200JSONResponseBodyObject enum.

type ListWebhooksResponse

type ListWebhooksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []WebhookEndpoint                     `json:"data"`
		HasMore    bool                                  `json:"has_more"`
		Meta       ResponseMeta                          `json:"meta"`
		NextCursor *string                               `json:"next_cursor,omitempty"`
		Object     ListWebhooks200JSONResponseBodyObject `json:"object"`
		Total      *int                                  `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWebhooksResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWebhooksResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWebhooksResponse503Headers
}

func ParseListWebhooksResponse

func ParseListWebhooksResponse(rsp *http.Response) (*ListWebhooksResponse, error)

ParseListWebhooksResponse parses an HTTP response from a ListWebhooksWithResponse call

func (ListWebhooksResponse) ContentType

func (r ListWebhooksResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhooksResponse) GetBody

func (r ListWebhooksResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWebhooksResponse) GetJSON200

func (r ListWebhooksResponse) GetJSON200() *struct {
	Data       []WebhookEndpoint                     `json:"data"`
	HasMore    bool                                  `json:"has_more"`
	Meta       ResponseMeta                          `json:"meta"`
	NextCursor *string                               `json:"next_cursor,omitempty"`
	Object     ListWebhooks200JSONResponseBodyObject `json:"object"`
	Total      *int                                  `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWebhooksResponse) GetJSON400

func (r ListWebhooksResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWebhooksResponse) GetJSON401

func (r ListWebhooksResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWebhooksResponse) GetJSON402

func (r ListWebhooksResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWebhooksResponse) GetJSON403

func (r ListWebhooksResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWebhooksResponse) GetJSON423

func (r ListWebhooksResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListWebhooksResponse) GetJSON429

func (r ListWebhooksResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWebhooksResponse) GetJSON500

func (r ListWebhooksResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListWebhooksResponse) GetJSON503

func (r ListWebhooksResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWebhooksResponse) Status

func (r ListWebhooksResponse) Status() string

Status returns HTTPResponse.Status

func (ListWebhooksResponse) StatusCode

func (r ListWebhooksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhooksResponse200Headers

type ListWebhooksResponse200Headers struct {
	XUsageAccounting *string
}

ListWebhooksResponse200Headers the declared response headers of an HTTP 200 response for ListWebhooks

type ListWebhooksResponse429Headers

type ListWebhooksResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWebhooksResponse429Headers the declared response headers of an HTTP 429 response for ListWebhooks

type ListWebhooksResponse503Headers

type ListWebhooksResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWebhooksResponse503Headers the declared response headers of an HTTP 503 response for ListWebhooks

type ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject

type ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject string

ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject defines parameters for ListWhaleTradeCounterpartyExecutions.

const (
	ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObjectCounterpartyAnalysis ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject = "counterparty_analysis"
)

Defines values for ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject.

func (ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject enum.

type ListWhaleTradeCounterpartyExecutionsParams

type ListWhaleTradeCounterpartyExecutionsParams struct {
	// SnapshotId Counterparty snapshot ID from the whale trade detail response.
	SnapshotId string `form:"snapshot_id" json:"snapshot_id"`

	// Cursor Opaque cursor from the previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Maximum number of counterparty execution rows to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListWhaleTradeCounterpartyExecutionsParams defines parameters for ListWhaleTradeCounterpartyExecutions.

type ListWhaleTradeCounterpartyExecutionsResponse

type ListWhaleTradeCounterpartyExecutionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   CounterpartyAnalysis                                          `json:"data"`
		Meta   ResponseMeta                                                  `json:"meta"`
		Object ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWhaleTradeCounterpartyExecutionsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWhaleTradeCounterpartyExecutionsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWhaleTradeCounterpartyExecutionsResponse503Headers
}

func ParseListWhaleTradeCounterpartyExecutionsResponse

func ParseListWhaleTradeCounterpartyExecutionsResponse(rsp *http.Response) (*ListWhaleTradeCounterpartyExecutionsResponse, error)

ParseListWhaleTradeCounterpartyExecutionsResponse parses an HTTP response from a ListWhaleTradeCounterpartyExecutionsWithResponse call

func (ListWhaleTradeCounterpartyExecutionsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWhaleTradeCounterpartyExecutionsResponse) GetBody

GetBody returns the raw response body bytes

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON200

func (r ListWhaleTradeCounterpartyExecutionsResponse) GetJSON200() *struct {
	Data   CounterpartyAnalysis                                          `json:"data"`
	Meta   ResponseMeta                                                  `json:"meta"`
	Object ListWhaleTradeCounterpartyExecutions200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWhaleTradeCounterpartyExecutionsResponse) Status

Status returns HTTPResponse.Status

func (ListWhaleTradeCounterpartyExecutionsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListWhaleTradeCounterpartyExecutionsResponse200Headers

type ListWhaleTradeCounterpartyExecutionsResponse200Headers struct {
	XUsageAccounting *string
}

ListWhaleTradeCounterpartyExecutionsResponse200Headers the declared response headers of an HTTP 200 response for ListWhaleTradeCounterpartyExecutions

type ListWhaleTradeCounterpartyExecutionsResponse429Headers

type ListWhaleTradeCounterpartyExecutionsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWhaleTradeCounterpartyExecutionsResponse429Headers the declared response headers of an HTTP 429 response for ListWhaleTradeCounterpartyExecutions

type ListWhaleTradeCounterpartyExecutionsResponse503Headers

type ListWhaleTradeCounterpartyExecutionsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWhaleTradeCounterpartyExecutionsResponse503Headers the declared response headers of an HTTP 503 response for ListWhaleTradeCounterpartyExecutions

type ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject

type ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject string

ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject defines parameters for ListWhaleTradeCounterpartyMakers.

const (
	ListWhaleTradeCounterpartyMakers200JSONResponseBodyObjectCounterpartyMakerPage ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject = "counterparty_maker_page"
)

Defines values for ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject.

func (ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject enum.

type ListWhaleTradeCounterpartyMakersParams

type ListWhaleTradeCounterpartyMakersParams struct {
	// SnapshotId Counterparty snapshot ID from the whale trade detail response.
	SnapshotId string `form:"snapshot_id" json:"snapshot_id"`

	// Cursor Opaque cursor from the previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Maximum number of maker rows to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListWhaleTradeCounterpartyMakersParams defines parameters for ListWhaleTradeCounterpartyMakers.

type ListWhaleTradeCounterpartyMakersResponse

type ListWhaleTradeCounterpartyMakersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   CounterpartyMakerPage                                     `json:"data"`
		Meta   ResponseMeta                                              `json:"meta"`
		Object ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWhaleTradeCounterpartyMakersResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWhaleTradeCounterpartyMakersResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWhaleTradeCounterpartyMakersResponse503Headers
}

func ParseListWhaleTradeCounterpartyMakersResponse

func ParseListWhaleTradeCounterpartyMakersResponse(rsp *http.Response) (*ListWhaleTradeCounterpartyMakersResponse, error)

ParseListWhaleTradeCounterpartyMakersResponse parses an HTTP response from a ListWhaleTradeCounterpartyMakersWithResponse call

func (ListWhaleTradeCounterpartyMakersResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWhaleTradeCounterpartyMakersResponse) GetBody

GetBody returns the raw response body bytes

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON200

func (r ListWhaleTradeCounterpartyMakersResponse) GetJSON200() *struct {
	Data   CounterpartyMakerPage                                     `json:"data"`
	Meta   ResponseMeta                                              `json:"meta"`
	Object ListWhaleTradeCounterpartyMakers200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWhaleTradeCounterpartyMakersResponse) Status

Status returns HTTPResponse.Status

func (ListWhaleTradeCounterpartyMakersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListWhaleTradeCounterpartyMakersResponse200Headers

type ListWhaleTradeCounterpartyMakersResponse200Headers struct {
	XUsageAccounting *string
}

ListWhaleTradeCounterpartyMakersResponse200Headers the declared response headers of an HTTP 200 response for ListWhaleTradeCounterpartyMakers

type ListWhaleTradeCounterpartyMakersResponse429Headers

type ListWhaleTradeCounterpartyMakersResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWhaleTradeCounterpartyMakersResponse429Headers the declared response headers of an HTTP 429 response for ListWhaleTradeCounterpartyMakers

type ListWhaleTradeCounterpartyMakersResponse503Headers

type ListWhaleTradeCounterpartyMakersResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWhaleTradeCounterpartyMakersResponse503Headers the declared response headers of an HTTP 503 response for ListWhaleTradeCounterpartyMakers

type ListWhaleTradeHistory200JSONResponseBodyObject

type ListWhaleTradeHistory200JSONResponseBodyObject string

ListWhaleTradeHistory200JSONResponseBodyObject defines parameters for ListWhaleTradeHistory.

const (
	ListWhaleTradeHistory200JSONResponseBodyObjectList ListWhaleTradeHistory200JSONResponseBodyObject = "list"
)

Defines values for ListWhaleTradeHistory200JSONResponseBodyObject.

func (ListWhaleTradeHistory200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWhaleTradeHistory200JSONResponseBodyObject enum.

type ListWhaleTradeHistoryParams

type ListWhaleTradeHistoryParams struct {
	// Limit Maximum number of historical large trades to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response's next_cursor. Prefix: wth_. URL-encode when replaying as a query parameter.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// MinSize Minimum trade size in USD.
	MinSize *float32 `form:"min_size,omitempty" json:"min_size,omitempty"`

	// ConditionId Exact raw provider condition_id. Unknown markets return an empty list.
	ConditionId *string `form:"condition_id,omitempty" json:"condition_id,omitempty"`

	// Trader Trader wallet address, timestamp-suffixed wallet alias, or username resolved against the traders table. Unknown traders return an empty list.
	Trader *string `form:"trader,omitempty" json:"trader,omitempty"`

	// Category Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// MinGrade Minimum trader grade.
	MinGrade *ListWhaleTradeHistoryParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// SuspiciousOnly When true, return only rows with persisted suspicion_score >= 60. The filter is applied before SQL-backed limit + 1 pagination.
	SuspiciousOnly *bool `form:"suspicious_only,omitempty" json:"suspicious_only,omitempty"`

	// Platform Filter by whale_alerts.platform. all is equivalent to omitted.
	Platform *ListWhaleTradeHistoryParamsPlatform `form:"platform,omitempty" json:"platform,omitempty"`

	// From Inclusive RFC3339 lower bound on whale_alerts.traded_at.
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To Exclusive RFC3339 upper bound on whale_alerts.traded_at. Must be after from when both are present.
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListWhaleTradeHistoryParams defines parameters for ListWhaleTradeHistory.

type ListWhaleTradeHistoryParamsMinGrade

type ListWhaleTradeHistoryParamsMinGrade string

ListWhaleTradeHistoryParamsMinGrade defines parameters for ListWhaleTradeHistory.

const (
	ListWhaleTradeHistoryParamsMinGradeA ListWhaleTradeHistoryParamsMinGrade = "A"
	ListWhaleTradeHistoryParamsMinGradeB ListWhaleTradeHistoryParamsMinGrade = "B"
	ListWhaleTradeHistoryParamsMinGradeC ListWhaleTradeHistoryParamsMinGrade = "C"
	ListWhaleTradeHistoryParamsMinGradeD ListWhaleTradeHistoryParamsMinGrade = "D"
	ListWhaleTradeHistoryParamsMinGradeF ListWhaleTradeHistoryParamsMinGrade = "F"
	ListWhaleTradeHistoryParamsMinGradeS ListWhaleTradeHistoryParamsMinGrade = "S"
)

Defines values for ListWhaleTradeHistoryParamsMinGrade.

func (ListWhaleTradeHistoryParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListWhaleTradeHistoryParamsMinGrade enum.

type ListWhaleTradeHistoryParamsPlatform

type ListWhaleTradeHistoryParamsPlatform string

ListWhaleTradeHistoryParamsPlatform defines parameters for ListWhaleTradeHistory.

const (
	ListWhaleTradeHistoryParamsPlatformAll        ListWhaleTradeHistoryParamsPlatform = "all"
	ListWhaleTradeHistoryParamsPlatformPolymarket ListWhaleTradeHistoryParamsPlatform = "polymarket"
)

Defines values for ListWhaleTradeHistoryParamsPlatform.

func (ListWhaleTradeHistoryParamsPlatform) Valid

Valid indicates whether the value is a known member of the ListWhaleTradeHistoryParamsPlatform enum.

type ListWhaleTradeHistoryResponse

type ListWhaleTradeHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []WhaleTrade                                   `json:"data"`
		HasMore    bool                                           `json:"has_more"`
		Meta       WhaleTradeHistoryMeta                          `json:"meta"`
		NextCursor *string                                        `json:"next_cursor,omitempty"`
		Object     ListWhaleTradeHistory200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWhaleTradeHistoryResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListWhaleTradeHistoryResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWhaleTradeHistoryResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWhaleTradeHistoryResponse503Headers
}

func ParseListWhaleTradeHistoryResponse

func ParseListWhaleTradeHistoryResponse(rsp *http.Response) (*ListWhaleTradeHistoryResponse, error)

ParseListWhaleTradeHistoryResponse parses an HTTP response from a ListWhaleTradeHistoryWithResponse call

func (ListWhaleTradeHistoryResponse) ContentType

func (r ListWhaleTradeHistoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWhaleTradeHistoryResponse) GetBody

func (r ListWhaleTradeHistoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWhaleTradeHistoryResponse) GetJSON200

func (r ListWhaleTradeHistoryResponse) GetJSON200() *struct {
	Data       []WhaleTrade                                   `json:"data"`
	HasMore    bool                                           `json:"has_more"`
	Meta       WhaleTradeHistoryMeta                          `json:"meta"`
	NextCursor *string                                        `json:"next_cursor,omitempty"`
	Object     ListWhaleTradeHistory200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON400

func (r ListWhaleTradeHistoryResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON401

func (r ListWhaleTradeHistoryResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON402

func (r ListWhaleTradeHistoryResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON403

func (r ListWhaleTradeHistoryResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON423

func (r ListWhaleTradeHistoryResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON429

func (r ListWhaleTradeHistoryResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWhaleTradeHistoryResponse) GetJSON503

func (r ListWhaleTradeHistoryResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWhaleTradeHistoryResponse) Status

Status returns HTTPResponse.Status

func (ListWhaleTradeHistoryResponse) StatusCode

func (r ListWhaleTradeHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWhaleTradeHistoryResponse200Headers

type ListWhaleTradeHistoryResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListWhaleTradeHistoryResponse200Headers the declared response headers of an HTTP 200 response for ListWhaleTradeHistory

type ListWhaleTradeHistoryResponse304Headers

type ListWhaleTradeHistoryResponse304Headers struct {
	ETag *string
}

ListWhaleTradeHistoryResponse304Headers the declared response headers of an HTTP 304 response for ListWhaleTradeHistory

type ListWhaleTradeHistoryResponse429Headers

type ListWhaleTradeHistoryResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWhaleTradeHistoryResponse429Headers the declared response headers of an HTTP 429 response for ListWhaleTradeHistory

type ListWhaleTradeHistoryResponse503Headers

type ListWhaleTradeHistoryResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWhaleTradeHistoryResponse503Headers the declared response headers of an HTTP 503 response for ListWhaleTradeHistory

type ListWhaleTrades200JSONResponseBodyObject

type ListWhaleTrades200JSONResponseBodyObject string

ListWhaleTrades200JSONResponseBodyObject defines parameters for ListWhaleTrades.

const (
	ListWhaleTrades200JSONResponseBodyObjectList ListWhaleTrades200JSONResponseBodyObject = "list"
)

Defines values for ListWhaleTrades200JSONResponseBodyObject.

func (ListWhaleTrades200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the ListWhaleTrades200JSONResponseBodyObject enum.

type ListWhaleTradesParams

type ListWhaleTradesParams struct {
	// Limit Maximum number of recent large trades to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// MinSize Minimum trade size in USD.
	MinSize *float32 `form:"min_size,omitempty" json:"min_size,omitempty"`

	// Category Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket.
	Category *string `form:"category,omitempty" json:"category,omitempty"`

	// MinGrade Minimum trader grade.
	MinGrade *ListWhaleTradesParamsMinGrade `form:"min_grade,omitempty" json:"min_grade,omitempty"`

	// SuspiciousOnly When true, return only rows with persisted suspicion_score >= 60. The filter is applied before SQL-backed limit + 1 pagination.
	SuspiciousOnly *bool `form:"suspicious_only,omitempty" json:"suspicious_only,omitempty"`

	// IfNoneMatch Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.
	IfNoneMatch *string `json:"If-None-Match,omitempty"`
}

ListWhaleTradesParams defines parameters for ListWhaleTrades.

type ListWhaleTradesParamsMinGrade

type ListWhaleTradesParamsMinGrade string

ListWhaleTradesParamsMinGrade defines parameters for ListWhaleTrades.

const (
	ListWhaleTradesParamsMinGradeA ListWhaleTradesParamsMinGrade = "A"
	ListWhaleTradesParamsMinGradeB ListWhaleTradesParamsMinGrade = "B"
	ListWhaleTradesParamsMinGradeC ListWhaleTradesParamsMinGrade = "C"
	ListWhaleTradesParamsMinGradeD ListWhaleTradesParamsMinGrade = "D"
	ListWhaleTradesParamsMinGradeF ListWhaleTradesParamsMinGrade = "F"
	ListWhaleTradesParamsMinGradeS ListWhaleTradesParamsMinGrade = "S"
)

Defines values for ListWhaleTradesParamsMinGrade.

func (ListWhaleTradesParamsMinGrade) Valid

Valid indicates whether the value is a known member of the ListWhaleTradesParamsMinGrade enum.

type ListWhaleTradesResponse

type ListWhaleTradesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []WhaleTrade                             `json:"data"`
		HasMore    bool                                     `json:"has_more"`
		Meta       ResponseMeta                             `json:"meta"`
		NextCursor *string                                  `json:"next_cursor,omitempty"`
		Object     ListWhaleTrades200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWhaleTradesResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *ListWhaleTradesResponse304Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWhaleTradesResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWhaleTradesResponse503Headers
}

func ParseListWhaleTradesResponse

func ParseListWhaleTradesResponse(rsp *http.Response) (*ListWhaleTradesResponse, error)

ParseListWhaleTradesResponse parses an HTTP response from a ListWhaleTradesWithResponse call

func (ListWhaleTradesResponse) ContentType

func (r ListWhaleTradesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWhaleTradesResponse) GetBody

func (r ListWhaleTradesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWhaleTradesResponse) GetJSON200

func (r ListWhaleTradesResponse) GetJSON200() *struct {
	Data       []WhaleTrade                             `json:"data"`
	HasMore    bool                                     `json:"has_more"`
	Meta       ResponseMeta                             `json:"meta"`
	NextCursor *string                                  `json:"next_cursor,omitempty"`
	Object     ListWhaleTrades200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWhaleTradesResponse) GetJSON400

func (r ListWhaleTradesResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWhaleTradesResponse) GetJSON401

func (r ListWhaleTradesResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWhaleTradesResponse) GetJSON402

func (r ListWhaleTradesResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWhaleTradesResponse) GetJSON403

func (r ListWhaleTradesResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWhaleTradesResponse) GetJSON423

func (r ListWhaleTradesResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (ListWhaleTradesResponse) GetJSON429

func (r ListWhaleTradesResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWhaleTradesResponse) GetJSON503

func (r ListWhaleTradesResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWhaleTradesResponse) Status

func (r ListWhaleTradesResponse) Status() string

Status returns HTTPResponse.Status

func (ListWhaleTradesResponse) StatusCode

func (r ListWhaleTradesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWhaleTradesResponse200Headers

type ListWhaleTradesResponse200Headers struct {
	ETag                *string
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

ListWhaleTradesResponse200Headers the declared response headers of an HTTP 200 response for ListWhaleTrades

type ListWhaleTradesResponse304Headers

type ListWhaleTradesResponse304Headers struct {
	ETag *string
}

ListWhaleTradesResponse304Headers the declared response headers of an HTTP 304 response for ListWhaleTrades

type ListWhaleTradesResponse429Headers

type ListWhaleTradesResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

ListWhaleTradesResponse429Headers the declared response headers of an HTTP 429 response for ListWhaleTrades

type ListWhaleTradesResponse503Headers

type ListWhaleTradesResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

ListWhaleTradesResponse503Headers the declared response headers of an HTTP 503 response for ListWhaleTrades

type MarketCandles

type MarketCandles struct {
	// ConditionId Market condition id the candles were read for.
	ConditionId string `json:"condition_id"`

	// Outcomes One entry per present provider token (YES first, then NO); empty when no tokens have been fetched yet.
	Outcomes []OutcomeCandles `json:"outcomes"`

	// Resolution Bucketing granularity that produced these candles.
	Resolution MarketCandlesResolution `json:"resolution"`
}

MarketCandles Provider-first bucketed OHLC price candles for a market's outcome tokens, derived from the stored token_price_snapshots series (covers open and resolved markets).

type MarketCandlesResolution

type MarketCandlesResolution string

MarketCandlesResolution Bucketing granularity that produced these candles.

const (
	MarketCandlesResolutionN1d MarketCandlesResolution = "1d"
	MarketCandlesResolutionN1w MarketCandlesResolution = "1w"
)

Defines values for MarketCandlesResolution.

func (MarketCandlesResolution) Valid

func (e MarketCandlesResolution) Valid() bool

Valid indicates whether the value is a known member of the MarketCandlesResolution enum.

type MarketIntel

type MarketIntel struct {
	Market struct {
		Category    *string `json:"category,omitempty"`
		ConditionId string  `json:"condition_id"`
		Id          string  `json:"id"`
		Platform    *string `json:"platform,omitempty"`
		Slug        *string `json:"slug,omitempty"`
		Title       string  `json:"title"`
	} `json:"market"`

	// SharpMoney Outcome-aware flow from all tracked whale trades in the window, without a grade filter. BUY YES and SELL NO add net exposure; BUY NO and SELL YES subtract it. Gross buy/sell volumes count both outcomes. Top positions are separately graded. Direction uses unrounded net: negative is NO, otherwise YES; the zero tie-break is not conviction. Canonical; smart_money is a deprecated byte-identical alias.
	SharpMoney struct {
		BuyVolumeUsd  float32                        `json:"buy_volume_usd"`
		Direction     MarketIntelSharpMoneyDirection `json:"direction"`
		NetFlowUsd    float32                        `json:"net_flow_usd"`
		SellVolumeUsd float32                        `json:"sell_volume_usd"`

		// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets).
		TokenId      *string `json:"token_id,omitempty"`
		TopPositions []struct {
			Address string                                `json:"address"`
			Grade   *string                               `json:"grade,omitempty"`
			Id      string                                `json:"id"`
			Side    MarketIntelSharpMoneyTopPositionsSide `json:"side"`
			SizeUsd float32                               `json:"size_usd"`

			// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for this outcome; null when unavailable (e.g. unsynced markets).
			TokenId  *string `json:"token_id,omitempty"`
			Username *string `json:"username,omitempty"`
		} `json:"top_positions"`
		WhaleTradeCount int `json:"whale_trade_count"`
	} `json:"sharp_money"`

	// SmartMoney Deprecated alias of sharp_money; byte-identical and retained for backward compatibility.
	SmartMoney struct {
		BuyVolumeUsd  float32                        `json:"buy_volume_usd"`
		Direction     MarketIntelSmartMoneyDirection `json:"direction"`
		NetFlowUsd    float32                        `json:"net_flow_usd"`
		SellVolumeUsd float32                        `json:"sell_volume_usd"`

		// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets).
		TokenId      *string `json:"token_id,omitempty"`
		TopPositions []struct {
			Address string                                `json:"address"`
			Grade   *string                               `json:"grade,omitempty"`
			Id      string                                `json:"id"`
			Side    MarketIntelSmartMoneyTopPositionsSide `json:"side"`
			SizeUsd float32                               `json:"size_usd"`

			// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for this outcome; null when unavailable (e.g. unsynced markets).
			TokenId  *string `json:"token_id,omitempty"`
			Username *string `json:"username,omitempty"`
		} `json:"top_positions"`
		WhaleTradeCount int `json:"whale_trade_count"`
	} `json:"smart_money"`
	Timeframe string `json:"timeframe"`
}

MarketIntel defines model for MarketIntel.

type MarketIntelSharpMoneyDirection

type MarketIntelSharpMoneyDirection string

MarketIntelSharpMoneyDirection defines model for MarketIntel.SharpMoney.Direction.

const (
	MarketIntelSharpMoneyDirectionNO  MarketIntelSharpMoneyDirection = "NO"
	MarketIntelSharpMoneyDirectionYES MarketIntelSharpMoneyDirection = "YES"
)

Defines values for MarketIntelSharpMoneyDirection.

func (MarketIntelSharpMoneyDirection) Valid

Valid indicates whether the value is a known member of the MarketIntelSharpMoneyDirection enum.

type MarketIntelSharpMoneyTopPositionsSide

type MarketIntelSharpMoneyTopPositionsSide string

MarketIntelSharpMoneyTopPositionsSide defines model for MarketIntel.SharpMoney.TopPositions.Side.

const (
	MarketIntelSharpMoneyTopPositionsSideNO  MarketIntelSharpMoneyTopPositionsSide = "NO"
	MarketIntelSharpMoneyTopPositionsSideYES MarketIntelSharpMoneyTopPositionsSide = "YES"
)

Defines values for MarketIntelSharpMoneyTopPositionsSide.

func (MarketIntelSharpMoneyTopPositionsSide) Valid

Valid indicates whether the value is a known member of the MarketIntelSharpMoneyTopPositionsSide enum.

type MarketIntelSmartMoneyDirection

type MarketIntelSmartMoneyDirection string

MarketIntelSmartMoneyDirection defines model for MarketIntel.SmartMoney.Direction.

const (
	MarketIntelSmartMoneyDirectionNO  MarketIntelSmartMoneyDirection = "NO"
	MarketIntelSmartMoneyDirectionYES MarketIntelSmartMoneyDirection = "YES"
)

Defines values for MarketIntelSmartMoneyDirection.

func (MarketIntelSmartMoneyDirection) Valid

Valid indicates whether the value is a known member of the MarketIntelSmartMoneyDirection enum.

type MarketIntelSmartMoneyTopPositionsSide

type MarketIntelSmartMoneyTopPositionsSide string

MarketIntelSmartMoneyTopPositionsSide defines model for MarketIntel.SmartMoney.TopPositions.Side.

const (
	MarketIntelSmartMoneyTopPositionsSideNO  MarketIntelSmartMoneyTopPositionsSide = "NO"
	MarketIntelSmartMoneyTopPositionsSideYES MarketIntelSmartMoneyTopPositionsSide = "YES"
)

Defines values for MarketIntelSmartMoneyTopPositionsSide.

func (MarketIntelSmartMoneyTopPositionsSide) Valid

Valid indicates whether the value is a known member of the MarketIntelSmartMoneyTopPositionsSide enum.

type MarketSearchResult

type MarketSearchResult struct {
	Category    *string                  `json:"category,omitempty"`
	ConditionId string                   `json:"condition_id"`
	Id          string                   `json:"id"`
	Platform    *string                  `json:"platform,omitempty"`
	Slug        *string                  `json:"slug,omitempty"`
	Status      MarketSearchResultStatus `json:"status"`
	Title       string                   `json:"title"`
}

MarketSearchResult defines model for MarketSearchResult.

type MarketSearchResultStatus

type MarketSearchResultStatus string

MarketSearchResultStatus defines model for MarketSearchResult.Status.

const (
	MarketSearchResultStatusActive MarketSearchResultStatus = "active"
	MarketSearchResultStatusClosed MarketSearchResultStatus = "closed"
)

Defines values for MarketSearchResultStatus.

func (MarketSearchResultStatus) Valid

func (e MarketSearchResultStatus) Valid() bool

Valid indicates whether the value is a known member of the MarketSearchResultStatus enum.

type MarketSnapshot

type MarketSnapshot struct {
	Freshness struct {
		// LiveSports Freshness requires the dedicated two-second post-publication marker to match the retained vintage and non-invalidated data timestamp; timestamp presence alone is insufficient. as_of records compute start, so stale_after_s is omitted rather than implying as_of plus two seconds. Missing membership is not_live only in a fresh source; stale membership remains stale and unreadable source data is unavailable. Repeated lookups reuse the shared payload and typed index for an unchanged generation.
		LiveSports MarketSnapshotFreshness `json:"live_sports"`
		MarketData MarketSnapshotFreshness `json:"market_data"`
		TopOfBook  MarketSnapshotFreshness `json:"top_of_book"`
	} `json:"freshness"`
	Liquidity struct {
		// LastPrice Always null. Polymarket snapshot prices come from outcome top-of-book midpoints.
		LastPrice    *float32 `json:"last_price,omitempty"`
		LiquidityUsd *float32 `json:"liquidity_usd,omitempty"`
		Source       string   `json:"source"`
		Volume24hUsd *float32 `json:"volume_24h_usd,omitempty"`
		VolumeUsd    *float32 `json:"volume_usd,omitempty"`
	} `json:"liquidity"`
	Market struct {
		Category     *string    `json:"category,omitempty"`
		ConditionId  string     `json:"condition_id"`
		CreatedAt    *time.Time `json:"created_at,omitempty"`
		Description  *string    `json:"description,omitempty"`
		EndDate      *time.Time `json:"end_date,omitempty"`
		EventSlug    *string    `json:"event_slug,omitempty"`
		Id           string     `json:"id"`
		Image        *string    `json:"image,omitempty"`
		MarketResult *string    `json:"market_result,omitempty"`
		MarketType   *string    `json:"market_type,omitempty"`
		PageSlug     *string    `json:"page_slug,omitempty"`
		Provider     string     `json:"provider"`
		ResolvedAt   *time.Time `json:"resolved_at,omitempty"`

		// SeriesSlug Polymarket series slug from the canonical identity row, null when unavailable. A sports series identifies a league and must not be used as a per-matchup grouping key.
		SeriesSlug *string                    `json:"series_slug,omitempty"`
		Slug       *string                    `json:"slug,omitempty"`
		Status     MarketSnapshotMarketStatus `json:"status"`
		Title      *string                    `json:"title,omitempty"`
	} `json:"market"`
	Outcomes []struct {
		CurrentPrice *float32                   `json:"current_price,omitempty"`
		Label        string                     `json:"label"`
		Side         MarketSnapshotOutcomesSide `json:"side"`
		TokenId      *string                    `json:"token_id,omitempty"`
		TopOfBook    MarketSnapshotTopOfBook    `json:"top_of_book"`
	} `json:"outcomes"`
	Sports struct {
		LiveLeagueKey *string `json:"live_league_key,omitempty"`
		LiveMatchKey  *string `json:"live_match_key,omitempty"`

		// LiveScore Live-score period and elapsed may be omitted when unavailable (older responses use null). A score entry may omit full_name when it equals team; fall back to team. Distinct aliases and score admission markers are preserved.
		LiveScore *map[string]interface{}    `json:"live_score,omitempty"`
		Reason    *string                    `json:"reason,omitempty"`
		Source    string                     `json:"source"`
		Status    MarketSnapshotSportsStatus `json:"status"`
	} `json:"sports"`

	// Trust Price and spread trust metadata. Present only when expand=trust or expand[]=trust is requested.
	Trust *MarketSnapshotTrust `json:"trust,omitempty"`
}

MarketSnapshot defines model for MarketSnapshot.

type MarketSnapshotFreshness

type MarketSnapshotFreshness struct {
	AsOf   *time.Time `json:"as_of,omitempty"`
	Reason *string    `json:"reason,omitempty"`
	Source string     `json:"source"`

	// StaleAfterS Age-relative freshness bound when known. Omitted for live_sports: its as_of records compute start, while its two-second freshness marker starts at publication.
	StaleAfterS *int                          `json:"stale_after_s,omitempty"`
	Status      MarketSnapshotFreshnessStatus `json:"status"`
}

MarketSnapshotFreshness defines model for MarketSnapshotFreshness.

type MarketSnapshotFreshnessStatus

type MarketSnapshotFreshnessStatus string

MarketSnapshotFreshnessStatus defines model for MarketSnapshotFreshness.Status.

const (
	MarketSnapshotFreshnessStatusAvailable   MarketSnapshotFreshnessStatus = "available"
	MarketSnapshotFreshnessStatusFresh       MarketSnapshotFreshnessStatus = "fresh"
	MarketSnapshotFreshnessStatusNotLive     MarketSnapshotFreshnessStatus = "not_live"
	MarketSnapshotFreshnessStatusStale       MarketSnapshotFreshnessStatus = "stale"
	MarketSnapshotFreshnessStatusUnavailable MarketSnapshotFreshnessStatus = "unavailable"
)

Defines values for MarketSnapshotFreshnessStatus.

func (MarketSnapshotFreshnessStatus) Valid

Valid indicates whether the value is a known member of the MarketSnapshotFreshnessStatus enum.

type MarketSnapshotMarketStatus

type MarketSnapshotMarketStatus string

MarketSnapshotMarketStatus defines model for MarketSnapshot.Market.Status.

const (
	MarketSnapshotMarketStatusActive MarketSnapshotMarketStatus = "active"
	MarketSnapshotMarketStatusClosed MarketSnapshotMarketStatus = "closed"
)

Defines values for MarketSnapshotMarketStatus.

func (MarketSnapshotMarketStatus) Valid

func (e MarketSnapshotMarketStatus) Valid() bool

Valid indicates whether the value is a known member of the MarketSnapshotMarketStatus enum.

type MarketSnapshotOutcomesSide

type MarketSnapshotOutcomesSide string

MarketSnapshotOutcomesSide defines model for MarketSnapshot.Outcomes.Side.

const (
	MarketSnapshotOutcomesSideNo  MarketSnapshotOutcomesSide = "no"
	MarketSnapshotOutcomesSideYes MarketSnapshotOutcomesSide = "yes"
)

Defines values for MarketSnapshotOutcomesSide.

func (MarketSnapshotOutcomesSide) Valid

func (e MarketSnapshotOutcomesSide) Valid() bool

Valid indicates whether the value is a known member of the MarketSnapshotOutcomesSide enum.

type MarketSnapshotSportsStatus

type MarketSnapshotSportsStatus string

MarketSnapshotSportsStatus defines model for MarketSnapshot.Sports.Status.

const (
	MarketSnapshotSportsStatusFresh       MarketSnapshotSportsStatus = "fresh"
	MarketSnapshotSportsStatusNotLive     MarketSnapshotSportsStatus = "not_live"
	MarketSnapshotSportsStatusStale       MarketSnapshotSportsStatus = "stale"
	MarketSnapshotSportsStatusUnavailable MarketSnapshotSportsStatus = "unavailable"
)

Defines values for MarketSnapshotSportsStatus.

func (MarketSnapshotSportsStatus) Valid

func (e MarketSnapshotSportsStatus) Valid() bool

Valid indicates whether the value is a known member of the MarketSnapshotSportsStatus enum.

type MarketSnapshotTopOfBook

type MarketSnapshotTopOfBook struct {
	AskDepthUsdc *float32                      `json:"ask_depth_usdc,omitempty"`
	BestAsk      *float32                      `json:"best_ask,omitempty"`
	BestBid      *float32                      `json:"best_bid,omitempty"`
	BidDepthUsdc *float32                      `json:"bid_depth_usdc,omitempty"`
	Reason       *string                       `json:"reason,omitempty"`
	Source       string                        `json:"source"`
	SpreadBps    *int                          `json:"spread_bps,omitempty"`
	Status       MarketSnapshotTopOfBookStatus `json:"status"`
}

MarketSnapshotTopOfBook defines model for MarketSnapshotTopOfBook.

type MarketSnapshotTopOfBookStatus

type MarketSnapshotTopOfBookStatus string

MarketSnapshotTopOfBookStatus defines model for MarketSnapshotTopOfBook.Status.

const (
	MarketSnapshotTopOfBookStatusAvailable   MarketSnapshotTopOfBookStatus = "available"
	MarketSnapshotTopOfBookStatusUnavailable MarketSnapshotTopOfBookStatus = "unavailable"
)

Defines values for MarketSnapshotTopOfBookStatus.

func (MarketSnapshotTopOfBookStatus) Valid

Valid indicates whether the value is a known member of the MarketSnapshotTopOfBookStatus enum.

type MarketSnapshotTrust

type MarketSnapshotTrust struct {
	// CurrentPrice Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	CurrentPrice TrustMetadata `json:"current_price"`

	// SpreadBps Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	SpreadBps TrustMetadata `json:"spread_bps"`
}

MarketSnapshotTrust Price and spread trust metadata returned only when GET /api/v1/market/{condition_id}/snapshot includes expand=trust.

type McpJsonRpcError

type McpJsonRpcError struct {
	Error struct {
		Code int `json:"code"`

		// Data Optional JSON-serializable error data.
		Data    *McpJsonRpcError_Error_Data `json:"data,omitempty"`
		Message string                      `json:"message"`
	} `json:"error"`
	Id      *McpJsonRpcError_Id    `json:"id,omitempty"`
	Jsonrpc McpJsonRpcErrorJsonrpc `json:"jsonrpc"`
}

McpJsonRpcError defines model for McpJsonRpcError.

type McpJsonRpcErrorErrorData0

type McpJsonRpcErrorErrorData0 = map[string]interface{}

McpJsonRpcErrorErrorData0 defines model for McpJsonRpcError.Error.Data.0.

type McpJsonRpcErrorErrorData1

type McpJsonRpcErrorErrorData1 = []interface{}

McpJsonRpcErrorErrorData1 defines model for McpJsonRpcError.Error.Data.1.

type McpJsonRpcErrorErrorData2

type McpJsonRpcErrorErrorData2 = string

McpJsonRpcErrorErrorData2 defines model for McpJsonRpcError.Error.Data.2.

type McpJsonRpcErrorErrorData3

type McpJsonRpcErrorErrorData3 = float32

McpJsonRpcErrorErrorData3 defines model for McpJsonRpcError.Error.Data.3.

type McpJsonRpcErrorErrorData4

type McpJsonRpcErrorErrorData4 = bool

McpJsonRpcErrorErrorData4 defines model for McpJsonRpcError.Error.Data.4.

type McpJsonRpcErrorId0

type McpJsonRpcErrorId0 = string

McpJsonRpcErrorId0 defines model for McpJsonRpcError.Id.0.

type McpJsonRpcErrorId1

type McpJsonRpcErrorId1 = float32

McpJsonRpcErrorId1 defines model for McpJsonRpcError.Id.1.

type McpJsonRpcErrorJsonrpc

type McpJsonRpcErrorJsonrpc string

McpJsonRpcErrorJsonrpc defines model for McpJsonRpcError.Jsonrpc.

const (
	McpJsonRpcErrorJsonrpcN20 McpJsonRpcErrorJsonrpc = "2.0"
)

Defines values for McpJsonRpcErrorJsonrpc.

func (McpJsonRpcErrorJsonrpc) Valid

func (e McpJsonRpcErrorJsonrpc) Valid() bool

Valid indicates whether the value is a known member of the McpJsonRpcErrorJsonrpc enum.

type McpJsonRpcError_Error_Data

type McpJsonRpcError_Error_Data struct {
	// contains filtered or unexported fields
}

McpJsonRpcError_Error_Data Optional JSON-serializable error data.

func (McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData0

func (t McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData0() (McpJsonRpcErrorErrorData0, error)

AsMcpJsonRpcErrorErrorData0 returns the union data inside the McpJsonRpcError_Error_Data as a McpJsonRpcErrorErrorData0

func (McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData1

func (t McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData1() (McpJsonRpcErrorErrorData1, error)

AsMcpJsonRpcErrorErrorData1 returns the union data inside the McpJsonRpcError_Error_Data as a McpJsonRpcErrorErrorData1

func (McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData2

func (t McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData2() (McpJsonRpcErrorErrorData2, error)

AsMcpJsonRpcErrorErrorData2 returns the union data inside the McpJsonRpcError_Error_Data as a McpJsonRpcErrorErrorData2

func (McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData3

func (t McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData3() (McpJsonRpcErrorErrorData3, error)

AsMcpJsonRpcErrorErrorData3 returns the union data inside the McpJsonRpcError_Error_Data as a McpJsonRpcErrorErrorData3

func (McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData4

func (t McpJsonRpcError_Error_Data) AsMcpJsonRpcErrorErrorData4() (McpJsonRpcErrorErrorData4, error)

AsMcpJsonRpcErrorErrorData4 returns the union data inside the McpJsonRpcError_Error_Data as a McpJsonRpcErrorErrorData4

func (*McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData0

func (t *McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData0(v McpJsonRpcErrorErrorData0) error

FromMcpJsonRpcErrorErrorData0 overwrites any union data inside the McpJsonRpcError_Error_Data as the provided McpJsonRpcErrorErrorData0

func (*McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData1

func (t *McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData1(v McpJsonRpcErrorErrorData1) error

FromMcpJsonRpcErrorErrorData1 overwrites any union data inside the McpJsonRpcError_Error_Data as the provided McpJsonRpcErrorErrorData1

func (*McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData2

func (t *McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData2(v McpJsonRpcErrorErrorData2) error

FromMcpJsonRpcErrorErrorData2 overwrites any union data inside the McpJsonRpcError_Error_Data as the provided McpJsonRpcErrorErrorData2

func (*McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData3

func (t *McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData3(v McpJsonRpcErrorErrorData3) error

FromMcpJsonRpcErrorErrorData3 overwrites any union data inside the McpJsonRpcError_Error_Data as the provided McpJsonRpcErrorErrorData3

func (*McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData4

func (t *McpJsonRpcError_Error_Data) FromMcpJsonRpcErrorErrorData4(v McpJsonRpcErrorErrorData4) error

FromMcpJsonRpcErrorErrorData4 overwrites any union data inside the McpJsonRpcError_Error_Data as the provided McpJsonRpcErrorErrorData4

func (McpJsonRpcError_Error_Data) MarshalJSON

func (t McpJsonRpcError_Error_Data) MarshalJSON() ([]byte, error)

func (*McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData0

func (t *McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData0(v McpJsonRpcErrorErrorData0) error

MergeMcpJsonRpcErrorErrorData0 performs a merge with any union data inside the McpJsonRpcError_Error_Data, using the provided McpJsonRpcErrorErrorData0

func (*McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData1

func (t *McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData1(v McpJsonRpcErrorErrorData1) error

MergeMcpJsonRpcErrorErrorData1 performs a merge with any union data inside the McpJsonRpcError_Error_Data, using the provided McpJsonRpcErrorErrorData1

func (*McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData2

func (t *McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData2(v McpJsonRpcErrorErrorData2) error

MergeMcpJsonRpcErrorErrorData2 performs a merge with any union data inside the McpJsonRpcError_Error_Data, using the provided McpJsonRpcErrorErrorData2

func (*McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData3

func (t *McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData3(v McpJsonRpcErrorErrorData3) error

MergeMcpJsonRpcErrorErrorData3 performs a merge with any union data inside the McpJsonRpcError_Error_Data, using the provided McpJsonRpcErrorErrorData3

func (*McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData4

func (t *McpJsonRpcError_Error_Data) MergeMcpJsonRpcErrorErrorData4(v McpJsonRpcErrorErrorData4) error

MergeMcpJsonRpcErrorErrorData4 performs a merge with any union data inside the McpJsonRpcError_Error_Data, using the provided McpJsonRpcErrorErrorData4

func (*McpJsonRpcError_Error_Data) UnmarshalJSON

func (t *McpJsonRpcError_Error_Data) UnmarshalJSON(b []byte) error

type McpJsonRpcError_Id

type McpJsonRpcError_Id struct {
	// contains filtered or unexported fields
}

McpJsonRpcError_Id defines model for McpJsonRpcError.Id.

func (McpJsonRpcError_Id) AsMcpJsonRpcErrorId0

func (t McpJsonRpcError_Id) AsMcpJsonRpcErrorId0() (McpJsonRpcErrorId0, error)

AsMcpJsonRpcErrorId0 returns the union data inside the McpJsonRpcError_Id as a McpJsonRpcErrorId0

func (McpJsonRpcError_Id) AsMcpJsonRpcErrorId1

func (t McpJsonRpcError_Id) AsMcpJsonRpcErrorId1() (McpJsonRpcErrorId1, error)

AsMcpJsonRpcErrorId1 returns the union data inside the McpJsonRpcError_Id as a McpJsonRpcErrorId1

func (*McpJsonRpcError_Id) FromMcpJsonRpcErrorId0

func (t *McpJsonRpcError_Id) FromMcpJsonRpcErrorId0(v McpJsonRpcErrorId0) error

FromMcpJsonRpcErrorId0 overwrites any union data inside the McpJsonRpcError_Id as the provided McpJsonRpcErrorId0

func (*McpJsonRpcError_Id) FromMcpJsonRpcErrorId1

func (t *McpJsonRpcError_Id) FromMcpJsonRpcErrorId1(v McpJsonRpcErrorId1) error

FromMcpJsonRpcErrorId1 overwrites any union data inside the McpJsonRpcError_Id as the provided McpJsonRpcErrorId1

func (McpJsonRpcError_Id) MarshalJSON

func (t McpJsonRpcError_Id) MarshalJSON() ([]byte, error)

func (*McpJsonRpcError_Id) MergeMcpJsonRpcErrorId0

func (t *McpJsonRpcError_Id) MergeMcpJsonRpcErrorId0(v McpJsonRpcErrorId0) error

MergeMcpJsonRpcErrorId0 performs a merge with any union data inside the McpJsonRpcError_Id, using the provided McpJsonRpcErrorId0

func (*McpJsonRpcError_Id) MergeMcpJsonRpcErrorId1

func (t *McpJsonRpcError_Id) MergeMcpJsonRpcErrorId1(v McpJsonRpcErrorId1) error

MergeMcpJsonRpcErrorId1 performs a merge with any union data inside the McpJsonRpcError_Id, using the provided McpJsonRpcErrorId1

func (*McpJsonRpcError_Id) UnmarshalJSON

func (t *McpJsonRpcError_Id) UnmarshalJSON(b []byte) error

type OpenMcpEventStreamParams

type OpenMcpEventStreamParams struct {
	// Token Legacy API-key query parameter for exact /api/v1/mcp only. Every other protected V1 route rejects it. Same contract as POST.
	Token *string `form:"token,omitempty" json:"token,omitempty"`

	// McpSessionId Session ID minted by the server on initialize.
	McpSessionId *string `json:"Mcp-Session-Id,omitempty"`
}

OpenMcpEventStreamParams defines parameters for OpenMcpEventStream.

type OpenMcpEventStreamResponse

type OpenMcpEventStreamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *OpenMcpEventStreamResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *OpenMcpEventStreamResponse429Headers
}

func ParseOpenMcpEventStreamResponse

func ParseOpenMcpEventStreamResponse(rsp *http.Response) (*OpenMcpEventStreamResponse, error)

ParseOpenMcpEventStreamResponse parses an HTTP response from a OpenMcpEventStreamWithResponse call

func (OpenMcpEventStreamResponse) ContentType

func (r OpenMcpEventStreamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (OpenMcpEventStreamResponse) GetBody

func (r OpenMcpEventStreamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (OpenMcpEventStreamResponse) GetJSON401

func (r OpenMcpEventStreamResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (OpenMcpEventStreamResponse) GetJSON403

func (r OpenMcpEventStreamResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (OpenMcpEventStreamResponse) GetJSON429

func (r OpenMcpEventStreamResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (OpenMcpEventStreamResponse) Status

Status returns HTTPResponse.Status

func (OpenMcpEventStreamResponse) StatusCode

func (r OpenMcpEventStreamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OpenMcpEventStreamResponse200Headers

type OpenMcpEventStreamResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

OpenMcpEventStreamResponse200Headers the declared response headers of an HTTP 200 response for OpenMcpEventStream

type OpenMcpEventStreamResponse429Headers

type OpenMcpEventStreamResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

OpenMcpEventStreamResponse429Headers the declared response headers of an HTTP 429 response for OpenMcpEventStream

type OutcomeCandles

type OutcomeCandles struct {
	// Candles OHLC candles for this outcome token, ascending by bucket start.
	Candles []Candle `json:"candles"`

	// Outcome Canonical side label.
	Outcome OutcomeCandlesOutcome `json:"outcome"`

	// TokenId Provider CLOB token id the candles were read for.
	TokenId string `json:"token_id"`
}

OutcomeCandles One outcome token's bucketed candle series.

type OutcomeCandlesOutcome

type OutcomeCandlesOutcome string

OutcomeCandlesOutcome Canonical side label.

const (
	OutcomeCandlesOutcomeNO  OutcomeCandlesOutcome = "NO"
	OutcomeCandlesOutcomeYES OutcomeCandlesOutcome = "YES"
)

Defines values for OutcomeCandlesOutcome.

func (OutcomeCandlesOutcome) Valid

func (e OutcomeCandlesOutcome) Valid() bool

Valid indicates whether the value is a known member of the OutcomeCandlesOutcome enum.

type PickHolder

type PickHolder struct {
	Address string `json:"address"`

	// CategoryWinRate This wallet's win rate in the pick's canonical category bucket (the pick's `category` field, e.g. Basketball -- label the rate with it, never with the narrower `display_category` league): the share of the wallet's resolved markets in that category whose realized P&L closed positive, as a 0..1 fraction. Present only with `category_win_rate_status` = `measured`, on `display_holders` entries, and only when the wallet clears the resolved-market floor; recomputed at serve time from the current category read model, not frozen with the pick. Absent on `holders` entries, legacy rows, and payloads predating the field.
	CategoryWinRate *float32 `json:"category_win_rate,omitempty"`

	// CategoryWinRateStatus Why `category_win_rate` is present or absent on a `display_holders` entry: `measured` (rate present), `not_enough_data` (the wallet is below the resolved-market floor of 5 in the category), or `unavailable` (the annotation read failed; retry later). Absent entirely on `holders` entries, legacy rows, and payloads predating the field -- absence means the roster was never annotated, not a small sample.
	CategoryWinRateStatus *PickHolderCategoryWinRateStatus `json:"category_win_rate_status,omitempty"`

	// Grade All-time trader grade (S, A, B, C, D, F).
	Grade *string `json:"grade,omitempty"`
	Name  *string `json:"name,omitempty"`

	// ProfileSegment 0xinsider profile path segment this wallet links to: `@<username>` when that username resolves to this wallet alone, otherwise the lowercase wallet. Percent-encode the part after `@` and append to `https://0xinsider.com/profile/`. Stamped at serve time; absent on a body cached before the field shipped.
	ProfileSegment *string `json:"profile_segment,omitempty"`
	Shares         float32 `json:"shares"`
}

PickHolder defines model for PickHolder.

type PickHolderCategoryWinRateStatus

type PickHolderCategoryWinRateStatus string

PickHolderCategoryWinRateStatus Why `category_win_rate` is present or absent on a `display_holders` entry: `measured` (rate present), `not_enough_data` (the wallet is below the resolved-market floor of 5 in the category), or `unavailable` (the annotation read failed; retry later). Absent entirely on `holders` entries, legacy rows, and payloads predating the field -- absence means the roster was never annotated, not a small sample.

const (
	PickHolderCategoryWinRateStatusMeasured      PickHolderCategoryWinRateStatus = "measured"
	PickHolderCategoryWinRateStatusNotEnoughData PickHolderCategoryWinRateStatus = "not_enough_data"
	PickHolderCategoryWinRateStatusUnavailable   PickHolderCategoryWinRateStatus = "unavailable"
)

Defines values for PickHolderCategoryWinRateStatus.

func (PickHolderCategoryWinRateStatus) Valid

Valid indicates whether the value is a known member of the PickHolderCategoryWinRateStatus enum.

type PickOfTheDay

type PickOfTheDay struct {
	// BackedPrice Pre-game snapshot probability (0..1) for the backed side.
	BackedPrice *float32 `json:"backed_price,omitempty"`

	// BackedSharpUsd Raw backed-side sharp-money USD frozen at generation. This is the Sharp USD value, not the recency-weighted smart_usd which decays. Omitted on current public V1 rows when the B-inclusive value has no reconstructible S/A equivalent.
	BackedSharpUsd *float32 `json:"backed_sharp_usd,omitempty"`

	// Category Frozen canonical calibration/report bucket (e.g. "Basketball", "MMA", or "Soccer"). Existing semantics are unchanged; presentation consumers should prefer display_category when present.
	Category string `json:"category"`

	// CategoryEdgePct Deprecated (#7170): no longer populated for picks selected on/after the calibration-edge change; omitted (absent) for new picks (the field uses skip_serializing_if, so a null value is dropped from the JSON rather than serialized as null). Permanently frozen-legacy -- retained for historical picks, with no removal or replacement planned, so no v2 is implied. Historical picks may still carry a value. Legacy meaning: category win-rate edge as a fraction (the backed-side cohort's win rate in this category minus the non-market-maker category baseline, e.g. 0.09 = +9 points), paired with category_edge_sample.
	CategoryEdgePct *float32 `json:"category_edge_pct,omitempty"`

	// CategoryEdgeSample Deprecated (#7170): no longer populated for picks selected on/after the calibration-edge change; omitted (absent) for new picks (the field uses skip_serializing_if, so a null value is dropped from the JSON rather than serialized as null). Permanently frozen-legacy -- retained for historical picks, with no removal or replacement planned, so no v2 is implied. Historical picks may still carry a value. Legacy meaning: pooled count of resolved markets behind category_edge_pct (the headline's n).
	CategoryEdgeSample *int `json:"category_edge_sample,omitempty"`

	// ClvBasis Backend-owned CLV evidence basis. `frozen_displayed_entry` uses the persisted displayed entry. `historical_provider_entry` uses a known-CLOB point at or before publication. `historical_provider_price_match` requires the latest point in the prior hour to match. `historical_provider_nearby_price_match` requires a matching point within five minutes before publication. Source-null bases preserve unknown original provenance.
	ClvBasis *string `json:"clv_basis,omitempty"`

	// ClvDisplay Backend-formatted signed CLV percentage, present exactly when clv_pct is present.
	ClvDisplay *string `json:"clv_display,omitempty"`

	// ClvExplanation Backend-owned CLV formula text with the entry probability, close probability, and rounded result. Provider timestamps remain private.
	ClvExplanation *string `json:"clv_explanation,omitempty"`

	// ClvPct Closing-line value toward the backed side, computed as (close / entry - 1) * 100. The basis-specific provider p entry must match the stored display; historical_provider_price_match also requires source provenance to remain null and its latest entry to be within the one-hour window at or before publication. Every basis requires a later quality-checked p close from the same series in the bounded post-entry, pre-kickoff window. Omitted when not measured.
	ClvPct *float32 `json:"clv_pct,omitempty"`

	// ClvStatus Backend-owned CLV capture disposition. "pending" means no capture decision exists yet; terminal provider or quality statuses remain distinguishable. The raw close price and timestamp are never serialized.
	ClvStatus string `json:"clv_status"`

	// ConsensusEdgePct First-party/internal consensus edge = sharp_pct - market_pct, the conviction-vs-price gap (how much more of the current-policy sharp money sits on this side than the price implies). Omitted on current public V1 rows when the B-inclusive value has no reconstructible S/A equivalent. This is NOT an expected-value or guaranteed edge. Null when either input is null.
	ConsensusEdgePct *float32 `json:"consensus_edge_pct,omitempty"`

	// DirectionalConfidence First-party/internal team-directional commitment read at selection time: the fraction (0..1) of the backed side's current-policy graded sharp-money DOLLARS held by wallets read one-way rather than hedged: no opposite leg on this market worth at least 10% of the backed leg (Polymarket's own currentValue pair), and no opposing team across the game's markets where the wallet's synced legs are fresh. Current public V1 rows omit this B-inclusive read because its historical S/A equivalent is not reconstructed. A high value means the graded pile is really committed to this side; a low one means much of it is hedged or unreadable. Omitted when the read was not computed (a pick selected before the field existed, an ungroupable game, an empty graded pile, or a pile where no holder carried usable evidence) -- which is NOT the same as 0.0, a computed reading that classified holders and found none one-way.
	DirectionalConfidence *float32 `json:"directional_confidence,omitempty"`

	// Disclaimer Risk disclaimer shown with every pick.
	Disclaimer string `json:"disclaimer"`

	// DisplayCategory Frozen public presentation category. For supported Polymarket sports this is the exact verified provider event identity: an official league (e.g. "WNBA" or "UFC"), the esports title (e.g. "CS2", "LoL", "Dota 2" or "Valorant"), or a soccer competition whose official mark we vendor (e.g. "LaLiga", "Premier League", "Serie A" or "UEFA Champions League"). Only identities with a vendored official mark are split out; every other competition keeps its canonical bucket, so "Soccer" remains a live value; otherwise it equals category. An esports pick keeps the pooled "Esports" bucket in category, so a per-title label never implies a per-title measured cohort. Additive and optional for mixed-version client compatibility.
	DisplayCategory *string `json:"display_category,omitempty"`

	// DisplayHolders Full-only complete provider-confirmed S/A/B holder roster for the current Pick of the Day backing policy. Omitted for teaser, no-pick, and historical rows whose frozen holder proof predates this policy. Each entry may additionally carry `category_win_rate` / `category_win_rate_status`: the wallet's win rate in the pick's canonical `category`, stamped at serve time from the current category read model (the same annotation the sports sharp-money chips carry). The bounded `holders` compatibility projection never carries these fields.
	DisplayHolders *[]PickHolder `json:"display_holders,omitempty"`

	// EditorialNote Optional editorial note attached to the pick.
	EditorialNote *string `json:"editorial_note,omitempty"`

	// EntryAuthorization Optional full-only authorization for newly issued policy-7 picks; omitted for legacy or unissued picks and teasers. It remains historical after expiry.
	EntryAuthorization *PotdEntryAuthorization `json:"entry_authorization,omitempty"`

	// EntryPriceNote Full-only disclosure when backed_price was recovered from provider history within 30 seconds before publication. Render beside the price. Absent for ordinary publication captures and teasers; this is a historical reference, not an executed fill.
	EntryPriceNote *string `json:"entry_price_note,omitempty"`

	// EventLinkSlug Backend-resolved /event destination slug for this pick's source market; null is an authoritative no-link decision.
	EventLinkSlug *string `json:"event_link_slug,omitempty"`

	// EventSlug The canonical /event game-page slug (one neutral page per game), null when the game has no neutral event page.
	EventSlug *string `json:"event_slug,omitempty"`

	// GameStarted True once the backed game's kickoff has passed (kickoff <= now). When true the snapshotted pre-game price is no longer actionable. Absent for a legacy pick with no stored kickoff (treat as not-started).
	GameStarted *bool `json:"game_started,omitempty"`

	// HedgedHolderCount Graded backed-side holders read as HEDGED across the game's markets.
	HedgedHolderCount *int `json:"hedged_holder_count,omitempty"`

	// HolderCount Exact S/A smart-money proof count on the backed side. The current display_holders roster can be longer because it also carries B-grade smart-money holders.
	HolderCount *int `json:"holder_count,omitempty"`

	// Holders Bounded S/A compatibility projection of the frozen sharp-money holders on the backed side. Current full payloads expose the complete S/A/B roster in display_holders; historical rows can retain their earlier frozen shape.
	Holders *[]PickHolder `json:"holders,omitempty"`

	// IsLocked True only before the pick's stored release instant (a pre-release embargo flag); effectively always false on a served, already-published pick. To detect that the backed game has kicked off, use `game_started`.
	IsLocked bool `json:"is_locked"`

	// MarketPct Market-implied probability of the backed side as a fraction 0..1 (equals backed_price), re-exposed alongside sharp_pct for the WHY breakdown.
	MarketPct *float32 `json:"market_pct,omitempty"`

	// MarketUrl Canonical web market URL.
	MarketUrl *string `json:"market_url,omitempty"`

	// Matchup Human-readable matchup (e.g. "Portugal vs. Uzbekistan").
	Matchup string `json:"matchup"`

	// OddsDisplay Pre-formatted backed_price as cents-on-the-dollar odds, to ONE decimal: "62.0c" / "99.9c". Never rounded to a whole cent -- a 99.9c favorite is not a 100c certainty. Convenience only; backed_price is the source value. Omitted when backed_price is.
	OddsDisplay *string `json:"odds_display,omitempty"`

	// OneWayGradedUsd The one-way holders' share of the backed-side graded dollars (the confidence's numerator).
	OneWayGradedUsd *float32 `json:"one_way_graded_usd,omitempty"`

	// OneWayHolderCount Graded backed-side holders read as one-way-committed on this game.
	OneWayHolderCount *int `json:"one_way_holder_count,omitempty"`

	// Outcome Settlement outcome of the backed side; 'pending' until the market resolves.
	Outcome PickOfTheDayOutcome `json:"outcome"`

	// OutcomeDisplay Pre-formatted SETTLEMENT STATUS for display: "Win" / "Loss" / "Void" / "Pending" -- the outcome enum above as a label. Convenience only; outcome is the source value. NOTE: this is the win/loss STATUS, not the backed side. The backed side is pick_outcome_label ("Belgium (-2.5)") -- a different field answering a different question.
	OutcomeDisplay *string `json:"outcome_display,omitempty"`

	// PayoutDisplay Pre-formatted return_per_100 as USD with cents and thousands separators: "$161.29" / "$1,250.00". The GROSS return (the $100 stake included), so it carries no sign. Convenience only; return_per_100 is the source value. Omitted when return_per_100 is.
	PayoutDisplay *string `json:"payout_display,omitempty"`

	// PickCount Number of items in `picks`: the proof-readable picks. Picks held in `proof_pending_picks` are not counted.
	PickCount *int `json:"pick_count,omitempty"`

	// PickDate The pick's local publication date (YYYY-MM-DD).
	PickDate openapi_types.Date `json:"pick_date"`

	// PickOutcomeLabel The backed side phrased as a bet: a team for a moneyline (e.g. "Portugal"), the handicap line for a spread (e.g. "Belgium (-2.5)"), or "{team} to advance" for a knockout advancement market (e.g. "Spain to advance").
	PickOutcomeLabel string `json:"pick_outcome_label"`

	// PickRank Stable 1-based slot within the product day's ranked picks.
	PickRank *int `json:"pick_rank,omitempty"`

	// Picks The complete ranked picks for this product day, ordered by pick_rank. Thin days contain fewer items; the selector never fabricates rows.
	Picks *[]PickOfTheDay `json:"picks,omitempty"`

	// Platform Provider platform (e.g. "polymarket").
	Platform string `json:"platform"`

	// Position The backed side phrased as a bet (e.g. "Portugal to win").
	Position string `json:"position"`

	// ProfitDisplay Pre-formatted PROFIT on the $100 stake -- return_per_100 minus the 100 stake, i.e. the payout net of what you put in -- as a signed USD string: "+$61.29". Distinct from payout_display, which is gross. Omitted when return_per_100 is.
	ProfitDisplay *string `json:"profit_display,omitempty"`

	// ProofPendingPicks Published same-day picks whose holder proof is not readable yet, ordered by pick_rank. Additive and optional: present only while at least one such pick exists. While present, `picks` carries only the proof-readable picks and `pick_count` counts them. Schedule the next read from the earliest retry_at instead of polling. The route returns 503 read_model_warming only when no published pick has readable proof.
	ProofPendingPicks *[]ProofPendingPickSlot `json:"proof_pending_picks,omitempty"`

	// QualifyingExpert The qualifying category expert whose sport-specific record and real position earned this pick its top selection tier. The first-party/internal current policy admits S/A/B; public V1 exposes a compatible S/A expert and omits a current-policy B-grade expert: a candidate backed by one outranks every candidate without one. Present only on the full payload. Omitted when no wallet qualified on the backed side, on picks generated before the field existed, and on the first-party web teaser, which withholds all backed-side evidence. Frozen at SELECTION time — the wallet's position can move before the pick renders.
	QualifyingExpert *struct {
		// Address Wallet address of the qualifying expert.
		Address string `json:"address"`

		// CanonicalCategory The canonical sport bucket the win rate was measured over (for example Basketball). Can be BROADER than the pick's display_category, which names an exact league such as NBA — label the rate with this field, never with display_category.
		CanonicalCategory string `json:"canonical_category"`

		// EdgeLower95 95% lower bound of the wallet's mean calibration edge over the market price in canonical_category, in probability units (0.08 is 8 points). Positive by construction for a v2 expert; present on a v1 expert only when the wallet also holds a live v2 row.
		EdgeLower95 *float32 `json:"edge_lower_95,omitempty"`

		// EdgeMean Point estimate behind edge_lower_95.
		EdgeMean *float32 `json:"edge_mean,omitempty"`

		// Grade 0xinsider grade letter. The first-party/internal current Pick of the Day policy counts S, A, and B; public V1 exposes only the compatible S/A expert.
		Grade *string `json:"grade,omitempty"`

		// IndependentEventCount Independent canonical events behind the edge. At least 10 by construction for a v2 expert.
		IndependentEventCount *int `json:"independent_event_count,omitempty"`

		// Lane Present from expert policy 6. Current expert policy 10 retains the longshot requirement of live v2 only, with 30 events and a positive lower bound, net backed value at least $10,000 and opposite value below $1. Historical policy 6: a specialist requires net backed value at least $10,000, opposite value below $1, and either live v2 with 30 events and positive lower bound or v1 rate at least 0.65 over 20 resolved markets. Tennis requires v2.
		Lane *PickOfTheDayQualifyingExpertLane `json:"lane,omitempty"`

		// LaneProbability Answered, spread-gated, index-scoped backed probability frozen only on a specialist exception.
		LaneProbability *float32 `json:"lane_probability,omitempty"`

		// LaneProbabilitySource Canonical provider probability pair branch; absent on standard experts.
		LaneProbabilitySource *PickOfTheDayQualifyingExpertLaneProbabilitySource `json:"lane_probability_source,omitempty"`

		// NResolved Resolved markets in canonical_category behind win_rate. At least 10 by construction for a source=v1 expert; null with win_rate.
		NResolved *int `json:"n_resolved,omitempty"`

		// Name Provider display name, or null for an unnamed wallet.
		Name *string `json:"name,omitempty"`

		// OppositePositionUsd The same wallet's currentValue on the OTHER outcome of this market, in USD, as of selection. Present from gate policy v5, when the floor moved to net exposure; a wallet long both sides does not qualify. Absent on picks frozen before v5, which never read the leg. 0 is a measured one-way position, not an absence.
		OppositePositionUsd *float32 `json:"opposite_position_usd,omitempty"`

		// PositionUsd Polymarket's own currentValue for this wallet on the backed outcome, in USD, as of selection. At least 1000 by construction through gate policy v7; the standard floor is 500 from v8. From gate policy v5 the floor is read on the net: position_usd minus opposite_position_usd is at least that floor, and the pick re-verifies that net against the live holder snapshot when it is released.
		PositionUsd float32 `json:"position_usd"`

		// Source Current expert policy 10 does not require a category-skill v2 specialist in any sport; in every sport a specialist raises the candidate's rank tier rather than gating it. Standard specialists need at least 10 independent events, positive edge_lower_95 and $500 net backing. Fresh healthy records below the shared model's 30-event live floor can qualify; stale, unknown and degraded records cannot. Historical records preserve which definition qualified the wallet: v1, the profitability rate (win_rate over n_resolved), or v2, the forward-only category-skill calibration edge (edge_lower_95 over independent_event_count). Absent on picks frozen before the v2 definition existed; read absence as v1. A Tennis pick frozen under gate policy v4 or later carries v2 only: a v1 rate stopped qualifying a tennis expert at v4. A Tennis pick frozen under an earlier policy can still carry v1 with a win rate.
		Source *PickOfTheDayQualifyingExpertSource `json:"source,omitempty"`

		// StatsComputedAt When the skill read model behind the evidence was last rebuilt: trader_category_stats.computed_at for a source=v1 expert, category_skill_v2_current.as_of for a source=v2 expert.
		StatsComputedAt time.Time `json:"stats_computed_at"`

		// WinRate Share of this wallet's resolved markets in canonical_category whose realized P&L came out positive, as a 0..1 fraction. Above 0.60 by construction for a source=v1 expert; null for an expert who qualified on the category-skill v2 definition only. Deliberately NOT phrased as "closed profitable": the metric counts realized P&L above zero, so a resolved winner the wallet never redeemed sits at zero and counts against it.
		WinRate *float32 `json:"win_rate,omitempty"`
	} `json:"qualifying_expert,omitempty"`

	// ReleaseAt The pick's stored release instant. Normally the current provider kickoff minus one hour; an operator may override it. The actual publish instant can trail it because of worker or claim delay.
	ReleaseAt time.Time `json:"release_at"`

	// ReturnPer100 Gross return on a $100 stake at the snapshotted price (100 / backed_price).
	ReturnPer100 *float32 `json:"return_per_100,omitempty"`

	// ScheduledPicks Same-day picks selected but not yet released, ordered by pick_rank. Additive and optional: present only while at least one unreleased slot exists. Each slot exposes only its rank and schedule -- no market identity before release. Schedule the next read from the earliest release_at instead of polling.
	ScheduledPicks *[]ScheduledPickSlot `json:"scheduled_picks,omitempty"`

	// SelectionLane Frozen admission classification, full payload only. The specialist lane exempts two probability rejects and adds no rank bonus. Historical rows remain standard.
	SelectionLane *PickOfTheDaySelectionLane `json:"selection_lane,omitempty"`

	// SharpPct First-party/internal backed-side sharp-money dollar consensus as a fraction 0..1: the share of current-policy sharp dollars on the backed side. Omitted on current public V1 rows when the B-inclusive value has no reconstructible S/A equivalent. A conviction signal, NOT a probability or expected-value claim. Frozen at generation.
	SharpPct *float32 `json:"sharp_pct,omitempty"`

	// SideSummary One-line summary of which side sharp money is backing. Required on every item in `picks`: a current-day published pick whose required holder proof is not safely readable is listed in `proof_pending_picks` instead of being served with a partial success shape or a synthetic zero, and the route returns 503 read_model_warming only when no published pick has readable proof.
	SideSummary string `json:"side_summary"`

	// SmartUsd Recency-weighted graded-flow magnitude in USD; omitted when <= 0.
	SmartUsd *float32 `json:"smart_usd,omitempty"`

	// SmartWalletCount Public V1 compatibility count of S/A smart-money wallets on the backed side. The first-party/internal current policy counts S/A/B; historical rows retain their frozen policy's count. Required on every item in `picks`: a current-day published pick whose required holder proof is not safely readable is listed in `proof_pending_picks` instead of being served with a partial success shape or a synthetic zero, and the route returns 503 read_model_warming only when no published pick has readable proof.
	SmartWalletCount int `json:"smart_wallet_count"`

	// SportsContext Provider-first sports context for the pick's market (team logos, league branding, live score). Full-state only; omitted when the pick is not a team-sports market.
	SportsContext *PickSportsContext `json:"sports_context,omitempty"`

	// State Always 'full' for an authenticated Pro key.
	State PickOfTheDayState `json:"state"`

	// Thesis Required truthful thesis. With at least one profitable-wallet holder: Profitable wallets hold {pick_outcome_label}[, led by a grade-{top_grade} trader]. Without holder backing: 0xInsider's Pick of the Day is {pick_outcome_label}. Wallet counts are not appended.
	Thesis string `json:"thesis"`

	// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the backed outcome; null when unavailable (e.g. unsynced markets).
	TokenId *string `json:"token_id,omitempty"`

	// TopGrade Best public V1-compatible S/A smart-money grade on the backed side. The first-party/internal current policy can select B, but a current B-only grade is omitted by the stable V1 adapter. Historical rows retain their frozen policy's grade. A current-day published pick with pending legacy proof, unknown-future proof, or structurally invalid current-policy proof returns 503 before this success schema is served. Resolved legacy proof remains readable on both current-day and archive/history responses.
	TopGrade *string `json:"top_grade,omitempty"`

	// TotalGradedUsd Backed-side graded dollars the confidence is measured against (its denominator).
	TotalGradedUsd *float32 `json:"total_graded_usd,omitempty"`

	// Traders Public V1 S/A compatibility count on the backed side (equals the adapted smart_wallet_count). The first-party/internal current policy counts S/A/B. Historical rows retain their frozen policy's count.
	Traders *int `json:"traders,omitempty"`

	// Trust Field-level trust metadata for the full Pick of the Day payload. Present on the full shape only (omitted on the teaser and the no-pick state, because whether a specialist backs the pick is itself backed-side evidence). Unlike TraderTrust it is not gated behind expand=trust: it carries one member on an endpoint that returns a single object per day.
	Trust *PickTrust `json:"trust,omitempty"`

	// UnitScore Net return for the pick in the existing $100 stake units. Omitted when the outcome is not valued.
	UnitScore *float32 `json:"unit_score,omitempty"`

	// UnitScoreDisplay Backend-formatted signed unit score, present exactly when unit_score is present.
	UnitScoreDisplay *string `json:"unit_score_display,omitempty"`
}

PickOfTheDay defines model for PickOfTheDay.

type PickOfTheDayArchive

type PickOfTheDayArchive struct {
	// Days One entry per product day that has a published pick, newest first, in the same order as picks. Each carries that day's net units, accumulated in the same backend pass and behind the same visibility gate as hit_rate.unit_score, so both cover the same population of picks. Re-adding the day totals reproduces hit_rate.unit_score to display precision rather than bit-for-bit, since that re-associates the floating-point sum.
	Days    []PickOfTheDayArchiveDay `json:"days"`
	HitRate PickOfTheDayHitRate      `json:"hit_rate"`

	// Picks Every published Pick of the Day, newest first by pick_date and then pick_rank within each product day.
	Picks []PickOfTheDayArchiveEntry `json:"picks"`
}

PickOfTheDayArchive defines model for PickOfTheDayArchive.

type PickOfTheDayArchiveDay

type PickOfTheDayArchiveDay struct {
	// Date The product day (YYYY-MM-DD).
	Date openapi_types.Date `json:"date"`

	// Losses Picks on the day that resolved as a loss, counted by the same pass as hit_rate.losses.
	Losses int `json:"losses"`

	// Pending Picks on the day not yet resolved. A day whose picks are all pending is a real 0-0 day with pending > 0, not a missing record.
	Pending int `json:"pending"`

	// Picks Published picks on the day: wins + losses + void + pending.
	Picks int `json:"picks"`

	// Sweep win when every decided pick on the day won, loss when every one lost, over at least three decided (win or loss) picks with nothing pending. Omitted for every other day. A void is not a result: it neither lifts a day over the floor nor spoils a sweep.
	Sweep *PickOfTheDayArchiveDaySweep `json:"sweep,omitempty"`

	// UnitScore Net units over the day's visible, valued, decided (win/loss) picks: the same population staked_usd runs over. Omitted when the day has not scored -- every pick still pending, every pick void, or a price-gated current row -- which is not the same as a real 0.0 day.
	UnitScore *float64 `json:"unit_score,omitempty"`

	// UnitScoreDisplay unit_score pre-formatted as signed units to two decimals (for example +1.24u or -2.00u), by the same formatter the per-pick unit_score_display and hit_rate.unit_score_display use. Present exactly when unit_score is; unit_score is the source value.
	UnitScoreDisplay *string `json:"unit_score_display,omitempty"`

	// Void Picks on the day that resolved void (stake refunded).
	Void int `json:"void"`

	// Wins Picks on the day that resolved as a win, counted by the same pass as hit_rate.wins, so the day entries sum to the headline record.
	Wins int `json:"wins"`
}

PickOfTheDayArchiveDay defines model for PickOfTheDayArchiveDay.

type PickOfTheDayArchiveDaySweep

type PickOfTheDayArchiveDaySweep string

PickOfTheDayArchiveDaySweep win when every decided pick on the day won, loss when every one lost, over at least three decided (win or loss) picks with nothing pending. Omitted for every other day. A void is not a result: it neither lifts a day over the floor nor spoils a sweep.

const (
	PickOfTheDayArchiveDaySweepLoss PickOfTheDayArchiveDaySweep = "loss"
	PickOfTheDayArchiveDaySweepWin  PickOfTheDayArchiveDaySweep = "win"
)

Defines values for PickOfTheDayArchiveDaySweep.

func (PickOfTheDayArchiveDaySweep) Valid

Valid indicates whether the value is a known member of the PickOfTheDayArchiveDaySweep enum.

type PickOfTheDayArchiveEntry

type PickOfTheDayArchiveEntry struct {
	// Category Frozen canonical calibration/report bucket (e.g. "Basketball", "MMA", or "Soccer"). Existing semantics are unchanged; presentation consumers should prefer display_category when present.
	Category string `json:"category"`

	// ClvApplicability Whether CLV applies. A visible resolved pick published after kickoff is not_applicable.
	ClvApplicability *PickOfTheDayArchiveEntryClvApplicability `json:"clv_applicability,omitempty"`

	// ClvBasis Backend-owned CLV evidence basis. Source-null price-match bases preserve unknown original provenance. `historical_provider_nearby_price_match` requires a matching Polymarket point within five minutes before publication.
	ClvBasis *string `json:"clv_basis,omitempty"`

	// ClvDisplay Backend-formatted signed CLV percentage, present exactly when clv_pct is present.
	ClvDisplay *string `json:"clv_display,omitempty"`

	// ClvExplanation Backend-owned CLV formula text or the reason that CLV does not apply or is unavailable.
	ClvExplanation *string `json:"clv_explanation,omitempty"`

	// ClvPct Closing-line value toward the backed side, computed as (close / entry - 1) * 100. Omitted when the row is gated, ineligible, or not measured.
	ClvPct *float32 `json:"clv_pct,omitempty"`

	// ClvStatus Exact backend CLV capture disposition for this visible row. Pending and terminal provider or quality statuses are distinguishable; raw close evidence is never serialized.
	ClvStatus string `json:"clv_status"`

	// DisplayCategory Frozen public presentation category. For supported Polymarket sports this is the exact verified provider event identity: an official league (e.g. "WNBA" or "UFC"), the esports title (e.g. "CS2", "LoL", "Dota 2" or "Valorant"), or a soccer competition whose official mark we vendor (e.g. "LaLiga", "Premier League", "Serie A" or "UEFA Champions League"). Only identities with a vendored official mark are split out; every other competition keeps its canonical bucket, so "Soccer" remains a live value; otherwise it equals category. An esports pick keeps the pooled "Esports" bucket in category, so a per-title label never implies a per-title measured cohort. Additive and optional for mixed-version client compatibility.
	DisplayCategory *string `json:"display_category,omitempty"`

	// ImageUrl Provider (Polymarket Gamma) market thumbnail URL (markets.image); omitted (not null) when the market has no image. Public regardless of the backed-side gate, so present for pending rows too.
	ImageUrl *string `json:"image_url,omitempty"`

	// Matchup Human-readable matchup (e.g. "Portugal vs. Uzbekistan").
	Matchup string `json:"matchup"`

	// Outcome Settlement outcome of the backed side; 'pending' until the market resolves.
	Outcome PickOfTheDayArchiveEntryOutcome `json:"outcome"`

	// OutcomeDisplay Pre-formatted settlement status for display: "Win" / "Loss" / "Void" / "Pending" -- the outcome enum above as a label, from the same formatter the pick payload's outcome_display uses. Convenience only; outcome is the source value.
	OutcomeDisplay *string `json:"outcome_display,omitempty"`

	// PayoutDisplay Pre-formatted return_per_100 as USD with cents: "$200.00". Present exactly when return_per_100 is -- it is formatted from that already-gated value -- so it is omitted for a still-pending pick, an unpriced win, and any pick whose backed side is withheld. Convenience only; return_per_100 is the source value.
	PayoutDisplay *string `json:"payout_display,omitempty"`

	// PickDate The pick's local publication date (YYYY-MM-DD).
	PickDate openapi_types.Date `json:"pick_date"`

	// PickOutcomeLabel The backed side's outcome label. Omitted for a still-pending pick when the request is not from an authenticated Pro key.
	PickOutcomeLabel *string `json:"pick_outcome_label,omitempty"`

	// PickRank Stable 1-based slot within the product day's ranked picks.
	PickRank *int `json:"pick_rank,omitempty"`

	// ReturnPer100 Gross return on a $100 stake on this resolved pick: a win returns 100 / backed_price, a loss returns 0, a void refunds 100. A loss always returns 0 (the whole stake is lost regardless of price). Omitted (not null) only for a still-pending pick or a resolved WIN with no frozen price (a win's payout needs the price); mirrors the backend skip-when-absent behavior and the route-client optional (non-nullable) schema.
	ReturnPer100 *float32 `json:"return_per_100,omitempty"`

	// TopGrade Best public V1-compatible S/A smart-money grade on the backed side; a current B-only grade is omitted by the stable V1 adapter, while historical rows retain their frozen policy's grade. null when no smart-money wallet backs the pick, when a pending legacy proof has not yet upgraded, or when the stored holder policy is unknown-future or structurally invalid. Resolved legacy history remains supported.
	TopGrade *string `json:"top_grade,omitempty"`

	// UnitScore Net return for this pick in stake units, where one unit is the existing $100 stake. Omitted when the backed side is withheld or the pick is not valued.
	UnitScore *float32 `json:"unit_score,omitempty"`

	// UnitScoreDisplay Backend-formatted signed unit score, present exactly when unit_score is present.
	UnitScoreDisplay *string `json:"unit_score_display,omitempty"`
}

PickOfTheDayArchiveEntry defines model for PickOfTheDayArchiveEntry.

type PickOfTheDayArchiveEntryClvApplicability

type PickOfTheDayArchiveEntryClvApplicability string

PickOfTheDayArchiveEntryClvApplicability Whether CLV applies. A visible resolved pick published after kickoff is not_applicable.

const (
	PickOfTheDayArchiveEntryClvApplicabilityApplicable    PickOfTheDayArchiveEntryClvApplicability = "applicable"
	PickOfTheDayArchiveEntryClvApplicabilityNotApplicable PickOfTheDayArchiveEntryClvApplicability = "not_applicable"
)

Defines values for PickOfTheDayArchiveEntryClvApplicability.

func (PickOfTheDayArchiveEntryClvApplicability) Valid

Valid indicates whether the value is a known member of the PickOfTheDayArchiveEntryClvApplicability enum.

type PickOfTheDayArchiveEntryOutcome

type PickOfTheDayArchiveEntryOutcome string

PickOfTheDayArchiveEntryOutcome Settlement outcome of the backed side; 'pending' until the market resolves.

const (
	PickOfTheDayArchiveEntryOutcomeLoss    PickOfTheDayArchiveEntryOutcome = "loss"
	PickOfTheDayArchiveEntryOutcomePending PickOfTheDayArchiveEntryOutcome = "pending"
	PickOfTheDayArchiveEntryOutcomeVoid    PickOfTheDayArchiveEntryOutcome = "void"
	PickOfTheDayArchiveEntryOutcomeWin     PickOfTheDayArchiveEntryOutcome = "win"
)

Defines values for PickOfTheDayArchiveEntryOutcome.

func (PickOfTheDayArchiveEntryOutcome) Valid

Valid indicates whether the value is a known member of the PickOfTheDayArchiveEntryOutcome enum.

type PickOfTheDayHitRate

type PickOfTheDayHitRate struct {
	// ClvApplicable Visible resolved rows published before kickoff. This is the CLV coverage denominator.
	ClvApplicable int `json:"clv_applicable"`

	// ClvAvgDisplay Backend-formatted signed average CLV percentage, present when clv_avg_pct is present.
	ClvAvgDisplay *string `json:"clv_avg_display,omitempty"`

	// ClvAvgPct Arithmetic average measured CLV percentage. Suppressed until at least five measured rows exist.
	ClvAvgPct *float32 `json:"clv_avg_pct,omitempty"`

	// ClvBeatsClose Measured public rows where close is strictly greater than entry.
	ClvBeatsClose int `json:"clv_beats_close"`

	// ClvCoverageDisplay Backend-formatted measured/clv_applicable coverage percentage.
	ClvCoverageDisplay *string `json:"clv_coverage_display,omitempty"`

	// ClvCoverageExplanation Backend-owned coverage count text, including the excluded post-kickoff count.
	ClvCoverageExplanation *string `json:"clv_coverage_explanation,omitempty"`

	// ClvCoveragePct Measured divided by clv_applicable as a percentage. Omitted when clv_applicable is zero.
	ClvCoveragePct *float32 `json:"clv_coverage_pct,omitempty"`

	// ClvEligible Visible resolved archive rows with valid basis-specific CLV entry evidence. Known-source bases require CLOB provenance; historical_provider_price_match instead requires source provenance to remain null and the latest provider p entry in the one-hour window at or before publication to match the stored display.
	ClvEligible int `json:"clv_eligible"`

	// ClvMeasured Eligible resolved public rows with a measured Polymarket CLOB close.
	ClvMeasured int `json:"clv_measured"`

	// ClvNotApplicable Visible resolved rows published after kickoff. These rows remain public but do not enter coverage.
	ClvNotApplicable int `json:"clv_not_applicable"`

	// ClvPending Visible resolved archive rows with no CLV capture disposition yet.
	ClvPending int `json:"clv_pending"`

	// ClvState Aggregate CLV state. Counts remain available for mixed measured/pending/unavailable populations.
	ClvState PickOfTheDayHitRateClvState `json:"clv_state"`

	// ClvTies Measured public rows where close exactly equals entry.
	ClvTies int `json:"clv_ties"`

	// ClvTotal Every visible resolved archive row, including post-kickoff picks. A price-gated current row is excluded until its backed side becomes visible.
	ClvTotal int `json:"clv_total"`

	// ClvUnavailable Visible resolved archive rows with a terminal non-measured CLV disposition.
	ClvUnavailable int `json:"clv_unavailable"`

	// Decided Number of decided picks (wins + losses); excludes void and pending.
	Decided int `json:"decided"`

	// Losses Number of decided picks that lost.
	Losses int `json:"losses"`

	// NetProfitDisplay Pre-formatted net profit for display, e.g. "+$100" / "-$40". Whole dollars, signed, round-then-signed so a rounds-to-zero record reads "+$0" (never "-$0"). Convenience only; net_profit_usd is the source value.
	NetProfitDisplay string `json:"net_profit_display"`

	// NetProfitUsd Cumulative profit (USD) of a $100/pick strategy over visible valued decided picks: a priced win pays 100/backed_price - 100, every visible loss pays -100 independent of price, and a void pays 0. An unpriced visible win and a current non-Insider row whose price is gated remain in wins/losses but are excluded from price-derived totals.
	NetProfitUsd float32 `json:"net_profit_usd"`

	// Pct Rolling hit rate as a percentage (wins / decided * 100, to 1 decimal); 0 when none are decided.
	Pct float32 `json:"pct"`

	// Pending Number of picks still pending resolution (excluded from the hit rate).
	Pending int `json:"pending"`

	// RoiDisplay Pre-formatted ROI for display, e.g. "+8.3%" / "-20.0%". One decimal, signed, round-then-signed so a rounds-to-zero record reads "+0.0%" (never "-0.0%"). Convenience only; roi_pct is the source value.
	RoiDisplay string `json:"roi_display"`

	// RoiPct Return on the staked amount as a percentage (net_profit_usd / staked_usd * 100, to 1 decimal); 0 when nothing is staked.
	RoiPct float32 `json:"roi_pct"`

	// Series Cumulative track-record series, one point per decided (win/loss) pick in ascending pick_date order (void and pending add no point). A non-valued decided row carries cumulative profit forward while advancing hit rate. The last point's net_profit_usd and hit_rate_pct equal the headline net_profit_usd and pct by construction. Empty when nothing is decided.
	Series *[]struct {
		// Date The decided pick's publish date (YYYY-MM-DD).
		Date openapi_types.Date `json:"date"`

		// HitRatePct Running rolling hit rate (wins / decided * 100, to 1 decimal) through this pick.
		HitRatePct float32 `json:"hit_rate_pct"`

		// NetProfitUsd Running cumulative $100/pick profit (USD) through this pick; valued losses and priced wins are booked, while a non-valued decided row carries profit forward unchanged.
		NetProfitUsd float32 `json:"net_profit_usd"`
	} `json:"series,omitempty"`

	// StakedUsd Total staked (USD) = 100 * count of visible valued decided picks: every visible loss plus every priced win. Void, unpriced wins, and current non-Insider rows whose price is gated are excluded.
	StakedUsd float32 `json:"staked_usd"`

	// UnitScore Cumulative net return in stake units over the same valued win/loss population as net_profit_usd.
	UnitScore *float32 `json:"unit_score,omitempty"`

	// UnitScoreDisplay Backend-formatted signed cumulative unit score, for example "+1.25u". Omitted when no valued settled pick contributes to the aggregate.
	UnitScoreDisplay *string `json:"unit_score_display,omitempty"`

	// Void Number of picks that resolved void (excluded from the hit rate).
	Void int `json:"void"`

	// WinRateDisplay Pre-formatted win rate for display, e.g. "92.3%". One decimal, unsigned. Convenience only; pct is the source value.
	WinRateDisplay string `json:"win_rate_display"`

	// Wins Number of decided picks that won.
	Wins int `json:"wins"`
}

PickOfTheDayHitRate defines model for PickOfTheDayHitRate.

type PickOfTheDayHitRateClvState

type PickOfTheDayHitRateClvState string

PickOfTheDayHitRateClvState Aggregate CLV state. Counts remain available for mixed measured/pending/unavailable populations.

const (
	PickOfTheDayHitRateClvStateMeasured      PickOfTheDayHitRateClvState = "measured"
	PickOfTheDayHitRateClvStateNone          PickOfTheDayHitRateClvState = "none"
	PickOfTheDayHitRateClvStateNotApplicable PickOfTheDayHitRateClvState = "not_applicable"
	PickOfTheDayHitRateClvStatePending       PickOfTheDayHitRateClvState = "pending"
	PickOfTheDayHitRateClvStateUnavailable   PickOfTheDayHitRateClvState = "unavailable"
)

Defines values for PickOfTheDayHitRateClvState.

func (PickOfTheDayHitRateClvState) Valid

Valid indicates whether the value is a known member of the PickOfTheDayHitRateClvState enum.

type PickOfTheDayOutcome

type PickOfTheDayOutcome string

PickOfTheDayOutcome Settlement outcome of the backed side; 'pending' until the market resolves.

const (
	PickOfTheDayOutcomeLoss    PickOfTheDayOutcome = "loss"
	PickOfTheDayOutcomePending PickOfTheDayOutcome = "pending"
	PickOfTheDayOutcomeVoid    PickOfTheDayOutcome = "void"
	PickOfTheDayOutcomeWin     PickOfTheDayOutcome = "win"
)

Defines values for PickOfTheDayOutcome.

func (PickOfTheDayOutcome) Valid

func (e PickOfTheDayOutcome) Valid() bool

Valid indicates whether the value is a known member of the PickOfTheDayOutcome enum.

type PickOfTheDayQualifyingExpertLane

type PickOfTheDayQualifyingExpertLane string

PickOfTheDayQualifyingExpertLane Present from expert policy 6. Current expert policy 10 retains the longshot requirement of live v2 only, with 30 events and a positive lower bound, net backed value at least $10,000 and opposite value below $1. Historical policy 6: a specialist requires net backed value at least $10,000, opposite value below $1, and either live v2 with 30 events and positive lower bound or v1 rate at least 0.65 over 20 resolved markets. Tennis requires v2.

const (
	PickOfTheDayQualifyingExpertLaneLongshotSpecialist PickOfTheDayQualifyingExpertLane = "longshot_specialist"
	PickOfTheDayQualifyingExpertLaneStandard           PickOfTheDayQualifyingExpertLane = "standard"
)

Defines values for PickOfTheDayQualifyingExpertLane.

func (PickOfTheDayQualifyingExpertLane) Valid

Valid indicates whether the value is a known member of the PickOfTheDayQualifyingExpertLane enum.

type PickOfTheDayQualifyingExpertLaneProbabilitySource

type PickOfTheDayQualifyingExpertLaneProbabilitySource string

PickOfTheDayQualifyingExpertLaneProbabilitySource Canonical provider probability pair branch; absent on standard experts.

Defines values for PickOfTheDayQualifyingExpertLaneProbabilitySource.

func (PickOfTheDayQualifyingExpertLaneProbabilitySource) Valid

Valid indicates whether the value is a known member of the PickOfTheDayQualifyingExpertLaneProbabilitySource enum.

type PickOfTheDayQualifyingExpertSource

type PickOfTheDayQualifyingExpertSource string

PickOfTheDayQualifyingExpertSource Current expert policy 10 does not require a category-skill v2 specialist in any sport; in every sport a specialist raises the candidate's rank tier rather than gating it. Standard specialists need at least 10 independent events, positive edge_lower_95 and $500 net backing. Fresh healthy records below the shared model's 30-event live floor can qualify; stale, unknown and degraded records cannot. Historical records preserve which definition qualified the wallet: v1, the profitability rate (win_rate over n_resolved), or v2, the forward-only category-skill calibration edge (edge_lower_95 over independent_event_count). Absent on picks frozen before the v2 definition existed; read absence as v1. A Tennis pick frozen under gate policy v4 or later carries v2 only: a v1 rate stopped qualifying a tennis expert at v4. A Tennis pick frozen under an earlier policy can still carry v1 with a win rate.

Defines values for PickOfTheDayQualifyingExpertSource.

func (PickOfTheDayQualifyingExpertSource) Valid

Valid indicates whether the value is a known member of the PickOfTheDayQualifyingExpertSource enum.

type PickOfTheDaySelectionLane

type PickOfTheDaySelectionLane string

PickOfTheDaySelectionLane Frozen admission classification, full payload only. The specialist lane exempts two probability rejects and adds no rank bonus. Historical rows remain standard.

const (
	PickOfTheDaySelectionLaneLongshotSpecialist PickOfTheDaySelectionLane = "longshot_specialist"
	PickOfTheDaySelectionLaneStandard           PickOfTheDaySelectionLane = "standard"
)

Defines values for PickOfTheDaySelectionLane.

func (PickOfTheDaySelectionLane) Valid

func (e PickOfTheDaySelectionLane) Valid() bool

Valid indicates whether the value is a known member of the PickOfTheDaySelectionLane enum.

type PickOfTheDayState

type PickOfTheDayState string

PickOfTheDayState Always 'full' for an authenticated Pro key.

const (
	Full PickOfTheDayState = "full"
)

Defines values for PickOfTheDayState.

func (PickOfTheDayState) Valid

func (e PickOfTheDayState) Valid() bool

Valid indicates whether the value is a known member of the PickOfTheDayState enum.

type PickSportsContext

type PickSportsContext struct {
	// CompetitionLabel Provider-owned event taxonomy from Gamma eventMetadata, joined in league · serie · tournament order with blanks and case-insensitive duplicates removed. Separate from league_name; omitted when the provider does not supply the metadata.
	CompetitionLabel *string `json:"competition_label,omitempty"`

	// EventMatchup Always present. True when the two teams are the parent-event match identity for a teamless binary leg (e.g. a draw, totals, or prop market), not the market's own outcomes.
	EventMatchup bool `json:"event_matchup"`

	// EventSubjectTeam Present only alongside event_matchup: the event team the binary leg is about (provider group_item_title matched to a matchup team, e.g. Belgium for "Will Belgium win?"), i.e. the winner on a Yes resolution. Omitted for teamless legs (draw, totals, prop).
	EventSubjectTeam *PickSportsTeam `json:"event_subject_team,omitempty"`

	// GameId Provider game identifier (Polymarket Gamma gameId); omitted when null.
	GameId *int `json:"game_id,omitempty"`

	LeagueLogo *string `json:"league_logo,omitempty"`

	// LeagueName League or competition display name (e.g. "Premier League").
	LeagueName *string `json:"league_name,omitempty"`

	// MatchupTitle The two teams as a single whole-game label, joined "<home> – <away>" (en-dash) in provider display order (e.g. "Portugal – Uzbekistan"). Composed server-side from the provider team names (no title/slug parsing). Present when both teams resolve a name; omitted for single-subject, teamless, or non-two-team contexts.
	MatchupTitle *string `json:"matchup_title,omitempty"`

	// NoTeam The team mapped to the market's NO outcome, or the parent-event away/second team when event_matchup is true.
	NoTeam *PickSportsTeam `json:"no_team,omitempty"`

	// YesTeam The team mapped to the market's YES outcome, or the parent-event home/first team when event_matchup is true.
	YesTeam *PickSportsTeam `json:"yes_team,omitempty"`
}

PickSportsContext Provider-first sports context for a Pick of the Day market: team crests, league branding, and live score. Team logos and league logo are provider-owned (Polymarket /teams crests for clubs, country flags for national teams and tennis players); no local derivation.

type PickSportsTeam

type PickSportsTeam struct {
	// Color Team brand color as a hex string (provider-owned).
	Color *string `json:"color,omitempty"`

	// Format Shape the provider score string was parsed into. `two_side` is one aggregate per side (basketball `105-98`), `multi_set` is per-set columns (tennis `6-7(5-7), 6-0, 1-0`), `esports_series` is a maps/sets/format triplet (`000-000|2-0|Bo3`). Omitted when the score could not be parsed.
	Format *ScoreFormat `json:"format,omitempty"`

	// FullName Full team or competitor name (e.g. "Portugal national football team").
	FullName *string `json:"full_name,omitempty"`

	// Headshot Tennis player headshot URL, served same-origin. Present only for a tennis competitor the headshot resolver matched; absent for team sports and for unmatched players, where `logo` stays the fallback.
	Headshot *string `json:"headshot,omitempty"`

	// Label Team display label as it appears on the market outcome (e.g. "Portugal").
	Label *string `json:"label,omitempty"`

	Logo *string `json:"logo,omitempty"`

	// ProviderId Provider team identifier (Polymarket /teams id).
	ProviderId *int `json:"provider_id,omitempty"`

	// Record Win-loss record as a display string (e.g. "12-4").
	Record *string `json:"record,omitempty"`

	// Score Live or final score as a display string when the game is in play or settled.
	Score *string `json:"score,omitempty"`

	// Sets Per-set score cells for this side, in set order. Backend-owned: render these rather than parsing `score`. Omitted entirely when the provider score is not a structured multi-set match or could not be parsed, so an absent array and an empty one carry the same meaning.
	Sets *[]ScoreCell `json:"sets,omitempty"`

	// SetsWon Completed sets won by this side. Present only when both sides expose the same set columns, so a partially parsed scoreline reports no tally rather than a misleading one.
	SetsWon *int `json:"sets_won,omitempty"`

	// ShortLabel Abbreviated team label (e.g. "POR").
	ShortLabel *string `json:"short_label,omitempty"`

	// Tour Tennis tour this competitor belongs to. Present for every tennis entry whether or not `headshot` resolved, so a consumer can tell a tennis player with no photo from a non-tennis team. Absent for every other sport. Only `atp` and `wta` name a gender; the ITF World Tennis Tour runs men's and women's events and the provider does not say which, so `itf` means tennis with gender unknown.
	Tour *PickSportsTeamTour `json:"tour,omitempty"`
}

PickSportsTeam A single sports team or competitor in a Pick of the Day market's sports context. Identity and score fields are provider-owned and nullable. The structured score fields (`sets`, `format`, `sets_won`) and the tennis fields (`headshot`, `tour`) are backend-owned and are OMITTED rather than null when they do not apply, so a consumer must treat an absent key and a null the same way.

type PickSportsTeamTour

type PickSportsTeamTour string

PickSportsTeamTour Tennis tour this competitor belongs to. Present for every tennis entry whether or not `headshot` resolved, so a consumer can tell a tennis player with no photo from a non-tennis team. Absent for every other sport. Only `atp` and `wta` name a gender; the ITF World Tennis Tour runs men's and women's events and the provider does not say which, so `itf` means tennis with gender unknown.

const (
	Atp PickSportsTeamTour = "atp"
	Itf PickSportsTeamTour = "itf"
	Wta PickSportsTeamTour = "wta"
)

Defines values for PickSportsTeamTour.

func (PickSportsTeamTour) Valid

func (e PickSportsTeamTour) Valid() bool

Valid indicates whether the value is a known member of the PickSportsTeamTour enum.

type PickTrust

type PickTrust struct {
	// QualifyingExpert Provenance of the frozen qualifying category expert. source.kind=database with reconciliation.status=db_mirror means the evidence deserialized, still satisfies every frozen selection gate, and is being served. On that arm freshness.status is always not_live and never fresh, because this evidence is frozen at selection and never refreshed, so on an archived pick the as_of (the expert's own stats_computed_at) can be days or months old by design. source.kind=computed with reconciliation.status=not_applicable means the selector evaluated the backed side and nobody qualified -- a real negative. source.kind=computed with freshness.status=unknown and completeness.status=not_computed means the selector never evaluated this field, as on a pre-feature pick or manual takeover. source.kind=unavailable means the payload is malformed, violates a selection gate, or conflicts with its persisted status, or the public V1 adapter intentionally omitted a current-policy B-grade expert; read the reason before treating it as a negative. Do not read an omitted qualifying_expert as 'no specialist' without checking this field.
	QualifyingExpert TrustMetadata `json:"qualifying_expert"`
}

PickTrust Field-level trust metadata for the full Pick of the Day payload. Present on the full shape only (omitted on the teaser and the no-pick state, because whether a specialist backs the pick is itself backed-side evidence). Unlike TraderTrust it is not gated behind expand=trust: it carries one member on an endpoint that returns a single object per day.

type PlatformCapabilities

type PlatformCapabilities struct {
	Grade          PlatformCapabilityStatus `json:"grade"`
	InsiderRadar   PlatformCapabilityStatus `json:"insider_radar"`
	MarketSnapshot PlatformCapabilityStatus `json:"market_snapshot"`
	Pnl            PlatformCapabilityStatus `json:"pnl"`
	Strategy       PlatformCapabilityStatus `json:"strategy"`
	Timeline       PlatformCapabilityStatus `json:"timeline"`
	WhaleSignal    PlatformCapabilityStatus `json:"whale_signal"`
}

PlatformCapabilities defines model for PlatformCapabilities.

type PlatformCapabilityStatus

type PlatformCapabilityStatus string

PlatformCapabilityStatus defines model for PlatformCapabilityStatus.

const (
	PlatformCapabilityStatusPartial     PlatformCapabilityStatus = "partial"
	PlatformCapabilityStatusSupported   PlatformCapabilityStatus = "supported"
	PlatformCapabilityStatusUnsupported PlatformCapabilityStatus = "unsupported"
)

Defines values for PlatformCapabilityStatus.

func (PlatformCapabilityStatus) Valid

func (e PlatformCapabilityStatus) Valid() bool

Valid indicates whether the value is a known member of the PlatformCapabilityStatus enum.

type Platforms

type Platforms struct {
	Platforms struct {
		Polymarket PlatformCapabilities `json:"polymarket"`
	} `json:"platforms"`
}

Platforms defines model for Platforms.

type Position

type Position struct {
	// AvgPrice Volume-weighted entry price for this leg.
	AvgPrice *float32 `json:"avg_price,omitempty"`

	// CashPnl Unrealized P&L for the open position (Polymarket `cashPnl`).
	CashPnl *float32 `json:"cash_pnl,omitempty"`

	// CurrentValueUsd Current mark-to-market value in USD (always non-null on V1 — pre-reconcile rows are excluded).
	CurrentValueUsd float32 `json:"current_value_usd"`

	// Freshness Backend-computed staleness bucket derived from last_reconciled_at.
	Freshness PositionFreshness `json:"freshness"`

	// Id Composite prefixed ID `pos_<wallet>:<condition_id>:<outcome_index>`.
	Id              string   `json:"id"`
	InitialValueUsd *float32 `json:"initial_value_usd,omitempty"`

	// LastReconciledAt Max updated_at across mirror legs for this pair.
	LastReconciledAt *time.Time `json:"last_reconciled_at,omitempty"`
	Market           struct {
		// Category Provider-backed market_canonical category.
		Category    *string    `json:"category,omitempty"`
		ConditionId string     `json:"condition_id"`
		EndDate     *time.Time `json:"end_date,omitempty"`
		EventSlug   *string    `json:"event_slug,omitempty"`

		// Id Prefixed ID (`mkt_...`).
		Id string `json:"id"`

		// OutcomeLabel Provider-reported outcome label (e.g. team name for sports). Separate from `side` because provider labels can diverge from the binary Yes/No axis.
		OutcomeLabel *string `json:"outcome_label,omitempty"`
		Slug         *string `json:"slug,omitempty"`
		Title        string  `json:"title"`
	} `json:"market"`

	// Platform Provider discriminator. Polymarket only.
	Platform PositionPlatform `json:"platform"`

	// RealizedPnl Closed-leg P&L rolled up (Polymarket `realizedPnl`).
	RealizedPnl *float32 `json:"realized_pnl,omitempty"`

	// Shares Live share count from the wallet_positions mirror.
	Shares float32 `json:"shares"`

	// Side Binary outcome side. Non-binary positions are not surfaced on V1.
	Side PositionSide `json:"side"`

	// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for this outcome; null when unavailable (e.g. unsynced markets).
	TokenId *string `json:"token_id,omitempty"`
	Trader  struct {
		Address string               `json:"address"`
		Grade   *PositionTraderGrade `json:"grade,omitempty"`

		// Id Prefixed ID (`trd_...`).
		Id string `json:"id"`

		// IsNewWallet True when 0xinsider first recorded the wallet within the new-wallet threshold (30 days). This public V1 field is first-seen recency, not the wallet's on-chain age.
		IsNewWallet   bool     `json:"is_new_wallet"`
		Markets       *int     `json:"markets,omitempty"`
		Pnl           *float32 `json:"pnl,omitempty"`
		Username      *string  `json:"username,omitempty"`
		WalletAgeDays *float32 `json:"wallet_age_days,omitempty"`

		// WinRate Percentage 0-100.
		WinRate *float32 `json:"win_rate,omitempty"`
	} `json:"trader"`

	// Wallet Lowercased proxy wallet address.
	Wallet string `json:"wallet"`
}

Position defines model for Position.

type PositionFreshness

type PositionFreshness string

PositionFreshness Backend-computed staleness bucket derived from last_reconciled_at.

const (
	PositionFreshnessFresh      PositionFreshness = "fresh"
	PositionFreshnessRefreshing PositionFreshness = "refreshing"
	PositionFreshnessStale      PositionFreshness = "stale"
	PositionFreshnessUnknown    PositionFreshness = "unknown"
)

Defines values for PositionFreshness.

func (PositionFreshness) Valid

func (e PositionFreshness) Valid() bool

Valid indicates whether the value is a known member of the PositionFreshness enum.

type PositionPlatform

type PositionPlatform string

PositionPlatform Provider discriminator. Polymarket only.

const (
	PositionPlatformPolymarket PositionPlatform = "polymarket"
)

Defines values for PositionPlatform.

func (PositionPlatform) Valid

func (e PositionPlatform) Valid() bool

Valid indicates whether the value is a known member of the PositionPlatform enum.

type PositionSide

type PositionSide string

PositionSide Binary outcome side. Non-binary positions are not surfaced on V1.

const (
	PositionSideNO  PositionSide = "NO"
	PositionSideYES PositionSide = "YES"
)

Defines values for PositionSide.

func (PositionSide) Valid

func (e PositionSide) Valid() bool

Valid indicates whether the value is a known member of the PositionSide enum.

type PositionTimelineEvent

type PositionTimelineEvent struct {
	// Action From the taker's perspective.
	Action PositionTimelineEventAction `json:"action"`

	// AmountDelta Signed share delta (+ on buy, − on sell).
	AmountDelta float32 `json:"amount_delta"`

	// EventTimestamp ISO 8601 timestamp of the on-chain fill.
	EventTimestamp time.Time `json:"event_timestamp"`

	// Id Prefixed ID (pe_...).
	Id          string                           `json:"id"`
	OutcomeSide PositionTimelineEventOutcomeSide `json:"outcome_side"`

	// Price Fill price in USDC per share, in [0,1].
	Price float32 `json:"price"`

	// RunningAmount Cumulative signed stored-fill amount for this outcome after this fill, including older pages. Stable across limits/cursors for unchanged source history. Excludes split, merge, redemption and neg-risk activity; not complete holdings. Incomplete fill history can also leave a negative amount.
	RunningAmount float32 `json:"running_amount"`

	// RunningAvgPrice Cumulative buy-weighted average of stored fills for this outcome, including older pages; not provider current-position avgPrice. Sells do not change this value. 0 when no stored buys have occurred yet.
	RunningAvgPrice float32 `json:"running_avg_price"`

	// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for this outcome; null when unavailable (e.g. unsynced markets).
	TokenId *string `json:"token_id,omitempty"`

	// TxHash Polygon transaction hash of the fill.
	TxHash string `json:"tx_hash"`

	// UsdcNotional Positive USDC notional of the fill.
	UsdcNotional float32 `json:"usdc_notional"`
}

PositionTimelineEvent defines model for PositionTimelineEvent.

type PositionTimelineEventAction

type PositionTimelineEventAction string

PositionTimelineEventAction From the taker's perspective.

const (
	Buy  PositionTimelineEventAction = "buy"
	Sell PositionTimelineEventAction = "sell"
)

Defines values for PositionTimelineEventAction.

func (PositionTimelineEventAction) Valid

Valid indicates whether the value is a known member of the PositionTimelineEventAction enum.

type PositionTimelineEventOutcomeSide

type PositionTimelineEventOutcomeSide string

PositionTimelineEventOutcomeSide defines model for PositionTimelineEvent.OutcomeSide.

const (
	PositionTimelineEventOutcomeSideNo  PositionTimelineEventOutcomeSide = "no"
	PositionTimelineEventOutcomeSideYes PositionTimelineEventOutcomeSide = "yes"
)

Defines values for PositionTimelineEventOutcomeSide.

func (PositionTimelineEventOutcomeSide) Valid

Valid indicates whether the value is a known member of the PositionTimelineEventOutcomeSide enum.

type PositionTraderGrade

type PositionTraderGrade string

PositionTraderGrade defines model for Position.Trader.Grade.

const (
	PositionTraderGradeA PositionTraderGrade = "A"
	PositionTraderGradeB PositionTraderGrade = "B"
	PositionTraderGradeC PositionTraderGrade = "C"
	PositionTraderGradeD PositionTraderGrade = "D"
	PositionTraderGradeF PositionTraderGrade = "F"
	PositionTraderGradeS PositionTraderGrade = "S"
)

Defines values for PositionTraderGrade.

func (PositionTraderGrade) Valid

func (e PositionTraderGrade) Valid() bool

Valid indicates whether the value is a known member of the PositionTraderGrade enum.

type PotdEntryAuthorization

type PotdEntryAuthorization struct {
	AuthorizationId openapi_types.UUID `json:"authorization_id"`

	// CanonicalEventId Exact provider parent event ID, or provider event ID when no parent exists.
	CanonicalEventId string `json:"canonical_event_id"`

	// Category Canonical sport bucket, not display_category.
	Category    string `json:"category"`
	ConditionId string `json:"condition_id"`

	// ExpiresAt Original provider kickoff ceiling. Never extended on retry.
	ExpiresAt time.Time `json:"expires_at"`
	IssuedAt  time.Time `json:"issued_at"`

	// MaxEntryPrice Immutable decimal limit: first fresh selected-token ask plus 0.02, floored to the provider tick below 1. Fees excluded. Never a calibrated fair probability.
	MaxEntryPrice     string                              `json:"max_entry_price"`
	OutcomeIndex      PotdEntryAuthorizationOutcomeIndex  `json:"outcome_index"`
	PolicyVersion     PotdEntryAuthorizationPolicyVersion `json:"policy_version"`
	ReferenceBestAsk  string                              `json:"reference_best_ask"`
	ReferenceBookAt   time.Time                           `json:"reference_book_at"`
	ReferenceBookHash string                              `json:"reference_book_hash"`
	TokenId           string                              `json:"token_id"`
	Version           PotdEntryAuthorizationVersion       `json:"version"`
}

PotdEntryAuthorization Policy-7 issuance binds one condition, selected token, outcome, canonical event and sport. Reuse the same authorization across public/private discovery and retries. Require a new account-size executable book and current market eligibility; this frozen reference does not prove current liquidity or positive expected value. Absence or expiry cannot authorize a new automated entry.

type PotdEntryAuthorizationOutcomeIndex

type PotdEntryAuthorizationOutcomeIndex int

PotdEntryAuthorizationOutcomeIndex defines model for PotdEntryAuthorization.OutcomeIndex.

const (
	PotdEntryAuthorizationOutcomeIndexN0 PotdEntryAuthorizationOutcomeIndex = 0
	PotdEntryAuthorizationOutcomeIndexN1 PotdEntryAuthorizationOutcomeIndex = 1
)

Defines values for PotdEntryAuthorizationOutcomeIndex.

func (PotdEntryAuthorizationOutcomeIndex) Valid

Valid indicates whether the value is a known member of the PotdEntryAuthorizationOutcomeIndex enum.

type PotdEntryAuthorizationPolicyVersion

type PotdEntryAuthorizationPolicyVersion int

PotdEntryAuthorizationPolicyVersion defines model for PotdEntryAuthorization.PolicyVersion.

Defines values for PotdEntryAuthorizationPolicyVersion.

func (PotdEntryAuthorizationPolicyVersion) Valid

Valid indicates whether the value is a known member of the PotdEntryAuthorizationPolicyVersion enum.

type PotdEntryAuthorizationVersion

type PotdEntryAuthorizationVersion int

PotdEntryAuthorizationVersion defines model for PotdEntryAuthorization.Version.

const (
	PotdEntryAuthorizationVersionN1 PotdEntryAuthorizationVersion = 1
)

Defines values for PotdEntryAuthorizationVersion.

func (PotdEntryAuthorizationVersion) Valid

Valid indicates whether the value is a known member of the PotdEntryAuthorizationVersion enum.

type ProofPendingPickSlot

type ProofPendingPickSlot struct {
	// Kickoff The backed game's frozen kickoff instant; absent for a legacy row without one.
	Kickoff *time.Time `json:"kickoff,omitempty"`

	// PickRank Stable 1-based slot within the product day's ranked picks. The pick keeps this rank once its proof is readable and it moves into `picks`.
	PickRank int `json:"pick_rank"`

	// ReleaseAt The pick's stored release instant.
	ReleaseAt time.Time `json:"release_at"`

	// RetryAt Recommended next read: 30 seconds ahead while pre-game proof is warming, one hour ahead for a post-kickoff pending legacy row that only settlement can make readable. Schedule against it instead of polling.
	RetryAt time.Time `json:"retry_at"`
}

ProofPendingPickSlot One PUBLISHED same-day pick whose holder proof is not readable yet: its stable slot rank, the release and kickoff instants, and the instant before which a retry cannot succeed. Every item in `picks` carries its full required shape, so a pick that cannot meet it is listed here instead of being served with missing fields or a synthetic zero.

type RadarFlag

type RadarFlag struct {
	// CreatedAt Stored trade timestamp.
	CreatedAt time.Time `json:"created_at"`

	// Evidence Stored whale_alerts.suspicion_signals JSON from the scorer.
	Evidence interface{} `json:"evidence"`

	// Id Prefixed ID (rf_...).
	Id     string `json:"id"`
	Market struct {
		ConditionId string `json:"condition_id"`
		Id          string `json:"id"`

		// Title Canonical market question when available.
		Title string `json:"title"`
	} `json:"market"`
	Scores struct {
		// Edge Null because the live scorer does not record this component.
		Edge *float32 `json:"edge,omitempty"`

		// FreshWallet Numeric evidence.fresh when recorded; otherwise null.
		FreshWallet *float32 `json:"fresh_wallet,omitempty"`

		// Size Numeric evidence.size when recorded; otherwise null.
		Size *float32 `json:"size,omitempty"`

		// Timing Null because the live scorer does not record this component.
		Timing *float32 `json:"timing,omitempty"`
	} `json:"scores"`

	// Severity The live scorer persists one threshold class.
	Severity RadarFlagSeverity `json:"severity"`

	// SuspicionScore Stored score that met the live flag threshold.
	SuspicionScore float32 `json:"suspicion_score"`
	Trader         struct {
		Address  string  `json:"address"`
		Id       string  `json:"id"`
		Username *string `json:"username,omitempty"`
	} `json:"trader"`
}

RadarFlag defines model for RadarFlag.

type RadarFlagSeverity

type RadarFlagSeverity string

RadarFlagSeverity The live scorer persists one threshold class.

const (
	RadarFlagSeverityFlag RadarFlagSeverity = "flag"
)

Defines values for RadarFlagSeverity.

func (RadarFlagSeverity) Valid

func (e RadarFlagSeverity) Valid() bool

Valid indicates whether the value is a known member of the RadarFlagSeverity enum.

type RedirectApiOpenapiSpecResponse

type RedirectApiOpenapiSpecResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// Headers307 the parsed response headers for an HTTP 307 response
	Headers307 *RedirectApiOpenapiSpecResponse307Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RedirectApiOpenapiSpecResponse429Headers
}

func ParseRedirectApiOpenapiSpecResponse

func ParseRedirectApiOpenapiSpecResponse(rsp *http.Response) (*RedirectApiOpenapiSpecResponse, error)

ParseRedirectApiOpenapiSpecResponse parses an HTTP response from a RedirectApiOpenapiSpecWithResponse call

func (RedirectApiOpenapiSpecResponse) ContentType

func (r RedirectApiOpenapiSpecResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RedirectApiOpenapiSpecResponse) GetBody

func (r RedirectApiOpenapiSpecResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RedirectApiOpenapiSpecResponse) GetJSON429

func (r RedirectApiOpenapiSpecResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (RedirectApiOpenapiSpecResponse) GetJSON500

func (r RedirectApiOpenapiSpecResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (RedirectApiOpenapiSpecResponse) Status

Status returns HTTPResponse.Status

func (RedirectApiOpenapiSpecResponse) StatusCode

func (r RedirectApiOpenapiSpecResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RedirectApiOpenapiSpecResponse307Headers

type RedirectApiOpenapiSpecResponse307Headers struct {
	Location string
}

RedirectApiOpenapiSpecResponse307Headers the declared response headers of an HTTP 307 response for RedirectApiOpenapiSpec

type RedirectApiOpenapiSpecResponse429Headers

type RedirectApiOpenapiSpecResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

RedirectApiOpenapiSpecResponse429Headers the declared response headers of an HTTP 429 response for RedirectApiOpenapiSpec

type ReportPayload

type ReportPayload struct {
	ActiveTraders     *int                      `json:"active_traders,omitempty"`
	BiggestTradeSize  *float32                  `json:"biggest_trade_size,omitempty"`
	Categories        *[]map[string]interface{} `json:"categories,omitempty"`
	GradeDistribution *[]map[string]interface{} `json:"grade_distribution,omitempty"`
	TopWhaleTrades    *[]struct {
		// Id Whale trade id.
		Id *int64 `json:"id,omitempty"`

		// MarketCategory Provider market category.
		MarketCategory *string `json:"market_category,omitempty"`

		// Name Trader display name, when known.
		Name *string `json:"name,omitempty"`

		// Outcome Provider outcome label for the traded side.
		Outcome *string `json:"outcome,omitempty"`

		// Platform Venue: polymarket.
		Platform *string `json:"platform,omitempty"`

		// Price Trade price in provider [0, 1] units.
		Price *float32 `json:"price,omitempty"`

		// Pseudonym Trader pseudonym, when no display name is known.
		Pseudonym *string `json:"pseudonym,omitempty"`

		// Side Trade direction (BUY or SELL), not the outcome side.
		Side *string `json:"side,omitempty"`

		// Size Trade size in USD.
		Size *float32 `json:"size,omitempty"`

		// Title Market title.
		Title *string `json:"title,omitempty"`

		// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the traded outcome; null when unavailable (e.g. unsynced markets).
		TokenId *string `json:"token_id,omitempty"`

		// TradeTime Trade timestamp (UTC).
		TradeTime *time.Time `json:"trade_time,omitempty"`

		// TraderGrade Trader grade (S-F) at snapshot time.
		TraderGrade *string `json:"trader_grade,omitempty"`
	} `json:"top_whale_trades,omitempty"`
	TotalWhaleTrades *int     `json:"total_whale_trades,omitempty"`
	TotalWhaleVolume *float32 `json:"total_whale_volume,omitempty"`
}

ReportPayload defines model for ReportPayload.

type ReportReconciliation

type ReportReconciliation struct {
	Notes             string                                `json:"notes"`
	VolumeKind        ReportReconciliationVolumeKind        `json:"volume_kind"`
	WhaleVolumeSource ReportReconciliationWhaleVolumeSource `json:"whale_volume_source"`
}

ReportReconciliation defines model for ReportReconciliation.

type ReportReconciliationVolumeKind

type ReportReconciliationVolumeKind string

ReportReconciliationVolumeKind defines model for ReportReconciliation.VolumeKind.

const (
	LocalWhaleActivityVolume ReportReconciliationVolumeKind = "local_whale_activity_volume"
)

Defines values for ReportReconciliationVolumeKind.

func (ReportReconciliationVolumeKind) Valid

Valid indicates whether the value is a known member of the ReportReconciliationVolumeKind enum.

type ReportReconciliationWhaleVolumeSource

type ReportReconciliationWhaleVolumeSource string

ReportReconciliationWhaleVolumeSource defines model for ReportReconciliation.WhaleVolumeSource.

const (
	WhaleAlertsUsdcNotionalNum ReportReconciliationWhaleVolumeSource = "whale_alerts.usdc_notional_num"
)

Defines values for ReportReconciliationWhaleVolumeSource.

func (ReportReconciliationWhaleVolumeSource) Valid

Valid indicates whether the value is a known member of the ReportReconciliationWhaleVolumeSource enum.

type ReportSnapshot

type ReportSnapshot struct {
	Completeness   SnapshotCompleteness `json:"completeness"`
	GeneratedAt    time.Time            `json:"generated_at"`
	Kind           ReportSnapshotKind   `json:"kind"`
	Reconciliation ReportReconciliation `json:"reconciliation"`
	Report         ReportPayload        `json:"report"`
	Snapshot       SnapshotState        `json:"snapshot"`
	SourceRange    ReportSourceRange    `json:"source_range"`
}

ReportSnapshot defines model for ReportSnapshot.

type ReportSnapshotKind

type ReportSnapshotKind string

ReportSnapshotKind defines model for ReportSnapshot.Kind.

const (
	ReportSnapshotKindDaily   ReportSnapshotKind = "daily"
	ReportSnapshotKindMonthly ReportSnapshotKind = "monthly"
	ReportSnapshotKindWeekly  ReportSnapshotKind = "weekly"
)

Defines values for ReportSnapshotKind.

func (ReportSnapshotKind) Valid

func (e ReportSnapshotKind) Valid() bool

Valid indicates whether the value is a known member of the ReportSnapshotKind enum.

type ReportSourceRange

type ReportSourceRange struct {
	EndDate   openapi_types.Date        `json:"end_date"`
	StartDate openapi_types.Date        `json:"start_date"`
	Timezone  ReportSourceRangeTimezone `json:"timezone"`
}

ReportSourceRange defines model for ReportSourceRange.

type ReportSourceRangeTimezone

type ReportSourceRangeTimezone string

ReportSourceRangeTimezone defines model for ReportSourceRange.Timezone.

const (
	UTC ReportSourceRangeTimezone = "UTC"
)

Defines values for ReportSourceRangeTimezone.

func (ReportSourceRangeTimezone) Valid

func (e ReportSourceRangeTimezone) Valid() bool

Valid indicates whether the value is a known member of the ReportSourceRangeTimezone enum.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseMeta

type ResponseMeta struct {
	// CacheAgeS Cache age in seconds. Omitted when the response was not cached, and also when it was cached but its age cannot be established (an entry stored before its cache carried a computed instant). Never a placeholder: an unknown age is reported as no value rather than as the cache TTL.
	CacheAgeS *int `json:"cache_age_s,omitempty"`
	Cached    bool `json:"cached"`

	// CategorySkillBasePayloadHash SHA-256 of the funded signal membership/order/rank/cursor vector immediately before category-skill enrichment. Sports-edge-signals only.
	CategorySkillBasePayloadHash *string `json:"category_skill_base_payload_hash,omitempty"`

	// CategorySkillEnrichedBasePayloadHash Independent SHA-256 recomputation over the same base fields immediately after category-skill enrichment. Equality with category_skill_base_payload_hash proves shadow enrichment did not change funded inputs. Sports-edge-signals only.
	CategorySkillEnrichedBasePayloadHash *string `json:"category_skill_enriched_base_payload_hash,omitempty"`

	// CategorySkillModelOperationallyDegraded Whole-model operational readiness captured with the category model snapshot. Present on category-enriched responses even when the filtered signal list is empty. When true, category_skill_source is degraded and sports-edge-signals uses the shorter degraded cache TTL.
	CategorySkillModelOperationallyDegraded *bool                              `json:"category_skill_model_operationally_degraded,omitempty"`
	CategorySkillModelVersion               *string                            `json:"category_skill_model_version,omitempty"`
	CategorySkillObservationStartedAt       *time.Time                         `json:"category_skill_observation_started_at,omitempty"`
	CategorySkillPlatform                   *ResponseMetaCategorySkillPlatform `json:"category_skill_platform,omitempty"`
	CategorySkillScope                      *ResponseMetaCategorySkillScope    `json:"category_skill_scope,omitempty"`

	// CategorySkillSource Whole filtered snapshot category-evidence status before pagination. Operational live always remains partial source coverage.
	CategorySkillSource         *ResponseMetaCategorySkillSource         `json:"category_skill_source,omitempty"`
	CategorySkillSourceCoverage *ResponseMetaCategorySkillSourceCoverage `json:"category_skill_source_coverage,omitempty"`
	CategorySkillStatusCounts   *struct {
		Degraded     int `json:"degraded"`
		Insufficient int `json:"insufficient"`
		Live         int `json:"live"`
		Stale        int `json:"stale"`
		Unknown      int `json:"unknown"`
	} `json:"category_skill_status_counts,omitempty"`
	CategorySkillTaxonomyVersion *string `json:"category_skill_taxonomy_version,omitempty"`

	// Cost Advisory request weight (relative compute cost). 1 for simple reads; higher for heavier endpoints. Not a credit/price.
	Cost int `json:"cost"`

	// DirectionalSource Which path produced the team-directional read on this response. Only present on endpoints that compute one (today: GET /api/v1/sports-edge-signals). "live" means the read RAN. "degraded" means it FAILED, so nothing was measured and the ranking fell back to raw conviction. The flag describes the READ, not its consequence: a read that ran and found nothing groupable also leaves the directional fields null, and that is honestly "live" -- the per-signal nulls already say "nothing to enrich here", so this snapshot-level flag carries only what they cannot, namely whether the read ran at all. A degraded response is cached on the shorter degraded TTL so it self-heals. Reported SEPARATELY from ranking_source because the two degradations are independent -- a smart-money DB miss weakens the ranking DATA, a directional failure removes a ranking WEIGHT -- and a consumer down-weighting a degraded response needs to know which input it lost. Omitted on endpoints that compute no directional read.
	DirectionalSource *ResponseMetaDirectionalSource `json:"directional_source,omitempty"`

	// RankingAsOf Authoritative RFC3339 timestamp from cache_generations.updated_at for ranking_generation. It is read in the same repeatable-read snapshot as the leaderboard rows and is not request time, cache write time, or row insertion order.
	RankingAsOf *time.Time `json:"ranking_as_of,omitempty"`

	// RankingGeneration Committed PostgreSQL-owned leaderboard generation for the returned rows and cursor. Present on GET /api/v1/leaderboard; omitted on endpoints that do not read this ranking.
	RankingGeneration *int `json:"ranking_generation,omitempty"`

	// RankingSource Which ranking-data path produced this response. Only present on endpoints that can degrade a ranking (today: GET /api/v1/sports-edge-signals). "live" is the normal path (the current holder pile from the provider batch); "db_only" is the degraded fallback (a truthful but weaker trader_markets ranking) served when the live sharp-money ranking batch is unavailable (a smart-money DB read failure, not a Polymarket outage) and cached on a shorter TTL, so a consumer can down-weight or skip it. Omitted on endpoints that never degrade.
	RankingSource *ResponseMetaRankingSource `json:"ranking_source,omitempty"`

	// RequestId Unique request ID (req_ prefix).
	RequestId string `json:"request_id"`
}

ResponseMeta defines model for ResponseMeta.

type ResponseMetaCategorySkillPlatform

type ResponseMetaCategorySkillPlatform string

ResponseMetaCategorySkillPlatform defines model for ResponseMeta.CategorySkillPlatform.

const (
	ResponseMetaCategorySkillPlatformPolymarket ResponseMetaCategorySkillPlatform = "polymarket"
)

Defines values for ResponseMetaCategorySkillPlatform.

func (ResponseMetaCategorySkillPlatform) Valid

Valid indicates whether the value is a known member of the ResponseMetaCategorySkillPlatform enum.

type ResponseMetaCategorySkillScope

type ResponseMetaCategorySkillScope string

ResponseMetaCategorySkillScope defines model for ResponseMeta.CategorySkillScope.

const (
	ResponseMetaCategorySkillScopeObservedGoldskyPrimaryTakerFill ResponseMetaCategorySkillScope = "observed_goldsky_primary_taker_fill"
)

Defines values for ResponseMetaCategorySkillScope.

func (ResponseMetaCategorySkillScope) Valid

Valid indicates whether the value is a known member of the ResponseMetaCategorySkillScope enum.

type ResponseMetaCategorySkillSource

type ResponseMetaCategorySkillSource string

ResponseMetaCategorySkillSource Whole filtered snapshot category-evidence status before pagination. Operational live always remains partial source coverage.

const (
	ResponseMetaCategorySkillSourceDegraded    ResponseMetaCategorySkillSource = "degraded"
	ResponseMetaCategorySkillSourceLive        ResponseMetaCategorySkillSource = "live"
	ResponseMetaCategorySkillSourcePartial     ResponseMetaCategorySkillSource = "partial"
	ResponseMetaCategorySkillSourceUnavailable ResponseMetaCategorySkillSource = "unavailable"
)

Defines values for ResponseMetaCategorySkillSource.

func (ResponseMetaCategorySkillSource) Valid

Valid indicates whether the value is a known member of the ResponseMetaCategorySkillSource enum.

type ResponseMetaCategorySkillSourceCoverage

type ResponseMetaCategorySkillSourceCoverage string

ResponseMetaCategorySkillSourceCoverage defines model for ResponseMeta.CategorySkillSourceCoverage.

const (
	ResponseMetaCategorySkillSourceCoverageGradedWalletFills          ResponseMetaCategorySkillSourceCoverage = "graded_wallet_fills"
	ResponseMetaCategorySkillSourceCoveragePartialWhaleThresholdFills ResponseMetaCategorySkillSourceCoverage = "partial_whale_threshold_fills"
)

Defines values for ResponseMetaCategorySkillSourceCoverage.

func (ResponseMetaCategorySkillSourceCoverage) Valid

Valid indicates whether the value is a known member of the ResponseMetaCategorySkillSourceCoverage enum.

type ResponseMetaDirectionalSource

type ResponseMetaDirectionalSource string

ResponseMetaDirectionalSource Which path produced the team-directional read on this response. Only present on endpoints that compute one (today: GET /api/v1/sports-edge-signals). "live" means the read RAN. "degraded" means it FAILED, so nothing was measured and the ranking fell back to raw conviction. The flag describes the READ, not its consequence: a read that ran and found nothing groupable also leaves the directional fields null, and that is honestly "live" -- the per-signal nulls already say "nothing to enrich here", so this snapshot-level flag carries only what they cannot, namely whether the read ran at all. A degraded response is cached on the shorter degraded TTL so it self-heals. Reported SEPARATELY from ranking_source because the two degradations are independent -- a smart-money DB miss weakens the ranking DATA, a directional failure removes a ranking WEIGHT -- and a consumer down-weighting a degraded response needs to know which input it lost. Omitted on endpoints that compute no directional read.

const (
	ResponseMetaDirectionalSourceDegraded ResponseMetaDirectionalSource = "degraded"
	ResponseMetaDirectionalSourceLive     ResponseMetaDirectionalSource = "live"
)

Defines values for ResponseMetaDirectionalSource.

func (ResponseMetaDirectionalSource) Valid

Valid indicates whether the value is a known member of the ResponseMetaDirectionalSource enum.

type ResponseMetaRankingSource

type ResponseMetaRankingSource string

ResponseMetaRankingSource Which ranking-data path produced this response. Only present on endpoints that can degrade a ranking (today: GET /api/v1/sports-edge-signals). "live" is the normal path (the current holder pile from the provider batch); "db_only" is the degraded fallback (a truthful but weaker trader_markets ranking) served when the live sharp-money ranking batch is unavailable (a smart-money DB read failure, not a Polymarket outage) and cached on a shorter TTL, so a consumer can down-weight or skip it. Omitted on endpoints that never degrade.

const (
	ResponseMetaRankingSourceDbOnly ResponseMetaRankingSource = "db_only"
	ResponseMetaRankingSourceLive   ResponseMetaRankingSource = "live"
)

Defines values for ResponseMetaRankingSource.

func (ResponseMetaRankingSource) Valid

func (e ResponseMetaRankingSource) Valid() bool

Valid indicates whether the value is a known member of the ResponseMetaRankingSource enum.

type RotateWebhookSecret200JSONResponseBodyObject

type RotateWebhookSecret200JSONResponseBodyObject string

RotateWebhookSecret200JSONResponseBodyObject defines parameters for RotateWebhookSecret.

const (
	RotateWebhookSecret200JSONResponseBodyObjectWebhook RotateWebhookSecret200JSONResponseBodyObject = "webhook"
)

Defines values for RotateWebhookSecret200JSONResponseBodyObject.

func (RotateWebhookSecret200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the RotateWebhookSecret200JSONResponseBodyObject enum.

type RotateWebhookSecretParams

type RotateWebhookSecretParams struct {
	// IdempotencyKey Optional safe-retry key. Reuse the same value only when retrying the exact same mutation request body; a different body returns 422 and an in-flight matching request returns 409.
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

RotateWebhookSecretParams defines parameters for RotateWebhookSecret.

type RotateWebhookSecretResponse

type RotateWebhookSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WebhookEndpoint                              `json:"data"`
		Meta   ResponseMeta                                 `json:"meta"`
		Object RotateWebhookSecret200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *ApiError
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *RotateWebhookSecretResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *RotateWebhookSecretResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *RotateWebhookSecretResponse503Headers
}

func ParseRotateWebhookSecretResponse

func ParseRotateWebhookSecretResponse(rsp *http.Response) (*RotateWebhookSecretResponse, error)

ParseRotateWebhookSecretResponse parses an HTTP response from a RotateWebhookSecretWithResponse call

func (RotateWebhookSecretResponse) ContentType

func (r RotateWebhookSecretResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RotateWebhookSecretResponse) GetBody

func (r RotateWebhookSecretResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RotateWebhookSecretResponse) GetJSON200

func (r RotateWebhookSecretResponse) GetJSON200() *struct {
	Data   WebhookEndpoint                              `json:"data"`
	Meta   ResponseMeta                                 `json:"meta"`
	Object RotateWebhookSecret200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RotateWebhookSecretResponse) GetJSON400

func (r RotateWebhookSecretResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (RotateWebhookSecretResponse) GetJSON401

func (r RotateWebhookSecretResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RotateWebhookSecretResponse) GetJSON402

func (r RotateWebhookSecretResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (RotateWebhookSecretResponse) GetJSON403

func (r RotateWebhookSecretResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RotateWebhookSecretResponse) GetJSON404

func (r RotateWebhookSecretResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RotateWebhookSecretResponse) GetJSON409

func (r RotateWebhookSecretResponse) GetJSON409() *ApiError

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RotateWebhookSecretResponse) GetJSON422

func (r RotateWebhookSecretResponse) GetJSON422() *ApiError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (RotateWebhookSecretResponse) GetJSON423

func (r RotateWebhookSecretResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (RotateWebhookSecretResponse) GetJSON429

func (r RotateWebhookSecretResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (RotateWebhookSecretResponse) GetJSON500

func (r RotateWebhookSecretResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (RotateWebhookSecretResponse) GetJSON503

func (r RotateWebhookSecretResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (RotateWebhookSecretResponse) Status

Status returns HTTPResponse.Status

func (RotateWebhookSecretResponse) StatusCode

func (r RotateWebhookSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RotateWebhookSecretResponse200Headers

type RotateWebhookSecretResponse200Headers struct {
	XUsageAccounting *string
}

RotateWebhookSecretResponse200Headers the declared response headers of an HTTP 200 response for RotateWebhookSecret

type RotateWebhookSecretResponse429Headers

type RotateWebhookSecretResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

RotateWebhookSecretResponse429Headers the declared response headers of an HTTP 429 response for RotateWebhookSecret

type RotateWebhookSecretResponse503Headers

type RotateWebhookSecretResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

RotateWebhookSecretResponse503Headers the declared response headers of an HTTP 503 response for RotateWebhookSecret

type ScheduledPickSlot

type ScheduledPickSlot struct {
	// Kickoff The backed game's current kickoff instant.
	Kickoff time.Time `json:"kickoff"`

	// PickRank Stable 1-based slot within the product day's ranked picks. The slot keeps this rank when it releases.
	PickRank int `json:"pick_rank"`

	// ReleaseAt The slot's scheduled release instant, normally the current provider kickoff minus one hour. The actual publish can trail it by bounded worker delay.
	ReleaseAt time.Time `json:"release_at"`
}

ScheduledPickSlot One same-day pick that is selected but not yet released: its stable slot rank plus the backend-owned release and kickoff instants. Deliberately minimal -- no matchup, category, platform, side, price, or holder fields exist on this shape before release.

type ScoreCell

type ScoreCell struct {
	// Games Games won in this set.
	Games int `json:"games"`

	// Tiebreak Tiebreak points won in this set. Omitted when the set had no tiebreak; absence and zero are different.
	Tiebreak *int `json:"tiebreak,omitempty"`
}

ScoreCell One side's score in a single set. The verbatim provider text stays on the team's `score` string; this is the parsed form.

type ScoreFormat

type ScoreFormat string

ScoreFormat Shape the provider score string was parsed into. `two_side` is one aggregate per side (basketball `105-98`), `multi_set` is per-set columns (tennis `6-7(5-7), 6-0, 1-0`), `esports_series` is a maps/sets/format triplet (`000-000|2-0|Bo3`). Omitted when the score could not be parsed.

const (
	EsportsSeries ScoreFormat = "esports_series"
	MultiSet      ScoreFormat = "multi_set"
	TwoSide       ScoreFormat = "two_side"
)

Defines values for ScoreFormat.

func (ScoreFormat) Valid

func (e ScoreFormat) Valid() bool

Valid indicates whether the value is a known member of the ScoreFormat enum.

type SearchContent200JSONResponseBodyHasMore

type SearchContent200JSONResponseBodyHasMore bool

SearchContent200JSONResponseBodyHasMore defines parameters for SearchContent.

const (
	SearchContent200JSONResponseBodyHasMoreFalse SearchContent200JSONResponseBodyHasMore = false
)

Defines values for SearchContent200JSONResponseBodyHasMore.

func (SearchContent200JSONResponseBodyHasMore) Valid

Valid indicates whether the value is a known member of the SearchContent200JSONResponseBodyHasMore enum.

type SearchContent200JSONResponseBodyObject

type SearchContent200JSONResponseBodyObject string

SearchContent200JSONResponseBodyObject defines parameters for SearchContent.

const (
	SearchContent200JSONResponseBodyObjectList SearchContent200JSONResponseBodyObject = "list"
)

Defines values for SearchContent200JSONResponseBodyObject.

func (SearchContent200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the SearchContent200JSONResponseBodyObject enum.

type SearchContentParams

type SearchContentParams struct {
	// Q Search query. Must be 1-256 characters before whitespace trimming and non-empty after trimming.
	Q string `form:"q" json:"q"`

	// Limit Maximum content items to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

SearchContentParams defines parameters for SearchContent.

type SearchContentResponse

type SearchContentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data    []ContentSearchResult                   `json:"data"`
		HasMore SearchContent200JSONResponseBodyHasMore `json:"has_more"`
		Meta    ResponseMeta                            `json:"meta"`

		// NextCursor Omitted because content search is a bounded one-page result.
		NextCursor *string                                `json:"next_cursor,omitempty"`
		Object     SearchContent200JSONResponseBodyObject `json:"object"`

		// Total Absent because content search is a bounded relevance result and does not run a count query.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SearchContentResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SearchContentResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SearchContentResponse503Headers
}

func ParseSearchContentResponse

func ParseSearchContentResponse(rsp *http.Response) (*SearchContentResponse, error)

ParseSearchContentResponse parses an HTTP response from a SearchContentWithResponse call

func (SearchContentResponse) ContentType

func (r SearchContentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchContentResponse) GetBody

func (r SearchContentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SearchContentResponse) GetJSON200

func (r SearchContentResponse) GetJSON200() *struct {
	Data    []ContentSearchResult                   `json:"data"`
	HasMore SearchContent200JSONResponseBodyHasMore `json:"has_more"`
	Meta    ResponseMeta                            `json:"meta"`

	// NextCursor Omitted because content search is a bounded one-page result.
	NextCursor *string                                `json:"next_cursor,omitempty"`
	Object     SearchContent200JSONResponseBodyObject `json:"object"`

	// Total Absent because content search is a bounded relevance result and does not run a count query.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SearchContentResponse) GetJSON400

func (r SearchContentResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SearchContentResponse) GetJSON401

func (r SearchContentResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SearchContentResponse) GetJSON402

func (r SearchContentResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (SearchContentResponse) GetJSON403

func (r SearchContentResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SearchContentResponse) GetJSON423

func (r SearchContentResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (SearchContentResponse) GetJSON429

func (r SearchContentResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (SearchContentResponse) GetJSON500

func (r SearchContentResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (SearchContentResponse) GetJSON503

func (r SearchContentResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SearchContentResponse) Status

func (r SearchContentResponse) Status() string

Status returns HTTPResponse.Status

func (SearchContentResponse) StatusCode

func (r SearchContentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchContentResponse200Headers

type SearchContentResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

SearchContentResponse200Headers the declared response headers of an HTTP 200 response for SearchContent

type SearchContentResponse429Headers

type SearchContentResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

SearchContentResponse429Headers the declared response headers of an HTTP 429 response for SearchContent

type SearchContentResponse503Headers

type SearchContentResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

SearchContentResponse503Headers the declared response headers of an HTTP 503 response for SearchContent

type SearchMarkets200JSONResponseBodyObject

type SearchMarkets200JSONResponseBodyObject string

SearchMarkets200JSONResponseBodyObject defines parameters for SearchMarkets.

const (
	SearchMarkets200JSONResponseBodyObjectList SearchMarkets200JSONResponseBodyObject = "list"
)

Defines values for SearchMarkets200JSONResponseBodyObject.

func (SearchMarkets200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the SearchMarkets200JSONResponseBodyObject enum.

type SearchMarketsParams

type SearchMarketsParams struct {
	// Q Search query. Must be 1-512 characters before whitespace trimming and non-empty after trimming.
	Q string `form:"q" json:"q"`

	// Limit Maximum number of matching markets to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pagination cursor from previous response's next_cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Status Filter by market status.
	Status *SearchMarketsParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// Category Filter by category.
	Category *string `form:"category,omitempty" json:"category,omitempty"`
}

SearchMarketsParams defines parameters for SearchMarkets.

type SearchMarketsParamsStatus

type SearchMarketsParamsStatus string

SearchMarketsParamsStatus defines parameters for SearchMarkets.

const (
	SearchMarketsParamsStatusActive SearchMarketsParamsStatus = "active"
	SearchMarketsParamsStatusAll    SearchMarketsParamsStatus = "all"
	SearchMarketsParamsStatusClosed SearchMarketsParamsStatus = "closed"
)

Defines values for SearchMarketsParamsStatus.

func (SearchMarketsParamsStatus) Valid

func (e SearchMarketsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the SearchMarketsParamsStatus enum.

type SearchMarketsResponse

type SearchMarketsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data       []MarketSearchResult                   `json:"data"`
		HasMore    bool                                   `json:"has_more"`
		Meta       ResponseMeta                           `json:"meta"`
		NextCursor *string                                `json:"next_cursor,omitempty"`
		Object     SearchMarkets200JSONResponseBodyObject `json:"object"`

		// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
		Total *int `json:"total,omitempty"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SearchMarketsResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SearchMarketsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SearchMarketsResponse503Headers
}

func ParseSearchMarketsResponse

func ParseSearchMarketsResponse(rsp *http.Response) (*SearchMarketsResponse, error)

ParseSearchMarketsResponse parses an HTTP response from a SearchMarketsWithResponse call

func (SearchMarketsResponse) ContentType

func (r SearchMarketsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchMarketsResponse) GetBody

func (r SearchMarketsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SearchMarketsResponse) GetJSON200

func (r SearchMarketsResponse) GetJSON200() *struct {
	Data       []MarketSearchResult                   `json:"data"`
	HasMore    bool                                   `json:"has_more"`
	Meta       ResponseMeta                           `json:"meta"`
	NextCursor *string                                `json:"next_cursor,omitempty"`
	Object     SearchMarkets200JSONResponseBodyObject `json:"object"`

	// Total Total matching rows when the read model exposes a count; absent (or null) when it does not.
	Total *int `json:"total,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SearchMarketsResponse) GetJSON400

func (r SearchMarketsResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SearchMarketsResponse) GetJSON401

func (r SearchMarketsResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SearchMarketsResponse) GetJSON402

func (r SearchMarketsResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (SearchMarketsResponse) GetJSON403

func (r SearchMarketsResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SearchMarketsResponse) GetJSON423

func (r SearchMarketsResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (SearchMarketsResponse) GetJSON429

func (r SearchMarketsResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (SearchMarketsResponse) GetJSON503

func (r SearchMarketsResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SearchMarketsResponse) Status

func (r SearchMarketsResponse) Status() string

Status returns HTTPResponse.Status

func (SearchMarketsResponse) StatusCode

func (r SearchMarketsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchMarketsResponse200Headers

type SearchMarketsResponse200Headers struct {
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
	XUsageAccounting    *string
}

SearchMarketsResponse200Headers the declared response headers of an HTTP 200 response for SearchMarkets

type SearchMarketsResponse429Headers

type SearchMarketsResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

SearchMarketsResponse429Headers the declared response headers of an HTTP 429 response for SearchMarkets

type SearchMarketsResponse503Headers

type SearchMarketsResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

SearchMarketsResponse503Headers the declared response headers of an HTTP 503 response for SearchMarkets

type SmartMoneyFlowMarket

type SmartMoneyFlowMarket struct {
	Market struct {
		Category    string `json:"category"`
		ConditionId string `json:"condition_id"`
		Id          string `json:"id"`
		Platform    string `json:"platform"`
		Slug        string `json:"slug"`
		Title       string `json:"title"`
	} `json:"market"`

	// SharpMoney Sharp-money flow aggregate for the market (canonical; smart_money is a deprecated byte-identical alias).
	SharpMoney struct {
		BuyVolumeUsd  float32                                 `json:"buy_volume_usd"`
		Direction     SmartMoneyFlowMarketSharpMoneyDirection `json:"direction"`
		NetFlowUsd    float32                                 `json:"net_flow_usd"`
		SellVolumeUsd float32                                 `json:"sell_volume_usd"`

		// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets).
		TokenId         *string `json:"token_id,omitempty"`
		WhaleTradeCount int     `json:"whale_trade_count"`
	} `json:"sharp_money"`

	// SmartMoney Deprecated alias of sharp_money; byte-identical and retained for backward compatibility.
	SmartMoney struct {
		BuyVolumeUsd  float32                                 `json:"buy_volume_usd"`
		Direction     SmartMoneyFlowMarketSmartMoneyDirection `json:"direction"`
		NetFlowUsd    float32                                 `json:"net_flow_usd"`
		SellVolumeUsd float32                                 `json:"sell_volume_usd"`

		// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the net-flow direction outcome; null when unavailable (e.g. unsynced markets).
		TokenId         *string `json:"token_id,omitempty"`
		WhaleTradeCount int     `json:"whale_trade_count"`
	} `json:"smart_money"`
	Timeframe string `json:"timeframe"`
}

SmartMoneyFlowMarket defines model for SmartMoneyFlowMarket.

type SmartMoneyFlowMarketSharpMoneyDirection

type SmartMoneyFlowMarketSharpMoneyDirection string

SmartMoneyFlowMarketSharpMoneyDirection defines model for SmartMoneyFlowMarket.SharpMoney.Direction.

const (
	SmartMoneyFlowMarketSharpMoneyDirectionNO  SmartMoneyFlowMarketSharpMoneyDirection = "NO"
	SmartMoneyFlowMarketSharpMoneyDirectionYES SmartMoneyFlowMarketSharpMoneyDirection = "YES"
)

Defines values for SmartMoneyFlowMarketSharpMoneyDirection.

func (SmartMoneyFlowMarketSharpMoneyDirection) Valid

Valid indicates whether the value is a known member of the SmartMoneyFlowMarketSharpMoneyDirection enum.

type SmartMoneyFlowMarketSmartMoneyDirection

type SmartMoneyFlowMarketSmartMoneyDirection string

SmartMoneyFlowMarketSmartMoneyDirection defines model for SmartMoneyFlowMarket.SmartMoney.Direction.

const (
	SmartMoneyFlowMarketSmartMoneyDirectionNO  SmartMoneyFlowMarketSmartMoneyDirection = "NO"
	SmartMoneyFlowMarketSmartMoneyDirectionYES SmartMoneyFlowMarketSmartMoneyDirection = "YES"
)

Defines values for SmartMoneyFlowMarketSmartMoneyDirection.

func (SmartMoneyFlowMarketSmartMoneyDirection) Valid

Valid indicates whether the value is a known member of the SmartMoneyFlowMarketSmartMoneyDirection enum.

type SnapshotCompleteness

type SnapshotCompleteness struct {
	CoveredDaysWithWhaleActivity int                        `json:"covered_days_with_whale_activity"`
	ExpectedDays                 int                        `json:"expected_days"`
	Reason                       string                     `json:"reason"`
	Status                       SnapshotCompletenessStatus `json:"status"`
}

SnapshotCompleteness defines model for SnapshotCompleteness.

type SnapshotCompletenessStatus

type SnapshotCompletenessStatus string

SnapshotCompletenessStatus defines model for SnapshotCompleteness.Status.

const (
	SnapshotCompletenessStatusComplete SnapshotCompletenessStatus = "complete"
	SnapshotCompletenessStatusEmpty    SnapshotCompletenessStatus = "empty"
	SnapshotCompletenessStatusPartial  SnapshotCompletenessStatus = "partial"
)

Defines values for SnapshotCompletenessStatus.

func (SnapshotCompletenessStatus) Valid

func (e SnapshotCompletenessStatus) Valid() bool

Valid indicates whether the value is a known member of the SnapshotCompletenessStatus enum.

type SnapshotState

type SnapshotState struct {
	GeneratedAt  time.Time           `json:"generated_at"`
	MutableUntil *openapi_types.Date `json:"mutable_until,omitempty"`
	Status       SnapshotStateStatus `json:"status"`

	// Version Immutable content version for this report identity.
	Version int64 `json:"version"`
}

SnapshotState defines model for SnapshotState.

type SnapshotStateStatus

type SnapshotStateStatus string

SnapshotStateStatus defines model for SnapshotState.Status.

const (
	Final   SnapshotStateStatus = "final"
	Rolling SnapshotStateStatus = "rolling"
)

Defines values for SnapshotStateStatus.

func (SnapshotStateStatus) Valid

func (e SnapshotStateStatus) Valid() bool

Valid indicates whether the value is a known member of the SnapshotStateStatus enum.

type SportsEdgeFunnelReport

type SportsEdgeFunnelReport struct {
	Sports []SportsEdgeSportFunnelReport `json:"sports"`
}

SportsEdgeFunnelReport Per-sport accountable funnel for the full observation snapshot, returned on every page.

type SportsEdgeObservation

type SportsEdgeObservation struct {
	ACount int `json:"a_count"`
	BCount int `json:"b_count"`

	// BackedPrice Provider-backed implied price for the piled outcome at observation time.
	BackedPrice float32 `json:"backed_price"`

	// BackedSharpUsd Raw graded-holder USD on the piled outcome.
	BackedSharpUsd float32 `json:"backed_sharp_usd"`

	// Category Canonical sport bucket.
	Category SportsEdgeObservationCategory `json:"category"`

	// Cohort Source cohort or additive projection view. emerging_pile is projected from wider_holder after source computation, overlaps its funnel denominator, and uses the source row's directional evidence.
	Cohort SportsEdgeObservationCohort `json:"cohort"`

	// ConditionId Raw Polymarket condition id.
	ConditionId string `json:"condition_id"`

	// ConvictionScore Grade-weighted holder-pile score before directional enrichment.
	ConvictionScore       float32 `json:"conviction_score"`
	DirectionalConfidence float32 `json:"directional_confidence"`

	// DirectionalRankScore Default cohort ordering key: conviction_score * (1 + 0.25 * directional_confidence), or conviction_score when confidence is null.
	DirectionalRankScore float32 `json:"directional_rank_score"`

	// DirectionalStatus Truthful state of the directional read, which classifies each graded holder by its fresh synced legs across the game's markets and, when holder_scan_complete is true, by Polymarket's currentValue on both outcomes of this market. A wider_holder row can remain emitted with unavailable and terminal wider_holder_emitted; in_play fails closed instead and terminates as in_play_directional_unavailable.
	DirectionalStatus SportsEdgeObservationDirectionalStatus `json:"directional_status"`

	// EventId Provider event id when available.
	EventId   string `json:"event_id"`
	EventSlug string `json:"event_slug"`

	// GameStartTime Provider-backed kickoff time in UTC.
	GameStartTime time.Time `json:"game_start_time"`

	// GradedHolders Piled-side S/A/B holder count.
	GradedHolders     int `json:"graded_holders"`
	HedgedHolderCount int `json:"hedged_holder_count"`

	// HolderScanComplete True only when neither provider outcome holder page hit the top-100 scan bound. False means the pile is a positive lower bound and cannot satisfy a future capital-promotion gate.
	HolderScanComplete bool `json:"holder_scan_complete"`

	// HolderSnapshotAt Proven provider holder observation time. A warm cache hit uses only the original provider completion time from its companion metadata, never cache-read time. Null, malformed, future, or stale holder time fails in-play closed.
	HolderSnapshotAt time.Time `json:"holder_snapshot_at"`

	// ObservationOnly Always true. This row must not be routed to an order executor.
	ObservationOnly SportsEdgeObservationObservationOnly `json:"observation_only"`

	// ObservedAt UTC instant when this row finished provider/holder evaluation.
	ObservedAt        time.Time `json:"observed_at"`
	OneWayGradedUsd   float32   `json:"one_way_graded_usd"`
	OneWayHolderCount int       `json:"one_way_holder_count"`

	// ParentEventId Provider parent-event id used as the first event-cap identity when available.
	ParentEventId string `json:"parent_event_id"`

	// PiledOutcomeIndex Provider binary-column selector: 0 selects outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. It does not identify home/away or a participant. Use piled_side together with title/event context for display.
	PiledOutcomeIndex SportsEdgeObservationPiledOutcomeIndex `json:"piled_outcome_index"`

	// PiledSide Nullable provider-backed piled-outcome display label. When provider group context is unavailable, it may remain a bare Yes/No/Over/Under; do not use it alone as participant identity.
	PiledSide string `json:"piled_side"`

	// ProviderReadSource Whether the provider holder page came from the shared cache or a live provider read.
	ProviderReadSource SportsEdgeObservationProviderReadSource `json:"provider_read_source"`

	// Rank 1-based rank within this observation cohort and snapshot.
	Rank int `json:"rank"`

	// RawCategory Raw provider category as stored.
	RawCategory string `json:"raw_category"`
	SCount      int    `json:"s_count"`

	// SharpPct Piled-side graded-holder dollar concentration.
	SharpPct float32 `json:"sharp_pct"`

	// SmartScore Canonical signed holder-pile score.
	SmartScore float32 `json:"smart_score"`

	// Title Provider-backed market title.
	Title string `json:"title"`

	// TokenId Provider-backed Polymarket CLOB token id for the piled outcome. Rows without a verified token terminate before emission.
	TokenId  string                        `json:"token_id"`
	TopGrade SportsEdgeObservationTopGrade `json:"top_grade"`

	// Volume Strictly positive stored market volume in USD. Missing, zero, or non-finite volume terminates as invalid_market and is never emitted as an observation.
	Volume float32 `json:"volume"`
}

SportsEdgeObservation One explicitly observation-only holder-pile measurement. It is evidence for cohort evaluation, not an execution instruction, and is isolated from the funded sports-edge-signals route.

type SportsEdgeObservationCategory

type SportsEdgeObservationCategory string

SportsEdgeObservationCategory Canonical sport bucket.

const (
	SportsEdgeObservationCategoryBaseball    SportsEdgeObservationCategory = "Baseball"
	SportsEdgeObservationCategoryBasketball  SportsEdgeObservationCategory = "Basketball"
	SportsEdgeObservationCategoryBoxing      SportsEdgeObservationCategory = "Boxing"
	SportsEdgeObservationCategoryCricket     SportsEdgeObservationCategory = "Cricket"
	SportsEdgeObservationCategoryEsports     SportsEdgeObservationCategory = "Esports"
	SportsEdgeObservationCategoryFootball    SportsEdgeObservationCategory = "Football"
	SportsEdgeObservationCategoryGolf        SportsEdgeObservationCategory = "Golf"
	SportsEdgeObservationCategoryHockey      SportsEdgeObservationCategory = "Hockey"
	SportsEdgeObservationCategoryMMA         SportsEdgeObservationCategory = "MMA"
	SportsEdgeObservationCategoryPickleball  SportsEdgeObservationCategory = "Pickleball"
	SportsEdgeObservationCategoryRacing      SportsEdgeObservationCategory = "Racing"
	SportsEdgeObservationCategorySoccer      SportsEdgeObservationCategory = "Soccer"
	SportsEdgeObservationCategoryTableTennis SportsEdgeObservationCategory = "Table Tennis"
	SportsEdgeObservationCategoryTennis      SportsEdgeObservationCategory = "Tennis"
)

Defines values for SportsEdgeObservationCategory.

func (SportsEdgeObservationCategory) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationCategory enum.

type SportsEdgeObservationCohort

type SportsEdgeObservationCohort string

SportsEdgeObservationCohort Source cohort or additive projection view. emerging_pile is projected from wider_holder after source computation, overlaps its funnel denominator, and uses the source row's directional evidence.

const (
	SportsEdgeObservationCohortEmergingPile SportsEdgeObservationCohort = "emerging_pile"
	SportsEdgeObservationCohortInPlay       SportsEdgeObservationCohort = "in_play"
	SportsEdgeObservationCohortWiderHolder  SportsEdgeObservationCohort = "wider_holder"
)

Defines values for SportsEdgeObservationCohort.

func (SportsEdgeObservationCohort) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationCohort enum.

type SportsEdgeObservationDirectionalStatus

type SportsEdgeObservationDirectionalStatus string

SportsEdgeObservationDirectionalStatus Truthful state of the directional read, which classifies each graded holder by its fresh synced legs across the game's markets and, when holder_scan_complete is true, by Polymarket's currentValue on both outcomes of this market. A wider_holder row can remain emitted with unavailable and terminal wider_holder_emitted; in_play fails closed instead and terminates as in_play_directional_unavailable.

const (
	SportsEdgeObservationDirectionalStatusAvailable        SportsEdgeObservationDirectionalStatus = "available"
	SportsEdgeObservationDirectionalStatusUnavailable      SportsEdgeObservationDirectionalStatus = "unavailable"
	SportsEdgeObservationDirectionalStatusUnknownStale     SportsEdgeObservationDirectionalStatus = "unknown_stale"
	SportsEdgeObservationDirectionalStatusUnknownUngrouped SportsEdgeObservationDirectionalStatus = "unknown_ungrouped"
)

Defines values for SportsEdgeObservationDirectionalStatus.

func (SportsEdgeObservationDirectionalStatus) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationDirectionalStatus enum.

type SportsEdgeObservationObservationOnly

type SportsEdgeObservationObservationOnly bool

SportsEdgeObservationObservationOnly Always true. This row must not be routed to an order executor.

Defines values for SportsEdgeObservationObservationOnly.

func (SportsEdgeObservationObservationOnly) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationObservationOnly enum.

type SportsEdgeObservationPiledOutcomeIndex

type SportsEdgeObservationPiledOutcomeIndex int

SportsEdgeObservationPiledOutcomeIndex Provider binary-column selector: 0 selects outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. It does not identify home/away or a participant. Use piled_side together with title/event context for display.

const (
	SportsEdgeObservationPiledOutcomeIndexN0 SportsEdgeObservationPiledOutcomeIndex = 0
	SportsEdgeObservationPiledOutcomeIndexN1 SportsEdgeObservationPiledOutcomeIndex = 1
)

Defines values for SportsEdgeObservationPiledOutcomeIndex.

func (SportsEdgeObservationPiledOutcomeIndex) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationPiledOutcomeIndex enum.

type SportsEdgeObservationProviderReadSource

type SportsEdgeObservationProviderReadSource string

SportsEdgeObservationProviderReadSource Whether the provider holder page came from the shared cache or a live provider read.

const (
	SportsEdgeObservationProviderReadSourceCached SportsEdgeObservationProviderReadSource = "cached"
	SportsEdgeObservationProviderReadSourceLive   SportsEdgeObservationProviderReadSource = "live"
)

Defines values for SportsEdgeObservationProviderReadSource.

func (SportsEdgeObservationProviderReadSource) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationProviderReadSource enum.

type SportsEdgeObservationTopGrade

type SportsEdgeObservationTopGrade string

SportsEdgeObservationTopGrade defines model for SportsEdgeObservation.TopGrade.

const (
	SportsEdgeObservationTopGradeA SportsEdgeObservationTopGrade = "A"
	SportsEdgeObservationTopGradeB SportsEdgeObservationTopGrade = "B"
	SportsEdgeObservationTopGradeS SportsEdgeObservationTopGrade = "S"
)

Defines values for SportsEdgeObservationTopGrade.

func (SportsEdgeObservationTopGrade) Valid

Valid indicates whether the value is a known member of the SportsEdgeObservationTopGrade enum.

type SportsEdgeSignal

type SportsEdgeSignal struct {
	// ACount A-grade graded holders on the piled side.
	ACount int `json:"a_count"`

	// BCount B-grade graded holders on the piled side.
	BCount int `json:"b_count"`

	// BackedSharpUsd Raw piled-side sharp-money USD.
	BackedSharpUsd float32 `json:"backed_sharp_usd"`

	// Category Canonical sport bucket (e.g. Basketball, Tennis); null when the raw category has no canonical mapping.
	Category *string `json:"category,omitempty"`

	// CategorySkill Shadow-only category evidence over the full uncapped piled-side S/A/B holder allocation. It never changes signal membership, ordering, routing, or sizing.
	CategorySkill SportsEdgeSignalCategorySkill `json:"category_skill"`

	// ConditionId Polymarket condition id.
	ConditionId string `json:"condition_id"`

	// ConvictionScore Grade-weighted pile score (5*s + 4*a + 3*b) * sharp_pct; the raw conviction input to the ranking (see directional_rank_score).
	ConvictionScore float32 `json:"conviction_score"`

	// DirectionalConfidence One-way fraction of the piled graded dollars, in [0, 1] -- the metric orthogonal to sharp_pct. Stale, unknown, hedged, and two-sided dollars dilute it toward zero (conservative). Null when the directional read was not computed or classified nobody.
	DirectionalConfidence *float32 `json:"directional_confidence,omitempty"`

	// DirectionalRankScore The ranking key, descending: conviction_score * (1 + 0.25 * directional_confidence). Equals conviction_score when the directional read is null/zero, so signals without the read rank exactly as before.
	DirectionalRankScore float32 `json:"directional_rank_score"`
	EventSlug            *string `json:"event_slug,omitempty"`

	// GameStartTime Kickoff (UTC). In the future at SNAPSHOT time and within the requested horizon; because the response is served from a shared snapshot cached up to the ~180s TTL, a served kickoff can be up to ~180s in the past relative to the response time. Not a live guarantee that the game has not yet started.
	GameStartTime *time.Time `json:"game_start_time,omitempty"`

	// GradedHolders Piled-side graded holder count (s_count + a_count + b_count).
	GradedHolders int `json:"graded_holders"`

	// HedgedHolderCount Piled-side graded holders classified HEDGED across the game by fresh legs (they back two or more distinct teams). A wallet long both outcomes of this market is not one-way and not counted here. Null when the directional read was not computed or classified nobody.
	HedgedHolderCount *int `json:"hedged_holder_count,omitempty"`

	// NetSide Aggregate recent flow direction on the market; null when unavailable.
	NetSide *SportsEdgeSignalNetSide `json:"net_side,omitempty"`

	// OneWayGradedUsd Piled-side graded USD held by one-way wallets (share-weighted allocation of backed_sharp_usd). Null when the directional read was not computed or classified nobody.
	OneWayGradedUsd *float32 `json:"one_way_graded_usd,omitempty"`

	// OneWayHolderCount Piled-side graded holders read one-way: their fresh open legs across the signal game's markets (cross-market within the one game; moneyline+spread family only) all back the same team, or, when the market's holder scan was complete, Polymarket's currentValue shows no opposite leg on this market worth 10% of the backed leg and no fresh leg opposes it. Null when the directional read was not computed (no groupable game, no holder-level data on this ranking path, or the enrichment read failed) or classified nobody.
	OneWayHolderCount *int `json:"one_way_holder_count,omitempty"`

	// PiledOutcomeIndex Provider binary-column selector: 0 selects outcome_yes/token_id_yes; 1 selects outcome_no/token_id_no. It does not identify home/away or a participant. Use piled_side together with title/event context for display.
	PiledOutcomeIndex int `json:"piled_outcome_index"`

	// PiledSide Nullable provider-backed piled-outcome display label. When provider group context is unavailable, it may remain a bare Yes/No/Over/Under; do not use it alone as participant identity.
	PiledSide *string `json:"piled_side,omitempty"`

	// Rank 1-based rank within the (min_grade-filtered) ranked result.
	Rank int `json:"rank"`

	// RawCategory Raw provider category as stored (e.g. NBA, EPL).
	RawCategory *string `json:"raw_category,omitempty"`

	// SCount S-grade graded holders on the piled side.
	SCount int `json:"s_count"`

	// SharpPct Piled-side dollar concentration backed_usd / (yes_usd + no_usd), in (0.5, 1] for a real pile; null when there is no sharp USD.
	SharpPct *float32 `json:"sharp_pct,omitempty"`

	// SignalCreatedAt UTC time at which the immutable signal snapshot was computed. Every row from one snapshot shares this value; it is not provider market creation time and is not rewritten at request time.
	SignalCreatedAt time.Time `json:"signal_created_at"`

	// SmartScore Canonical sharp-money score (yes_usd - no_usd)/(yes_usd + no_usd) in [-1, 1] (piled-yes positive, piled-no negative); a lower-order ranking tiebreak (after directional_rank_score and conviction_score).
	SmartScore *float32 `json:"smart_score,omitempty"`
	Title      *string  `json:"title,omitempty"`

	// TokenId Polymarket CLOB token id (ERC1155 asset id, decimal string) for the PILED outcome; null when unavailable.
	TokenId *string `json:"token_id,omitempty"`

	// TopGrade Best grade present on the piled side; null when none.
	TopGrade *SportsEdgeSignalTopGrade `json:"top_grade,omitempty"`

	// Volume Market volume (USD).
	Volume *float32 `json:"volume,omitempty"`
}

SportsEdgeSignal One ranked pre-game sports market where graded sharp money is piled on one side, with required-status shadow category evidence from partial forward-observed Polymarket fills.

type SportsEdgeSignalCategorySkill

type SportsEdgeSignalCategorySkill struct {
	AsOf                      time.Time                                   `json:"as_of"`
	BackedSharpUsd            float32                                     `json:"backed_sharp_usd"`
	CanonicalCategory         string                                      `json:"canonical_category"`
	CoveragePct               float32                                     `json:"coverage_pct"`
	CoveredBackedUsd          float32                                     `json:"covered_backed_usd"`
	CoveredHolders            int                                         `json:"covered_holders"`
	EligibleHolders           int                                         `json:"eligible_holders"`
	LargestHolderBackedUsdPct float32                                     `json:"largest_holder_backed_usd_pct"`
	MinimumHolderEventCount   int                                         `json:"minimum_holder_event_count"`
	ModelVersion              string                                      `json:"model_version"`
	ObservationStartedAt      time.Time                                   `json:"observation_started_at"`
	Platform                  SportsEdgeSignalCategorySkillPlatform       `json:"platform"`
	Scope                     SportsEdgeSignalCategorySkillScope          `json:"scope"`
	SourceCoverage            SportsEdgeSignalCategorySkillSourceCoverage `json:"source_coverage"`
	SpecialistBackedUsd       float32                                     `json:"specialist_backed_usd"`
	SpecialistBackedUsdPct    float32                                     `json:"specialist_backed_usd_pct"`
	Status                    SportsEdgeSignalCategorySkillStatus         `json:"status"`
	TaxonomyVersion           string                                      `json:"taxonomy_version"`
	WeightedEdgeMean          float32                                     `json:"weighted_edge_mean"`
	WeightedHolderLowerMean   float32                                     `json:"weighted_holder_lower_mean"`
}

SportsEdgeSignalCategorySkill Shadow-only category evidence over the full uncapped piled-side S/A/B holder allocation. It never changes signal membership, ordering, routing, or sizing.

type SportsEdgeSignalCategorySkillPlatform

type SportsEdgeSignalCategorySkillPlatform string

SportsEdgeSignalCategorySkillPlatform defines model for SportsEdgeSignalCategorySkill.Platform.

const (
	SportsEdgeSignalCategorySkillPlatformPolymarket SportsEdgeSignalCategorySkillPlatform = "polymarket"
)

Defines values for SportsEdgeSignalCategorySkillPlatform.

func (SportsEdgeSignalCategorySkillPlatform) Valid

Valid indicates whether the value is a known member of the SportsEdgeSignalCategorySkillPlatform enum.

type SportsEdgeSignalCategorySkillScope

type SportsEdgeSignalCategorySkillScope string

SportsEdgeSignalCategorySkillScope defines model for SportsEdgeSignalCategorySkill.Scope.

const (
	SportsEdgeSignalCategorySkillScopeObservedGoldskyPrimaryTakerFill SportsEdgeSignalCategorySkillScope = "observed_goldsky_primary_taker_fill"
)

Defines values for SportsEdgeSignalCategorySkillScope.

func (SportsEdgeSignalCategorySkillScope) Valid

Valid indicates whether the value is a known member of the SportsEdgeSignalCategorySkillScope enum.

type SportsEdgeSignalCategorySkillSourceCoverage

type SportsEdgeSignalCategorySkillSourceCoverage string

SportsEdgeSignalCategorySkillSourceCoverage defines model for SportsEdgeSignalCategorySkill.SourceCoverage.

const (
	SportsEdgeSignalCategorySkillSourceCoverageGradedWalletFills          SportsEdgeSignalCategorySkillSourceCoverage = "graded_wallet_fills"
	SportsEdgeSignalCategorySkillSourceCoveragePartialWhaleThresholdFills SportsEdgeSignalCategorySkillSourceCoverage = "partial_whale_threshold_fills"
)

Defines values for SportsEdgeSignalCategorySkillSourceCoverage.

func (SportsEdgeSignalCategorySkillSourceCoverage) Valid

Valid indicates whether the value is a known member of the SportsEdgeSignalCategorySkillSourceCoverage enum.

type SportsEdgeSignalCategorySkillStatus

type SportsEdgeSignalCategorySkillStatus string

SportsEdgeSignalCategorySkillStatus defines model for SportsEdgeSignalCategorySkill.Status.

const (
	SportsEdgeSignalCategorySkillStatusDegraded     SportsEdgeSignalCategorySkillStatus = "degraded"
	SportsEdgeSignalCategorySkillStatusInsufficient SportsEdgeSignalCategorySkillStatus = "insufficient"
	SportsEdgeSignalCategorySkillStatusLive         SportsEdgeSignalCategorySkillStatus = "live"
	SportsEdgeSignalCategorySkillStatusStale        SportsEdgeSignalCategorySkillStatus = "stale"
	SportsEdgeSignalCategorySkillStatusUnknown      SportsEdgeSignalCategorySkillStatus = "unknown"
)

Defines values for SportsEdgeSignalCategorySkillStatus.

func (SportsEdgeSignalCategorySkillStatus) Valid

Valid indicates whether the value is a known member of the SportsEdgeSignalCategorySkillStatus enum.

type SportsEdgeSignalNetSide

type SportsEdgeSignalNetSide string

SportsEdgeSignalNetSide Aggregate recent flow direction on the market; null when unavailable.

const (
	SportsEdgeSignalNetSideBUY  SportsEdgeSignalNetSide = "BUY"
	SportsEdgeSignalNetSideSELL SportsEdgeSignalNetSide = "SELL"
)

Defines values for SportsEdgeSignalNetSide.

func (SportsEdgeSignalNetSide) Valid

func (e SportsEdgeSignalNetSide) Valid() bool

Valid indicates whether the value is a known member of the SportsEdgeSignalNetSide enum.

type SportsEdgeSignalTopGrade

type SportsEdgeSignalTopGrade string

SportsEdgeSignalTopGrade Best grade present on the piled side; null when none.

const (
	SportsEdgeSignalTopGradeA SportsEdgeSignalTopGrade = "A"
	SportsEdgeSignalTopGradeB SportsEdgeSignalTopGrade = "B"
	SportsEdgeSignalTopGradeS SportsEdgeSignalTopGrade = "S"
)

Defines values for SportsEdgeSignalTopGrade.

func (SportsEdgeSignalTopGrade) Valid

func (e SportsEdgeSignalTopGrade) Valid() bool

Valid indicates whether the value is a known member of the SportsEdgeSignalTopGrade enum.

type SportsEdgeSportFunnelReport

type SportsEdgeSportFunnelReport struct {
	// BoardInput Unique condition ids independently visible on the provider-first sports board.
	BoardInput int `json:"board_input"`

	// BoardLiveAvailable Whether the always-applicable live-board source completed as available. False can mean a completed source failure (board_source_unavailable) or live-board work missing an internal configured-scope deadline or the outer fair-wave deadline (board_deadline_unavailable); inspect terminals to distinguish them.
	BoardLiveAvailable bool `json:"board_live_available"`

	// BoardUpcomingAvailable Whether every configured upcoming-board scope completed as available. False with board_upcoming_configured=false means not applicable. When board_upcoming_configured is true and this flag is false, read board_upcoming_status for the cause (it reads unknown, i.e. no recorded cause, only on a snapshot cached before that field existed, which self-clears within one TTL): the board_source_unavailable and board_deadline_unavailable terminals are assigned only to already-started rows (the live half) and are structurally 0 for the upcoming source, so they never explain this flag.
	BoardUpcomingAvailable bool `json:"board_upcoming_available"`

	// BoardUpcomingConfigured Whether a provider-backed upcoming-board source is configured and applicable for this sport. False means not applicable, not provider failure.
	BoardUpcomingConfigured bool `json:"board_upcoming_configured"`

	// BoardUpcomingStatus Why the upcoming-board source is (un)available. Board supply is one canonical-sport union: the bare category owns live truth and every configured composed league scope contributes upcoming rows; folded leagues without a configured board (currently NCAAB and CFL) are not in the upcoming union. available: every configured scope completed truthfully (a successful empty schedule still counts). capacity_limited: provider pagination or a configured upcoming cache published an intentionally bounded complete-event prefix; those rows are excluded from diagnostic-universe input and must not be treated as a complete upcoming universe. Cache-bound prefixes are limited to 3,000 rows or an exact 5,000,000-byte final envelope. source_unavailable: composition failed before a truthful union; resolved scope readers turn half failures into cold_unavailable, so fresh producers are whole-union identity reconciliation or a registry contract failure and carry zero rows. cold_unavailable: every scope completed but at least one reported its upcoming half unavailable because no servable entry was inside the stale-serve bound and the background warm did not land in time; it is not by itself proof of a provider outage. deadline_unavailable: an internal configured-scope deadline or the outer bounded fair wave expired. An internal deadline may retain healthy bare-category or sibling-scope rows; the outer wave records zero rows. These upcoming fields do not describe league live-membership availability. If the bare-category live scope fails, all live rows are dropped even when a league scope completed, because the bare category is the sole live-truth owner. not_configured: no upcoming scope applies to the sport. unknown: exactly one cause -- a snapshot cached before this field existed whose legacy flags recorded an unavailable-but-configured half without saying why. Every freshly computed snapshot reports a concrete status, and a legacy available or not-configured row is reconstructed exactly, so unknown self-clears within one TTL. board_upcoming_available is exactly board_upcoming_status == available.
	BoardUpcomingStatus SportsEdgeSportFunnelReportBoardUpcomingStatus `json:"board_upcoming_status"`

	// BoardUpcomingUnavailableScopes Configured upcoming scopes that did not complete as available. Values are category, a provider league tag slug (nfl, cfb, nba, wnba, nhl, mls, valorant, league-of-legends, counter-strike-2, or dota-2), registry when the compiled scope/projection contract drifted, union when cross-scope identity reconciliation failed, or wave when the outer fair-wave deadline expired before scope-level evidence returned. Empty means no unavailable upcoming scope was identified; this includes healthy/not-configured rows and a legacy cached row. Observation league scopes are upcoming-only and perform no live-membership read.
	BoardUpcomingUnavailableScopes []SportsEdgeSportFunnelReportBoardUpcomingUnavailableScopes `json:"board_upcoming_unavailable_scopes"`

	// Input Stored-universe rows plus provider-board rows missing from storage.
	Input int `json:"input"`

	// Reconciled True exactly when input equals terminal_total.
	Reconciled bool                             `json:"reconciled"`
	Sport      SportsEdgeSportFunnelReportSport `json:"sport"`

	// TerminalTotal Sum of every sparse terminal count.
	TerminalTotal int `json:"terminal_total"`

	// Terminals Sparse counts over the closed 25-value terminal vocabulary: outside_horizon, resolved, provider_closed, provider_excluded, invalid_market, missing_token, missing_stored_market, not_provider_live, board_source_unavailable, board_deadline_unavailable, primary_slate_candidate, zero_indexed_holder_research, capacity_limited, provider_unavailable, holder_deadline_unavailable, holder_computation_unavailable, holder_scan_incomplete, no_current_graded_holder, split_holder_pile, price_unavailable, wider_holder_emitted, in_play_emitted, in_play_stale_observed, in_play_directional_unavailable, or internal_unclassified. primary_slate_candidate means exact admission by the funded route's raw shared signals query before provider/holder enrichment; recent-flow rows rejected by its event, bucket, or total caps remain eligible for wider_holder measurement. capacity_limited is intentional bounded provider-work admission, is fully accounted here, and does not itself set degraded=true. board_source_unavailable means a completed board source was unavailable; board_deadline_unavailable means live-board work missed either an internal configured-scope deadline or the outer fair-wave deadline; provider_unavailable means an attempted holder-provider read failed; holder_deadline_unavailable means holder cache/provider work missed the absolute request deadline; holder_computation_unavailable means post-holder provider or DB-backed price/metadata evaluation was unavailable.
	Terminals map[string]int `json:"terminals"`
}

SportsEdgeSportFunnelReport Independent sports-board supply plus stored-universe terminal accounting for one canonical sport.

type SportsEdgeSportFunnelReportBoardUpcomingStatus

type SportsEdgeSportFunnelReportBoardUpcomingStatus string

SportsEdgeSportFunnelReportBoardUpcomingStatus Why the upcoming-board source is (un)available. Board supply is one canonical-sport union: the bare category owns live truth and every configured composed league scope contributes upcoming rows; folded leagues without a configured board (currently NCAAB and CFL) are not in the upcoming union. available: every configured scope completed truthfully (a successful empty schedule still counts). capacity_limited: provider pagination or a configured upcoming cache published an intentionally bounded complete-event prefix; those rows are excluded from diagnostic-universe input and must not be treated as a complete upcoming universe. Cache-bound prefixes are limited to 3,000 rows or an exact 5,000,000-byte final envelope. source_unavailable: composition failed before a truthful union; resolved scope readers turn half failures into cold_unavailable, so fresh producers are whole-union identity reconciliation or a registry contract failure and carry zero rows. cold_unavailable: every scope completed but at least one reported its upcoming half unavailable because no servable entry was inside the stale-serve bound and the background warm did not land in time; it is not by itself proof of a provider outage. deadline_unavailable: an internal configured-scope deadline or the outer bounded fair wave expired. An internal deadline may retain healthy bare-category or sibling-scope rows; the outer wave records zero rows. These upcoming fields do not describe league live-membership availability. If the bare-category live scope fails, all live rows are dropped even when a league scope completed, because the bare category is the sole live-truth owner. not_configured: no upcoming scope applies to the sport. unknown: exactly one cause -- a snapshot cached before this field existed whose legacy flags recorded an unavailable-but-configured half without saying why. Every freshly computed snapshot reports a concrete status, and a legacy available or not-configured row is reconstructed exactly, so unknown self-clears within one TTL. board_upcoming_available is exactly board_upcoming_status == available.

const (
	SportsEdgeSportFunnelReportBoardUpcomingStatusAvailable           SportsEdgeSportFunnelReportBoardUpcomingStatus = "available"
	SportsEdgeSportFunnelReportBoardUpcomingStatusCapacityLimited     SportsEdgeSportFunnelReportBoardUpcomingStatus = "capacity_limited"
	SportsEdgeSportFunnelReportBoardUpcomingStatusColdUnavailable     SportsEdgeSportFunnelReportBoardUpcomingStatus = "cold_unavailable"
	SportsEdgeSportFunnelReportBoardUpcomingStatusDeadlineUnavailable SportsEdgeSportFunnelReportBoardUpcomingStatus = "deadline_unavailable"
	SportsEdgeSportFunnelReportBoardUpcomingStatusNotConfigured       SportsEdgeSportFunnelReportBoardUpcomingStatus = "not_configured"
	SportsEdgeSportFunnelReportBoardUpcomingStatusSourceUnavailable   SportsEdgeSportFunnelReportBoardUpcomingStatus = "source_unavailable"
	SportsEdgeSportFunnelReportBoardUpcomingStatusUnknown             SportsEdgeSportFunnelReportBoardUpcomingStatus = "unknown"
)

Defines values for SportsEdgeSportFunnelReportBoardUpcomingStatus.

func (SportsEdgeSportFunnelReportBoardUpcomingStatus) Valid

Valid indicates whether the value is a known member of the SportsEdgeSportFunnelReportBoardUpcomingStatus enum.

type SportsEdgeSportFunnelReportBoardUpcomingUnavailableScopes

type SportsEdgeSportFunnelReportBoardUpcomingUnavailableScopes string

SportsEdgeSportFunnelReportBoardUpcomingUnavailableScopes defines model for SportsEdgeSportFunnelReport.BoardUpcomingUnavailableScopes.

func (SportsEdgeSportFunnelReportBoardUpcomingUnavailableScopes) Valid

Valid indicates whether the value is a known member of the SportsEdgeSportFunnelReportBoardUpcomingUnavailableScopes enum.

type SportsEdgeSportFunnelReportSport

type SportsEdgeSportFunnelReportSport string

SportsEdgeSportFunnelReportSport defines model for SportsEdgeSportFunnelReport.Sport.

const (
	SportsEdgeSportFunnelReportSportBaseball    SportsEdgeSportFunnelReportSport = "Baseball"
	SportsEdgeSportFunnelReportSportBasketball  SportsEdgeSportFunnelReportSport = "Basketball"
	SportsEdgeSportFunnelReportSportBoxing      SportsEdgeSportFunnelReportSport = "Boxing"
	SportsEdgeSportFunnelReportSportCricket     SportsEdgeSportFunnelReportSport = "Cricket"
	SportsEdgeSportFunnelReportSportEsports     SportsEdgeSportFunnelReportSport = "Esports"
	SportsEdgeSportFunnelReportSportFootball    SportsEdgeSportFunnelReportSport = "Football"
	SportsEdgeSportFunnelReportSportGolf        SportsEdgeSportFunnelReportSport = "Golf"
	SportsEdgeSportFunnelReportSportHockey      SportsEdgeSportFunnelReportSport = "Hockey"
	SportsEdgeSportFunnelReportSportMMA         SportsEdgeSportFunnelReportSport = "MMA"
	SportsEdgeSportFunnelReportSportPickleball  SportsEdgeSportFunnelReportSport = "Pickleball"
	SportsEdgeSportFunnelReportSportRacing      SportsEdgeSportFunnelReportSport = "Racing"
	SportsEdgeSportFunnelReportSportSoccer      SportsEdgeSportFunnelReportSport = "Soccer"
	SportsEdgeSportFunnelReportSportTableTennis SportsEdgeSportFunnelReportSport = "Table Tennis"
	SportsEdgeSportFunnelReportSportTennis      SportsEdgeSportFunnelReportSport = "Tennis"
)

Defines values for SportsEdgeSportFunnelReportSport.

func (SportsEdgeSportFunnelReportSport) Valid

Valid indicates whether the value is a known member of the SportsEdgeSportFunnelReportSport enum.

type SubmitTraderExportParams

type SubmitTraderExportParams struct {
	// Format Output serialization. json = full envelope document (default); ndjson = full envelope as line 1 then one trade object per line; csv = flat trades rows only.
	Format *SubmitTraderExportParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}

SubmitTraderExportParams defines parameters for SubmitTraderExport.

type SubmitTraderExportParamsFormat

type SubmitTraderExportParamsFormat string

SubmitTraderExportParamsFormat defines parameters for SubmitTraderExport.

const (
	SubmitTraderExportParamsFormatCsv    SubmitTraderExportParamsFormat = "csv"
	SubmitTraderExportParamsFormatJson   SubmitTraderExportParamsFormat = "json"
	SubmitTraderExportParamsFormatNdjson SubmitTraderExportParamsFormat = "ndjson"
)

Defines values for SubmitTraderExportParamsFormat.

func (SubmitTraderExportParamsFormat) Valid

Valid indicates whether the value is a known member of the SubmitTraderExportParamsFormat enum.

type SubmitTraderExportResponse

type SubmitTraderExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TraderExportJob
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *TraderExportJob
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SubmitTraderExportResponse200Headers
	// Headers202 the parsed response headers for an HTTP 202 response
	Headers202 *SubmitTraderExportResponse202Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *SubmitTraderExportResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SubmitTraderExportResponse503Headers
}

func ParseSubmitTraderExportResponse

func ParseSubmitTraderExportResponse(rsp *http.Response) (*SubmitTraderExportResponse, error)

ParseSubmitTraderExportResponse parses an HTTP response from a SubmitTraderExportWithResponse call

func (SubmitTraderExportResponse) ContentType

func (r SubmitTraderExportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitTraderExportResponse) GetBody

func (r SubmitTraderExportResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SubmitTraderExportResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SubmitTraderExportResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (SubmitTraderExportResponse) GetJSON400

func (r SubmitTraderExportResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SubmitTraderExportResponse) GetJSON401

func (r SubmitTraderExportResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SubmitTraderExportResponse) GetJSON402

func (r SubmitTraderExportResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (SubmitTraderExportResponse) GetJSON403

func (r SubmitTraderExportResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SubmitTraderExportResponse) GetJSON404

func (r SubmitTraderExportResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SubmitTraderExportResponse) GetJSON423

func (r SubmitTraderExportResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (SubmitTraderExportResponse) GetJSON429

func (r SubmitTraderExportResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (SubmitTraderExportResponse) GetJSON500

func (r SubmitTraderExportResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (SubmitTraderExportResponse) GetJSON503

func (r SubmitTraderExportResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SubmitTraderExportResponse) Status

Status returns HTTPResponse.Status

func (SubmitTraderExportResponse) StatusCode

func (r SubmitTraderExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitTraderExportResponse200Headers

type SubmitTraderExportResponse200Headers struct {
	XUsageAccounting *string
}

SubmitTraderExportResponse200Headers the declared response headers of an HTTP 200 response for SubmitTraderExport

type SubmitTraderExportResponse202Headers

type SubmitTraderExportResponse202Headers struct {
	XUsageAccounting *string
}

SubmitTraderExportResponse202Headers the declared response headers of an HTTP 202 response for SubmitTraderExport

type SubmitTraderExportResponse429Headers

type SubmitTraderExportResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

SubmitTraderExportResponse429Headers the declared response headers of an HTTP 429 response for SubmitTraderExport

type SubmitTraderExportResponse503Headers

type SubmitTraderExportResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

SubmitTraderExportResponse503Headers the declared response headers of an HTTP 503 response for SubmitTraderExport

type Trader

type Trader struct {
	Address string `json:"address"`

	// CategoryStrengths Per-category performance breakdown (expand=categories or expand[]=categories). Omitted unless expanded. Object keyed by category name; each value is the precomputed trader_rankings.category_ranks payload (rank, total_in_category, total_pnl, scaled_total_pnl, n_markets, wins, losses, win_rate; scaled_total_pnl is a legacy alias that currently equals total_pnl). Pass-through DB JSON: keys and value shape are DB-owned, so the inner shape is intentionally unconstrained and may carry additional compatibility fields.
	CategoryStrengths *map[string]interface{} `json:"category_strengths,omitempty"`
	Grade             *TraderGrade            `json:"grade,omitempty"`

	// Id Prefixed ID (trd_...).
	Id         string     `json:"id"`
	LastActive *time.Time `json:"last_active,omitempty"`
	Pnl        struct {
		// Last30d DEPRECATED, always null. The local pnl_30d rollup over-counted P&L (#5416 class) and is no longer emitted. Read the provider-native monthly window from GET /api/trader/{address}/profile-summary instead.
		Last30d *float32 `json:"last_30d,omitempty"`

		// Last7d DEPRECATED, always null. The local pnl_7d rollup over-counted P&L (#5416 class) and is no longer emitted. Read the provider-native weekly window from GET /api/trader/{address}/profile-summary instead.
		Last7d *float32 `json:"last_7d,omitempty"`

		// Realized For pnl.realized, expand=trust marks a matching native accounting snapshot as computed: native Polymarket realized P&L plus credited maker and taker rebates, with fees already included. Without a matching native accounting snapshot, pnl.realized is omitted and its trust metadata is unavailable. Raw total P&L is never substituted for realized P&L.
		Realized   *float32 `json:"realized,omitempty"`
		Total      *float32 `json:"total,omitempty"`
		Unrealized *float32 `json:"unrealized,omitempty"`
	} `json:"pnl"`

	// QuantMetrics Curated advanced risk/performance metrics (expand=quant_metrics or expand[]=quant_metrics). Omitted unless expanded and backed by a computed row strictly under six hours old; a missing row, NULL computed_at, or age of exactly six hours or more is stale and omitted. Provider-input changes may intentionally lag inside the bounded six-hour window. When present, all listed fields are present (each is a number or null); null means insufficient trade history and must not be treated as 0. The fixed field shape is unchanged.
	QuantMetrics *struct {
		// ConsistencyPercentile Cross-sectional percentile rank of edge consistency versus all traders, 0-100. null when insufficient history.
		ConsistencyPercentile float32 `json:"consistency_percentile"`

		// CopyScore Copyability score, 0-100. Same base as smart_score minus penalties for traits that make a strategy hard to replicate: -20 if fewer than 50 markets traded, -15 if positions are highly concentrated, -15 if position sizing exceeds about 2x Kelly, -10 if the worst single-trade loss exceeds 30%, -10 if edge is inconsistent; result clamped to 0-100. Higher means easier to follow. null when insufficient history.
		CopyScore float32 `json:"copy_score"`

		// EdgeConsistency Stability of the trader's edge over time, 0-1 (higher is more consistent). null when insufficient history.
		EdgeConsistency float32 `json:"edge_consistency"`

		// PfPercentile Cross-sectional percentile rank of profit factor versus all traders, 0-100. null when insufficient history.
		PfPercentile float32 `json:"pf_percentile"`

		// ProfitFactor Gross profit divided by gross loss; greater than 1 is profitable. Capped at 1000 when there are effectively no losses. null when insufficient history.
		ProfitFactor float32 `json:"profit_factor"`

		// Sharpe30d Sharpe ratio over the trailing 30 days (risk-adjusted return; higher is better). Magnitude can be large for small samples. null when insufficient history.
		Sharpe30d float32 `json:"sharpe_30d"`

		// Sharpe7d Sharpe ratio over the trailing 7 days (risk-adjusted return; higher is better). null when insufficient history.
		Sharpe7d float32 `json:"sharpe_7d"`

		// SharpePercentile Cross-sectional percentile rank of the trader's Sharpe ratio versus all traders, 0-100. null when insufficient history.
		SharpePercentile float32 `json:"sharpe_percentile"`

		// SmartScore Composite skill score, 0-100. smart_score = clamp(0, 100, 30*sharpe_percentile_fraction + 20*profit_factor_percentile_fraction + 20*edge_consistency_percentile_fraction + 10*min(1, return_on_capital/2) + 10*equity_smoothness + 10*(1 - min(1, asset_concentration))). Higher is better. null when insufficient history.
		SmartScore float32 `json:"smart_score"`
	} `json:"quant_metrics,omitempty"`
	Rank  *int     `json:"rank,omitempty"`
	Score *float32 `json:"score,omitempty"`
	Stats struct {
		DailyWinRate  *float32 `json:"daily_win_rate,omitempty"`
		MarketsTraded *int     `json:"markets_traded,omitempty"`
		TotalVolume   *float32 `json:"total_volume,omitempty"`
		WinRate       *float32 `json:"win_rate,omitempty"`
	} `json:"stats"`
	Strategy *struct {
		Confidence   *float32 `json:"confidence,omitempty"`
		Description  *string  `json:"description,omitempty"`
		StrategyType *string  `json:"strategy_type,omitempty"`
	} `json:"strategy,omitempty"`

	// StreakTier Hot-streak tier (trailing-7d cross-sectional percentile); a separate axis from the all-time grade. Null when no recent activity.
	StreakTier *TraderStreakTier `json:"streak_tier,omitempty"`

	// SyncStatus synced, unknown, or pending.
	SyncStatus *string    `json:"sync_status,omitempty"`
	SyncedAt   *time.Time `json:"synced_at,omitempty"`

	// Trust Field-level trust metadata. Present only when expand=trust or expand[]=trust is requested.
	Trust    *TraderTrust `json:"trust,omitempty"`
	Username *string      `json:"username,omitempty"`
}

Trader defines model for Trader.

type TraderContext

type TraderContext struct {
	// DataAsOf RFC3339 freshness of the OPEN-position-level data: when a position_summary is present this mirrors its as_of byte-for-byte (latest /positions snapshot, else last completed sync) -- the open-position freshness clock, since the snapshot advances only open positions; otherwise the trader's last completed sync, even if an unserved position snapshot exists. Null when the selected clock is unavailable; a missing breakdown does not establish position or accounting freshness.
	DataAsOf time.Time `json:"data_as_of"`

	// FreshnessNote Human-readable statement of the point-in-time snapshot semantics (data_as_of is the open-position clock -- the latest /positions snapshot, else the last completed sync; the snapshot advances only open positions, so resolved counts and win rate date to the last full sync; native realized P&L follows its accounting snapshot -- not a live feed; re-fetch for fresher data).
	FreshnessNote string `json:"freshness_note"`

	// PositionSummary Aggregate position and P&L coverage for the trader. Omitted entirely (key absent, never null) when the trader is not in the local database or native net economics is unavailable. Realized fields remain numbers when present, including a genuine zero.
	PositionSummary *struct {
		// AsOf RFC3339 freshness of the served OPEN-position data: the trader's latest /positions snapshot, else the last completed sync. The snapshot advances ONLY open positions, so read this as the open-position freshness clock -- the resolved/closed aggregates on this same summary (markets_resolved, resolved_win_rate) advance only on a full sync. The value is the /positions snapshot instant when one exists, so it is typically at or just before the trader-level last sync on a normal sync, and can be AFTER it while the active-view loop refreshes open positions between full syncs. This clock does not establish native accounting freshness. Always present on the wire (serialized as JSON null when the trader has neither a snapshot nor a sync); never omitted.
		AsOf time.Time `json:"as_of"`

		// CostBasisLocked Cost basis (USD) currently tied up in open positions.
		CostBasisLocked float32 `json:"cost_basis_locked"`

		// MarketsOpen Synced markets still open with residual value (open positions with current value > 0).
		MarketsOpen int `json:"markets_open"`

		// MarketsResolved Synced markets that have resolved.
		MarketsResolved int `json:"markets_resolved"`

		// MarketsSynced Markets with locally synced position rows.
		MarketsSynced int `json:"markets_synced"`

		// MarketsTotal Provider markets_traded count when known; null when the provider total is unavailable.
		MarketsTotal int `json:"markets_total"`

		// ResolvedWinRate Win rate as a percentage (0-100) over resolved markets; null when there is no resolved sample.
		ResolvedWinRate float32 `json:"resolved_win_rate"`

		// SyncCoverage markets_synced divided by markets_total when the provider total is known (capped at 1.0); 0.0-1.0. When markets_total is unknown or not positive (null, 0, or negative), this is 1.0 if any markets are synced (else 0.0), so cross-check markets_total before treating 1.0 as full coverage.
		SyncCoverage float32 `json:"sync_coverage"`

		// SyncedRealizedPnl Native net realized P&L (USD) including credited rebates, minus the stored realized component of open positions with positive current value. NUMERIC arithmetic precedes conversion to a JSON number.
		SyncedRealizedPnl float32 `json:"synced_realized_pnl"`

		// TotalRealizedPnl Native net realized P&L (USD) including credited rebates, read directly from the accounting snapshot. Position sync_coverage is separate from this accounting basis.
		TotalRealizedPnl float32 `json:"total_realized_pnl"`

		// UnrealizedMtm Mark-to-market unrealized P&L (USD) on open positions.
		UnrealizedMtm float32 `json:"unrealized_mtm"`
	} `json:"position_summary,omitempty"`
	Trader Trader `json:"trader"`
}

TraderContext defines model for TraderContext.

type TraderExportJob

type TraderExportJob struct {
	Data struct {
		Error           *string                   `json:"error,omitempty"`
		FileSize        *int64                    `json:"file_size,omitempty"`
		Format          TraderExportJobDataFormat `json:"format"`
		JobId           int64                     `json:"job_id"`
		ProcessedTrades *int64                    `json:"processed_trades,omitempty"`
		Status          TraderExportJobDataStatus `json:"status"`
		TotalTrades     *int64                    `json:"total_trades,omitempty"`
	} `json:"data"`
	Meta   ResponseMeta          `json:"meta"`
	Object TraderExportJobObject `json:"object"`
}

TraderExportJob defines model for TraderExportJob.

type TraderExportJobDataFormat

type TraderExportJobDataFormat string

TraderExportJobDataFormat defines model for TraderExportJob.Data.Format.

const (
	TraderExportJobDataFormatCsv    TraderExportJobDataFormat = "csv"
	TraderExportJobDataFormatJson   TraderExportJobDataFormat = "json"
	TraderExportJobDataFormatNdjson TraderExportJobDataFormat = "ndjson"
)

Defines values for TraderExportJobDataFormat.

func (TraderExportJobDataFormat) Valid

func (e TraderExportJobDataFormat) Valid() bool

Valid indicates whether the value is a known member of the TraderExportJobDataFormat enum.

type TraderExportJobDataStatus

type TraderExportJobDataStatus string

TraderExportJobDataStatus defines model for TraderExportJob.Data.Status.

const (
	TraderExportJobDataStatusFailed  TraderExportJobDataStatus = "failed"
	TraderExportJobDataStatusQueued  TraderExportJobDataStatus = "queued"
	TraderExportJobDataStatusReady   TraderExportJobDataStatus = "ready"
	TraderExportJobDataStatusRunning TraderExportJobDataStatus = "running"
)

Defines values for TraderExportJobDataStatus.

func (TraderExportJobDataStatus) Valid

func (e TraderExportJobDataStatus) Valid() bool

Valid indicates whether the value is a known member of the TraderExportJobDataStatus enum.

type TraderExportJobObject

type TraderExportJobObject string

TraderExportJobObject defines model for TraderExportJob.Object.

const (
	TraderExportJobObjectTraderExportJob TraderExportJobObject = "trader_export_job"
)

Defines values for TraderExportJobObject.

func (TraderExportJobObject) Valid

func (e TraderExportJobObject) Valid() bool

Valid indicates whether the value is a known member of the TraderExportJobObject enum.

type TraderExportSnapshot

type TraderExportSnapshot struct {
	Address           string                     `json:"address"`
	Completeness      ExportCompleteness         `json:"completeness"`
	Counts            ExportCounts               `json:"counts"`
	GeneratedAt       time.Time                  `json:"generated_at"`
	LargeExportPolicy LargeExportPolicy          `json:"large_export_policy"`
	Reconciliation    ExportVolumeReconciliation `json:"reconciliation"`
	SourceRange       ExportSourceRange          `json:"source_range"`
}

TraderExportSnapshot defines model for TraderExportSnapshot.

type TraderGrade

type TraderGrade string

TraderGrade defines model for Trader.Grade.

const (
	TraderGradeA TraderGrade = "A"
	TraderGradeB TraderGrade = "B"
	TraderGradeC TraderGrade = "C"
	TraderGradeD TraderGrade = "D"
	TraderGradeF TraderGrade = "F"
	TraderGradeS TraderGrade = "S"
)

Defines values for TraderGrade.

func (TraderGrade) Valid

func (e TraderGrade) Valid() bool

Valid indicates whether the value is a known member of the TraderGrade enum.

type TraderPnl

type TraderPnl struct {
	// Drawdown Underwater (drawdown) series.
	Drawdown []struct {
		CumulativeProfit float32            `json:"cumulative_profit"`
		Date             openapi_types.Date `json:"date"`
		Drawdown         float32            `json:"drawdown"`
	} `json:"drawdown"`

	// Entries Daily cumulative-P&L series (oldest-first).
	Entries []struct {
		CumulativeProfit *float32           `json:"cumulative_profit,omitempty"`
		DailyChange      float32            `json:"daily_change"`
		Date             openapi_types.Date `json:"date"`
		MarketsTraded    *int               `json:"markets_traded,omitempty"`
		TotalPnl         *float32           `json:"total_pnl,omitempty"`
		TotalVolume      *float32           `json:"total_volume,omitempty"`
	} `json:"entries"`

	// FreshnessAt RFC3339 served-freshness clock for this trader's PnL history = traders.daily_pnl_recomputed_at, when the daily_pnl read model this response is served from was last rebuilt; null when it has never been recomputed for the trader. Additive optional (not in `required`).
	FreshnessAt *time.Time `json:"freshness_at,omitempty"`

	// Id Prefixed trader ID (`trd_...`).
	Id string `json:"id"`

	// Monthly Per-month P&L aggregation.
	Monthly []struct {
		MarketsTraded int     `json:"markets_traded"`
		Month         int     `json:"month"`
		Pnl           float32 `json:"pnl"`
		Year          int     `json:"year"`
	} `json:"monthly"`
	Stats struct {
		All struct {
			AvgDay       float32             `json:"avg_day"`
			BestDay      float32             `json:"best_day"`
			BestDayDate  *openapi_types.Date `json:"best_day_date,omitempty"`
			Change       float32             `json:"change"`
			ChangePct    float32             `json:"change_pct"`
			Current      float32             `json:"current"`
			LossDays     int                 `json:"loss_days"`
			RebaseAnchor float32             `json:"rebase_anchor"`
			WinDays      int                 `json:"win_days"`
			WorstDay     float32             `json:"worst_day"`
			WorstDayDate *openapi_types.Date `json:"worst_day_date,omitempty"`
		} `json:"all"`
		D30 struct {
			AvgDay       float32             `json:"avg_day"`
			BestDay      float32             `json:"best_day"`
			BestDayDate  *openapi_types.Date `json:"best_day_date,omitempty"`
			Change       float32             `json:"change"`
			ChangePct    float32             `json:"change_pct"`
			Current      float32             `json:"current"`
			LossDays     int                 `json:"loss_days"`
			RebaseAnchor float32             `json:"rebase_anchor"`
			WinDays      int                 `json:"win_days"`
			WorstDay     float32             `json:"worst_day"`
			WorstDayDate *openapi_types.Date `json:"worst_day_date,omitempty"`
		} `json:"d30"`
		D7 struct {
			AvgDay       float32             `json:"avg_day"`
			BestDay      float32             `json:"best_day"`
			BestDayDate  *openapi_types.Date `json:"best_day_date,omitempty"`
			Change       float32             `json:"change"`
			ChangePct    float32             `json:"change_pct"`
			Current      float32             `json:"current"`
			LossDays     int                 `json:"loss_days"`
			RebaseAnchor float32             `json:"rebase_anchor"`
			WinDays      int                 `json:"win_days"`
			WorstDay     float32             `json:"worst_day"`
			WorstDayDate *openapi_types.Date `json:"worst_day_date,omitempty"`
		} `json:"d7"`
		D90 struct {
			AvgDay       float32             `json:"avg_day"`
			BestDay      float32             `json:"best_day"`
			BestDayDate  *openapi_types.Date `json:"best_day_date,omitempty"`
			Change       float32             `json:"change"`
			ChangePct    float32             `json:"change_pct"`
			Current      float32             `json:"current"`
			LossDays     int                 `json:"loss_days"`
			RebaseAnchor float32             `json:"rebase_anchor"`
			WinDays      int                 `json:"win_days"`
			WorstDay     float32             `json:"worst_day"`
			WorstDayDate *openapi_types.Date `json:"worst_day_date,omitempty"`
		} `json:"d90"`
	} `json:"stats"`

	// YearTotals Per-year P&L totals (ascending by year).
	YearTotals []struct {
		Pnl  float32 `json:"pnl"`
		Year int     `json:"year"`
	} `json:"year_totals"`
}

TraderPnl defines model for TraderPnl.

type TraderStreakTier

type TraderStreakTier string

TraderStreakTier Hot-streak tier (trailing-7d cross-sectional percentile); a separate axis from the all-time grade. Null when no recent activity.

const (
	TraderStreakTierCold    TraderStreakTier = "cold"
	TraderStreakTierCooling TraderStreakTier = "cooling"
	TraderStreakTierHot     TraderStreakTier = "hot"
	TraderStreakTierNeutral TraderStreakTier = "neutral"
	TraderStreakTierRising  TraderStreakTier = "rising"
)

Defines values for TraderStreakTier.

func (TraderStreakTier) Valid

func (e TraderStreakTier) Valid() bool

Valid indicates whether the value is a known member of the TraderStreakTier enum.

type TraderTrust

type TraderTrust struct {
	// CategoryStrengths Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	CategoryStrengths TrustMetadata `json:"category_strengths"`

	// DailyWinRate Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	DailyWinRate TrustMetadata `json:"daily_win_rate"`

	// Grade Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	Grade TrustMetadata `json:"grade"`

	// LastActive Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	LastActive TrustMetadata `json:"last_active"`

	// MarketsTraded Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	MarketsTraded TrustMetadata `json:"markets_traded"`

	// QuantMetrics Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	QuantMetrics TrustMetadata `json:"quant_metrics"`

	// Rank Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	Rank TrustMetadata `json:"rank"`

	// RealizedPnl Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	RealizedPnl TrustMetadata `json:"realized_pnl"`

	// Score Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	Score TrustMetadata `json:"score"`

	// Strategy Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	Strategy TrustMetadata `json:"strategy"`

	// StreakTier Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	StreakTier TrustMetadata `json:"streak_tier"`

	// SyncStatus Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	SyncStatus TrustMetadata `json:"sync_status"`

	// SyncedAt Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	SyncedAt TrustMetadata `json:"synced_at"`

	// TotalPnl Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	TotalPnl TrustMetadata `json:"total_pnl"`

	// TotalVolume Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	TotalVolume TrustMetadata `json:"total_volume"`

	// UnrealizedPnl Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	UnrealizedPnl TrustMetadata `json:"unrealized_pnl"`

	// WinRate Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.
	WinRate TrustMetadata `json:"win_rate"`
}

TraderTrust Field-level trust metadata returned only when GET /api/v1/trader/{address} includes expand=trust.

type TrendingWallet

type TrendingWallet struct {
	Address       string   `json:"address"`
	AllTimePnlUsd *float32 `json:"all_time_pnl_usd,omitempty"`
	AllTimeScore  *float32 `json:"all_time_score,omitempty"`

	// DailyPnlSeries Shape-only daily P&L sparkline across the window, derived from Polymarket's user-pnl cumulative curve (user-pnl-api.polymarket.com) converted to per-day deltas. It conveys the trend of the curve only and is NOT guaranteed to sum to trending_pnl_usd, which is the canonical leaderboard total.
	DailyPnlSeries []struct {
		Date   openapi_types.Date `json:"date"`
		PnlUsd float32            `json:"pnl_usd"`
	} `json:"daily_pnl_series"`

	// Grade All-time trader grade; a separate axis from streak_tier. Led by realized profit (the money actually banked, about 95 percent of the grade), with forecasting calibration, risk-adjusted returns, and consistency as the tie-breaker and proven-trader guardrails: any grade above C requires verified net-positive realized profit, and the top grades also require a real resolved-market track record plus a survivable drawdown. Relative, so it drifts as the cohort moves. Omitted when the trader is Unranked (fewer than 5 markets, insufficient track record to cohort-rank).
	Grade *TrendingWalletGrade `json:"grade,omitempty"`

	// Id Prefixed trader ID (`trd_...`).
	Id         string     `json:"id"`
	LastSynced *time.Time `json:"last_synced,omitempty"`

	// Platform Real provider platform; surfaced, never coerced. Polymarket-only today.
	Platform TrendingWalletPlatform `json:"platform"`

	// ProfileImageUrl Official Polymarket avatar URL (profileImage).
	ProfileImageUrl *string `json:"profile_image_url,omitempty"`

	// Rank 1-based rank within the full ranked set (stable across pages).
	Rank int `json:"rank"`

	// StreakTier Hot-streak tier (trailing-7d cross-sectional percentile). Null when no recent activity.
	StreakTier *TrendingWalletStreakTier `json:"streak_tier,omitempty"`

	// TrendingPnlUsd Polymarket weekly/monthly P&L for the wallet in USD, taken from Polymarket's canonical leaderboard (data-api.polymarket.com/v1/leaderboard?timePeriod=week|month&orderBy=PNL). This is the ranking axis and the rows are returned in Polymarket's by-PNL order; it is the provider's number, not a locally summed realized-leaf total.
	TrendingPnlUsd      float32 `json:"trending_pnl_usd"`
	Username            *string `json:"username,omitempty"`
	WindowMarketsTraded int     `json:"window_markets_traded"`

	// WindowTradeDays Distinct in-window UTC trade days from our trades (0 if the winner is not in our DB).
	WindowTradeDays int     `json:"window_trade_days"`
	WindowVolumeUsd float32 `json:"window_volume_usd"`
}

TrendingWallet defines model for TrendingWallet.

type TrendingWalletGrade

type TrendingWalletGrade string

TrendingWalletGrade All-time trader grade; a separate axis from streak_tier. Led by realized profit (the money actually banked, about 95 percent of the grade), with forecasting calibration, risk-adjusted returns, and consistency as the tie-breaker and proven-trader guardrails: any grade above C requires verified net-positive realized profit, and the top grades also require a real resolved-market track record plus a survivable drawdown. Relative, so it drifts as the cohort moves. Omitted when the trader is Unranked (fewer than 5 markets, insufficient track record to cohort-rank).

const (
	TrendingWalletGradeA TrendingWalletGrade = "A"
	TrendingWalletGradeB TrendingWalletGrade = "B"
	TrendingWalletGradeC TrendingWalletGrade = "C"
	TrendingWalletGradeD TrendingWalletGrade = "D"
	TrendingWalletGradeF TrendingWalletGrade = "F"
	TrendingWalletGradeS TrendingWalletGrade = "S"
)

Defines values for TrendingWalletGrade.

func (TrendingWalletGrade) Valid

func (e TrendingWalletGrade) Valid() bool

Valid indicates whether the value is a known member of the TrendingWalletGrade enum.

type TrendingWalletPlatform

type TrendingWalletPlatform string

TrendingWalletPlatform Real provider platform; surfaced, never coerced. Polymarket-only today.

const (
	TrendingWalletPlatformPolymarket TrendingWalletPlatform = "polymarket"
)

Defines values for TrendingWalletPlatform.

func (TrendingWalletPlatform) Valid

func (e TrendingWalletPlatform) Valid() bool

Valid indicates whether the value is a known member of the TrendingWalletPlatform enum.

type TrendingWalletStreakTier

type TrendingWalletStreakTier string

TrendingWalletStreakTier Hot-streak tier (trailing-7d cross-sectional percentile). Null when no recent activity.

const (
	TrendingWalletStreakTierCold    TrendingWalletStreakTier = "cold"
	TrendingWalletStreakTierCooling TrendingWalletStreakTier = "cooling"
	TrendingWalletStreakTierHot     TrendingWalletStreakTier = "hot"
	TrendingWalletStreakTierNeutral TrendingWalletStreakTier = "neutral"
	TrendingWalletStreakTierRising  TrendingWalletStreakTier = "rising"
)

Defines values for TrendingWalletStreakTier.

func (TrendingWalletStreakTier) Valid

func (e TrendingWalletStreakTier) Valid() bool

Valid indicates whether the value is a known member of the TrendingWalletStreakTier enum.

type TrustCompleteness

type TrustCompleteness struct {
	Detail *string                 `json:"detail,omitempty"`
	Status TrustCompletenessStatus `json:"status"`
}

TrustCompleteness Whether the described value or result set is complete for its stated contract.

type TrustCompletenessStatus

type TrustCompletenessStatus string

TrustCompletenessStatus defines model for TrustCompleteness.Status.

const (
	TrustCompletenessStatusComplete      TrustCompletenessStatus = "complete"
	TrustCompletenessStatusNotApplicable TrustCompletenessStatus = "not_applicable"
	TrustCompletenessStatusNotComputed   TrustCompletenessStatus = "not_computed"
	TrustCompletenessStatusPartial       TrustCompletenessStatus = "partial"
	TrustCompletenessStatusUnavailable   TrustCompletenessStatus = "unavailable"
)

Defines values for TrustCompletenessStatus.

func (TrustCompletenessStatus) Valid

func (e TrustCompletenessStatus) Valid() bool

Valid indicates whether the value is a known member of the TrustCompletenessStatus enum.

type TrustFreshness

type TrustFreshness struct {
	AsOf    *time.Time           `json:"as_of,omitempty"`
	MaxAgeS *int                 `json:"max_age_s,omitempty"`
	Status  TrustFreshnessStatus `json:"status"`
}

TrustFreshness Freshness metadata for a trust-critical value. This is separate from transport cache fields in ResponseMeta.

type TrustFreshnessStatus

type TrustFreshnessStatus string

TrustFreshnessStatus defines model for TrustFreshness.Status.

const (
	TrustFreshnessStatusFresh       TrustFreshnessStatus = "fresh"
	TrustFreshnessStatusNotLive     TrustFreshnessStatus = "not_live"
	TrustFreshnessStatusRefreshing  TrustFreshnessStatus = "refreshing"
	TrustFreshnessStatusStale       TrustFreshnessStatus = "stale"
	TrustFreshnessStatusUnavailable TrustFreshnessStatus = "unavailable"
	TrustFreshnessStatusUnknown     TrustFreshnessStatus = "unknown"
)

Defines values for TrustFreshnessStatus.

func (TrustFreshnessStatus) Valid

func (e TrustFreshnessStatus) Valid() bool

Valid indicates whether the value is a known member of the TrustFreshnessStatus enum.

type TrustMetadata

type TrustMetadata struct {
	// Completeness Whether the described value or result set is complete for its stated contract.
	Completeness TrustCompleteness `json:"completeness"`

	// Freshness Freshness metadata for a trust-critical value. This is separate from transport cache fields in ResponseMeta.
	Freshness TrustFreshness `json:"freshness"`

	// Reconciliation How provider-owned facts were reconciled with stored/read-model values.
	Reconciliation TrustReconciliation `json:"reconciliation"`

	// Source Source metadata for a trust-critical value. Providers and DB/read models own business truth; clients should not infer missing provider facts from titles, slugs, zeros, or empty arrays.
	Source TrustSource `json:"source"`
}

TrustMetadata Shared source/freshness/reconciliation/completeness metadata for public API values that may be cached, stale, partial, computed, or provider-unavailable. Unavailable provider values must be represented with explicit metadata instead of fabricated zeros or empty arrays.

type TrustReconciliation

type TrustReconciliation struct {
	Detail *string                   `json:"detail,omitempty"`
	Status TrustReconciliationStatus `json:"status"`
}

TrustReconciliation How provider-owned facts were reconciled with stored/read-model values.

type TrustReconciliationStatus

type TrustReconciliationStatus string

TrustReconciliationStatus defines model for TrustReconciliation.Status.

const (
	TrustReconciliationStatusComputed       TrustReconciliationStatus = "computed"
	TrustReconciliationStatusDbMirror       TrustReconciliationStatus = "db_mirror"
	TrustReconciliationStatusNotApplicable  TrustReconciliationStatus = "not_applicable"
	TrustReconciliationStatusPartial        TrustReconciliationStatus = "partial"
	TrustReconciliationStatusProviderBacked TrustReconciliationStatus = "provider_backed"
	TrustReconciliationStatusUnavailable    TrustReconciliationStatus = "unavailable"
)

Defines values for TrustReconciliationStatus.

func (TrustReconciliationStatus) Valid

func (e TrustReconciliationStatus) Valid() bool

Valid indicates whether the value is a known member of the TrustReconciliationStatus enum.

type TrustSource

type TrustSource struct {
	// Field Provider field, DB column, or computed field name when applicable.
	Field *string         `json:"field,omitempty"`
	Kind  TrustSourceKind `json:"kind"`

	// Owner Provider, table/read-model, cache, or service that owns the value.
	Owner string `json:"owner"`
}

TrustSource Source metadata for a trust-critical value. Providers and DB/read models own business truth; clients should not infer missing provider facts from titles, slugs, zeros, or empty arrays.

type TrustSourceKind

type TrustSourceKind string

TrustSourceKind defines model for TrustSource.Kind.

const (
	TrustSourceKindCache       TrustSourceKind = "cache"
	TrustSourceKindClientInput TrustSourceKind = "client_input"
	TrustSourceKindComputed    TrustSourceKind = "computed"
	TrustSourceKindDatabase    TrustSourceKind = "database"
	TrustSourceKindProvider    TrustSourceKind = "provider"
	TrustSourceKindUnavailable TrustSourceKind = "unavailable"
)

Defines values for TrustSourceKind.

func (TrustSourceKind) Valid

func (e TrustSourceKind) Valid() bool

Valid indicates whether the value is a known member of the TrustSourceKind enum.

type UpdateWebhook200JSONResponseBodyObject

type UpdateWebhook200JSONResponseBodyObject string

UpdateWebhook200JSONResponseBodyObject defines parameters for UpdateWebhook.

const (
	UpdateWebhook200JSONResponseBodyObjectWebhook UpdateWebhook200JSONResponseBodyObject = "webhook"
)

Defines values for UpdateWebhook200JSONResponseBodyObject.

func (UpdateWebhook200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the UpdateWebhook200JSONResponseBodyObject enum.

type UpdateWebhookJSONRequestBody

type UpdateWebhookJSONRequestBody = UpdateWebhookRequest

UpdateWebhookJSONRequestBody defines body for UpdateWebhook for application/json ContentType.

type UpdateWebhookParams

type UpdateWebhookParams struct {
	// IdempotencyKey Optional safe-retry key. Reuse the same value only when retrying the exact same mutation request body; a different body returns 422 and an in-flight matching request returns 409.
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

UpdateWebhookParams defines parameters for UpdateWebhook.

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	Enabled    *bool               `json:"enabled,omitempty"`
	EventTypes *[]WebhookEventType `json:"event_types,omitempty"`
	Name       *string             `json:"name,omitempty"`

	// Url Replacement public HTTPS callback URL on the default port 443, validated and checked for uniqueness exactly like the create url. HTTPS scheme/host case, trailing DNS dots and port 443 normalize; path/query case is preserved. Changing it resets status to pending_verification and returns a new verification token; the new destination must pass the verification challenge before deliveries resume.
	Url *string `json:"url,omitempty"`
}

UpdateWebhookRequest defines model for UpdateWebhookRequest.

type UpdateWebhookResponse

type UpdateWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WebhookEndpoint                        `json:"data"`
		Meta   ResponseMeta                           `json:"meta"`
		Object UpdateWebhook200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *ApiError
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateWebhookResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateWebhookResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *UpdateWebhookResponse503Headers
}

func ParseUpdateWebhookResponse

func ParseUpdateWebhookResponse(rsp *http.Response) (*UpdateWebhookResponse, error)

ParseUpdateWebhookResponse parses an HTTP response from a UpdateWebhookWithResponse call

func (UpdateWebhookResponse) ContentType

func (r UpdateWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateWebhookResponse) GetBody

func (r UpdateWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateWebhookResponse) GetJSON200

func (r UpdateWebhookResponse) GetJSON200() *struct {
	Data   WebhookEndpoint                        `json:"data"`
	Meta   ResponseMeta                           `json:"meta"`
	Object UpdateWebhook200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateWebhookResponse) GetJSON400

func (r UpdateWebhookResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateWebhookResponse) GetJSON401

func (r UpdateWebhookResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateWebhookResponse) GetJSON402

func (r UpdateWebhookResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (UpdateWebhookResponse) GetJSON403

func (r UpdateWebhookResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateWebhookResponse) GetJSON404

func (r UpdateWebhookResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateWebhookResponse) GetJSON409

func (r UpdateWebhookResponse) GetJSON409() *ApiError

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateWebhookResponse) GetJSON422

func (r UpdateWebhookResponse) GetJSON422() *ApiError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateWebhookResponse) GetJSON423

func (r UpdateWebhookResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (UpdateWebhookResponse) GetJSON429

func (r UpdateWebhookResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (UpdateWebhookResponse) GetJSON500

func (r UpdateWebhookResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateWebhookResponse) GetJSON503

func (r UpdateWebhookResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (UpdateWebhookResponse) Status

func (r UpdateWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateWebhookResponse) StatusCode

func (r UpdateWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWebhookResponse200Headers

type UpdateWebhookResponse200Headers struct {
	XUsageAccounting *string
}

UpdateWebhookResponse200Headers the declared response headers of an HTTP 200 response for UpdateWebhook

type UpdateWebhookResponse429Headers

type UpdateWebhookResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

UpdateWebhookResponse429Headers the declared response headers of an HTTP 429 response for UpdateWebhook

type UpdateWebhookResponse503Headers

type UpdateWebhookResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

UpdateWebhookResponse503Headers the declared response headers of an HTTP 503 response for UpdateWebhook

type Usage

type Usage struct {
	Data struct {
		// DailyUsage UTC-day usage count. Current V1 has no daily hard cap, so limit and remaining are null rather than synthesized.
		DailyUsage struct {
			Limit         *int `json:"limit"`
			Remaining     *int `json:"remaining"`
			ResetAt       int  `json:"reset_at"`
			Used          int  `json:"used"`
			WindowSeconds int  `json:"window_seconds"`
		} `json:"daily_usage"`
		RateLimit struct {
			Limit         int `json:"limit"`
			Remaining     int `json:"remaining"`
			ResetAt       int `json:"reset_at"`
			Used          int `json:"used"`
			WindowSeconds int `json:"window_seconds"`
		} `json:"rate_limit"`
	} `json:"data"`
	Meta   ResponseMeta `json:"meta"`
	Object UsageObject  `json:"object"`
}

Usage defines model for Usage.

type UsageObject

type UsageObject string

UsageObject defines model for Usage.Object.

const (
	UsageObjectUsage UsageObject = "usage"
)

Defines values for UsageObject.

func (UsageObject) Valid

func (e UsageObject) Valid() bool

Valid indicates whether the value is a known member of the UsageObject enum.

type VerifyWebhook200JSONResponseBodyObject

type VerifyWebhook200JSONResponseBodyObject string

VerifyWebhook200JSONResponseBodyObject defines parameters for VerifyWebhook.

const (
	VerifyWebhook200JSONResponseBodyObjectWebhook VerifyWebhook200JSONResponseBodyObject = "webhook"
)

Defines values for VerifyWebhook200JSONResponseBodyObject.

func (VerifyWebhook200JSONResponseBodyObject) Valid

Valid indicates whether the value is a known member of the VerifyWebhook200JSONResponseBodyObject enum.

type VerifyWebhookJSONRequestBody

type VerifyWebhookJSONRequestBody = VerifyWebhookRequest

VerifyWebhookJSONRequestBody defines body for VerifyWebhook for application/json ContentType.

type VerifyWebhookRequest

type VerifyWebhookRequest struct {
	// VerificationToken The one-time token returned on create or on a url change. It is necessary but not sufficient: the destination must also answer the signed webhook.verification challenge with a 2xx.
	VerificationToken string `json:"verification_token"`
}

VerifyWebhookRequest defines model for VerifyWebhookRequest.

type VerifyWebhookResponse

type VerifyWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Data   WebhookEndpoint                        `json:"data"`
		Meta   ResponseMeta                           `json:"meta"`
		Object VerifyWebhook200JSONResponseBodyObject `json:"object"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ApiError
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ApiError
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ApiError
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ApiError
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ApiError
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *ApiError
	// JSON423 the response for an HTTP 423 `application/json` response
	JSON423 *ApiError
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ApiError
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ApiError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ApiError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *VerifyWebhookResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *VerifyWebhookResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *VerifyWebhookResponse503Headers
}

func ParseVerifyWebhookResponse

func ParseVerifyWebhookResponse(rsp *http.Response) (*VerifyWebhookResponse, error)

ParseVerifyWebhookResponse parses an HTTP response from a VerifyWebhookWithResponse call

func (VerifyWebhookResponse) ContentType

func (r VerifyWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifyWebhookResponse) GetBody

func (r VerifyWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifyWebhookResponse) GetJSON200

func (r VerifyWebhookResponse) GetJSON200() *struct {
	Data   WebhookEndpoint                        `json:"data"`
	Meta   ResponseMeta                           `json:"meta"`
	Object VerifyWebhook200JSONResponseBodyObject `json:"object"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifyWebhookResponse) GetJSON400

func (r VerifyWebhookResponse) GetJSON400() *ApiError

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifyWebhookResponse) GetJSON401

func (r VerifyWebhookResponse) GetJSON401() *ApiError

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (VerifyWebhookResponse) GetJSON402

func (r VerifyWebhookResponse) GetJSON402() *ApiError

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (VerifyWebhookResponse) GetJSON403

func (r VerifyWebhookResponse) GetJSON403() *ApiError

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (VerifyWebhookResponse) GetJSON404

func (r VerifyWebhookResponse) GetJSON404() *ApiError

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (VerifyWebhookResponse) GetJSON422

func (r VerifyWebhookResponse) GetJSON422() *ApiError

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (VerifyWebhookResponse) GetJSON423

func (r VerifyWebhookResponse) GetJSON423() *ApiError

GetJSON423 returns the response for an HTTP 423 `application/json` response

func (VerifyWebhookResponse) GetJSON429

func (r VerifyWebhookResponse) GetJSON429() *ApiError

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (VerifyWebhookResponse) GetJSON500

func (r VerifyWebhookResponse) GetJSON500() *ApiError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (VerifyWebhookResponse) GetJSON503

func (r VerifyWebhookResponse) GetJSON503() *ApiError

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (VerifyWebhookResponse) Status

func (r VerifyWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (VerifyWebhookResponse) StatusCode

func (r VerifyWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifyWebhookResponse200Headers

type VerifyWebhookResponse200Headers struct {
	XUsageAccounting *string
}

VerifyWebhookResponse200Headers the declared response headers of an HTTP 200 response for VerifyWebhook

type VerifyWebhookResponse429Headers

type VerifyWebhookResponse429Headers struct {
	RateLimitLimit      *int
	RateLimitRemaining  *int
	RateLimitReset      *int
	RetryAfter          *int
	XRateLimitLimit     *int
	XRateLimitRemaining *int
	XRateLimitReset     *int
	XRequestId          *string
}

VerifyWebhookResponse429Headers the declared response headers of an HTTP 429 response for VerifyWebhook

type VerifyWebhookResponse503Headers

type VerifyWebhookResponse503Headers struct {
	RetryAfter *int
	XRequestId *string
}

VerifyWebhookResponse503Headers the declared response headers of an HTTP 503 response for VerifyWebhook

type WebhookDelivery

type WebhookDelivery struct {
	// AttemptCount Number of delivery attempts made so far.
	AttemptCount int       `json:"attempt_count"`
	CreatedAt    time.Time `json:"created_at"`

	// DeliveredAt When the delivery was first accepted by the destination. Omitted until a delivery succeeds.
	DeliveredAt *time.Time `json:"delivered_at,omitempty"`

	// EventId Stable event id for this delivery; identical across retries of the same logical event.
	EventId   string           `json:"event_id"`
	EventType WebhookEventType `json:"event_type"`
	Id        int64            `json:"id"`

	// LastError Short description of the most recent delivery failure. Omitted when the last attempt succeeded or none has failed.
	LastError *string `json:"last_error,omitempty"`

	// LastResponseStatus HTTP status code of the most recent delivery attempt. Omitted until a response (or transport error) has been recorded.
	LastResponseStatus *int                  `json:"last_response_status,omitempty"`
	Object             WebhookDeliveryObject `json:"object"`

	// Status Delivery lifecycle state (e.g. pending, delivered, dead_letter).
	Status string `json:"status"`
}

WebhookDelivery Owner-scoped view of one webhook delivery attempt. Deliberately omits the request body and the endpoint signing secret: a delivery log never re-exposes the payload or any secret material.

type WebhookDeliveryObject

type WebhookDeliveryObject string

WebhookDeliveryObject defines model for WebhookDelivery.Object.

const (
	WebhookDeliveryObjectWebhookDelivery WebhookDeliveryObject = "webhook_delivery"
)

Defines values for WebhookDeliveryObject.

func (WebhookDeliveryObject) Valid

func (e WebhookDeliveryObject) Valid() bool

Valid indicates whether the value is a known member of the WebhookDeliveryObject enum.

type WebhookEndpoint

type WebhookEndpoint struct {
	CreatedAt    time.Time             `json:"created_at"`
	EventTypes   []WebhookEventType    `json:"event_types"`
	FailureCount int                   `json:"failure_count"`
	Id           int64                 `json:"id"`
	Name         string                `json:"name"`
	Object       WebhookEndpointObject `json:"object"`
	RetryPolicy  WebhookRetryPolicy    `json:"retry_policy"`

	// SigningSecret Returned only on create or rotate-secret.
	SigningSecret              *string              `json:"signing_secret,omitempty"`
	Status                     WebhookStatus        `json:"status"`
	UpdatedAt                  time.Time            `json:"updated_at"`
	Url                        string               `json:"url"`
	Verification               *WebhookVerification `json:"verification,omitempty"`
	VerificationTokenExpiresAt time.Time            `json:"verification_token_expires_at"`
	VerifiedAt                 *time.Time           `json:"verified_at,omitempty"`
}

WebhookEndpoint defines model for WebhookEndpoint.

type WebhookEndpointObject

type WebhookEndpointObject string

WebhookEndpointObject defines model for WebhookEndpoint.Object.

const (
	WebhookEndpointObjectWebhook WebhookEndpointObject = "webhook"
)

Defines values for WebhookEndpointObject.

func (WebhookEndpointObject) Valid

func (e WebhookEndpointObject) Valid() bool

Valid indicates whether the value is a known member of the WebhookEndpointObject enum.

type WebhookEventDescriptor

type WebhookEventDescriptor struct {
	// Description One-line description of when the event fires.
	Description string           `json:"description"`
	Id          WebhookEventType `json:"id"`

	// PayloadShape Short description of the data payload object's shape.
	PayloadShape string `json:"payload_shape"`

	// Status active: the event has a firing producer callsite. dormant: advertised and subscribable, but does not yet enqueue any delivery.
	Status WebhookEventDescriptorStatus `json:"status"`
}

WebhookEventDescriptor Self-describing entry in the webhook event catalog: the event type a subscriber lists in event_types, when it fires, the data payload shape, and whether it currently fires (active) or is reserved (dormant, subscribable but not yet delivered). Pro-only event types (whale_trades_inserted, wallet_grade_changed, insider_radar_flag_raised, smart_money_flow_detected) only deliver to API keys on an active Pro subscription.

type WebhookEventDescriptorStatus

type WebhookEventDescriptorStatus string

WebhookEventDescriptorStatus active: the event has a firing producer callsite. dormant: advertised and subscribable, but does not yet enqueue any delivery.

const (
	WebhookEventDescriptorStatusActive  WebhookEventDescriptorStatus = "active"
	WebhookEventDescriptorStatusDormant WebhookEventDescriptorStatus = "dormant"
)

Defines values for WebhookEventDescriptorStatus.

func (WebhookEventDescriptorStatus) Valid

Valid indicates whether the value is a known member of the WebhookEventDescriptorStatus enum.

type WebhookEventType

type WebhookEventType string

WebhookEventType defines model for WebhookEventType.

const (
	WebhookEventTypeInsiderRadarFlagRaised WebhookEventType = "insider_radar_flag_raised"
	WebhookEventTypeLargePositionsUpdated  WebhookEventType = "large_positions_updated"
	WebhookEventTypeLiveSportsUpdated      WebhookEventType = "live_sports_updated"
	WebhookEventTypeSmartMoneyFlowDetected WebhookEventType = "smart_money_flow_detected"
	WebhookEventTypeWalletGradeChanged     WebhookEventType = "wallet_grade_changed"
	WebhookEventTypeWhaleTraderSynced      WebhookEventType = "whale_trader_synced"
	WebhookEventTypeWhaleTradesInserted    WebhookEventType = "whale_trades_inserted"
)

Defines values for WebhookEventType.

func (WebhookEventType) Valid

func (e WebhookEventType) Valid() bool

Valid indicates whether the value is a known member of the WebhookEventType enum.

type WebhookRetryPolicy

type WebhookRetryPolicy struct {
	MaxAttempts    WebhookRetryPolicyMaxAttempts    `json:"max_attempts"`
	TerminalStatus WebhookRetryPolicyTerminalStatus `json:"terminal_status"`
}

WebhookRetryPolicy defines model for WebhookRetryPolicy.

type WebhookRetryPolicyMaxAttempts

type WebhookRetryPolicyMaxAttempts int

WebhookRetryPolicyMaxAttempts defines model for WebhookRetryPolicy.MaxAttempts.

Defines values for WebhookRetryPolicyMaxAttempts.

func (WebhookRetryPolicyMaxAttempts) Valid

Valid indicates whether the value is a known member of the WebhookRetryPolicyMaxAttempts enum.

type WebhookRetryPolicyTerminalStatus

type WebhookRetryPolicyTerminalStatus string

WebhookRetryPolicyTerminalStatus defines model for WebhookRetryPolicy.TerminalStatus.

const (
	DeadLetter WebhookRetryPolicyTerminalStatus = "dead_letter"
)

Defines values for WebhookRetryPolicyTerminalStatus.

func (WebhookRetryPolicyTerminalStatus) Valid

Valid indicates whether the value is a known member of the WebhookRetryPolicyTerminalStatus enum.

type WebhookStatus

type WebhookStatus string

WebhookStatus defines model for WebhookStatus.

const (
	WebhookStatusActive              WebhookStatus = "active"
	WebhookStatusDisabled            WebhookStatus = "disabled"
	WebhookStatusPendingVerification WebhookStatus = "pending_verification"
)

Defines values for WebhookStatus.

func (WebhookStatus) Valid

func (e WebhookStatus) Valid() bool

Valid indicates whether the value is a known member of the WebhookStatus enum.

type WebhookVerification

type WebhookVerification struct {
	ExpiresAt time.Time `json:"expires_at"`

	// Token One-time verification token returned only on create or URL change. Pass it to POST /api/v1/webhooks/{id}/verify, which activates the endpoint only when the destination also answers the signed webhook.verification challenge with a 2xx.
	Token string `json:"token"`
}

WebhookVerification defines model for WebhookVerification.

type WhaleTrade

type WhaleTrade struct {
	// Id Prefixed ID (wt_...).
	Id     string `json:"id"`
	Market struct {
		// Category Provider-backed market_canonical category.
		Category    *string `json:"category,omitempty"`
		ConditionId string  `json:"condition_id"`
		Id          string  `json:"id"`
		Slug        *string `json:"slug,omitempty"`
		Title       string  `json:"title"`
	} `json:"market"`

	// Outcome Traded outcome label (e.g. "Yes"/"No"/team name), resolved provider-first from the trade's outcome_index against market_canonical (index 0 -> yes, 1 -> no). Distinct axis from side (BUY/SELL): side is the trade direction, outcome is which leg was traded. null for multi-outcome (outcome_index >= 2) or unsynced markets, and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, whose stored outcome_index is not trusted (a defaulted 0 for about a third of those rows; the side is unknown, not defaulted).
	Outcome *string `json:"outcome,omitempty"`
	Price   float32 `json:"price"`

	// RecordedSignalScore 0.0–1.0 signal score written once when the trade row is inserted. Available for new rows after this field launched; legacy rows return null. If a trade is added later, its time-sensitive recorded score reflects that delay.
	RecordedSignalScore float32        `json:"recorded_signal_score"`
	Side                WhaleTradeSide `json:"side"`

	// SignalScore Current 0.0–1.0 normalized signal score. This value can change as scoring context changes.
	SignalScore float32 `json:"signal_score"`
	SizeUsd     float32 `json:"size_usd"`

	// SuspicionScore Persisted live suspicion score from the scorer. Null when the row has no persisted score.
	SuspicionScore int `json:"suspicion_score"`

	// SuspicionTrack Persisted scorer track. Null when a legacy row has no stored track label.
	SuspicionTrack WhaleTradeSuspicionTrack `json:"suspicion_track"`

	// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the traded outcome; null when unavailable (e.g. unsynced markets) and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, where the traded side is unknown.
	TokenId  *string   `json:"token_id,omitempty"`
	TradedAt time.Time `json:"traded_at"`
	Trader   struct {
		Address  string  `json:"address"`
		Grade    *string `json:"grade,omitempty"`
		Id       string  `json:"id"`
		Username *string `json:"username,omitempty"`
	} `json:"trader"`
}

WhaleTrade defines model for WhaleTrade.

type WhaleTradeDetail

type WhaleTradeDetail struct {
	CounterpartyAnalysis CounterpartyAnalysis `json:"counterparty_analysis"`

	// Id Prefixed ID (wt_...).
	Id     string `json:"id"`
	Market struct {
		// Category Provider-backed market_canonical category.
		Category    *string `json:"category,omitempty"`
		ConditionId string  `json:"condition_id"`
		Id          string  `json:"id"`
		Slug        *string `json:"slug,omitempty"`
		Title       string  `json:"title"`
	} `json:"market"`

	// Outcome Traded outcome label (e.g. "Yes"/"No"/team name), resolved provider-first from the trade's outcome_index against market_canonical (index 0 -> yes, 1 -> no). Distinct axis from side (BUY/SELL): side is the trade direction, outcome is which leg was traded. null for multi-outcome (outcome_index >= 2) or unsynced markets, and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, whose stored outcome_index is not trusted (a defaulted 0 for about a third of those rows; the side is unknown, not defaulted).
	Outcome *string `json:"outcome,omitempty"`
	Price   float32 `json:"price"`

	// RecordedSignalScore 0.0–1.0 signal score written once when the trade row is inserted. Available for new rows after this field launched; legacy rows return null. If a trade is added later, its time-sensitive recorded score reflects that delay.
	RecordedSignalScore float32              `json:"recorded_signal_score"`
	Side                WhaleTradeDetailSide `json:"side"`

	// SignalScore Current 0.0–1.0 normalized signal score. This value can change as scoring context changes.
	SignalScore float32 `json:"signal_score"`
	SizeUsd     float32 `json:"size_usd"`

	// SuspicionScore Persisted live suspicion score from the scorer. Null when the row has no persisted score.
	SuspicionScore int `json:"suspicion_score"`

	// SuspicionTrack Persisted scorer track. Null when a legacy row has no stored track label.
	SuspicionTrack WhaleTradeDetailSuspicionTrack `json:"suspicion_track"`

	// TokenId The Polymarket CLOB token id (ERC1155 asset id, decimal string) for the traded outcome; null when unavailable (e.g. unsynced markets) and for a Polymarket trade recorded before 2026-04-02T00:00:00Z, where the traded side is unknown.
	TokenId  *string   `json:"token_id,omitempty"`
	TradedAt time.Time `json:"traded_at"`
	Trader   struct {
		Address  string  `json:"address"`
		Grade    *string `json:"grade,omitempty"`
		Id       string  `json:"id"`
		Username *string `json:"username,omitempty"`
	} `json:"trader"`
}

WhaleTradeDetail defines model for WhaleTradeDetail.

type WhaleTradeDetailSide

type WhaleTradeDetailSide string

WhaleTradeDetailSide defines model for WhaleTradeDetail.Side.

const (
	WhaleTradeDetailSideBUY  WhaleTradeDetailSide = "BUY"
	WhaleTradeDetailSideSELL WhaleTradeDetailSide = "SELL"
)

Defines values for WhaleTradeDetailSide.

func (WhaleTradeDetailSide) Valid

func (e WhaleTradeDetailSide) Valid() bool

Valid indicates whether the value is a known member of the WhaleTradeDetailSide enum.

type WhaleTradeDetailSuspicionTrack

type WhaleTradeDetailSuspicionTrack string

WhaleTradeDetailSuspicionTrack Persisted scorer track. Null when a legacy row has no stored track label.

const (
	WhaleTradeDetailSuspicionTrackFreshConviction WhaleTradeDetailSuspicionTrack = "fresh_conviction"
	WhaleTradeDetailSuspicionTrackSlicedPosition  WhaleTradeDetailSuspicionTrack = "sliced_position"
	WhaleTradeDetailSuspicionTrackWhale           WhaleTradeDetailSuspicionTrack = "whale"
)

Defines values for WhaleTradeDetailSuspicionTrack.

func (WhaleTradeDetailSuspicionTrack) Valid

Valid indicates whether the value is a known member of the WhaleTradeDetailSuspicionTrack enum.

type WhaleTradeHistoryMeta

type WhaleTradeHistoryMeta struct {
	// CacheAgeS Cache age in seconds, null if not cached.
	CacheAgeS    *int `json:"cache_age_s,omitempty"`
	Cached       bool `json:"cached"`
	Completeness struct {
		// Reason Explains that local replay completeness can vary by market and time window.
		Reason string                                  `json:"reason"`
		Status WhaleTradeHistoryMetaCompletenessStatus `json:"status"`
	} `json:"completeness"`

	// RequestId Unique request ID (req_ prefix).
	RequestId string `json:"request_id"`
	Source    struct {
		Kind                       WhaleTradeHistoryMetaSourceKind                       `json:"kind"`
		ProviderFetchAtRequestTime WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime `json:"provider_fetch_at_request_time"`
		Table                      WhaleTradeHistoryMetaSourceTable                      `json:"table"`
	} `json:"source"`
}

WhaleTradeHistoryMeta defines model for WhaleTradeHistoryMeta.

type WhaleTradeHistoryMetaCompletenessStatus

type WhaleTradeHistoryMetaCompletenessStatus string

WhaleTradeHistoryMetaCompletenessStatus defines model for WhaleTradeHistoryMeta.Completeness.Status.

const (
	BestEffort WhaleTradeHistoryMetaCompletenessStatus = "best_effort"
)

Defines values for WhaleTradeHistoryMetaCompletenessStatus.

func (WhaleTradeHistoryMetaCompletenessStatus) Valid

Valid indicates whether the value is a known member of the WhaleTradeHistoryMetaCompletenessStatus enum.

type WhaleTradeHistoryMetaSourceKind

type WhaleTradeHistoryMetaSourceKind string

WhaleTradeHistoryMetaSourceKind defines model for WhaleTradeHistoryMeta.Source.Kind.

const (
	LocalReplay WhaleTradeHistoryMetaSourceKind = "local_replay"
)

Defines values for WhaleTradeHistoryMetaSourceKind.

func (WhaleTradeHistoryMetaSourceKind) Valid

Valid indicates whether the value is a known member of the WhaleTradeHistoryMetaSourceKind enum.

type WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime

type WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime bool

WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime defines model for WhaleTradeHistoryMeta.Source.ProviderFetchAtRequestTime.

const (
	WhaleTradeHistoryMetaSourceProviderFetchAtRequestTimeFalse WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime = false
)

Defines values for WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime.

func (WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime) Valid

Valid indicates whether the value is a known member of the WhaleTradeHistoryMetaSourceProviderFetchAtRequestTime enum.

type WhaleTradeHistoryMetaSourceTable

type WhaleTradeHistoryMetaSourceTable string

WhaleTradeHistoryMetaSourceTable defines model for WhaleTradeHistoryMeta.Source.Table.

const (
	WhaleTradeHistoryMetaSourceTableWhaleAlerts WhaleTradeHistoryMetaSourceTable = "whale_alerts"
)

Defines values for WhaleTradeHistoryMetaSourceTable.

func (WhaleTradeHistoryMetaSourceTable) Valid

Valid indicates whether the value is a known member of the WhaleTradeHistoryMetaSourceTable enum.

type WhaleTradeSide

type WhaleTradeSide string

WhaleTradeSide defines model for WhaleTrade.Side.

const (
	WhaleTradeSideBUY  WhaleTradeSide = "BUY"
	WhaleTradeSideSELL WhaleTradeSide = "SELL"
)

Defines values for WhaleTradeSide.

func (WhaleTradeSide) Valid

func (e WhaleTradeSide) Valid() bool

Valid indicates whether the value is a known member of the WhaleTradeSide enum.

type WhaleTradeSuspicionTrack

type WhaleTradeSuspicionTrack string

WhaleTradeSuspicionTrack Persisted scorer track. Null when a legacy row has no stored track label.

const (
	WhaleTradeSuspicionTrackFreshConviction WhaleTradeSuspicionTrack = "fresh_conviction"
	WhaleTradeSuspicionTrackSlicedPosition  WhaleTradeSuspicionTrack = "sliced_position"
	WhaleTradeSuspicionTrackWhale           WhaleTradeSuspicionTrack = "whale"
)

Defines values for WhaleTradeSuspicionTrack.

func (WhaleTradeSuspicionTrack) Valid

func (e WhaleTradeSuspicionTrack) Valid() bool

Valid indicates whether the value is a known member of the WhaleTradeSuspicionTrack enum.

Directories

Path Synopsis
examples
discovery command
Command discovery prints the live 0xinsider API index and health, which need no credential.
Command discovery prints the live 0xinsider API index and health, which need no credential.
leaderboard command
Command leaderboard prints the first ten graded wallets.
Command leaderboard prints the first ten graded wallets.

Jump to

Keyboard shortcuts

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