Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuakunShen/polymarket-kit
/ functions
Functions
6,284 in github.com/HuakunShen/polymarket-kit
⨍
Functions
6,284
◇
Types & classes
1,123
↓ 4 callers
Function
floatToRat
(v float64)
go-client/order/rounding.go:111
↓ 4 callers
Method
getJSONWithHeaders
(endpoint string, headers interface{}, result interface{})
go-client/client/clob_client.go:619
↓ 4 callers
Method
getMarketById
* Get a specific market by ID * * @param id - The market ID to fetch * @param query - Optional query parameters * @returns Promise resolvi
src/sdk/gamma-client.ts:665
↓ 4 callers
Method
getPortfolioSummary
* Get comprehensive user portfolio summary * * @param user - User address * @returns Promise resolving to portfolio summary * * @example *
src/sdk/data-client.ts:613
↓ 4 callers
Method
getTags
(ws: WebSocket)
worker-configuration.d.ts:593
↓ 4 callers
Method
getTrades
* Get trades for a user or markets * * @param query - Optional query parameters for filtering and pagination * @returns Promise resolving to arr
src/sdk/data-client.ts:344
↓ 4 callers
Method
get_open_orders
Get all open orders for this account.
py-src/polymarket_kit/clob/trading.py:237
↓ 4 callers
Method
handleError
(error: Error)
src/sdk/websocket-client.ts:313
↓ 4 callers
Method
healthCheck
* Test CLOB client connection and return health status * * @returns Promise resolving to health check status with connection info and caching deta
src/sdk/client.ts:469
↓ 4 callers
Method
health_check
Health check for the Data API Returns: DataHealthResponse: Health check response Raises: DataReques
py-src/polymarket_kit/data/client.py:178
↓ 4 callers
Function
hexToBytes32
hexToBytes32 parses a 32-byte hex value (with optional 0x prefix).
go-client/order/v2.go:157
↓ 4 callers
Function
intPtr
Helper functions to create pointers
go-client/examples/proxy/proxy_demo.go:153
↓ 4 callers
Function
max
(a, b int)
go-client/examples/gamma/find_total_markets.go:222
↓ 4 callers
Method
notifyStatusChange
(status ConnectionStatus)
go-client/realtime/client.go:273
↓ 4 callers
Method
postJSON
(endpoint string, data interface{}, result interface{})
go-client/client/clob_client.go:658
↓ 4 callers
Method
reconnect
reconnect 指数退避重连。CAS 防止 readLoop + healthMonitor 同时触发。
go-client/client/managed_conn.go:244
↓ 4 callers
Function
safeTruncate
( value: string | undefined | null, limit: number, )
src/utils/markdown-formatters.ts:90
↓ 4 callers
Function
tickDecimalsFor
tickDecimalsFor returns the number of decimal places in the given tick size string. "" defaults to "0.01" (the most common Polymarket tick).
go-client/order/rounding.go:39
↓ 4 callers
Function
truncToScale
truncToScale truncates r toward zero at n decimal places. Equivalent to Rust's Decimal::trunc_with_scale.
go-client/order/rounding.go:102
↓ 3 callers
Method
DeriveApiKey
DeriveApiKey derives an existing API key
go-client/client/clob_client.go:327
↓ 3 callers
Method
Error
Error the primary error message. returns a string when successful
go-polymarket/client/gamma/tags500_error.go:37
↓ 3 callers
Method
GetActiveEvents
Convenience methods for common use cases GetActiveEvents gets active events
go-client/gamma/client.go:952
↓ 3 callers
Method
GetAsks
GetAsks gets the asks property value. The asks property returns a []Orderbooks_asksable when successful
go-polymarket/client/clob/orderbooks.go:51
↓ 3 callers
Method
GetAsks
GetAsks gets the asks property value. The asks property returns a []BookItemWithTokenGetResponse_asksable when successful
go-polymarket/client/clob/book_item_with_token_get_response.go:51
↓ 3 callers
Method
GetBids
GetBids gets the bids property value. The bids property returns a []Orderbooks_bidsable when successful
go-polymarket/client/clob/orderbooks.go:61
↓ 3 callers
Method
GetBids
GetBids gets the bids property value. The bids property returns a []BookItemWithTokenGetResponse_bidsable when successful
go-polymarket/client/clob/book_item_with_token_get_response.go:61
↓ 3 callers
Method
GetData
GetData gets the data property value. The data property returns a []EventsPaginationGetResponse_dataable when successful
go-polymarket/client/gamma/events_pagination_get_response.go:37
↓ 3 callers
Method
GetEvents
GetEvents gets the events property value. The events property returns a []Markets_eventsable when successful
go-polymarket/client/gamma/markets.go:110
↓ 3 callers
Method
GetEvents
GetEvents gets the events property value. The events property returns a []MarketsSlugItemWithSlugGetResponse_eventsable when successful
go-polymarket/client/gamma/markets_slug_item_with_slug_get_response.go:110
↓ 3 callers
Method
GetEvents
GetEvents gets the events property value. The events property returns a []MarketsItemMarketsGetResponse_eventsable when successful
go-polymarket/client/gamma/markets_item_markets_get_response.go:110
↓ 3 callers
Method
GetEventsKeyset
GetEventsKeyset gets events using keyset (cursor-based) pagination
go-client/gamma/client.go:996
↓ 3 callers
Method
GetHealth
Health check GetHealth performs a health check on the Data API
go-client/data/client.go:237
↓ 3 callers
Method
GetHistory
GetHistory gets the history property value. The history property returns a []PricesHistoryGetResponse_historyable when successful
go-polymarket/client/clob/prices_history_get_response.go:155
↓ 3 callers
Method
GetMarkets
GetMarkets gets the markets property value. The markets property returns a []EventsSlugItemWithSlugGetResponse_marketsable when successful
go-polymarket/client/gamma/events_slug_item_with_slug_get_response.go:690
↓ 3 callers
Method
GetMarkets
GetMarkets gets the markets property value. The markets property returns a []EventsPaginationGetResponse_data_marketsable when successful
go-polymarket/client/gamma/events_pagination_get_response_escaped_data.go:690
↓ 3 callers
Method
GetMarkets
GetMarkets gets the markets property value. The markets property returns a []Events_marketsable when successful
go-polymarket/client/gamma/events.go:690
↓ 3 callers
Method
GetMarkets
GetMarkets gets the markets property value. The markets property returns a []EventsItemEventsGetResponse_marketsable when successful
go-polymarket/client/gamma/events_item_events_get_response.go:690
↓ 3 callers
Method
GetMarkets
Markets API GetMarkets gets list of markets with optional filtering
go-client/gamma/client.go:782
↓ 3 callers
Method
GetMarketsKeyset
GetMarketsKeyset gets markets using keyset (cursor-based) pagination
go-client/gamma/client.go:1013
↓ 3 callers
Method
GetSeries
GetSeries gets the series property value. The series property returns a []EventsSlugItemWithSlugGetResponse_seriesable when successful
go-polymarket/client/gamma/events_slug_item_with_slug_get_response.go:730
↓ 3 callers
Method
GetSeries
GetSeries gets the series property value. The series property returns a []EventsPaginationGetResponse_data_seriesable when successful
go-polymarket/client/gamma/events_pagination_get_response_escaped_data.go:730
↓ 3 callers
Method
GetSeries
GetSeries gets the series property value. The series property returns a []Events_seriesable when successful
go-polymarket/client/gamma/events.go:730
↓ 3 callers
Method
GetSeries
GetSeries gets the series property value. The series property returns a []EventsItemEventsGetResponse_seriesable when successful
go-polymarket/client/gamma/events_item_events_get_response.go:730
↓ 3 callers
Method
GetTags
GetTags gets the tags property value. The tags property returns a []EventsSlugItemWithSlugGetResponse_tagsable when successful
go-polymarket/client/gamma/events_slug_item_with_slug_get_response.go:760
↓ 3 callers
Method
GetTags
GetTags gets the tags property value. The tags property returns a []EventsPaginationGetResponse_data_tagsable when successful
go-polymarket/client/gamma/events_pagination_get_response_escaped_data.go:760
↓ 3 callers
Method
GetTags
GetTags gets the tags property value. The tags property returns a []Events_tagsable when successful
go-polymarket/client/gamma/events.go:760
↓ 3 callers
Method
GetTags
GetTags gets the tags property value. The tags property returns a []EventsItemEventsGetResponse_tagsable when successful
go-polymarket/client/gamma/events_item_events_get_response.go:760
↓ 3 callers
Method
GetTraderLeaderboard
Leaderboard API GetTraderLeaderboard gets trader leaderboard rankings
go-client/data/client.go:374
↓ 3 callers
Method
GetTrades
GetTrades gets the trades property value. The trades property returns a []TradesPostResponse_tradesable when successful
go-polymarket/client/clob/trades_post_response.go:57
↓ 3 callers
Method
Stats
Stats 返回当前 pool 状态(线程安全)。
go-client/client/ws_pool.go:210
↓ 3 callers
Method
Subscribe
Subscribe 动态添加 asset IDs(对 pool 内所有连接广播)。 仅对新增的 IDs 发送增量 subscribe;重连恢复时才发送全量订阅。
go-client/client/ws_pool.go:137
↓ 3 callers
Method
TestProxyIP
TestProxyIP tests the current IP address by making requests to IP detection services This method is useful for verifying that proxy configuration is w
go-client/gamma/client.go:1118
↓ 3 callers
Function
_normalize_params
(query: BaseModel | Mapping[str, Any] | None)
py-src/polymarket_kit/gamma/client.py:59
↓ 3 callers
Method
close
Gracefully close the connection.
py-src/polymarket_kit/ws/client.py:100
↓ 3 callers
Method
connect
Connect and start read + ping loops. Auto-reconnects on failure.
py-src/polymarket_kit/ws/client.py:95
↓ 3 callers
Function
dataError
(context: string)
src/sdk/data-client.ts:49
↓ 3 callers
Function
fetchBatch
fetchBatch fetches events at a specific offset
go-client/examples/gamma/find_total_markets.go:21
↓ 3 callers
Function
formatMarketDisplay
(markets: MarketType[])
src/mcp/polymarket.ts:73
↓ 3 callers
Function
formatPercentMetric
( label: string, value?: number, )
src/utils/markdown-formatters.ts:70
↓ 3 callers
Function
gammaError
(context: string)
src/sdk/gamma-client.ts:47
↓ 3 callers
Method
getClosedPositions
* Get closed positions for a user * * @param query - Query parameters including required user address * @returns Promise resolving to array of c
src/sdk/data-client.ts:317
↓ 3 callers
Method
getComments
* Get list of comments with optional filtering * * @param query - Query parameters for pagination and filtering * @returns Promise resolving
src/sdk/gamma-client.ts:794
↓ 3 callers
Method
getEventsKeyset
* Get events with cursor-based (keyset) pagination * * @param query - Query parameters including optional after_cursor for pagination * @retu
src/sdk/gamma-client.ts:986
↓ 3 callers
Method
getJSONWithHeadersAndParams
(endpoint string, headers interface{}, params url.Values, result interface{})
go-client/client/clob_client.go:623
↓ 3 callers
Method
getLiveVolume
* Get live volume for an event * * @param query - Query parameters including required event ID * @returns Promise resolving to live volume respo
src/sdk/data-client.ts:482
↓ 3 callers
Method
getMarketsKeyset
* Get markets with cursor-based (keyset) pagination * * @param query - Query parameters including optional after_cursor for pagination * @ret
src/sdk/gamma-client.ts:1022
↓ 3 callers
Method
getOpenInterest
* Get open interest for markets * * @param query - Query parameters including required market array * @returns Promise resolving to array of ope
src/sdk/data-client.ts:458
↓ 3 callers
Method
getPriceHistory
* Fetch price history for a market token with full typing * * @param query - Price history query parameters including market, interval, and option
src/sdk/client.ts:353
↓ 3 callers
Method
getSeriesById
* Get a specific series by ID * * @param id - The series ID to fetch * @param query - Optional query parameters * @returns Promise resolvi
src/sdk/gamma-client.ts:763
↓ 3 callers
Method
getTagById
* Get a specific tag by ID * * @param id - The tag ID to fetch * @param query - Optional query parameters * @returns Promise resolving to
src/sdk/gamma-client.ts:354
↓ 3 callers
Method
getTagBySlug
* Get a specific tag by slug * * @param slug - The tag slug to fetch * @param query - Optional query parameters * @returns Promise resolvi
src/sdk/gamma-client.ts:383
↓ 3 callers
Method
getTotalMarketsTraded
* Get total markets a user has traded * * @param query - Query parameters including required user address * @returns Promise resolving to total
src/sdk/data-client.ts:433
↓ 3 callers
Method
getTotalValue
* Get total value of a user's positions * * @param query - Query parameters including required user address * @returns Promise resolving to tota
src/sdk/data-client.ts:412
↓ 3 callers
Method
getTraderLeaderboard
* Get trader leaderboard rankings * * @param query - Query parameters for category, time period, ordering, and pagination * @returns Promise res
src/sdk/data-client.ts:559
↓ 3 callers
Method
get_active_events
( self, query: UpdatedEventQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:351
↓ 3 callers
Method
get_active_markets
( self, query: UpdatedMarketQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:384
↓ 3 callers
Method
get_aggregated_builder_leaderboard
( self, query: BuilderLeaderboardQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/data/client.py:450
↓ 3 callers
Method
get_current_positions
Get current positions for a user Args: query: Query parameters including required user address Returns:
py-src/polymarket_kit/data/client.py:198
↓ 3 callers
Method
get_daily_builder_volume_timeseries
( self, query: BuilderVolumeQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/data/client.py:458
↓ 3 callers
Method
get_event_by_id
( self, event_id: int, query: EventByIdQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:255
↓ 3 callers
Method
get_tags
( self, query: TagQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:189
↓ 3 callers
Method
info
(...data: any[])
worker-configuration.d.ts:121
↓ 3 callers
Method
initialize
Derive L2 API credentials from private key (L1 → L2 auth). Must be called before any trading operations. Returns ``ApiCreds`` which c
py-src/polymarket_kit/clob/trading.py:86
↓ 3 callers
Method
onError
(error: unknown)
src/wrangler.ts:26
↓ 3 callers
Method
place_limit_order
Place a GTC limit order. Args: token_id: CLOB token ID price: price per share [0.01, 0.99] size: number o
py-src/polymarket_kit/clob/trading.py:124
↓ 3 callers
Method
postJSONWithHeaders
(endpoint string, headers interface{}, data interface{}, result interface{})
go-client/client/clob_client.go:662
↓ 3 callers
Function
safeExecute
(compute: () => A, fallback: () => A)
src/utils/markdown-formatters.ts:41
↓ 3 callers
Method
set
* Set a new stored value
worker-configuration.d.ts:7414
↓ 3 callers
Method
setProxy
* Set HTTP proxy for the CLOB client * * Allows dynamic proxy configuration on the underlying CLOB client. * Works with cached clients, enabling
src/sdk/client.ts:518
↓ 3 callers
Function
signV2Order
signV2Order signs the EIP-712 hash with the given private key and verifies the recovered address matches in.Signer. Returns the 65-byte signature.
go-client/order/v2.go:137
↓ 3 callers
Function
stringPtr
(s string)
go-client/examples/gamma/gamma_example.go:201
↓ 3 callers
Method
trackSubscribe
(assetIDs []string)
go-client/client/market_ws.go:161
↓ 3 callers
Method
unmarshalCommentsResponse
unmarshalCommentsResponse extracts and unmarshals comments response
go-client/gamma/client.go:342
↓ 2 callers
Method
AssetIDs
AssetIDs returns the currently tracked assets.
go-client/client/market_ws.go:155
↓ 2 callers
Method
CreateAndPostOrder
CreateAndPostOrder builds, signs, and posts a limit order in one call.
go-client/client/orders.go:243
↓ 2 callers
Method
GetActiveMarkets
GetActiveMarkets gets active markets
go-client/gamma/client.go:985
↓ 2 callers
Method
GetAddress
GetAddress returns the wallet address
go-client/auth/wallet.go:43
↓ 2 callers
Method
GetAggregatedBuilderLeaderboard
GetAggregatedBuilderLeaderboard gets aggregated builder leaderboard
go-client/data/client.go:388
↓ 2 callers
Method
GetClobTokenIds
GetClobTokenIds gets the clobTokenIds property value. The clobTokenIds property returns a []string when successful
go-polymarket/client/gamma/events_slug_item_with_slug_get_response_escaped_markets.go:145
↓ 2 callers
Method
GetClobTokenIds
GetClobTokenIds gets the clobTokenIds property value. The clobTokenIds property returns a []string when successful
go-polymarket/client/gamma/events_item_events_get_response_escaped_markets.go:145
← previous
next →
101–200 of 6,284, ranked by callers