@apteva/integrations 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/package.json +1 -1
  2. package/src/apps/activecampaign.json +209 -0
  3. package/src/apps/activecollab.json +417 -0
  4. package/src/apps/airtable.json +235 -0
  5. package/src/apps/alpaca-trading.json +1554 -0
  6. package/src/apps/amadeus.json +225 -0
  7. package/src/apps/anthropic-api.json +96 -0
  8. package/src/apps/apify.json +203 -0
  9. package/src/apps/apollo.json +748 -0
  10. package/src/apps/apple-podcasts.json +116 -0
  11. package/src/apps/archive-api.json +104 -0
  12. package/src/apps/archive.json +151 -0
  13. package/src/apps/arduino-cloud.json +301 -0
  14. package/src/apps/arest.json +492 -0
  15. package/src/apps/asana.json +184 -0
  16. package/src/apps/ashby.json +176 -0
  17. package/src/apps/assemblyai.json +163 -0
  18. package/src/apps/attio.json +243 -0
  19. package/src/apps/aws-cloudfront.json +132 -0
  20. package/src/apps/aws-dynamodb.json +295 -0
  21. package/src/apps/aws-ec2.json +184 -0
  22. package/src/apps/aws-lambda.json +361 -0
  23. package/src/apps/aws-route53.json +110 -0
  24. package/src/apps/aws-s3.json +303 -0
  25. package/src/apps/aws-ses.json +556 -0
  26. package/src/apps/aws-sns.json +217 -0
  27. package/src/apps/aws-sqs.json +234 -0
  28. package/src/apps/axiom.json +123 -0
  29. package/src/apps/beehiiv.json +252 -0
  30. package/src/apps/binance-trading.json +555 -0
  31. package/src/apps/bitly.json +175 -0
  32. package/src/apps/bloobirds.json +246 -0
  33. package/src/apps/bluesky.json +201 -0
  34. package/src/apps/blynk.json +316 -0
  35. package/src/apps/booking-com.json +144 -0
  36. package/src/apps/box.json +289 -0
  37. package/src/apps/brevo.json +1423 -0
  38. package/src/apps/browse-ai.json +148 -0
  39. package/src/apps/bunny-cdn.json +330 -0
  40. package/src/apps/bunny-stream.json +387 -0
  41. package/src/apps/cal-com.json +240 -0
  42. package/src/apps/calendly.json +578 -0
  43. package/src/apps/calflow-calendar.json +706 -0
  44. package/src/apps/callrail.json +190 -0
  45. package/src/apps/canva.json +197 -0
  46. package/src/apps/cartesia.json +201 -0
  47. package/src/apps/castbase.json +753 -0
  48. package/src/apps/chargebee.json +226 -0
  49. package/src/apps/cleanster.json +359 -0
  50. package/src/apps/clicksend.json +278 -0
  51. package/src/apps/clickup.json +266 -0
  52. package/src/apps/clipkit.json +517 -0
  53. package/src/apps/close.json +359 -0
  54. package/src/apps/cloudflare.json +329 -0
  55. package/src/apps/cloudinary.json +164 -0
  56. package/src/apps/coda.json +288 -0
  57. package/src/apps/cohere.json +158 -0
  58. package/src/apps/coinbase.json +268 -0
  59. package/src/apps/composio.json +146 -0
  60. package/src/apps/confluence.json +270 -0
  61. package/src/apps/consensus.json +879 -0
  62. package/src/apps/contabo.json +733 -0
  63. package/src/apps/convertkit.json +211 -0
  64. package/src/apps/core-image.json +426 -0
  65. package/src/apps/core-video.json +1246 -0
  66. package/src/apps/craftcloud.json +298 -0
  67. package/src/apps/datadog.json +401 -0
  68. package/src/apps/dataforseo.json +1273 -0
  69. package/src/apps/deepseek.json +150 -0
  70. package/src/apps/dialpad.json +229 -0
  71. package/src/apps/discord.json +239 -0
  72. package/src/apps/dnsimple.json +405 -0
  73. package/src/apps/docusign.json +214 -0
  74. package/src/apps/docx.json +282 -0
  75. package/src/apps/dropbox.json +185 -0
  76. package/src/apps/duffel.json +231 -0
  77. package/src/apps/dux-soup.json +694 -0
  78. package/src/apps/dynadot.json +250 -0
  79. package/src/apps/elevenlabs.json +327 -0
  80. package/src/apps/eventbrite-events.json +598 -0
  81. package/src/apps/facebook-ads.json +1399 -0
  82. package/src/apps/facebook-api.json +282 -0
  83. package/src/apps/fal-ai.json +400 -0
  84. package/src/apps/fathom.json +86 -0
  85. package/src/apps/figma.json +162 -0
  86. package/src/apps/filestack.json +159 -0
  87. package/src/apps/firebase.json +271 -0
  88. package/src/apps/firecrawl.json +278 -0
  89. package/src/apps/folk.json +564 -0
  90. package/src/apps/forecast-app.json +377 -0
  91. package/src/apps/freshdesk.json +283 -0
  92. package/src/apps/gemini.json +528 -0
  93. package/src/apps/ghost.json +439 -0
  94. package/src/apps/gigs-marketplace.json +1442 -0
  95. package/src/apps/github.json +1479 -47
  96. package/src/apps/gitlab.json +448 -0
  97. package/src/apps/gmail.json +839 -28
  98. package/src/apps/gohighlevel.json +596 -0
  99. package/src/apps/google-ads.json +270 -0
  100. package/src/apps/google-calendar.json +996 -36
  101. package/src/apps/google-docs.json +278 -0
  102. package/src/apps/google-drive.json +360 -0
  103. package/src/apps/google-maps.json +473 -0
  104. package/src/apps/google-sheets.json +330 -0
  105. package/src/apps/gooten.json +411 -0
  106. package/src/apps/gravity-forms.json +385 -0
  107. package/src/apps/gusto.json +171 -0
  108. package/src/apps/hackernews.json +221 -0
  109. package/src/apps/harmonic.json +86 -0
  110. package/src/apps/helpscout.json +664 -0
  111. package/src/apps/hetzner.json +658 -0
  112. package/src/apps/heygen.json +184 -0
  113. package/src/apps/heyreach.json +388 -0
  114. package/src/apps/hospitable.json +340 -0
  115. package/src/apps/hostinger.json +374 -0
  116. package/src/apps/hubspot.json +682 -0
  117. package/src/apps/huggingface.json +97 -0
  118. package/src/apps/hunter.json +504 -0
  119. package/src/apps/ig-trading.json +849 -0
  120. package/src/apps/imaterialise.json +349 -0
  121. package/src/apps/instagram-api.json +538 -0
  122. package/src/apps/intercom.json +648 -0
  123. package/src/apps/jira.json +226 -0
  124. package/src/apps/klaviyo.json +199 -0
  125. package/src/apps/kling-ai.json +206 -0
  126. package/src/apps/kraken.json +870 -0
  127. package/src/apps/late.json +1056 -0
  128. package/src/apps/leadpages.json +243 -0
  129. package/src/apps/learning-platform.json +2244 -0
  130. package/src/apps/linear.json +184 -57
  131. package/src/apps/linkedin.json +179 -0
  132. package/src/apps/listen-notes.json +136 -0
  133. package/src/apps/lnk-bio.json +125 -0
  134. package/src/apps/loom.json +188 -0
  135. package/src/apps/luma.json +280 -0
  136. package/src/apps/mailchimp.json +238 -0
  137. package/src/apps/mailgun.json +310 -0
  138. package/src/apps/manychat.json +312 -0
  139. package/src/apps/marin-software.json +843 -0
  140. package/src/apps/media-downloader.json +157 -0
  141. package/src/apps/meetup-events.json +361 -0
  142. package/src/apps/meshy.json +248 -0
  143. package/src/apps/microsoft-teams.json +162 -0
  144. package/src/apps/monday.json +213 -0
  145. package/src/apps/mongodb-atlas.json +467 -0
  146. package/src/apps/namecheap.json +252 -0
  147. package/src/apps/nexar.json +289 -0
  148. package/src/apps/notion.json +530 -50
  149. package/src/apps/omnikit-analytics.json +374 -0
  150. package/src/apps/omnikit-api-gateway.json +660 -0
  151. package/src/apps/omnikit-billing.json +1781 -0
  152. package/src/apps/omnikit-cms.json +899 -0
  153. package/src/apps/omnikit-functions.json +329 -0
  154. package/src/apps/omnikit-intelligence.json +650 -0
  155. package/src/apps/omnikit-management.json +214 -0
  156. package/src/apps/omnikit-media.json +646 -0
  157. package/src/apps/omnikit-messaging.json +1826 -0
  158. package/src/apps/omnikit-redirects.json +209 -0
  159. package/src/apps/omnikit-webhooks.json +269 -0
  160. package/src/apps/omnikit-workflows.json +323 -0
  161. package/src/apps/openai-api.json +462 -0
  162. package/src/apps/openmeteo-weather.json +75 -0
  163. package/src/apps/optinmonster.json +244 -0
  164. package/src/apps/paidkit.json +1218 -0
  165. package/src/apps/paypal.json +254 -0
  166. package/src/apps/pdf.json +366 -0
  167. package/src/apps/pipedrive.json +255 -0
  168. package/src/apps/polymarket.json +653 -0
  169. package/src/apps/porkbun.json +417 -0
  170. package/src/apps/portfolio.json +501 -0
  171. package/src/apps/postmark.json +257 -0
  172. package/src/apps/printful.json +273 -0
  173. package/src/apps/printify.json +295 -0
  174. package/src/apps/producthunt.json +346 -0
  175. package/src/apps/pushover-notifications.json +113 -0
  176. package/src/apps/qonto.json +366 -0
  177. package/src/apps/quickbooks.json +234 -0
  178. package/src/apps/replicate.json +106 -0
  179. package/src/apps/rss.json +281 -0
  180. package/src/apps/salesflow.json +538 -0
  181. package/src/apps/salesforce-crm.json +216 -0
  182. package/src/apps/sap.json +256 -0
  183. package/src/apps/scaleway.json +911 -0
  184. package/src/apps/sculpteo.json +234 -0
  185. package/src/apps/sendgrid-email.json +233 -0
  186. package/src/apps/sendgrid.json +160 -35
  187. package/src/apps/shapeways.json +188 -0
  188. package/src/apps/shopify.json +1217 -0
  189. package/src/apps/skai.json +779 -0
  190. package/src/apps/slack.json +228 -38
  191. package/src/apps/slant3d.json +231 -0
  192. package/src/apps/slides.json +760 -0
  193. package/src/apps/smartly.json +504 -0
  194. package/src/apps/snov.json +467 -0
  195. package/src/apps/socialcast.json +553 -63
  196. package/src/apps/square.json +274 -0
  197. package/src/apps/storage-management.json +788 -0
  198. package/src/apps/storylane.json +180 -0
  199. package/src/apps/strapi.json +338 -0
  200. package/src/apps/stripe-payments.json +847 -0
  201. package/src/apps/stripe.json +472 -35
  202. package/src/apps/supabase.json +169 -0
  203. package/src/apps/supademo.json +115 -0
  204. package/src/apps/taskflow.json +714 -0
  205. package/src/apps/teamwork.json +457 -0
  206. package/src/apps/telegram.json +444 -0
  207. package/src/apps/thinger.json +458 -0
  208. package/src/apps/ticktick.json +169 -0
  209. package/src/apps/tiktok-api.json +406 -0
  210. package/src/apps/todoist.json +151 -0
  211. package/src/apps/together.json +123 -0
  212. package/src/apps/torrent.json +267 -0
  213. package/src/apps/trading.json +1012 -0
  214. package/src/apps/trading212.json +383 -0
  215. package/src/apps/trello.json +205 -0
  216. package/src/apps/tripo.json +157 -0
  217. package/src/apps/twilio.json +1008 -0
  218. package/src/apps/twitter-ads.json +875 -0
  219. package/src/apps/twitter-api.json +1151 -0
  220. package/src/apps/twitterapiio.json +548 -0
  221. package/src/apps/typeform.json +210 -0
  222. package/src/apps/vidforge.json +1020 -0
  223. package/src/apps/vonage.json +394 -0
  224. package/src/apps/vultr.json +225 -0
  225. package/src/apps/webflow.json +223 -0
  226. package/src/apps/wise.json +273 -0
  227. package/src/apps/wistia.json +283 -0
  228. package/src/apps/woocommerce.json +288 -0
  229. package/src/apps/wordpress.json +1675 -0
  230. package/src/apps/xero.json +257 -0
  231. package/src/apps/youtube-api.json +861 -0
  232. package/src/apps/zendesk.json +295 -0
  233. package/src/apps/zite.json +173 -0
  234. package/src/apps/zoho-crm.json +386 -0
  235. package/src/apps/zoo.json +193 -0
  236. package/src/apps/zoom.json +334 -0
@@ -0,0 +1,653 @@
1
+ {
2
+ "slug": "polymarket",
3
+ "name": "Polymarket",
4
+ "description": "Full Polymarket prediction market toolkit. Browse events and markets, get real-time prices and orderbooks, and trade (place/cancel orders) on the CLOB.",
5
+ "logo": "https://www.google.com/s2/favicons?domain=polymarket.com&sz=128",
6
+ "categories": [
7
+ "polymarket",
8
+ "prediction-markets",
9
+ "trading",
10
+ "events",
11
+ "crypto"
12
+ ],
13
+ "base_url": "https://gamma-api.polymarket.com",
14
+ "auth": {
15
+ "types": [
16
+ "bearer"
17
+ ],
18
+ "headers": {
19
+ "Authorization": "Bearer {{token}}"
20
+ },
21
+ "credential_fields": [
22
+ {
23
+ "name": "api_key",
24
+ "label": "Api_key",
25
+ "description": "Polymarket CLOB API Key (from deriveApiKey)"
26
+ },
27
+ {
28
+ "name": "secret",
29
+ "label": "Secret",
30
+ "description": "Polymarket CLOB API Secret (base64-encoded, for HMAC signing)"
31
+ },
32
+ {
33
+ "name": "passphrase",
34
+ "label": "Passphrase",
35
+ "description": "Polymarket CLOB API Passphrase"
36
+ },
37
+ {
38
+ "name": "private_key",
39
+ "label": "Private_key",
40
+ "description": "Polygon wallet private key (hex, for EIP-712 order signing)"
41
+ },
42
+ {
43
+ "name": "address",
44
+ "label": "Address",
45
+ "description": "Polygon wallet address (0x...)"
46
+ }
47
+ ]
48
+ },
49
+ "tools": [
50
+ {
51
+ "name": "list_events",
52
+ "description": "Get active prediction market events from the Gamma API. Events group related markets (e.g., 'US Election 2024' contains markets for each candidate). Returns titles, slugs, and nested market data.",
53
+ "method": "GET",
54
+ "path": "/events",
55
+ "input_schema": {
56
+ "type": "object",
57
+ "properties": {
58
+ "closed": {
59
+ "type": "boolean",
60
+ "description": "Include closed events (default: false)",
61
+ "default": false
62
+ },
63
+ "limit": {
64
+ "type": "integer",
65
+ "description": "Max events to return (default: 50, max: 100)",
66
+ "default": 50
67
+ },
68
+ "offset": {
69
+ "type": "integer",
70
+ "description": "Pagination offset",
71
+ "default": 0
72
+ }
73
+ }
74
+ }
75
+ },
76
+ {
77
+ "name": "get_event",
78
+ "description": "Get a specific event by its URL slug. Returns full event details including all associated markets with their condition_ids and token_ids.",
79
+ "method": "GET",
80
+ "path": "/events/slug/%7B%7Bslug%7D%7D",
81
+ "input_schema": {
82
+ "type": "object",
83
+ "properties": {
84
+ "slug": {
85
+ "type": "string",
86
+ "description": "Event slug (e.g., 'fed-decision-in-october')"
87
+ }
88
+ },
89
+ "required": [
90
+ "slug"
91
+ ]
92
+ }
93
+ },
94
+ {
95
+ "name": "list_markets",
96
+ "description": "Get prediction markets from the Gamma API. Markets are individual YES/NO outcomes. Returns condition_id (for CLOB lookup) and clobTokenIds (for trading).",
97
+ "method": "GET",
98
+ "path": "/markets",
99
+ "input_schema": {
100
+ "type": "object",
101
+ "properties": {
102
+ "closed": {
103
+ "type": "boolean",
104
+ "description": "Include closed markets (default: false)",
105
+ "default": false
106
+ },
107
+ "limit": {
108
+ "type": "integer",
109
+ "description": "Max markets to return",
110
+ "default": 50
111
+ },
112
+ "offset": {
113
+ "type": "integer",
114
+ "description": "Pagination offset",
115
+ "default": 0
116
+ }
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "name": "get_market",
122
+ "description": "Get a specific market by slug. Returns prices, volume, condition_id, and clobTokenIds needed for trading.",
123
+ "method": "GET",
124
+ "path": "/markets/slug/%7B%7Bslug%7D%7D",
125
+ "input_schema": {
126
+ "type": "object",
127
+ "properties": {
128
+ "slug": {
129
+ "type": "string",
130
+ "description": "Market slug (e.g., 'will-trump-win-the-2024-election')"
131
+ }
132
+ },
133
+ "required": [
134
+ "slug"
135
+ ]
136
+ }
137
+ },
138
+ {
139
+ "name": "list_tags",
140
+ "description": "Get all available tags/categories for filtering markets (e.g., Politics, Sports, Crypto). Use tag IDs with polymarket-markets-by-tag.",
141
+ "method": "GET",
142
+ "path": "/tags",
143
+ "input_schema": {
144
+ "type": "object",
145
+ "properties": {}
146
+ }
147
+ },
148
+ {
149
+ "name": "markets_by_tag",
150
+ "description": "Get markets filtered by tag/category ID. Use polymarket-list-tags first to find tag IDs.",
151
+ "method": "GET",
152
+ "path": "/markets",
153
+ "input_schema": {
154
+ "type": "object",
155
+ "properties": {
156
+ "tag_id": {
157
+ "type": "integer",
158
+ "description": "Tag ID (from polymarket-list-tags)"
159
+ },
160
+ "closed": {
161
+ "type": "boolean",
162
+ "description": "Include closed markets",
163
+ "default": false
164
+ },
165
+ "limit": {
166
+ "type": "integer",
167
+ "description": "Max results",
168
+ "default": 50
169
+ },
170
+ "offset": {
171
+ "type": "integer",
172
+ "description": "Pagination offset",
173
+ "default": 0
174
+ }
175
+ },
176
+ "required": [
177
+ "tag_id"
178
+ ]
179
+ }
180
+ },
181
+ {
182
+ "name": "get_sports",
183
+ "description": "Get sports-related metadata including tag IDs, images, and series info for sports prediction markets.",
184
+ "method": "GET",
185
+ "path": "/sports",
186
+ "input_schema": {
187
+ "type": "object",
188
+ "properties": {}
189
+ }
190
+ },
191
+ {
192
+ "name": "get_price",
193
+ "description": "Get the current best available price for a token on the CLOB. Returns the best bid (BUY) or ask (SELL) price.",
194
+ "method": "GET",
195
+ "path": "/price",
196
+ "input_schema": {
197
+ "type": "object",
198
+ "properties": {
199
+ "token_id": {
200
+ "type": "string",
201
+ "description": "Token ID (clobTokenId from market data)"
202
+ },
203
+ "side": {
204
+ "type": "string",
205
+ "enum": [
206
+ "BUY",
207
+ "SELL"
208
+ ],
209
+ "description": "BUY for best ask, SELL for best bid"
210
+ }
211
+ },
212
+ "required": [
213
+ "token_id",
214
+ "side"
215
+ ]
216
+ }
217
+ },
218
+ {
219
+ "name": "get_midpoint",
220
+ "description": "Get the midpoint price for a token (average of best bid and best ask). Good for estimating fair value.",
221
+ "method": "GET",
222
+ "path": "/midpoint",
223
+ "input_schema": {
224
+ "type": "object",
225
+ "properties": {
226
+ "token_id": {
227
+ "type": "string",
228
+ "description": "Token ID"
229
+ }
230
+ },
231
+ "required": [
232
+ "token_id"
233
+ ]
234
+ }
235
+ },
236
+ {
237
+ "name": "get_orderbook",
238
+ "description": "Get the full order book for a token showing all bids and asks with sizes. Essential for understanding market depth before placing orders.",
239
+ "method": "GET",
240
+ "path": "/book",
241
+ "input_schema": {
242
+ "type": "object",
243
+ "properties": {
244
+ "token_id": {
245
+ "type": "string",
246
+ "description": "Token ID"
247
+ }
248
+ },
249
+ "required": [
250
+ "token_id"
251
+ ]
252
+ }
253
+ },
254
+ {
255
+ "name": "get_spread",
256
+ "description": "Get the bid-ask spread for a token. Lower spread = more liquid market.",
257
+ "method": "GET",
258
+ "path": "/spread",
259
+ "input_schema": {
260
+ "type": "object",
261
+ "properties": {
262
+ "token_id": {
263
+ "type": "string",
264
+ "description": "Token ID"
265
+ }
266
+ },
267
+ "required": [
268
+ "token_id"
269
+ ]
270
+ }
271
+ },
272
+ {
273
+ "name": "get_tick_size",
274
+ "description": "Get the minimum price increment for a token. Orders must use prices that are multiples of the tick size (0.1, 0.01, 0.001, or 0.0001).",
275
+ "method": "GET",
276
+ "path": "/tick_size",
277
+ "input_schema": {
278
+ "type": "object",
279
+ "properties": {
280
+ "token_id": {
281
+ "type": "string",
282
+ "description": "Token ID"
283
+ }
284
+ },
285
+ "required": [
286
+ "token_id"
287
+ ]
288
+ }
289
+ },
290
+ {
291
+ "name": "get_last_trade_price",
292
+ "description": "Get the price of the most recent trade for a token.",
293
+ "method": "GET",
294
+ "path": "/last_trade_price",
295
+ "input_schema": {
296
+ "type": "object",
297
+ "properties": {
298
+ "token_id": {
299
+ "type": "string",
300
+ "description": "Token ID"
301
+ }
302
+ },
303
+ "required": [
304
+ "token_id"
305
+ ]
306
+ }
307
+ },
308
+ {
309
+ "name": "get_clob_market",
310
+ "description": "Get CLOB market details by condition ID. Returns token IDs, tick size, min order size, and neg_risk flag needed for trading.",
311
+ "method": "GET",
312
+ "path": "/market/%7B%7Bcondition_id%7D%7D",
313
+ "input_schema": {
314
+ "type": "object",
315
+ "properties": {
316
+ "condition_id": {
317
+ "type": "string",
318
+ "description": "Market condition ID (from Gamma API market data)"
319
+ }
320
+ },
321
+ "required": [
322
+ "condition_id"
323
+ ]
324
+ }
325
+ },
326
+ {
327
+ "name": "list_clob_markets",
328
+ "description": "List all tradeable markets on the CLOB with pagination via cursor.",
329
+ "method": "GET",
330
+ "path": "/markets",
331
+ "input_schema": {
332
+ "type": "object",
333
+ "properties": {
334
+ "next_cursor": {
335
+ "type": "string",
336
+ "description": "Pagination cursor from previous response (omit for first page)",
337
+ "default": ""
338
+ }
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "name": "get_prices_history",
344
+ "description": "Get historical price data for a market. Use for charting and analysis.",
345
+ "method": "GET",
346
+ "path": "/prices-history",
347
+ "input_schema": {
348
+ "type": "object",
349
+ "properties": {
350
+ "condition_id": {
351
+ "type": "string",
352
+ "description": "Market condition ID"
353
+ },
354
+ "interval": {
355
+ "type": "string",
356
+ "enum": [
357
+ "1m",
358
+ "5m",
359
+ "1h",
360
+ "6h",
361
+ "1d",
362
+ "1w"
363
+ ],
364
+ "description": "Time interval between data points",
365
+ "default": "1d"
366
+ },
367
+ "fidelity": {
368
+ "type": "integer",
369
+ "description": "Data point density (higher = more points)",
370
+ "default": 100
371
+ },
372
+ "startTs": {
373
+ "type": "integer",
374
+ "description": "Start timestamp (Unix seconds)"
375
+ },
376
+ "endTs": {
377
+ "type": "integer",
378
+ "description": "End timestamp (Unix seconds)"
379
+ }
380
+ },
381
+ "required": [
382
+ "condition_id"
383
+ ]
384
+ }
385
+ },
386
+ {
387
+ "name": "get_market_trades",
388
+ "description": "Get recent trade events for a specific market. Shows who traded, what price, and what size.",
389
+ "method": "GET",
390
+ "path": "/trades",
391
+ "input_schema": {
392
+ "type": "object",
393
+ "properties": {
394
+ "condition_id": {
395
+ "type": "string",
396
+ "description": "Market condition ID"
397
+ },
398
+ "limit": {
399
+ "type": "integer",
400
+ "description": "Max trades to return",
401
+ "default": 50
402
+ },
403
+ "before": {
404
+ "type": "string",
405
+ "description": "Cursor for pagination (from previous response)"
406
+ }
407
+ },
408
+ "required": [
409
+ "condition_id"
410
+ ]
411
+ }
412
+ },
413
+ {
414
+ "name": "get_server_time",
415
+ "description": "Get the CLOB server time. Useful for verifying clock synchronization before trading.",
416
+ "method": "GET",
417
+ "path": "/time",
418
+ "input_schema": {
419
+ "type": "object",
420
+ "properties": {}
421
+ }
422
+ },
423
+ {
424
+ "name": "get_balance",
425
+ "description": "Get your USDC balance and trading allowances on Polymarket. Requires authentication.",
426
+ "method": "GET",
427
+ "path": "/balance-allowance",
428
+ "input_schema": {
429
+ "type": "object",
430
+ "properties": {
431
+ "asset_type": {
432
+ "type": "string",
433
+ "enum": [
434
+ "USDC",
435
+ "CONDITIONAL"
436
+ ],
437
+ "description": "Asset type to check",
438
+ "default": "USDC"
439
+ },
440
+ "token_id": {
441
+ "type": "string",
442
+ "description": "Token ID (required for CONDITIONAL asset type)"
443
+ }
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "name": "get_open_orders",
449
+ "description": "Get all your open (live) orders. Optionally filter by market. Requires authentication.",
450
+ "method": "GET",
451
+ "path": "/data/orders",
452
+ "input_schema": {
453
+ "type": "object",
454
+ "properties": {
455
+ "market": {
456
+ "type": "string",
457
+ "description": "Filter by condition_id (optional)"
458
+ },
459
+ "asset_id": {
460
+ "type": "string",
461
+ "description": "Filter by token_id (optional)"
462
+ },
463
+ "next_cursor": {
464
+ "type": "string",
465
+ "description": "Pagination cursor"
466
+ }
467
+ }
468
+ }
469
+ },
470
+ {
471
+ "name": "get_order",
472
+ "description": "Get details of a specific order by its ID. Returns status, fill amount, and trade details. Requires authentication.",
473
+ "method": "GET",
474
+ "path": "/data/order/%7B%7Border_id%7D%7D",
475
+ "input_schema": {
476
+ "type": "object",
477
+ "properties": {
478
+ "order_id": {
479
+ "type": "string",
480
+ "description": "Order ID to look up"
481
+ }
482
+ },
483
+ "required": [
484
+ "order_id"
485
+ ]
486
+ }
487
+ },
488
+ {
489
+ "name": "get_trades",
490
+ "description": "Get your trade history (filled orders). Requires authentication.",
491
+ "method": "GET",
492
+ "path": "/data/trades",
493
+ "input_schema": {
494
+ "type": "object",
495
+ "properties": {
496
+ "market": {
497
+ "type": "string",
498
+ "description": "Filter by condition_id (optional)"
499
+ },
500
+ "asset_id": {
501
+ "type": "string",
502
+ "description": "Filter by token_id (optional)"
503
+ },
504
+ "next_cursor": {
505
+ "type": "string",
506
+ "description": "Pagination cursor"
507
+ }
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "name": "cancel_order",
513
+ "description": "Cancel a specific open order by its ID. Requires authentication.",
514
+ "method": "DELETE",
515
+ "path": "/order/%7B%7Border_id%7D%7D",
516
+ "input_schema": {
517
+ "type": "object",
518
+ "properties": {
519
+ "order_id": {
520
+ "type": "string",
521
+ "description": "Order ID to cancel"
522
+ }
523
+ },
524
+ "required": [
525
+ "order_id"
526
+ ]
527
+ }
528
+ },
529
+ {
530
+ "name": "cancel_all_orders",
531
+ "description": "Cancel ALL your open orders on Polymarket. Use with caution. Requires authentication.",
532
+ "method": "DELETE",
533
+ "path": "/cancel-all",
534
+ "input_schema": {
535
+ "type": "object",
536
+ "properties": {}
537
+ }
538
+ },
539
+ {
540
+ "name": "cancel_market_orders",
541
+ "description": "Cancel all your open orders for a specific market. Requires authentication.",
542
+ "method": "DELETE",
543
+ "path": "/cancel-market-orders",
544
+ "input_schema": {
545
+ "type": "object",
546
+ "properties": {
547
+ "market": {
548
+ "type": "string",
549
+ "description": "Condition ID of the market to cancel orders for"
550
+ }
551
+ },
552
+ "required": [
553
+ "market"
554
+ ]
555
+ }
556
+ },
557
+ {
558
+ "name": "create_order",
559
+ "description": "Place a limit order on Polymarket. The order is cryptographically signed (EIP-712) and submitted to the CLOB. Price is between 0 and 1 (probability). Use polymarket-get-orderbook first to check liquidity. Requires credentials with private_key for signing.",
560
+ "method": "POST",
561
+ "path": "/create-order",
562
+ "input_schema": {
563
+ "type": "object",
564
+ "properties": {
565
+ "token_id": {
566
+ "type": "string",
567
+ "description": "Token ID to trade (clobTokenId from market data — use polymarket-get-clob-market)"
568
+ },
569
+ "price": {
570
+ "type": "number",
571
+ "description": "Limit price between 0 and 1 (e.g., 0.65 = 65 cents per share = 65% probability)"
572
+ },
573
+ "size": {
574
+ "type": "number",
575
+ "description": "Number of shares to buy or sell"
576
+ },
577
+ "side": {
578
+ "type": "string",
579
+ "enum": [
580
+ "BUY",
581
+ "SELL"
582
+ ],
583
+ "description": "BUY to go long (bet YES), SELL to go short (bet NO)"
584
+ },
585
+ "order_type": {
586
+ "type": "string",
587
+ "enum": [
588
+ "GTC",
589
+ "GTD",
590
+ "FOK"
591
+ ],
592
+ "description": "GTC=Good-Till-Cancel (default), GTD=Good-Till-Date, FOK=Fill-Or-Kill",
593
+ "default": "GTC"
594
+ },
595
+ "expiration": {
596
+ "type": "integer",
597
+ "description": "Unix timestamp for GTD order expiration (must be > now + 60s)"
598
+ },
599
+ "neg_risk": {
600
+ "type": "boolean",
601
+ "description": "Set true for markets with 3+ outcomes. Auto-detected if omitted."
602
+ }
603
+ },
604
+ "required": [
605
+ "token_id",
606
+ "price",
607
+ "size",
608
+ "side"
609
+ ]
610
+ }
611
+ },
612
+ {
613
+ "name": "create_market_order",
614
+ "description": "Place a market order that executes immediately at the best available price. For BUY: amount is in USDC. For SELL: amount is in shares. Use worst_price as a slippage limit. Requires credentials with private_key for signing.",
615
+ "method": "POST",
616
+ "path": "/create-market-order",
617
+ "input_schema": {
618
+ "type": "object",
619
+ "properties": {
620
+ "token_id": {
621
+ "type": "string",
622
+ "description": "Token ID to trade"
623
+ },
624
+ "amount": {
625
+ "type": "number",
626
+ "description": "USDC amount for BUY orders, share count for SELL orders"
627
+ },
628
+ "side": {
629
+ "type": "string",
630
+ "enum": [
631
+ "BUY",
632
+ "SELL"
633
+ ],
634
+ "description": "BUY or SELL"
635
+ },
636
+ "worst_price": {
637
+ "type": "number",
638
+ "description": "Maximum price willing to pay (slippage protection, 0-1)"
639
+ },
640
+ "neg_risk": {
641
+ "type": "boolean",
642
+ "description": "Set true for markets with 3+ outcomes. Auto-detected if omitted."
643
+ }
644
+ },
645
+ "required": [
646
+ "token_id",
647
+ "amount",
648
+ "side"
649
+ ]
650
+ }
651
+ }
652
+ ]
653
+ }