@keystrokehq/polymarket 0.0.16 → 0.1.2

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 (399) hide show
  1. package/README.md +14 -2
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/cancel-all-open-orders.cjs +16 -0
  7. package/dist/actions/cancel-all-open-orders.cjs.map +1 -0
  8. package/dist/actions/cancel-all-open-orders.d.cts +15 -0
  9. package/dist/actions/cancel-all-open-orders.d.cts.map +1 -0
  10. package/dist/actions/cancel-all-open-orders.d.mts +15 -0
  11. package/dist/actions/cancel-all-open-orders.d.mts.map +1 -0
  12. package/dist/actions/cancel-all-open-orders.mjs +13 -0
  13. package/dist/actions/cancel-all-open-orders.mjs.map +1 -0
  14. package/dist/actions/cancel-multiple-orders.cjs +19 -0
  15. package/dist/actions/cancel-multiple-orders.cjs.map +1 -0
  16. package/dist/actions/cancel-multiple-orders.d.cts +21 -0
  17. package/dist/actions/cancel-multiple-orders.d.cts.map +1 -0
  18. package/dist/actions/cancel-multiple-orders.d.mts +21 -0
  19. package/dist/actions/cancel-multiple-orders.d.mts.map +1 -0
  20. package/dist/actions/cancel-multiple-orders.mjs +16 -0
  21. package/dist/actions/cancel-multiple-orders.mjs.map +1 -0
  22. package/dist/actions/cancel-order.cjs +19 -0
  23. package/dist/actions/cancel-order.cjs.map +1 -0
  24. package/dist/actions/cancel-order.d.cts +17 -0
  25. package/dist/actions/cancel-order.d.cts.map +1 -0
  26. package/dist/actions/cancel-order.d.mts +17 -0
  27. package/dist/actions/cancel-order.d.mts.map +1 -0
  28. package/dist/actions/cancel-order.mjs +16 -0
  29. package/dist/actions/cancel-order.mjs.map +1 -0
  30. package/dist/actions/close-position-order.cjs +29 -0
  31. package/dist/actions/close-position-order.cjs.map +1 -0
  32. package/dist/actions/close-position-order.d.cts +40 -0
  33. package/dist/actions/close-position-order.d.cts.map +1 -0
  34. package/dist/actions/close-position-order.d.mts +40 -0
  35. package/dist/actions/close-position-order.d.mts.map +1 -0
  36. package/dist/actions/close-position-order.mjs +26 -0
  37. package/dist/actions/close-position-order.mjs.map +1 -0
  38. package/dist/actions/create-multiple-orders.cjs +56 -0
  39. package/dist/actions/create-multiple-orders.cjs.map +1 -0
  40. package/dist/actions/create-multiple-orders.d.cts +96 -0
  41. package/dist/actions/create-multiple-orders.d.cts.map +1 -0
  42. package/dist/actions/create-multiple-orders.d.mts +96 -0
  43. package/dist/actions/create-multiple-orders.d.mts.map +1 -0
  44. package/dist/actions/create-multiple-orders.mjs +53 -0
  45. package/dist/actions/create-multiple-orders.mjs.map +1 -0
  46. package/dist/actions/create-order.cjs +56 -0
  47. package/dist/actions/create-order.cjs.map +1 -0
  48. package/dist/actions/create-order.d.cts +96 -0
  49. package/dist/actions/create-order.d.cts.map +1 -0
  50. package/dist/actions/create-order.d.mts +96 -0
  51. package/dist/actions/create-order.d.mts.map +1 -0
  52. package/dist/actions/create-order.mjs +53 -0
  53. package/dist/actions/create-order.mjs.map +1 -0
  54. package/dist/actions/get-account-balances.cjs +40 -0
  55. package/dist/actions/get-account-balances.cjs.map +1 -0
  56. package/dist/actions/get-account-balances.d.cts +33 -0
  57. package/dist/actions/get-account-balances.d.cts.map +1 -0
  58. package/dist/actions/get-account-balances.d.mts +33 -0
  59. package/dist/actions/get-account-balances.d.mts.map +1 -0
  60. package/dist/actions/get-account-balances.mjs +39 -0
  61. package/dist/actions/get-account-balances.mjs.map +1 -0
  62. package/dist/actions/get-activities.cjs +34 -0
  63. package/dist/actions/get-activities.cjs.map +1 -0
  64. package/dist/actions/get-activities.d.cts +36 -0
  65. package/dist/actions/get-activities.d.cts.map +1 -0
  66. package/dist/actions/get-activities.d.mts +36 -0
  67. package/dist/actions/get-activities.d.mts.map +1 -0
  68. package/dist/actions/get-activities.mjs +31 -0
  69. package/dist/actions/get-activities.mjs.map +1 -0
  70. package/dist/actions/get-event-by-id.cjs +16 -0
  71. package/dist/actions/get-event-by-id.cjs.map +1 -0
  72. package/dist/actions/get-event-by-id.d.cts +15 -0
  73. package/dist/actions/get-event-by-id.d.cts.map +1 -0
  74. package/dist/actions/get-event-by-id.d.mts +15 -0
  75. package/dist/actions/get-event-by-id.d.mts.map +1 -0
  76. package/dist/actions/get-event-by-id.mjs +13 -0
  77. package/dist/actions/get-event-by-id.mjs.map +1 -0
  78. package/dist/actions/get-event-by-slug.cjs +16 -0
  79. package/dist/actions/get-event-by-slug.cjs.map +1 -0
  80. package/dist/actions/get-event-by-slug.d.cts +15 -0
  81. package/dist/actions/get-event-by-slug.d.cts.map +1 -0
  82. package/dist/actions/get-event-by-slug.d.mts +15 -0
  83. package/dist/actions/get-event-by-slug.d.mts.map +1 -0
  84. package/dist/actions/get-event-by-slug.mjs +13 -0
  85. package/dist/actions/get-event-by-slug.mjs.map +1 -0
  86. package/dist/actions/get-league-by-slug.cjs +16 -0
  87. package/dist/actions/get-league-by-slug.cjs.map +1 -0
  88. package/dist/actions/get-league-by-slug.d.cts +15 -0
  89. package/dist/actions/get-league-by-slug.d.cts.map +1 -0
  90. package/dist/actions/get-league-by-slug.d.mts +15 -0
  91. package/dist/actions/get-league-by-slug.d.mts.map +1 -0
  92. package/dist/actions/get-league-by-slug.mjs +13 -0
  93. package/dist/actions/get-league-by-slug.mjs.map +1 -0
  94. package/dist/actions/get-market-bbo.cjs +16 -0
  95. package/dist/actions/get-market-bbo.cjs.map +1 -0
  96. package/dist/actions/get-market-bbo.d.cts +15 -0
  97. package/dist/actions/get-market-bbo.d.cts.map +1 -0
  98. package/dist/actions/get-market-bbo.d.mts +15 -0
  99. package/dist/actions/get-market-bbo.d.mts.map +1 -0
  100. package/dist/actions/get-market-bbo.mjs +13 -0
  101. package/dist/actions/get-market-bbo.mjs.map +1 -0
  102. package/dist/actions/get-market-book.cjs +16 -0
  103. package/dist/actions/get-market-book.cjs.map +1 -0
  104. package/dist/actions/get-market-book.d.cts +15 -0
  105. package/dist/actions/get-market-book.d.cts.map +1 -0
  106. package/dist/actions/get-market-book.d.mts +15 -0
  107. package/dist/actions/get-market-book.d.mts.map +1 -0
  108. package/dist/actions/get-market-book.mjs +13 -0
  109. package/dist/actions/get-market-book.mjs.map +1 -0
  110. package/dist/actions/get-market-by-id.cjs +16 -0
  111. package/dist/actions/get-market-by-id.cjs.map +1 -0
  112. package/dist/actions/get-market-by-id.d.cts +15 -0
  113. package/dist/actions/get-market-by-id.d.cts.map +1 -0
  114. package/dist/actions/get-market-by-id.d.mts +15 -0
  115. package/dist/actions/get-market-by-id.d.mts.map +1 -0
  116. package/dist/actions/get-market-by-id.mjs +13 -0
  117. package/dist/actions/get-market-by-id.mjs.map +1 -0
  118. package/dist/actions/get-market-by-slug.cjs +16 -0
  119. package/dist/actions/get-market-by-slug.cjs.map +1 -0
  120. package/dist/actions/get-market-by-slug.d.cts +15 -0
  121. package/dist/actions/get-market-by-slug.d.cts.map +1 -0
  122. package/dist/actions/get-market-by-slug.d.mts +15 -0
  123. package/dist/actions/get-market-by-slug.d.mts.map +1 -0
  124. package/dist/actions/get-market-by-slug.mjs +13 -0
  125. package/dist/actions/get-market-by-slug.mjs.map +1 -0
  126. package/dist/actions/get-market-settlement.cjs +19 -0
  127. package/dist/actions/get-market-settlement.cjs.map +1 -0
  128. package/dist/actions/get-market-settlement.d.cts +17 -0
  129. package/dist/actions/get-market-settlement.d.cts.map +1 -0
  130. package/dist/actions/get-market-settlement.d.mts +17 -0
  131. package/dist/actions/get-market-settlement.d.mts.map +1 -0
  132. package/dist/actions/get-market-settlement.mjs +16 -0
  133. package/dist/actions/get-market-settlement.mjs.map +1 -0
  134. package/dist/actions/get-markets-for-subject-by-slug.cjs +16 -0
  135. package/dist/actions/get-markets-for-subject-by-slug.cjs.map +1 -0
  136. package/dist/actions/get-markets-for-subject-by-slug.d.cts +15 -0
  137. package/dist/actions/get-markets-for-subject-by-slug.d.cts.map +1 -0
  138. package/dist/actions/get-markets-for-subject-by-slug.d.mts +15 -0
  139. package/dist/actions/get-markets-for-subject-by-slug.d.mts.map +1 -0
  140. package/dist/actions/get-markets-for-subject-by-slug.mjs +13 -0
  141. package/dist/actions/get-markets-for-subject-by-slug.mjs.map +1 -0
  142. package/dist/actions/get-markets-for-subject.cjs +16 -0
  143. package/dist/actions/get-markets-for-subject.cjs.map +1 -0
  144. package/dist/actions/get-markets-for-subject.d.cts +15 -0
  145. package/dist/actions/get-markets-for-subject.d.cts.map +1 -0
  146. package/dist/actions/get-markets-for-subject.d.mts +15 -0
  147. package/dist/actions/get-markets-for-subject.d.mts.map +1 -0
  148. package/dist/actions/get-markets-for-subject.mjs +13 -0
  149. package/dist/actions/get-markets-for-subject.mjs.map +1 -0
  150. package/dist/actions/get-open-orders.cjs +16 -0
  151. package/dist/actions/get-open-orders.cjs.map +1 -0
  152. package/dist/actions/get-open-orders.d.cts +15 -0
  153. package/dist/actions/get-open-orders.d.cts.map +1 -0
  154. package/dist/actions/get-open-orders.d.mts +15 -0
  155. package/dist/actions/get-open-orders.d.mts.map +1 -0
  156. package/dist/actions/get-open-orders.mjs +13 -0
  157. package/dist/actions/get-open-orders.mjs.map +1 -0
  158. package/dist/actions/get-order.cjs +16 -0
  159. package/dist/actions/get-order.cjs.map +1 -0
  160. package/dist/actions/get-order.d.cts +15 -0
  161. package/dist/actions/get-order.d.cts.map +1 -0
  162. package/dist/actions/get-order.d.mts +15 -0
  163. package/dist/actions/get-order.d.mts.map +1 -0
  164. package/dist/actions/get-order.mjs +13 -0
  165. package/dist/actions/get-order.mjs.map +1 -0
  166. package/dist/actions/get-series-by-id.cjs +16 -0
  167. package/dist/actions/get-series-by-id.cjs.map +1 -0
  168. package/dist/actions/get-series-by-id.d.cts +15 -0
  169. package/dist/actions/get-series-by-id.d.cts.map +1 -0
  170. package/dist/actions/get-series-by-id.d.mts +15 -0
  171. package/dist/actions/get-series-by-id.d.mts.map +1 -0
  172. package/dist/actions/get-series-by-id.mjs +13 -0
  173. package/dist/actions/get-series-by-id.mjs.map +1 -0
  174. package/dist/actions/get-sport-by-slug.cjs +16 -0
  175. package/dist/actions/get-sport-by-slug.cjs.map +1 -0
  176. package/dist/actions/get-sport-by-slug.d.cts +15 -0
  177. package/dist/actions/get-sport-by-slug.d.cts.map +1 -0
  178. package/dist/actions/get-sport-by-slug.d.mts +15 -0
  179. package/dist/actions/get-sport-by-slug.d.mts.map +1 -0
  180. package/dist/actions/get-sport-by-slug.mjs +13 -0
  181. package/dist/actions/get-sport-by-slug.mjs.map +1 -0
  182. package/dist/actions/get-subject-by-id.cjs +16 -0
  183. package/dist/actions/get-subject-by-id.cjs.map +1 -0
  184. package/dist/actions/get-subject-by-id.d.cts +15 -0
  185. package/dist/actions/get-subject-by-id.d.cts.map +1 -0
  186. package/dist/actions/get-subject-by-id.d.mts +15 -0
  187. package/dist/actions/get-subject-by-id.d.mts.map +1 -0
  188. package/dist/actions/get-subject-by-id.mjs +13 -0
  189. package/dist/actions/get-subject-by-id.mjs.map +1 -0
  190. package/dist/actions/get-subject-by-slug.cjs +16 -0
  191. package/dist/actions/get-subject-by-slug.cjs.map +1 -0
  192. package/dist/actions/get-subject-by-slug.d.cts +15 -0
  193. package/dist/actions/get-subject-by-slug.d.cts.map +1 -0
  194. package/dist/actions/get-subject-by-slug.d.mts +15 -0
  195. package/dist/actions/get-subject-by-slug.d.mts.map +1 -0
  196. package/dist/actions/get-subject-by-slug.mjs +13 -0
  197. package/dist/actions/get-subject-by-slug.mjs.map +1 -0
  198. package/dist/actions/get-tag-by-id.cjs +16 -0
  199. package/dist/actions/get-tag-by-id.cjs.map +1 -0
  200. package/dist/actions/get-tag-by-id.d.cts +15 -0
  201. package/dist/actions/get-tag-by-id.d.cts.map +1 -0
  202. package/dist/actions/get-tag-by-id.d.mts +15 -0
  203. package/dist/actions/get-tag-by-id.d.mts.map +1 -0
  204. package/dist/actions/get-tag-by-id.mjs +13 -0
  205. package/dist/actions/get-tag-by-id.mjs.map +1 -0
  206. package/dist/actions/get-tag-by-slug.cjs +16 -0
  207. package/dist/actions/get-tag-by-slug.cjs.map +1 -0
  208. package/dist/actions/get-tag-by-slug.d.cts +15 -0
  209. package/dist/actions/get-tag-by-slug.d.cts.map +1 -0
  210. package/dist/actions/get-tag-by-slug.d.mts +15 -0
  211. package/dist/actions/get-tag-by-slug.d.mts.map +1 -0
  212. package/dist/actions/get-tag-by-slug.mjs +13 -0
  213. package/dist/actions/get-tag-by-slug.mjs.map +1 -0
  214. package/dist/actions/get-user-positions.cjs +25 -0
  215. package/dist/actions/get-user-positions.cjs.map +1 -0
  216. package/dist/actions/get-user-positions.d.cts +22 -0
  217. package/dist/actions/get-user-positions.d.cts.map +1 -0
  218. package/dist/actions/get-user-positions.d.mts +22 -0
  219. package/dist/actions/get-user-positions.d.mts.map +1 -0
  220. package/dist/actions/get-user-positions.mjs +22 -0
  221. package/dist/actions/get-user-positions.mjs.map +1 -0
  222. package/dist/actions/index.cjs +89 -0
  223. package/dist/actions/index.d.cts +45 -0
  224. package/dist/actions/index.d.mts +45 -0
  225. package/dist/actions/index.mjs +45 -0
  226. package/dist/actions/list-events-for-league.cjs +23 -0
  227. package/dist/actions/list-events-for-league.cjs.map +1 -0
  228. package/dist/actions/list-events-for-league.d.cts +31 -0
  229. package/dist/actions/list-events-for-league.d.cts.map +1 -0
  230. package/dist/actions/list-events-for-league.d.mts +31 -0
  231. package/dist/actions/list-events-for-league.d.mts.map +1 -0
  232. package/dist/actions/list-events-for-league.mjs +20 -0
  233. package/dist/actions/list-events-for-league.mjs.map +1 -0
  234. package/dist/actions/list-events-for-series.cjs +23 -0
  235. package/dist/actions/list-events-for-series.cjs.map +1 -0
  236. package/dist/actions/list-events-for-series.d.cts +31 -0
  237. package/dist/actions/list-events-for-series.d.cts.map +1 -0
  238. package/dist/actions/list-events-for-series.d.mts +31 -0
  239. package/dist/actions/list-events-for-series.d.mts.map +1 -0
  240. package/dist/actions/list-events-for-series.mjs +20 -0
  241. package/dist/actions/list-events-for-series.mjs.map +1 -0
  242. package/dist/actions/list-events-for-sport.cjs +23 -0
  243. package/dist/actions/list-events-for-sport.cjs.map +1 -0
  244. package/dist/actions/list-events-for-sport.d.cts +31 -0
  245. package/dist/actions/list-events-for-sport.d.cts.map +1 -0
  246. package/dist/actions/list-events-for-sport.d.mts +31 -0
  247. package/dist/actions/list-events-for-sport.d.mts.map +1 -0
  248. package/dist/actions/list-events-for-sport.mjs +20 -0
  249. package/dist/actions/list-events-for-sport.mjs.map +1 -0
  250. package/dist/actions/list-events.cjs +32 -0
  251. package/dist/actions/list-events.cjs.map +1 -0
  252. package/dist/actions/list-events.d.cts +46 -0
  253. package/dist/actions/list-events.d.cts.map +1 -0
  254. package/dist/actions/list-events.d.mts +46 -0
  255. package/dist/actions/list-events.d.mts.map +1 -0
  256. package/dist/actions/list-events.mjs +29 -0
  257. package/dist/actions/list-events.mjs.map +1 -0
  258. package/dist/actions/list-featured-tags.cjs +16 -0
  259. package/dist/actions/list-featured-tags.cjs.map +1 -0
  260. package/dist/actions/list-featured-tags.d.cts +11 -0
  261. package/dist/actions/list-featured-tags.d.cts.map +1 -0
  262. package/dist/actions/list-featured-tags.d.mts +11 -0
  263. package/dist/actions/list-featured-tags.d.mts.map +1 -0
  264. package/dist/actions/list-featured-tags.mjs +13 -0
  265. package/dist/actions/list-featured-tags.mjs.map +1 -0
  266. package/dist/actions/list-leagues.cjs +19 -0
  267. package/dist/actions/list-leagues.cjs.map +1 -0
  268. package/dist/actions/list-leagues.d.cts +17 -0
  269. package/dist/actions/list-leagues.d.cts.map +1 -0
  270. package/dist/actions/list-leagues.d.mts +17 -0
  271. package/dist/actions/list-leagues.d.mts.map +1 -0
  272. package/dist/actions/list-leagues.mjs +16 -0
  273. package/dist/actions/list-leagues.mjs.map +1 -0
  274. package/dist/actions/list-markets.cjs +38 -0
  275. package/dist/actions/list-markets.cjs.map +1 -0
  276. package/dist/actions/list-markets.d.cts +51 -0
  277. package/dist/actions/list-markets.d.cts.map +1 -0
  278. package/dist/actions/list-markets.d.mts +51 -0
  279. package/dist/actions/list-markets.d.mts.map +1 -0
  280. package/dist/actions/list-markets.mjs +35 -0
  281. package/dist/actions/list-markets.mjs.map +1 -0
  282. package/dist/actions/list-series.cjs +24 -0
  283. package/dist/actions/list-series.cjs.map +1 -0
  284. package/dist/actions/list-series.d.cts +30 -0
  285. package/dist/actions/list-series.d.cts.map +1 -0
  286. package/dist/actions/list-series.d.mts +30 -0
  287. package/dist/actions/list-series.d.mts.map +1 -0
  288. package/dist/actions/list-series.mjs +21 -0
  289. package/dist/actions/list-series.mjs.map +1 -0
  290. package/dist/actions/list-sports-teams-for-provider.cjs +20 -0
  291. package/dist/actions/list-sports-teams-for-provider.cjs.map +1 -0
  292. package/dist/actions/list-sports-teams-for-provider.d.cts +22 -0
  293. package/dist/actions/list-sports-teams-for-provider.d.cts.map +1 -0
  294. package/dist/actions/list-sports-teams-for-provider.d.mts +22 -0
  295. package/dist/actions/list-sports-teams-for-provider.d.mts.map +1 -0
  296. package/dist/actions/list-sports-teams-for-provider.mjs +17 -0
  297. package/dist/actions/list-sports-teams-for-provider.mjs.map +1 -0
  298. package/dist/actions/list-sports-teams.cjs +25 -0
  299. package/dist/actions/list-sports-teams.cjs.map +1 -0
  300. package/dist/actions/list-sports-teams.d.cts +32 -0
  301. package/dist/actions/list-sports-teams.d.cts.map +1 -0
  302. package/dist/actions/list-sports-teams.d.mts +32 -0
  303. package/dist/actions/list-sports-teams.d.mts.map +1 -0
  304. package/dist/actions/list-sports-teams.mjs +22 -0
  305. package/dist/actions/list-sports-teams.mjs.map +1 -0
  306. package/dist/actions/list-sports.cjs +16 -0
  307. package/dist/actions/list-sports.cjs.map +1 -0
  308. package/dist/actions/list-sports.d.cts +11 -0
  309. package/dist/actions/list-sports.d.cts.map +1 -0
  310. package/dist/actions/list-sports.d.mts +11 -0
  311. package/dist/actions/list-sports.d.mts.map +1 -0
  312. package/dist/actions/list-sports.mjs +13 -0
  313. package/dist/actions/list-sports.mjs.map +1 -0
  314. package/dist/actions/list-subjects.cjs +21 -0
  315. package/dist/actions/list-subjects.cjs.map +1 -0
  316. package/dist/actions/list-subjects.d.cts +21 -0
  317. package/dist/actions/list-subjects.d.cts.map +1 -0
  318. package/dist/actions/list-subjects.d.mts +21 -0
  319. package/dist/actions/list-subjects.d.mts.map +1 -0
  320. package/dist/actions/list-subjects.mjs +18 -0
  321. package/dist/actions/list-subjects.mjs.map +1 -0
  322. package/dist/actions/list-tags.cjs +25 -0
  323. package/dist/actions/list-tags.cjs.map +1 -0
  324. package/dist/actions/list-tags.d.cts +32 -0
  325. package/dist/actions/list-tags.d.cts.map +1 -0
  326. package/dist/actions/list-tags.d.mts +32 -0
  327. package/dist/actions/list-tags.d.mts.map +1 -0
  328. package/dist/actions/list-tags.mjs +22 -0
  329. package/dist/actions/list-tags.mjs.map +1 -0
  330. package/dist/actions/modify-multiple-orders.cjs +33 -0
  331. package/dist/actions/modify-multiple-orders.cjs.map +1 -0
  332. package/dist/actions/modify-multiple-orders.d.cts +43 -0
  333. package/dist/actions/modify-multiple-orders.d.cts.map +1 -0
  334. package/dist/actions/modify-multiple-orders.d.mts +43 -0
  335. package/dist/actions/modify-multiple-orders.d.mts.map +1 -0
  336. package/dist/actions/modify-multiple-orders.mjs +30 -0
  337. package/dist/actions/modify-multiple-orders.mjs.map +1 -0
  338. package/dist/actions/modify-order.cjs +33 -0
  339. package/dist/actions/modify-order.cjs.map +1 -0
  340. package/dist/actions/modify-order.d.cts +39 -0
  341. package/dist/actions/modify-order.d.cts.map +1 -0
  342. package/dist/actions/modify-order.d.mts +39 -0
  343. package/dist/actions/modify-order.d.mts.map +1 -0
  344. package/dist/actions/modify-order.mjs +30 -0
  345. package/dist/actions/modify-order.mjs.map +1 -0
  346. package/dist/actions/preview-order.cjs +56 -0
  347. package/dist/actions/preview-order.cjs.map +1 -0
  348. package/dist/actions/preview-order.d.cts +96 -0
  349. package/dist/actions/preview-order.d.cts.map +1 -0
  350. package/dist/actions/preview-order.d.mts +96 -0
  351. package/dist/actions/preview-order.d.mts.map +1 -0
  352. package/dist/actions/preview-order.mjs +53 -0
  353. package/dist/actions/preview-order.mjs.map +1 -0
  354. package/dist/actions/search-markets-and-events.cjs +23 -0
  355. package/dist/actions/search-markets-and-events.cjs.map +1 -0
  356. package/dist/actions/search-markets-and-events.d.cts +25 -0
  357. package/dist/actions/search-markets-and-events.d.cts.map +1 -0
  358. package/dist/actions/search-markets-and-events.d.mts +25 -0
  359. package/dist/actions/search-markets-and-events.d.mts.map +1 -0
  360. package/dist/actions/search-markets-and-events.mjs +20 -0
  361. package/dist/actions/search-markets-and-events.mjs.map +1 -0
  362. package/dist/app.cjs +9 -0
  363. package/dist/app.cjs.map +1 -0
  364. package/dist/app.d.cts +5 -0
  365. package/dist/app.d.cts.map +1 -0
  366. package/dist/app.d.mts +5 -0
  367. package/dist/app.d.mts.map +1 -0
  368. package/dist/app.mjs +10 -0
  369. package/dist/app.mjs.map +1 -0
  370. package/dist/catalog.cjs +27 -0
  371. package/dist/catalog.cjs.map +1 -0
  372. package/dist/catalog.d.cts +26 -0
  373. package/dist/catalog.d.cts.map +1 -0
  374. package/dist/catalog.d.mts +26 -0
  375. package/dist/catalog.d.mts.map +1 -0
  376. package/dist/catalog.mjs +27 -0
  377. package/dist/catalog.mjs.map +1 -0
  378. package/dist/execute.cjs +18 -0
  379. package/dist/execute.cjs.map +1 -0
  380. package/dist/execute.mjs +18 -0
  381. package/dist/execute.mjs.map +1 -0
  382. package/dist/index.cjs +94 -0
  383. package/dist/index.d.cts +47 -0
  384. package/dist/index.d.mts +47 -4
  385. package/dist/index.mjs +48 -5
  386. package/package.json +31 -52
  387. package/LICENSE +0 -21
  388. package/dist/credential-sets/index.d.mts +0 -2
  389. package/dist/credential-sets/index.mjs +0 -3
  390. package/dist/data-g8Gt5cqR.mjs +0 -246
  391. package/dist/operations/index.d.mts +0 -2
  392. package/dist/operations/index.mjs +0 -3
  393. package/dist/polymarket.credential-set-jU6p-ps3.d.mts +0 -14
  394. package/dist/polymarket.credential-set-wbGYLp9q.mjs +0 -19
  395. package/dist/pricing-x-VWqR0L.d.mts +0 -309
  396. package/dist/schemas/index.d.mts +0 -2
  397. package/dist/schemas/index.mjs +0 -3
  398. package/dist/search-polymarket.operation-BW-S0mae.d.mts +0 -700
  399. package/dist/search-polymarket.operation-DPkjnHty.mjs +0 -624
@@ -1,624 +0,0 @@
1
- import { t as polymarketCredentialSet } from "./polymarket.credential-set-wbGYLp9q.mjs";
2
- import { S as priceHistoryResponseSchema, T as spreadSchema, _ as tagSchema, a as tradeSchema, b as clobPricesMapSchema, c as listMarketsParamsSchema, d as profileSchema, f as searchResultSchema, g as sportsTeamSchema, h as sportsMetadataSchema, i as positionSchema, l as marketSchema, m as sportsMarketTypeSchema, n as liveVolumeSchema, o as eventSchema, p as seriesSchema, r as openInterestSchema, s as listEventsParamsSchema, t as holderSchema, v as clobMidpointSchema, w as orderBookSummarySchema, y as clobPriceSchema } from "./data-g8Gt5cqR.mjs";
3
- import { Operation } from "@keystrokehq/core";
4
- import { z } from "zod";
5
-
6
- //#region src/utils/client.ts
7
- const POLYMARKET_HOSTS = {
8
- gamma: "https://gamma-api.polymarket.com",
9
- clob: "https://clob.polymarket.com",
10
- data: "https://data-api.polymarket.com"
11
- };
12
- function createPolymarketClient(credentials) {
13
- const request = async (options) => {
14
- const { host, method, path, body, query } = options;
15
- let url = `${POLYMARKET_HOSTS[host]}${path}`;
16
- if (query) {
17
- const params = new URLSearchParams();
18
- for (const [key, value] of Object.entries(query)) if (value !== void 0) params.set(key, String(value));
19
- const qs = params.toString();
20
- if (qs) url = `${url}?${qs}`;
21
- }
22
- const headers = { Accept: "application/json" };
23
- if (credentials.POLYMARKET_API_KEY) headers.Authorization = `Bearer ${credentials.POLYMARKET_API_KEY}`;
24
- if (body !== void 0) headers["Content-Type"] = "application/json";
25
- const response = await fetch(url, {
26
- method,
27
- headers,
28
- body: body !== void 0 ? JSON.stringify(body) : void 0
29
- });
30
- if (!response.ok) {
31
- const errorBody = await response.text().catch(() => "");
32
- throw new Error(`Polymarket API error (${host}): ${response.status} ${response.statusText}${errorBody ? ` — ${errorBody}` : ""}`);
33
- }
34
- const data = await response.json();
35
- if (data === null || data === void 0) throw new Error(`Polymarket API returned empty response for ${method} ${url} (status ${response.status})`);
36
- return data;
37
- };
38
- return { request };
39
- }
40
-
41
- //#endregion
42
- //#region src/operations/batch-get-polymarket-order-books.operation.ts
43
- const batchGetPolymarketOrderBooksOperation = new Operation({
44
- id: "polymarket.batch-get-polymarket-order-books",
45
- name: "Batch Get Polymarket Order Books",
46
- description: "Get order books for multiple tokens (max 500) via the CLOB API",
47
- credentialSets: [polymarketCredentialSet],
48
- input: z.object({ tokenIDs: z.array(z.string()).max(500) }),
49
- output: z.array(orderBookSummarySchema),
50
- run: async (input, context) => {
51
- return createPolymarketClient(context.credentials.polymarket).request({
52
- host: "clob",
53
- method: "POST",
54
- path: "/books",
55
- body: input.tokenIDs
56
- });
57
- }
58
- });
59
-
60
- //#endregion
61
- //#region src/operations/batch-get-polymarket-prices.operation.ts
62
- const batchGetPolymarketPricesOperation = new Operation({
63
- id: "polymarket.batch-get-polymarket-prices",
64
- name: "Batch Get Polymarket Prices",
65
- description: "Get prices for multiple tokens (max 500) via the CLOB API",
66
- credentialSets: [polymarketCredentialSet],
67
- input: z.object({ tokenIDs: z.array(z.string()).max(500) }),
68
- output: clobPricesMapSchema,
69
- run: async (input, context) => {
70
- return createPolymarketClient(context.credentials.polymarket).request({
71
- host: "clob",
72
- method: "POST",
73
- path: "/prices",
74
- body: input.tokenIDs
75
- });
76
- }
77
- });
78
-
79
- //#endregion
80
- //#region src/operations/batch-get-polymarket-spreads.operation.ts
81
- const batchGetPolymarketSpreadsOperation = new Operation({
82
- id: "polymarket.batch-get-polymarket-spreads",
83
- name: "Batch Get Polymarket Spreads",
84
- description: "Get spreads for multiple tokens (max 500) via the CLOB API",
85
- credentialSets: [polymarketCredentialSet],
86
- input: z.object({ tokenIDs: z.array(z.string()).max(500) }),
87
- output: z.array(spreadSchema),
88
- run: async (input, context) => {
89
- return createPolymarketClient(context.credentials.polymarket).request({
90
- host: "clob",
91
- method: "POST",
92
- path: "/spreads",
93
- body: input.tokenIDs
94
- });
95
- }
96
- });
97
-
98
- //#endregion
99
- //#region src/operations/get-polymarket-event.operation.ts
100
- const getPolymarketEventOperation = new Operation({
101
- id: "polymarket.get-polymarket-event",
102
- name: "Get Polymarket Event",
103
- description: "Get a single event by ID from the Gamma API",
104
- credentialSets: [polymarketCredentialSet],
105
- input: z.object({ id: z.string() }),
106
- output: eventSchema,
107
- run: async (input, context) => {
108
- return createPolymarketClient(context.credentials.polymarket).request({
109
- host: "gamma",
110
- method: "GET",
111
- path: `/events/${input.id}`
112
- });
113
- }
114
- });
115
-
116
- //#endregion
117
- //#region src/operations/get-polymarket-event-by-slug.operation.ts
118
- const getPolymarketEventBySlugOperation = new Operation({
119
- id: "polymarket.get-polymarket-event-by-slug",
120
- name: "Get Polymarket Event by Slug",
121
- description: "Get a single event by slug from the Gamma API",
122
- credentialSets: [polymarketCredentialSet],
123
- input: z.object({ slug: z.string() }),
124
- output: eventSchema,
125
- run: async (input, context) => {
126
- return createPolymarketClient(context.credentials.polymarket).request({
127
- host: "gamma",
128
- method: "GET",
129
- path: `/events/slug/${input.slug}`
130
- });
131
- }
132
- });
133
-
134
- //#endregion
135
- //#region src/operations/get-polymarket-event-tags.operation.ts
136
- const getPolymarketEventTagsOperation = new Operation({
137
- id: "polymarket.get-polymarket-event-tags",
138
- name: "Get Polymarket Event Tags",
139
- description: "Get tags for an event by event ID from the Gamma API",
140
- credentialSets: [polymarketCredentialSet],
141
- input: z.object({ id: z.string() }),
142
- output: z.array(tagSchema),
143
- run: async (input, context) => {
144
- return createPolymarketClient(context.credentials.polymarket).request({
145
- host: "gamma",
146
- method: "GET",
147
- path: `/events/${input.id}/tags`
148
- });
149
- }
150
- });
151
-
152
- //#endregion
153
- //#region src/operations/get-polymarket-live-volume.operation.ts
154
- const getPolymarketLiveVolumeOperation = new Operation({
155
- id: "polymarket.get-polymarket-live-volume",
156
- name: "Get Polymarket Live Volume",
157
- description: "Get live volume for an event via the Data API",
158
- credentialSets: [polymarketCredentialSet],
159
- input: z.object({ eventId: z.string() }),
160
- output: liveVolumeSchema,
161
- run: async (input, context) => {
162
- return createPolymarketClient(context.credentials.polymarket).request({
163
- host: "data",
164
- method: "GET",
165
- path: "/live-volume",
166
- query: { event_id: input.eventId }
167
- });
168
- }
169
- });
170
-
171
- //#endregion
172
- //#region src/operations/get-polymarket-market.operation.ts
173
- const getPolymarketMarketOperation = new Operation({
174
- id: "polymarket.get-polymarket-market",
175
- name: "Get Polymarket Market",
176
- description: "Get a single market by ID from the Gamma API",
177
- credentialSets: [polymarketCredentialSet],
178
- input: z.object({ id: z.string() }),
179
- output: marketSchema,
180
- run: async (input, context) => {
181
- return createPolymarketClient(context.credentials.polymarket).request({
182
- host: "gamma",
183
- method: "GET",
184
- path: `/markets/${input.id}`
185
- });
186
- }
187
- });
188
-
189
- //#endregion
190
- //#region src/operations/get-polymarket-market-by-slug.operation.ts
191
- const getPolymarketMarketBySlugOperation = new Operation({
192
- id: "polymarket.get-polymarket-market-by-slug",
193
- name: "Get Polymarket Market by Slug",
194
- description: "Get a single market by slug from the Gamma API",
195
- credentialSets: [polymarketCredentialSet],
196
- input: z.object({ slug: z.string() }),
197
- output: marketSchema,
198
- run: async (input, context) => {
199
- return createPolymarketClient(context.credentials.polymarket).request({
200
- host: "gamma",
201
- method: "GET",
202
- path: `/markets/slug/${input.slug}`
203
- });
204
- }
205
- });
206
-
207
- //#endregion
208
- //#region src/operations/get-polymarket-market-holders.operation.ts
209
- const getPolymarketMarketHoldersOperation = new Operation({
210
- id: "polymarket.get-polymarket-market-holders",
211
- name: "Get Polymarket Market Holders",
212
- description: "Get top holders for a market via the Data API",
213
- credentialSets: [polymarketCredentialSet],
214
- input: z.object({
215
- conditionId: z.string(),
216
- limit: z.number().optional(),
217
- offset: z.number().optional()
218
- }),
219
- output: z.array(holderSchema),
220
- run: async (input, context) => {
221
- return createPolymarketClient(context.credentials.polymarket).request({
222
- host: "data",
223
- method: "GET",
224
- path: "/holders",
225
- query: {
226
- market: input.conditionId,
227
- limit: input.limit,
228
- offset: input.offset
229
- }
230
- });
231
- }
232
- });
233
-
234
- //#endregion
235
- //#region src/operations/get-polymarket-market-tags.operation.ts
236
- const getPolymarketMarketTagsOperation = new Operation({
237
- id: "polymarket.get-polymarket-market-tags",
238
- name: "Get Polymarket Market Tags",
239
- description: "Get tags for a market by market ID from the Gamma API",
240
- credentialSets: [polymarketCredentialSet],
241
- input: z.object({ id: z.string() }),
242
- output: z.array(tagSchema),
243
- run: async (input, context) => {
244
- return createPolymarketClient(context.credentials.polymarket).request({
245
- host: "gamma",
246
- method: "GET",
247
- path: `/markets/${input.id}/tags`
248
- });
249
- }
250
- });
251
-
252
- //#endregion
253
- //#region src/operations/get-polymarket-midpoint.operation.ts
254
- const getPolymarketMidpointOperation = new Operation({
255
- id: "polymarket.get-polymarket-midpoint",
256
- name: "Get Polymarket Midpoint",
257
- description: "Get midpoint price for a token via the CLOB API",
258
- credentialSets: [polymarketCredentialSet],
259
- input: z.object({ tokenID: z.string() }),
260
- output: clobMidpointSchema,
261
- run: async (input, context) => {
262
- return createPolymarketClient(context.credentials.polymarket).request({
263
- host: "clob",
264
- method: "GET",
265
- path: "/midpoint",
266
- query: { token_id: input.tokenID }
267
- });
268
- }
269
- });
270
-
271
- //#endregion
272
- //#region src/operations/get-polymarket-open-interest.operation.ts
273
- const getPolymarketOpenInterestOperation = new Operation({
274
- id: "polymarket.get-polymarket-open-interest",
275
- name: "Get Polymarket Open Interest",
276
- description: "Get open interest for market(s) via the Data API",
277
- credentialSets: [polymarketCredentialSet],
278
- input: z.object({ conditionId: z.string() }),
279
- output: openInterestSchema,
280
- run: async (input, context) => {
281
- return createPolymarketClient(context.credentials.polymarket).request({
282
- host: "data",
283
- method: "GET",
284
- path: "/oi",
285
- query: { market: input.conditionId }
286
- });
287
- }
288
- });
289
-
290
- //#endregion
291
- //#region src/operations/get-polymarket-order-book.operation.ts
292
- const getPolymarketOrderBookOperation = new Operation({
293
- id: "polymarket.get-polymarket-order-book",
294
- name: "Get Polymarket Order Book",
295
- description: "Get order book (bids/asks) for a token via the CLOB API",
296
- credentialSets: [polymarketCredentialSet],
297
- input: z.object({ tokenID: z.string() }),
298
- output: orderBookSummarySchema,
299
- run: async (input, context) => {
300
- return createPolymarketClient(context.credentials.polymarket).request({
301
- host: "clob",
302
- method: "GET",
303
- path: "/book",
304
- query: { token_id: input.tokenID }
305
- });
306
- }
307
- });
308
-
309
- //#endregion
310
- //#region src/operations/get-polymarket-price.operation.ts
311
- const getPolymarketPriceOperation = new Operation({
312
- id: "polymarket.get-polymarket-price",
313
- name: "Get Polymarket Price",
314
- description: "Get price for a token and side (BUY/SELL) via the CLOB API",
315
- credentialSets: [polymarketCredentialSet],
316
- input: z.object({
317
- tokenID: z.string(),
318
- side: z.enum(["BUY", "SELL"])
319
- }),
320
- output: clobPriceSchema,
321
- run: async (input, context) => {
322
- return createPolymarketClient(context.credentials.polymarket).request({
323
- host: "clob",
324
- method: "GET",
325
- path: "/price",
326
- query: {
327
- token_id: input.tokenID,
328
- side: input.side
329
- }
330
- });
331
- }
332
- });
333
-
334
- //#endregion
335
- //#region src/operations/get-polymarket-price-history.operation.ts
336
- const getPolymarketPriceHistoryOperation = new Operation({
337
- id: "polymarket.get-polymarket-price-history",
338
- name: "Get Polymarket Price History",
339
- description: "Get historical prices with interval/fidelity via the CLOB API",
340
- credentialSets: [polymarketCredentialSet],
341
- input: z.object({
342
- tokenID: z.string(),
343
- interval: z.string().optional(),
344
- fidelity: z.number().optional(),
345
- startTs: z.number().optional(),
346
- endTs: z.number().optional()
347
- }),
348
- output: priceHistoryResponseSchema,
349
- run: async (input, context) => {
350
- return createPolymarketClient(context.credentials.polymarket).request({
351
- host: "clob",
352
- method: "GET",
353
- path: "/prices-history",
354
- query: {
355
- market: input.tokenID,
356
- interval: input.interval,
357
- fidelity: input.fidelity,
358
- startTs: input.startTs,
359
- endTs: input.endTs
360
- }
361
- });
362
- }
363
- });
364
-
365
- //#endregion
366
- //#region src/operations/get-polymarket-profile.operation.ts
367
- const getPolymarketProfileOperation = new Operation({
368
- id: "polymarket.get-polymarket-profile",
369
- name: "Get Polymarket Profile",
370
- description: "Get a user profile by wallet address via the Gamma API",
371
- credentialSets: [polymarketCredentialSet],
372
- input: z.object({ address: z.string().regex(/^0x[a-fA-F0-9]{40}$/) }),
373
- output: profileSchema,
374
- run: async (input, context) => {
375
- return createPolymarketClient(context.credentials.polymarket).request({
376
- host: "gamma",
377
- method: "GET",
378
- path: "/public-profile",
379
- query: { address: input.address }
380
- });
381
- }
382
- });
383
-
384
- //#endregion
385
- //#region src/operations/get-polymarket-series.operation.ts
386
- const getPolymarketSeriesOperation = new Operation({
387
- id: "polymarket.get-polymarket-series",
388
- name: "Get Polymarket Series",
389
- description: "Get a series by ID from the Gamma API",
390
- credentialSets: [polymarketCredentialSet],
391
- input: z.object({ id: z.string() }),
392
- output: seriesSchema,
393
- run: async (input, context) => {
394
- return createPolymarketClient(context.credentials.polymarket).request({
395
- host: "gamma",
396
- method: "GET",
397
- path: `/series/${input.id}`
398
- });
399
- }
400
- });
401
-
402
- //#endregion
403
- //#region src/operations/get-polymarket-sports-market-types.operation.ts
404
- const getPolymarketSportsMarketTypesOperation = new Operation({
405
- id: "polymarket.get-polymarket-sports-market-types",
406
- name: "Get Polymarket Sports Market Types",
407
- description: "Get sports market types from the Gamma API",
408
- credentialSets: [polymarketCredentialSet],
409
- input: z.object({}),
410
- output: sportsMarketTypeSchema,
411
- run: async (_input, context) => {
412
- return createPolymarketClient(context.credentials.polymarket).request({
413
- host: "gamma",
414
- method: "GET",
415
- path: "/sports/market-types"
416
- });
417
- }
418
- });
419
-
420
- //#endregion
421
- //#region src/operations/get-polymarket-sports-metadata.operation.ts
422
- const getPolymarketSportsMetadataOperation = new Operation({
423
- id: "polymarket.get-polymarket-sports-metadata",
424
- name: "Get Polymarket Sports Metadata",
425
- description: "Get sports metadata from the Gamma API",
426
- credentialSets: [polymarketCredentialSet],
427
- input: z.object({}),
428
- output: sportsMetadataSchema,
429
- run: async (_input, context) => {
430
- return createPolymarketClient(context.credentials.polymarket).request({
431
- host: "gamma",
432
- method: "GET",
433
- path: "/sports"
434
- });
435
- }
436
- });
437
-
438
- //#endregion
439
- //#region src/operations/get-polymarket-sports-teams.operation.ts
440
- const getPolymarketSportsTeamsOperation = new Operation({
441
- id: "polymarket.get-polymarket-sports-teams",
442
- name: "Get Polymarket Sports Teams",
443
- description: "Get sports teams from the Gamma API",
444
- credentialSets: [polymarketCredentialSet],
445
- input: z.object({}),
446
- output: sportsTeamSchema,
447
- run: async (_input, context) => {
448
- return createPolymarketClient(context.credentials.polymarket).request({
449
- host: "gamma",
450
- method: "GET",
451
- path: "/sports/teams"
452
- });
453
- }
454
- });
455
-
456
- //#endregion
457
- //#region src/operations/get-polymarket-user-positions.operation.ts
458
- const getPolymarketUserPositionsOperation = new Operation({
459
- id: "polymarket.get-polymarket-user-positions",
460
- name: "Get Polymarket User Positions",
461
- description: "Get positions for a user wallet via the Data API",
462
- credentialSets: [polymarketCredentialSet],
463
- input: z.object({
464
- address: z.string(),
465
- sizeThreshold: z.number().optional(),
466
- limit: z.number().optional(),
467
- offset: z.number().optional()
468
- }),
469
- output: z.array(positionSchema),
470
- run: async (input, context) => {
471
- return createPolymarketClient(context.credentials.polymarket).request({
472
- host: "data",
473
- method: "GET",
474
- path: "/positions",
475
- query: {
476
- address: input.address,
477
- sizeThreshold: input.sizeThreshold,
478
- limit: input.limit,
479
- offset: input.offset
480
- }
481
- });
482
- }
483
- });
484
-
485
- //#endregion
486
- //#region src/operations/list-polymarket-events.operation.ts
487
- const listPolymarketEventsOperation = new Operation({
488
- id: "polymarket.list-polymarket-events",
489
- name: "List Polymarket Events",
490
- description: "List and filter events with query params via the Gamma API",
491
- credentialSets: [polymarketCredentialSet],
492
- input: listEventsParamsSchema,
493
- output: z.array(eventSchema),
494
- run: async (input, context) => {
495
- return createPolymarketClient(context.credentials.polymarket).request({
496
- host: "gamma",
497
- method: "GET",
498
- path: "/events",
499
- query: input
500
- });
501
- }
502
- });
503
-
504
- //#endregion
505
- //#region src/operations/list-polymarket-markets.operation.ts
506
- const listPolymarketMarketsOperation = new Operation({
507
- id: "polymarket.list-polymarket-markets",
508
- name: "List Polymarket Markets",
509
- description: "List and filter markets with extensive query params via the Gamma API",
510
- credentialSets: [polymarketCredentialSet],
511
- input: listMarketsParamsSchema,
512
- output: z.array(marketSchema),
513
- run: async (input, context) => {
514
- return createPolymarketClient(context.credentials.polymarket).request({
515
- host: "gamma",
516
- method: "GET",
517
- path: "/markets",
518
- query: input
519
- });
520
- }
521
- });
522
-
523
- //#endregion
524
- //#region src/operations/list-polymarket-prices.operation.ts
525
- const listPolymarketPricesOperation = new Operation({
526
- id: "polymarket.list-polymarket-prices",
527
- name: "List Polymarket Prices",
528
- description: "Get all current prices via the CLOB API",
529
- credentialSets: [polymarketCredentialSet],
530
- input: z.object({}),
531
- output: clobPricesMapSchema,
532
- run: async (_input, context) => {
533
- return createPolymarketClient(context.credentials.polymarket).request({
534
- host: "clob",
535
- method: "GET",
536
- path: "/prices"
537
- });
538
- }
539
- });
540
-
541
- //#endregion
542
- //#region src/operations/list-polymarket-series.operation.ts
543
- const listPolymarketSeriesOperation = new Operation({
544
- id: "polymarket.list-polymarket-series",
545
- name: "List Polymarket Series",
546
- description: "List all series from the Gamma API",
547
- credentialSets: [polymarketCredentialSet],
548
- input: z.object({}),
549
- output: z.array(seriesSchema),
550
- run: async (_input, context) => {
551
- return createPolymarketClient(context.credentials.polymarket).request({
552
- host: "gamma",
553
- method: "GET",
554
- path: "/series"
555
- });
556
- }
557
- });
558
-
559
- //#endregion
560
- //#region src/operations/list-polymarket-tags.operation.ts
561
- const listPolymarketTagsOperation = new Operation({
562
- id: "polymarket.list-polymarket-tags",
563
- name: "List Polymarket Tags",
564
- description: "List all tags from the Gamma API",
565
- credentialSets: [polymarketCredentialSet],
566
- input: z.object({}),
567
- output: z.array(tagSchema),
568
- run: async (_input, context) => {
569
- return createPolymarketClient(context.credentials.polymarket).request({
570
- host: "gamma",
571
- method: "GET",
572
- path: "/tags"
573
- });
574
- }
575
- });
576
-
577
- //#endregion
578
- //#region src/operations/list-polymarket-trades.operation.ts
579
- const listPolymarketTradesOperation = new Operation({
580
- id: "polymarket.list-polymarket-trades",
581
- name: "List Polymarket Trades",
582
- description: "List trades with filters via the Data API",
583
- credentialSets: [polymarketCredentialSet],
584
- input: z.object({
585
- market: z.string().optional(),
586
- asset_id: z.string().optional(),
587
- maker_address: z.string().optional(),
588
- limit: z.number().optional(),
589
- offset: z.number().optional(),
590
- before: z.string().optional(),
591
- after: z.string().optional()
592
- }),
593
- output: z.array(tradeSchema),
594
- run: async (input, context) => {
595
- return createPolymarketClient(context.credentials.polymarket).request({
596
- host: "data",
597
- method: "GET",
598
- path: "/trades",
599
- query: input
600
- });
601
- }
602
- });
603
-
604
- //#endregion
605
- //#region src/operations/search-polymarket.operation.ts
606
- const searchPolymarketOperation = new Operation({
607
- id: "polymarket.search-polymarket",
608
- name: "Search Polymarket",
609
- description: "Search markets, events, and profiles via the Gamma API",
610
- credentialSets: [polymarketCredentialSet],
611
- input: z.object({ q: z.string() }),
612
- output: searchResultSchema,
613
- run: async (input, context) => {
614
- return createPolymarketClient(context.credentials.polymarket).request({
615
- host: "gamma",
616
- method: "GET",
617
- path: "/public-search",
618
- query: { q: input.q }
619
- });
620
- }
621
- });
622
-
623
- //#endregion
624
- export { getPolymarketLiveVolumeOperation as C, batchGetPolymarketSpreadsOperation as D, getPolymarketEventOperation as E, batchGetPolymarketPricesOperation as O, getPolymarketMarketOperation as S, getPolymarketEventBySlugOperation as T, getPolymarketOpenInterestOperation as _, listPolymarketPricesOperation as a, getPolymarketMarketHoldersOperation as b, getPolymarketUserPositionsOperation as c, getPolymarketSportsMarketTypesOperation as d, getPolymarketSeriesOperation as f, getPolymarketOrderBookOperation as g, getPolymarketPriceOperation as h, listPolymarketSeriesOperation as i, batchGetPolymarketOrderBooksOperation as k, getPolymarketSportsTeamsOperation as l, getPolymarketPriceHistoryOperation as m, listPolymarketTradesOperation as n, listPolymarketMarketsOperation as o, getPolymarketProfileOperation as p, listPolymarketTagsOperation as r, listPolymarketEventsOperation as s, searchPolymarketOperation as t, getPolymarketSportsMetadataOperation as u, getPolymarketMidpointOperation as v, getPolymarketEventTagsOperation as w, getPolymarketMarketBySlugOperation as x, getPolymarketMarketTagsOperation as y };