MCPcopy Create free account

hub / github.com/HuakunShen/polymarket-kit / functions

Functions6,284 in github.com/HuakunShen/polymarket-kit

↓ 2 callersFunctionNewTagsSlugItemRelatedTagsTagsRequestBuilderInternal
NewTagsSlugItemRelatedTagsTagsRequestBuilderInternal instantiates a new TagsSlugItemRelatedTagsTagsRequestBuilder and sets the default values.
go-polymarket/client/gamma/tags_slug_item_related_tags_tags_request_builder.go:30
↓ 2 callersFunctionNewTagsSlugItemWithSlugGetResponse
NewTagsSlugItemWithSlugGetResponse instantiates a new TagsSlugItemWithSlugGetResponse and sets the default values.
go-polymarket/client/gamma/tags_slug_item_with_slug_get_response.go:37
↓ 2 callersFunctionNewTagsSlugRequestBuilderInternal
NewTagsSlugRequestBuilderInternal instantiates a new TagsSlugRequestBuilder and sets the default values.
go-polymarket/client/gamma/tags_slug_request_builder.go:27
↓ 2 callersFunctionNewTagsSlugWithSlugItemRequestBuilderInternal
NewTagsSlugWithSlugItemRequestBuilderInternal instantiates a new TagsSlugWithSlugItemRequestBuilder and sets the default values.
go-polymarket/client/gamma/tags_slug_with_slug_item_request_builder.go:29
↓ 2 callersFunctionNewTagsTagsItemRequestBuilderInternal
NewTagsTagsItemRequestBuilderInternal instantiates a new TagsTagsItemRequestBuilder and sets the default values.
go-polymarket/client/gamma/tags_tags_item_request_builder.go:29
↓ 2 callersFunctionNewTeamsRequestBuilderInternal
NewTeamsRequestBuilderInternal instantiates a new TeamsRequestBuilder and sets the default values.
go-polymarket/client/gamma/teams_request_builder.go:35
↓ 2 callersFunctionNewTradesPostResponse
NewTradesPostResponse instantiates a new TradesPostResponse and sets the default values.
go-polymarket/client/clob/trades_post_response.go:17
↓ 2 callersFunctionNewTradesRequestBuilderInternal
NewTradesRequestBuilderInternal instantiates a new TradesRequestBuilder and sets the default values.
go-polymarket/client/clob/trades_request_builder.go:23
↓ 2 callersFunctionNewWalletFromPrivateKey
NewWalletFromPrivateKey creates a new wallet from a private key
go-client/auth/wallet.go:19
↓ 2 callersMethodPostSignedOrder
PostSignedOrder posts a pre-signed order to the CLOB.
go-client/client/orders.go:178
↓ 2 callersMethodSetApiCreds
SetApiCreds sets or replaces the L2 API credentials on the client.
go-client/client/clob_client.go:763
↓ 2 callersMethodSignMessage
SignMessage signs a message using the wallet's private key
go-client/auth/wallet.go:58
↓ 2 callersMethodStop
Stop gracefully closes the connection.
go-client/client/market_ws.go:127
↓ 2 callersMethodToDeleteRequestInformation
ToDeleteRequestInformation clear all cached SDK instances and CLOB clients. Useful for debugging or forced refresh. returns a *RequestInformation when
go-polymarket/client/clob/cache_request_builder.go:75
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve price history for a specific token via market query parameter. Supports interval-based queries (1m, 1h, 6h, 1d, 1w, m
go-polymarket/client/clob/prices_history_request_builder.go:97
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get paginated list of markets. Optional next_cursor for pagination. Headers x-polymarket-key and x-polymarket-funder are requi
go-polymarket/client/clob/markets_request_builder.go:88
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get the current price for a specific token ID and side (buy/sell). Headers x-polymarket-key and x-polymarket-funder are requir
go-polymarket/client/clob/price_item_with_side_item_request_builder.go:82
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get paginated list of simplified markets. Optional next_cursor for pagination. Headers x-polymarket-key and x-polymarket-funde
go-polymarket/client/clob/simplified_markets_request_builder.go:88
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get paginated list of sampling markets. Optional next_cursor for pagination. Headers x-polymarket-key and x-polymarket-funder
go-polymarket/client/clob/sampling_markets_request_builder.go:88
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get paginated list of sampling simplified markets. Optional next_cursor for pagination. Headers x-polymarket-key and x-polymar
go-polymarket/client/clob/sampling_simplified_markets_request_builder.go:88
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve the current order book for a specific token ID. Returns bids, asks, and market metadata including minimum order size
go-polymarket/client/clob/book_with_token_item_request_builder.go:86
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get the midpoint price for a specific token ID. Headers x-polymarket-key and x-polymarket-funder are required in production, o
go-polymarket/client/clob/midpoint_with_token_item_request_builder.go:82
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation check the health status of CLOB client connection. Headers x-polymarket-key and x-polymarket-funder are required in production
go-polymarket/client/clob/health_request_builder.go:78
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation get cache statistics for SDK instances and CLOB clients. Shows current cache size and limits. returns a *RequestInformation wh
go-polymarket/client/clob/cache_stats_request_builder.go:70
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific market by its slug returns a *RequestInformation when successful
go-polymarket/client/gamma/markets_slug_with_slug_item_request_builder.go:88
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation perform a comprehensive search across markets, events, and user profiles returns a *RequestInformation when successful
go-polymarket/client/gamma/search_request_builder.go:91
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific event by its slug returns a *RequestInformation when successful
go-polymarket/client/gamma/events_slug_with_slug_item_request_builder.go:89
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve events with pagination metadata returns a *RequestInformation when successful
go-polymarket/client/gamma/events_pagination_request_builder.go:90
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific tag by its slug returns a *RequestInformation when successful
go-polymarket/client/gamma/tags_slug_with_slug_item_request_builder.go:93
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific event by its ID returns a *RequestInformation when successful
go-polymarket/client/gamma/events_events_item_request_builder.go:94
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific market by its ID returns a *RequestInformation when successful
go-polymarket/client/gamma/markets_markets_item_request_builder.go:93
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific tag by its ID returns a *RequestInformation when successful
go-polymarket/client/gamma/tags_tags_item_request_builder.go:93
↓ 2 callersMethodToGetRequestInformation
ToGetRequestInformation retrieve a specific series by its ID returns a *RequestInformation when successful
go-polymarket/client/gamma/series_series_item_request_builder.go:88
↓ 2 callersMethodToPostRequestInformation
ToPostRequestInformation get bid-ask spreads for multiple token IDs. Each item should include token_id. Headers x-polymarket-key and x-polymarket-fund
go-polymarket/client/clob/spreads_request_builder.go:83
↓ 2 callersMethodToPostRequestInformation
ToPostRequestInformation get prices for multiple token IDs and sides. Each item should include token_id and side (BUY/SELL). Headers x-polymarket-key
go-polymarket/client/clob/prices_request_builder.go:83
↓ 2 callersMethodToPostRequestInformation
ToPostRequestInformation get trades with optional filtering. All parameters are optional. Headers x-polymarket-key and x-polymarket-funder are require
go-polymarket/client/clob/trades_request_builder.go:82
↓ 2 callersMethodToPostRequestInformation
ToPostRequestInformation get midpoint prices for multiple token IDs. Each item should include token_id. Headers x-polymarket-key and x-polymarket-fund
go-polymarket/client/clob/midpoints_request_builder.go:83
↓ 2 callersMethod_dispatch
根据 event_type 分发到对应 callback.
py-src/polymarket_kit/ws/client.py:283
↓ 2 callersMethod_do_connect
Establish WebSocket connection and send initial subscription.
py-src/polymarket_kit/ws/client.py:153
↓ 2 callersMethod_execute
Execute a sync order function and wrap result in OrderResponse.
py-src/polymarket_kit/clob/trading.py:258
↓ 2 callersMethod_get_data
Get data from endpoint, raising on error.
py-src/polymarket_kit/clob/client.py:117
↓ 2 callersFunction_parse_json_array
(value: Any)
py-src/polymarket_kit/gamma/models.py:10
↓ 2 callersMethod_request
Make a GET request to the CLOB API.
py-src/polymarket_kit/clob/client.py:99
↓ 2 callersMethod_request
( self, endpoint: str, query: BaseModel | Mapping[str, Any] | None )
py-src/polymarket_kit/gamma/client.py:132
↓ 2 callersMethod_schedule_reconnect
Schedule reconnection with exponential backoff.
py-src/polymarket_kit/ws/client.py:261
↓ 2 callersMethod_send_market_subscribe
(self, asset_ids: list[str])
py-src/polymarket_kit/ws/client.py:177
↓ 2 callersFunction_stringify_param
(value: Any)
py-src/polymarket_kit/data/client.py:58
↓ 2 callersFunction_stringify_param
(value: Any)
py-src/polymarket_kit/gamma/client.py:53
↓ 2 callersFunctionboolPtr
(b bool)
go-client/examples/proxy/proxy_demo.go:157
↓ 2 callersFunctionbuild_slug
(symbol: str, interval: str, epoch_s: int)
py-src/examples/test_limit_order_btc5m.py:33
↓ 2 callersFunctionbytesToHex
bytesToHex returns the lowercase hex of b without 0x prefix.
go-client/client/orders.go:126
↓ 2 callersMethodcancel_all
Cancel all open orders.
py-src/polymarket_kit/clob/trading.py:210
↓ 2 callersMethodcleanup
()
src/sdk/websocket-client.ts:336
↓ 2 callersMethodclose
close 安全关闭连接。可多次调用。
go-client/client/managed_conn.go:276
↓ 2 callersFunctioncreateClobRoutes
(opts?: Pick<NonNullable<ConstructorParameters<typeof Elysia>[0]>, "aot" | "adapter" | "name">)
src/routes/clob.ts:217
↓ 2 callersFunctioncreateDataRoutes
(opts?: Pick<NonNullable<ConstructorParameters<typeof Elysia>[0]>, "aot" | "adapter" | "name">)
src/routes/data.ts:98
↓ 2 callersMethodcreateFetchOptions
()
src/sdk/clob-sdk.ts:76
↓ 2 callersFunctioncreateGammaRoutes
(opts?: Pick<NonNullable<ConstructorParameters<typeof Elysia>[0]>, "aot" | "adapter" | "name">)
src/routes/gamma.ts:111
↓ 2 callersMethoddelete
(key: Key)
worker-configuration.d.ts:1955
↓ 2 callersMethoddeleteWithBody
deleteWithBody performs an authenticated DELETE request with a JSON body.
go-client/client/orders.go:257
↓ 2 callersMethoddeleteWithHeaders
(endpoint string, headers interface{})
go-client/client/clob_client.go:709
↓ 2 callersMethoddispatch
(raw []byte)
go-client/client/market_ws.go:312
↓ 2 callersFunctionencodeClobAuthData
encodeClobAuthData encodes the ClobAuth data according to EIP-712
go-client/auth/eip712.go:142
↓ 2 callersFunctionformatEventDisplay
(events: EventType[])
src/mcp/polymarket.ts:115
↓ 2 callersFunctionformatMetric
( label: string, value: number | undefined, format: (val: number) => string, )
src/utils/markdown-formatters.ts:52
↓ 2 callersMethodget
Helper methods for HTTP requests
go-client/client/clob_client.go:520
↓ 2 callersMethodgetAggregatedBuilderLeaderboard
* Get aggregated builder leaderboard * * @param query - Query parameters for time period and pagination * @returns Promise resolving to array of
src/sdk/data-client.ts:508
↓ 2 callersMethodgetAllPositions
* Get all positions (current and closed) for a user * * @param user - User address * @param options - Optional query parameters * @returns Pro
src/sdk/data-client.ts:585
↓ 2 callersFunctiongetBaseUrl
()
src/utils/env.ts:9
↓ 2 callersMethodgetBook
(tokenId: string)
src/sdk/client.ts:374
↓ 2 callersMethodgetClobMarketInfo
* Get CLOB-level market parameters by condition ID (tokens, tick size, * fees, rewards, RFQ status, fee details). * * `GET /clob-markets/{condit
src/sdk/clob-sdk.ts:452
↓ 2 callersMethodgetCommentsByUserAddress
* Get comments by user address * * @param userAddress - The user address to get comments for * @param query - Query parameters for pagination
src/sdk/gamma-client.ts:839
↓ 2 callersMethodgetDailyBuilderVolumeTimeSeries
* Get daily builder volume time-series * * @param query - Query parameters for time period * @returns Promise resolving to array of builder volu
src/sdk/data-client.ts:532
↓ 2 callersFunctiongetDomainSeparator
getDomainSeparator creates the domain separator hash according to EIP-712
go-client/auth/eip712.go:113
↓ 2 callersMethodgetEventTags
* Get tags for a specific event * * @param id - The event ID to get tags for * @returns Promise resolving to array of tag objects * * @
src/sdk/gamma-client.ts:595
↓ 2 callersMethodgetEventsPaginated
* Get paginated list of events * * @param query - Query parameters for pagination and filtering * @returns Promise resolving to paginated eve
src/sdk/gamma-client.ts:540
↓ 2 callersMethodgetFeaturedEvents
* Get featured events * * @param query - Optional query parameters (excluding featured which is set to true) * @returns Promise resolving to
src/sdk/gamma-client.ts:930
↓ 2 callersMethodgetFeeRate
* Get the base fee rate (basis points) for a token. * * `GET /fee-rate/{token_id}`
src/sdk/clob-sdk.ts:410
↓ 2 callersMethodgetJSONWithParamsCtx
(ctx context.Context, endpoint string, params url.Values, result interface{})
go-client/client/clob_client.go:610
↓ 2 callersMethodgetLastTradePrice
* Get the last trade price for a token. * Returns `{ price: "0.5", side: "" }` when no trade has happened yet. * * `GET /last-trade-price?token_
src/sdk/clob-sdk.ts:310
↓ 2 callersMethodgetLastTradesPrices
* Get last trade prices for multiple tokens in one call (max 500). * * `GET /last-trades-prices?token_ids=csv`
src/sdk/clob-sdk.ts:324
↓ 2 callersMethodgetMarketByToken
* Resolve a token ID to its parent market (condition ID + Yes/No pair). * * `GET /markets-by-token/{token_id}`
src/sdk/clob-sdk.ts:434
↓ 2 callersFunctiongetMarketFixture
()
src/__tests__/fixtures/market.ts:25
↓ 2 callersMethodgetMarketTags
* Get tags for a specific market * * @param id - The market ID to get tags for * @returns Promise resolving to array of tag objects * *
src/sdk/gamma-client.ts:692
↓ 2 callersMethodgetMarkets
* Get list of markets with optional filtering * * @param query - Query parameters for pagination and filtering * @returns Promise resolving t
src/sdk/gamma-client.ts:646
↓ 2 callersMethodgetNegRisk
* Get the negative-risk flag for a token. * * `GET /neg-risk/{token_id}`
src/sdk/clob-sdk.ts:422
↓ 2 callersFunctiongetPort
()
src/utils/env.ts:5
↓ 2 callersMethodgetPriceHistory
* Get historical price points for a CLOB token. * * Wraps `GET /prices-history` (public endpoint, no auth). The upstream API * returns `{ histor
src/sdk/clob-sdk.ts:493
↓ 2 callersMethodgetRawWithParamsCtx
getRawWithParamsCtx is the ctx-aware variant of getRawWithParams. ctx cancellation aborts the in-flight HTTP request (cancels Do via the request conte
go-client/client/clob_client.go:575
↓ 2 callersMethodgetRelatedTagsRelationshipsByTagId
* Get related tags relationships by tag ID * * @param id - The tag ID to find relationships for * @param query - Optional query parameters
src/sdk/gamma-client.ts:412
↓ 2 callersMethodgetSeries
* Get list of series with filtering and pagination * * @param query - Query parameters for pagination and filtering * @returns Promise resolv
src/sdk/gamma-client.ts:746
↓ 2 callersMethodgetServerTime
* Get the current CLOB server time as a Unix timestamp (seconds). * * `GET /time`
src/sdk/clob-sdk.ts:247
↓ 2 callersMethodgetTagsRelatedToTagId
* Get tags related to a tag ID * * @param id - The tag ID to find related tags for * @param query - Optional query parameters * @returns P
src/sdk/gamma-client.ts:468
↓ 2 callersMethodgetTickSize
* Get the minimum tick size (price increment) for a token. * * `GET /tick-size/{token_id}`
src/sdk/clob-sdk.ts:398
↓ 2 callersMethodgetTopHolders
* Get top holders for markets * * @param query - Query parameters including required market array * @returns Promise resolving to array of meta
src/sdk/data-client.ts:388
↓ 2 callersFunctiongetTypeHash
getTypeHash creates the type hash for ClobAuth
go-client/auth/eip712.go:135
↓ 2 callersMethodget_order
Get order details by order ID. Returns None on error.
py-src/polymarket_kit/clob/trading.py:224
↓ 2 callersMethodget_tag_by_slug
( self, slug: str, query: TagByIdQuery | Mapping[str, Any] | None = None )
py-src/polymarket_kit/gamma/client.py:203
↓ 2 callersFunctiongoldenInputs
(t *testing.T)
go-client/order/v2_test.go:32
↓ 2 callersFunctionhashV2Order
hashV2Order returns (domainSeparator, orderHash) for the given inputs.
go-client/order/v2.go:100
← previousnext →301–400 of 6,284, ranked by callers