Versions in this module Expand all Collapse all v1 v1.3.5 Jul 15, 2026 v1.3.4 Jul 13, 2026 v1.3.3 Jul 13, 2026 v1.3.2 Jul 11, 2026 Changes in this version + const DefaultHost + const ZeroBytes32 + type BuiltQuote struct + PriceE6 pmtypes.String + SignedOrder SignedOrder + SizeE6 pmtypes.String + type CancelQuoteRequest struct + QuoteID QuoteID + RFQID RFQID + type CancelQuoteResponse struct + QuoteID QuoteID + RFQID RFQID + Success bool + type Client struct + func NewClient(host string, opts ...Option) *Client + func (c *Client) AuthAddress() string + func (c *Client) CancelQuote(ctx context.Context, req CancelQuoteRequest, out *CancelQuoteResponse) error + func (c *Client) ChainID() int64 + func (c *Client) Credentials() *clob.Credentials + func (c *Client) GetMarkets(ctx context.Context, params MarketParams, out *MarketPage) error + func (c *Client) Host() string + func (c *Client) Identity() Identity + func (c *Client) RespondLastLook(ctx context.Context, req LastLookRequest, out *LastLookResponse) error + func (c *Client) Signer() *polyauth.Signer + func (c *Client) SubmitQuote(ctx context.Context, req SubmitQuoteRequest, out *QuoteResponse) error + type ComboConditionID string + func NormalizeConditionID(value string) (ComboConditionID, error) + type ConfirmationDecision string + const ConfirmationConfirm + const ConfirmationDecline + type Direction string + const DirectionBuy + const DirectionSell + type ExecutionStatus string + const ExecutionConfirmed + const ExecutionFailed + const ExecutionMatched + const ExecutionMined + const ExecutionRetrying + func (s ExecutionStatus) Terminal() bool + type Identity struct + MakerAddress string + SignatureType clob.SignatureType + SignerAddress string + type LastLookRequest struct + Decision ConfirmationDecision + QuoteID QuoteID + RFQID RFQID + type LastLookResponse struct + QuoteID QuoteID + RFQID RFQID + Success bool + type Market struct + ConditionID string + ID pmtypes.String + Image string + No MarketOutcome + Slug string + Tags []string + Title string + Volume pmtypes.Float64 + Yes MarketOutcome + func (m *Market) UnmarshalJSON(data []byte) error + type MarketOutcome struct + Label string + PositionID pmtypes.String + Price pmtypes.String + type MarketPage struct + Markets []Market + NextCursor pmtypes.String + type MarketParams struct + Cursor string + Exclude []string + Limit int + type Option func(*Client) + func WithAuthAddress(address string) Option + func WithChainID(chainID int64) Option + func WithCredentials(credentials clob.Credentials) Option + func WithHTTPClient(client *http.Client) Option + func WithIdentity(identity Identity) Option + func WithServerTime(enabled bool) Option + func WithSigner(signer *polyauth.Signer) Option + type QuoteBuilder struct + func NewQuoteBuilder(client *Client) *QuoteBuilder + func (b *QuoteBuilder) BuildAndSign(request QuoteRequest, opts QuoteOptions) (*BuiltQuote, error) + type QuoteID string + type QuoteOptions struct + Price string + Size string + Source QuoteSource + type QuoteRequest struct + ConditionID ComboConditionID + Direction Direction + LegPositionIDs []pmtypes.String + NoPositionID pmtypes.String + RFQID RFQID + RequestedSize RequestedSize + RequestorPublicID RequestorPublicID + Side Side + SubmissionDeadline pmtypes.Int64 + YesPositionID pmtypes.String + type QuoteResponse struct + QuoteID QuoteID + RFQID RFQID + Status string + Success bool + type QuoteSource string + const QuoteSourceCollateral + const QuoteSourceInventory + type RFQID string + type RequestedSize struct + Unit RequestedSizeUnit + ValueE6 pmtypes.String + type RequestedSizeUnit string + const RequestedSizeNotional + const RequestedSizeShares + type RequestorPublicID string + type Side string + const SideYes + type SignedOrder struct + Builder string + Expiration pmtypes.String + Maker string + MakerAmount pmtypes.String + Metadata string + Salt pmtypes.String + Side int + Signature string + SignatureType clob.SignatureType + Signer string + TakerAmount pmtypes.String + Timestamp pmtypes.String + TokenID pmtypes.String + type SubmitQuoteRequest struct + PriceE6 pmtypes.String + QuoteID QuoteID + RFQID RFQID + SignedOrder SignedOrder + SizeE6 pmtypes.String