Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
eoa_key_scout
command
eoa_key_scout tests whether an EOA-owned CLOB API key can be used to place deposit-wallet (sigtype-3) orders.
|
eoa_key_scout tests whether an EOA-owned CLOB API key can be used to place deposit-wallet (sigtype-3) orders. |
|
indexer_probe
command
indexer_probe is a long-running diagnostic that tests whether a Polymarket backend indexer eventually registers an EOA→depositWallet relationship some time after the on-chain WALLET-CREATE.
|
indexer_probe is a long-running diagnostic that tests whether a Polymarket backend indexer eventually registers an EOA→depositWallet relationship some time after the on-chain WALLET-CREATE. |
|
live_siwe_probe
command
live_siwe_probe is a one-shot diagnostic that exercises the full headless onboarding pipeline against production with a throwaway EOA:
|
live_siwe_probe is a one-shot diagnostic that exercises the full headless onboarding pipeline against production with a throwaway EOA: |
|
parity_erc7739
command
parity_erc7739 emits the intermediate ERC-7739 / POLY_1271 wrap-signature hashes for the canonical polydart OrderV2Draft.
|
parity_erc7739 emits the intermediate ERC-7739 / POLY_1271 wrap-signature hashes for the canonical polydart OrderV2Draft. |
|
parity_walletbatch
command
parity_walletbatch emits the intermediate hashes of a canonical DepositWallet.Batch typed-data sample.
|
parity_walletbatch emits the intermediate hashes of a canonical DepositWallet.Batch typed-data sample. |
|
polygolem
command
|
|
|
polygolem_docs
command
|
|
|
internal
|
|
|
auth
Package auth provides Polymarket authentication primitives — L0 / L1 / L2 auth, EIP-712 signing, deposit-wallet CREATE2 derivation, and builder attribution.
|
Package auth provides Polymarket authentication primitives — L0 / L1 / L2 auth, EIP-712 signing, deposit-wallet CREATE2 derivation, and builder attribution. |
|
cli
Package cli builds the polygolem Cobra command tree and wires command handlers to typed protocol, execution, and safety packages.
|
Package cli builds the polygolem Cobra command tree and wires command handlers to typed protocol, execution, and safety packages. |
|
clob
Package clob is the CLOB API client — full read plus authenticated surface, EIP-712, POLY_1271, and ERC-7739 signing paths.
|
Package clob is the CLOB API client — full read plus authenticated surface, EIP-712, POLY_1271, and ERC-7739 signing paths. |
|
config
Package config loads polygolem configuration via Viper — defaults, environment binding, file overrides, validation, and credential redaction.
|
Package config loads polygolem configuration via Viper — defaults, environment binding, file overrides, validation, and credential redaction. |
|
dataapi
Package dataapi is the read-only Polymarket Data API client — positions, volume, trades history, and leaderboards.
|
Package dataapi is the read-only Polymarket Data API client — positions, volume, trades history, and leaderboards. |
|
errors
Package errors provides structured error types and code helpers used across polygolem clients and command handlers.
|
Package errors provides structured error types and code helpers used across polygolem clients and command handlers. |
|
execution
Package execution defines the executor interface and ships the paper-mode implementation.
|
Package execution defines the executor interface and ships the paper-mode implementation. |
|
gamma
Package gamma is the typed Gamma HTTP client used internally by polygolem — markets, events, search, tags, series, sports, comments, and profiles.
|
Package gamma is the typed Gamma HTTP client used internally by polygolem — markets, events, search, tags, series, sports, comments, and profiles. |
|
marketdiscovery
Package marketdiscovery provides high-level market discovery by joining Gamma metadata with CLOB tick-size and orderbook details.
|
Package marketdiscovery provides high-level market discovery by joining Gamma metadata with CLOB tick-size and orderbook details. |
|
modes
Package modes parses and gates the polygolem operating modes — read-only, paper, and live.
|
Package modes parses and gates the polygolem operating modes — read-only, paper, and live. |
|
orders
Package orders defines OrderIntent, the fluent builder, validation rules, and order lifecycle states used by both paper and live executors.
|
Package orders defines OrderIntent, the fluent builder, validation rules, and order lifecycle states used by both paper and live executors. |
|
output
Package output renders command results as either tables or stable JSON envelopes and emits structured error responses.
|
Package output renders command results as either tables or stable JSON envelopes and emits structured error responses. |
|
paper
Package paper holds local-only paper-trading state — positions, fills, and persisted snapshots.
|
Package paper holds local-only paper-trading state — positions, fills, and persisted snapshots. |
|
polytypes
Package polytypes holds the Polymarket protocol-level types shared across CLOB, Gamma, Data API, and stream clients.
|
Package polytypes holds the Polymarket protocol-level types shared across CLOB, Gamma, Data API, and stream clients. |
|
preflight
Package preflight runs local and remote readiness probes before polygolem performs any state-changing operation.
|
Package preflight runs local and remote readiness probes before polygolem performs any state-changing operation. |
|
relayer
Package relayer is the builder relayer client — WALLET-CREATE, WALLET batch, nonce reads, and operation polling.
|
Package relayer is the builder relayer client — WALLET-CREATE, WALLET batch, nonce reads, and operation polling. |
|
risk
Package risk provides per-trade caps, daily loss limits, and the circuit breaker that gates live order submission.
|
Package risk provides per-trade caps, daily loss limits, and the circuit breaker that gates live order submission. |
|
rpc
Package rpc provides direct on-chain helpers for Polygon operations — primarily ERC-20 pUSD transfers from an EOA used by deposit-wallet funding.
|
Package rpc provides direct on-chain helpers for Polygon operations — primarily ERC-20 pUSD transfers from an EOA used by deposit-wallet funding. |
|
stream
Package stream provides typed WebSocket clients for Polymarket CLOB market streams with reconnect and event deduplication.
|
Package stream provides typed WebSocket clients for Polymarket CLOB market streams with reconnect and event deduplication. |
|
transport
Package transport is the shared HTTP client layer — retry, rate limiting, circuit breaking, and credential redaction.
|
Package transport is the shared HTTP client layer — retry, rate limiting, circuit breaking, and credential redaction. |
|
wallet
Package wallet re-exports pkg/wallet as a compatibility shim.
|
Package wallet re-exports pkg/wallet as a compatibility shim. |
|
pkg
|
|
|
bridge
Package bridge is a client for the Polymarket Bridge API — supported assets, deposit addresses, deposit-status polling, and quotes.
|
Package bridge is a client for the Polymarket Bridge API — supported assets, deposit addresses, deposit-status polling, and quotes. |
|
clob
Package clob exposes the public Polymarket CLOB SDK surface.
|
Package clob exposes the public Polymarket CLOB SDK surface. |
|
contracts
Package contracts exposes Polymarket Polygon contract addresses and contract-level readiness checks.
|
Package contracts exposes Polymarket Polygon contract addresses and contract-level readiness checks. |
|
ctf
Package ctf provides utilities for Conditional Token Framework (CTF) on-chain operations on Polymarket.
|
Package ctf provides utilities for Conditional Token Framework (CTF) on-chain operations on Polymarket. |
|
data
Package data exposes the public, read-only Polymarket Data API SDK surface.
|
Package data exposes the public, read-only Polymarket Data API SDK surface. |
|
enabletrading
Package enabletrading exposes the SDK primitives for Polymarket's "Enable Trading" UI flow: EOA-signed ClobAuth credential generation and deposit-wallet approval-batch signing.
|
Package enabletrading exposes the SDK primitives for Polymarket's "Enable Trading" UI flow: EOA-signed ClobAuth credential generation and deposit-wallet approval-batch signing. |
|
experimental/auth
Package auth provides an experimental public API for Polymarket signing primitives.
|
Package auth provides an experimental public API for Polymarket signing primitives. |
|
experimental/orders
Package orders provides an experimental public API for building and validating Polymarket V2 orders.
|
Package orders provides an experimental public API for building and validating Polymarket V2 orders. |
|
funding
Package funding exposes explicit on-chain funding operations needed after deposit-wallet onboarding.
|
Package funding exposes explicit on-chain funding operations needed after deposit-wallet onboarding. |
|
gamma
Package gamma is a read-only client for the Polymarket Gamma API surfaced for embedded use by downstream Go consumers.
|
Package gamma is a read-only client for the Polymarket Gamma API surfaced for embedded use by downstream Go consumers. |
|
marketdata
Package marketdata turns raw Polymarket market-stream events into per-token orderbook/share-price snapshots.
|
Package marketdata turns raw Polymarket market-stream events into per-token orderbook/share-price snapshots. |
|
marketresolver
Package marketresolver resolves Polymarket market identifiers — slug, asset, timeframe, or window-start time — into canonical token IDs.
|
Package marketresolver resolves Polymarket market identifiers — slug, asset, timeframe, or window-start time — into canonical token IDs. |
|
orderbook
Package orderbook is a read-only Polymarket CLOB order-book reader.
|
Package orderbook is a read-only Polymarket CLOB order-book reader. |
|
orderresults
Package orderresults joins Polymarket account history into one read-only operator report: Data API positions/results plus optional authenticated CLOB open orders and trade history.
|
Package orderresults joins Polymarket account history into one read-only operator report: Data API positions/results plus optional authenticated CLOB open orders and trade history. |
|
pagination
Package pagination provides generic helpers for paginating cursor-based and offset-based HTTP APIs and for parallelizing batch work.
|
Package pagination provides generic helpers for paginating cursor-based and offset-based HTTP APIs and for parallelizing batch work. |
|
plugins
Package plugins defines extension points for third-party consumers.
|
Package plugins defines extension points for third-party consumers. |
|
relayer
Package relayer is the public Go SDK surface for the Polymarket Builder Relayer V2 (https://relayer-v2.polymarket.com).
|
Package relayer is the public Go SDK surface for the Polymarket Builder Relayer V2 (https://relayer-v2.polymarket.com). |
|
settlement
Package settlement turns redeemable Polymarket V2 positions into deposit-wallet WALLET batches that route through the V2 collateral adapters and return pUSD to the wallet.
|
Package settlement turns redeemable Polymarket V2 positions into deposit-wallet WALLET batches that route through the V2 collateral adapters and return pUSD to the wallet. |
|
stream
Package stream exposes the public, read-only Polymarket CLOB WebSocket SDK.
|
Package stream exposes the public, read-only Polymarket CLOB WebSocket SDK. |
|
types
Package types contains public DTOs shared by polygolem SDK packages.
|
Package types contains public DTOs shared by polygolem SDK packages. |
|
universal
Package universal is a single-stop client for all Polymarket data and authenticated trading operations.
|
Package universal is a single-stop client for all Polymarket data and authenticated trading operations. |
|
wallet
Package wallet provides deposit-wallet primitives — CREATE2 derivation, status checks, deploy and batch-signing helpers.
|
Package wallet provides deposit-wallet primitives — CREATE2 derivation, status checks, deploy and batch-signing helpers. |
Click to show internal directories.
Click to hide internal directories.