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
↓ 381 callers
Method
String
()
go-polymarket/client/clob/prices/prices_escaped_side.go:12
↓ 258 callers
Method
log
(...data: any[])
worker-configuration.d.ts:123
↓ 162 callers
Method
get
( key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>, )
worker-configuration.d.ts:1843
↓ 41 callers
Method
error
(...data: any[])
worker-configuration.d.ts:113
↓ 26 callers
Method
Close
Close closes the WebSocket connection
go-client/examples/websocket/websocket_subscription.go:246
↓ 25 callers
Method
extractResponseData
* Helper method to safely extract data from API response * Throws an error if data is null when response is ok
src/sdk/gamma-client.ts:237
↓ 23 callers
Function
runClobOperation
( operation: () => Promise<T>, options: ClobOperationOptions = {}, )
src/routes/clob.ts:138
↓ 21 callers
Method
makeRequest
makeRequest is the ctx-less convenience wrapper; existing callers go through here with context.Background().
go-client/gamma/client.go:166
↓ 19 callers
Method
_get_data
( self, endpoint: str, query: BaseModel | Mapping[str, Any] | None, operation: str )
py-src/polymarket_kit/gamma/client.py:148
↓ 18 callers
Method
extractResponseData
( response: ApiResponse<T>, operation: string, )
src/sdk/clob-sdk.ts:223
↓ 17 callers
Method
extractResponseData
extractResponseData safely extracts data from API response
go-client/gamma/client.go:231
↓ 16 callers
Method
Process
Process checks if a message is a duplicate. Returns true if the message is new and should be forwarded to the consumer.
go-client/client/aggregator.go:35
↓ 15 callers
Function
formatCurrencyMetric
( label: string, value?: number, )
src/utils/markdown-formatters.ts:64
↓ 15 callers
Function
newSDK
()
go-client/gamma/gamma_test.go:10
↓ 14 callers
Function
formatEventToMarkdown
( event: EventData, options: MarkdownOptionsInput = {}, )
src/utils/markdown-formatters.ts:300
↓ 14 callers
Method
log
(...args: unknown[])
src/sdk/websocket-client.ts:348
↓ 13 callers
Method
_get_data
( self, endpoint: str, query: BaseModel | Mapping[str, Any] | None, operation: str )
py-src/polymarket_kit/data/client.py:160
↓ 13 callers
Method
callClient
( operation: string, task: (client: ClobClient) => Promise<A>, )
src/sdk/client.ts:222
↓ 13 callers
Method
extractResponseData
* Helper method to safely extract data from API response * Throws an error if data is null when response is ok
src/sdk/data-client.ts:241
↓ 13 callers
Function
get
(path: string)
src/__tests__/e2e.test.ts:22
↓ 13 callers
Method
json
()
worker-configuration.d.ts:2111
↓ 13 callers
Method
makeRequest
makeRequest makes an HTTP request and returns the response
go-client/data/client.go:166
↓ 13 callers
Method
on
* Register event handlers
src/sdk/websocket-client.ts:119
↓ 13 callers
Method
run
( operation: () => Promise<T>, context: string, )
src/sdk/clob-public-client.ts:81
↓ 12 callers
Method
extractResponseData
extractResponseData safely extracts data from API response
go-client/data/client.go:223
↓ 12 callers
Function
getProperty
( obj: unknown, prop: K, )
src/utils/markdown-formatters.ts:110
↓ 10 callers
Function
clobError
(context: string)
src/sdk/client.ts:41
↓ 10 callers
Function
handleApiError
(error: unknown, context: string)
src/mcp/polymarket.ts:48
↓ 9 callers
Function
boolPtr
(b bool)
go-client/examples/gamma/gamma_example.go:205
↓ 9 callers
Method
createL2Headers
(args *types.L2HeaderArgs)
go-client/client/clob_client.go:745
↓ 9 callers
Method
getCurrentPositions
* Get current positions for a user * * @param query - Query parameters including required user address * @returns Promise resolving to array of
src/sdk/data-client.ts:292
↓ 9 callers
Function
intPtr
Helper functions to create pointers
go-client/examples/gamma/gamma_example.go:197
↓ 8 callers
Method
GetHealth
Health check GetHealth performs a health check on the Gamma API
go-client/gamma/client.go:512
↓ 8 callers
Method
GetPrivateKey
GetPrivateKey returns the private key
go-client/auth/wallet.go:53
↓ 8 callers
Function
collectMetrics
(metrics: Array<string | undefined>)
src/utils/markdown-formatters.ts:87
↓ 8 callers
Function
formatMarketToMarkdown
( market: MarketData, options: MarkdownOptionsInput = {}, )
src/utils/markdown-formatters.ts:121
↓ 8 callers
Method
getActiveEvents
* Get active events * * @param query - Optional query parameters (excluding active which is set to true) * @returns Promise resolving to arra
src/sdk/gamma-client.ts:896
↓ 8 callers
Method
getTeams
* Get list of teams with optional filtering * * @param query - Optional query parameters to filter teams * @returns Promise resolving to arra
src/sdk/gamma-client.ts:319
↓ 8 callers
Method
log
(level slog.Level, msg string, args ...any)
go-client/client/ws_pool.go:304
↓ 8 callers
Function
newSDK
()
go-client/data/data_test.go:9
↓ 8 callers
Function
ratToDecimal6
ratToDecimal6 multiplies by 10^6 and rounds half-up to integer string.
go-client/order/rounding.go:120
↓ 8 callers
Method
send
(message: Body, options?: QueueSendOptions)
worker-configuration.d.ts:1978
↓ 8 callers
Method
warn
(...data: any[])
worker-configuration.d.ts:136
↓ 7 callers
Method
GetEvents
Events API GetEvents gets list of events with optional filtering
go-client/gamma/client.go:646
↓ 7 callers
Method
GetTags
Tags API GetTags gets list of tags with optional filtering
go-client/gamma/client.go:545
↓ 7 callers
Function
NewAggregator
NewAggregator creates an aggregator with the given capacity and TTL.
go-client/client/aggregator.go:25
↓ 7 callers
Method
SetString
(value *string)
go-polymarket/client/clob/health_get_response.go:81
↓ 7 callers
Method
Validate
()
go-client/types/websocket.go:280
↓ 7 callers
Method
_get_optional_data
( self, endpoint: str, query: BaseModel | Mapping[str, Any] | None, operation: str )
py-src/polymarket_kit/gamma/client.py:165
↓ 7 callers
Function
formatLiteralMetric
( label: string, value: string | number | undefined, )
src/utils/markdown-formatters.ts:76
↓ 7 callers
Method
from_dict
(cls, d: dict)
py-src/polymarket_kit/ws/types.py:158
↓ 7 callers
Method
getEvents
* Get list of events with optional filtering * * @param query - Query parameters for pagination and filtering * @returns Promise resolving to
src/sdk/gamma-client.ts:521
↓ 7 callers
Method
getJSONWithParams
(endpoint string, params url.Values, result interface{})
go-client/client/clob_client.go:606
↓ 6 callers
Method
GetAddressHex
GetAddressHex returns the wallet address as a hex string
go-client/auth/wallet.go:48
↓ 6 callers
Method
_ensure_init
(self)
py-src/polymarket_kit/clob/trading.py:254
↓ 6 callers
Method
append
( content: string | ReadableStream | Response, options?: ContentOptions, )
worker-configuration.d.ts:1529
↓ 6 callers
Method
close
()
worker-configuration.d.ts:3011
↓ 6 callers
Method
getEventById
* Get a specific event by ID * * @param id - The event ID to fetch * @param query - Optional query parameters * @returns Promise resolving
src/sdk/gamma-client.ts:568
↓ 6 callers
Method
getEventBySlug
* Get a specific event by slug * * @param slug - The event slug to fetch * @param query - Optional query parameters * @returns Promise res
src/sdk/gamma-client.ts:617
↓ 6 callers
Method
getMarketBySlug
* Get a specific market by slug * * @param slug - The market slug to fetch * @param query - Optional query parameters * @returns Promise r
src/sdk/gamma-client.ts:714
↓ 6 callers
Method
getUserActivity
* Get user activity * * @param query - Query parameters including required user address * @returns Promise resolving to array of activity object
src/sdk/data-client.ts:366
↓ 6 callers
Method
get_events
( self, query: UpdatedEventQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:243
↓ 6 callers
Method
makeRequestCtx
makeRequestCtx makes an HTTP request and returns the response. ctx cancellation aborts the in-flight HTTP call (via net/http context support); useful
go-client/gamma/client.go:174
↓ 6 callers
Method
parseJSONArray
parseJSONArray parses a JSON array from either string or already parsed array
go-client/gamma/client.go:416
↓ 6 callers
Method
parseJsonArray
* Parse JSON array string or return as-is if already an array
src/sdk/gamma-client.ts:287
↓ 6 callers
Method
search
* Search across markets, events, and profiles * * @param query - Search query parameters * @returns Promise resolving to search results *
src/sdk/gamma-client.ts:872
↓ 6 callers
Method
transformEventData
* Transform event data from Gamma API to match expected schema * Transforms nested market data as well
src/sdk/gamma-client.ts:271
↓ 6 callers
Method
transformEventData
transformEventData transforms event data to parse JSON string fields in nested markets
go-client/gamma/client.go:471
↓ 5 callers
Method
GetEvents
()
go-polymarket/client/gamma/markets.go:791
↓ 5 callers
Method
GetServerTime
GetServerTime gets the server time
go-client/client/clob_client.go:102
↓ 5 callers
Function
SplitArrayMessage
SplitArrayMessage 将 JSON 数组消息拆分为单条消息。 如果输入不是数组,返回 nil(调用方应按单条处理)。
go-client/client/aggregator.go:131
↓ 5 callers
Method
Stop
Stop gracefully closes the connection.
go-client/client/user_ws.go:129
↓ 5 callers
Method
cancel
(reason?: any)
worker-configuration.d.ts:2293
↓ 5 callers
Function
computeAmounts
computeAmounts returns (makerAmount, takerAmount) as 6-decimal-encoded uint strings. Matches rs-clob-client limit-order semantics exactly: notional =
go-client/order/rounding.go:56
↓ 5 callers
Method
connect
* Connect to the WebSocket server
src/sdk/websocket-client.ts:127
↓ 5 callers
Method
getActiveMarkets
* Get active markets * * @param query - Optional query parameters (excluding active which is set to true) * @returns Promise resolving to arr
src/sdk/gamma-client.ts:947
↓ 5 callers
Method
getMarkets
(nextCursor?: string)
src/sdk/client.ts:431
↓ 5 callers
Method
getWithParams
(endpoint string, params url.Values)
go-client/client/clob_client.go:524
↓ 5 callers
Method
get_event_by_slug
( self, slug: str, query: EventByIdQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:267
↓ 5 callers
Method
get_events_keyset
( self, query: EventsKeysetQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:406
↓ 5 callers
Method
get_markets
( self, query: UpdatedMarketQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:277
↓ 5 callers
Method
get_markets_keyset
( self, query: MarketsKeysetQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:422
↓ 5 callers
Method
get_trader_leaderboard
( self, query: TraderLeaderboardQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/data/client.py:444
↓ 5 callers
Method
healthCheck
* Health check for the Data API * * @returns Promise resolving to health check response * @throws {Error} When API request fails * * @exampl
src/sdk/data-client.ts:271
↓ 5 callers
Method
initializeClobClientEffect
* Initialize the CLOB client with appropriate authentication
src/sdk/client.ts:114
↓ 5 callers
Method
toString
()
worker-configuration.d.ts:539
↓ 5 callers
Method
transformMarketData
* Transform market data from Gamma API to match expected schema * Parses JSON string fields that should be arrays
src/sdk/gamma-client.ts:258
↓ 5 callers
Method
transformMarketData
transformMarketData transforms market data to parse JSON string fields
go-client/gamma/client.go:447
↓ 5 callers
Method
unmarshalTagsResponse
unmarshalTagsResponse extracts and unmarshals tags response
go-client/gamma/client.go:259
↓ 4 callers
Function
BuildPolyHmacSignature
BuildPolyHmacSignature builds the canonical Polymarket CLOB HMAC signature
go-client/auth/hmac.go:12
↓ 4 callers
Method
CreateApiKey
CreateApiKey creates a new API key
go-client/client/clob_client.go:292
↓ 4 callers
Method
Get
Get get basic information about the API and available endpoints returns a []byte when successful
go-polymarket/client/polymarket_client.go:56
↓ 4 callers
Method
GetCurrentPositions
Positions API GetCurrentPositions gets current positions for a user
go-client/data/client.go:255
↓ 4 callers
Method
GetPricesHistory
GetPricesHistory gets price history for a market
go-client/client/clob_client.go:237
↓ 4 callers
Method
addHeadersToRequest
(req *http.Request, headers interface{})
go-client/client/clob_client.go:772
↓ 4 callers
Function
clobError
(context: string)
src/sdk/clob-sdk.ts:41
↓ 4 callers
Function
computeMarketAmounts
computeMarketAmounts mirrors rs-clob-client's market builder (vendors/rs-clob-client/src/clob/order_builder.rs::OrderBuilder<Market>::build). Inputs:
go-client/order/rounding.go:83
↓ 4 callers
Method
connect
* Connect directly to Hyperdrive as if it's your database, returning a TCP socket. * * Calling this method returns an idential socket to if you ca
worker-configuration.d.ts:7428
↓ 4 callers
Method
debug
(...data: any[])
worker-configuration.d.ts:107
↓ 4 callers
Method
disconnect
* Disconnect from the WebSocket server
src/sdk/websocket-client.ts:157
next →
1–100 of 6,284, ranked by callers