@keystrokehq/polymarket 0.0.16 → 0.1.0
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.
- package/README.md +14 -2
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/cancel-all-open-orders.cjs +16 -0
- package/dist/actions/cancel-all-open-orders.cjs.map +1 -0
- package/dist/actions/cancel-all-open-orders.d.cts +9 -0
- package/dist/actions/cancel-all-open-orders.d.cts.map +1 -0
- package/dist/actions/cancel-all-open-orders.d.mts +9 -0
- package/dist/actions/cancel-all-open-orders.d.mts.map +1 -0
- package/dist/actions/cancel-all-open-orders.mjs +13 -0
- package/dist/actions/cancel-all-open-orders.mjs.map +1 -0
- package/dist/actions/cancel-multiple-orders.cjs +19 -0
- package/dist/actions/cancel-multiple-orders.cjs.map +1 -0
- package/dist/actions/cancel-multiple-orders.d.cts +9 -0
- package/dist/actions/cancel-multiple-orders.d.cts.map +1 -0
- package/dist/actions/cancel-multiple-orders.d.mts +9 -0
- package/dist/actions/cancel-multiple-orders.d.mts.map +1 -0
- package/dist/actions/cancel-multiple-orders.mjs +16 -0
- package/dist/actions/cancel-multiple-orders.mjs.map +1 -0
- package/dist/actions/cancel-order.cjs +19 -0
- package/dist/actions/cancel-order.cjs.map +1 -0
- package/dist/actions/cancel-order.d.cts +9 -0
- package/dist/actions/cancel-order.d.cts.map +1 -0
- package/dist/actions/cancel-order.d.mts +9 -0
- package/dist/actions/cancel-order.d.mts.map +1 -0
- package/dist/actions/cancel-order.mjs +16 -0
- package/dist/actions/cancel-order.mjs.map +1 -0
- package/dist/actions/close-position-order.cjs +29 -0
- package/dist/actions/close-position-order.cjs.map +1 -0
- package/dist/actions/close-position-order.d.cts +9 -0
- package/dist/actions/close-position-order.d.cts.map +1 -0
- package/dist/actions/close-position-order.d.mts +9 -0
- package/dist/actions/close-position-order.d.mts.map +1 -0
- package/dist/actions/close-position-order.mjs +26 -0
- package/dist/actions/close-position-order.mjs.map +1 -0
- package/dist/actions/create-multiple-orders.cjs +56 -0
- package/dist/actions/create-multiple-orders.cjs.map +1 -0
- package/dist/actions/create-multiple-orders.d.cts +9 -0
- package/dist/actions/create-multiple-orders.d.cts.map +1 -0
- package/dist/actions/create-multiple-orders.d.mts +9 -0
- package/dist/actions/create-multiple-orders.d.mts.map +1 -0
- package/dist/actions/create-multiple-orders.mjs +53 -0
- package/dist/actions/create-multiple-orders.mjs.map +1 -0
- package/dist/actions/create-order.cjs +56 -0
- package/dist/actions/create-order.cjs.map +1 -0
- package/dist/actions/create-order.d.cts +9 -0
- package/dist/actions/create-order.d.cts.map +1 -0
- package/dist/actions/create-order.d.mts +9 -0
- package/dist/actions/create-order.d.mts.map +1 -0
- package/dist/actions/create-order.mjs +53 -0
- package/dist/actions/create-order.mjs.map +1 -0
- package/dist/actions/get-account-balances.cjs +40 -0
- package/dist/actions/get-account-balances.cjs.map +1 -0
- package/dist/actions/get-account-balances.d.cts +9 -0
- package/dist/actions/get-account-balances.d.cts.map +1 -0
- package/dist/actions/get-account-balances.d.mts +9 -0
- package/dist/actions/get-account-balances.d.mts.map +1 -0
- package/dist/actions/get-account-balances.mjs +39 -0
- package/dist/actions/get-account-balances.mjs.map +1 -0
- package/dist/actions/get-activities.cjs +34 -0
- package/dist/actions/get-activities.cjs.map +1 -0
- package/dist/actions/get-activities.d.cts +9 -0
- package/dist/actions/get-activities.d.cts.map +1 -0
- package/dist/actions/get-activities.d.mts +9 -0
- package/dist/actions/get-activities.d.mts.map +1 -0
- package/dist/actions/get-activities.mjs +31 -0
- package/dist/actions/get-activities.mjs.map +1 -0
- package/dist/actions/get-event-by-id.cjs +16 -0
- package/dist/actions/get-event-by-id.cjs.map +1 -0
- package/dist/actions/get-event-by-id.d.cts +9 -0
- package/dist/actions/get-event-by-id.d.cts.map +1 -0
- package/dist/actions/get-event-by-id.d.mts +9 -0
- package/dist/actions/get-event-by-id.d.mts.map +1 -0
- package/dist/actions/get-event-by-id.mjs +13 -0
- package/dist/actions/get-event-by-id.mjs.map +1 -0
- package/dist/actions/get-event-by-slug.cjs +16 -0
- package/dist/actions/get-event-by-slug.cjs.map +1 -0
- package/dist/actions/get-event-by-slug.d.cts +9 -0
- package/dist/actions/get-event-by-slug.d.cts.map +1 -0
- package/dist/actions/get-event-by-slug.d.mts +9 -0
- package/dist/actions/get-event-by-slug.d.mts.map +1 -0
- package/dist/actions/get-event-by-slug.mjs +13 -0
- package/dist/actions/get-event-by-slug.mjs.map +1 -0
- package/dist/actions/get-league-by-slug.cjs +16 -0
- package/dist/actions/get-league-by-slug.cjs.map +1 -0
- package/dist/actions/get-league-by-slug.d.cts +9 -0
- package/dist/actions/get-league-by-slug.d.cts.map +1 -0
- package/dist/actions/get-league-by-slug.d.mts +9 -0
- package/dist/actions/get-league-by-slug.d.mts.map +1 -0
- package/dist/actions/get-league-by-slug.mjs +13 -0
- package/dist/actions/get-league-by-slug.mjs.map +1 -0
- package/dist/actions/get-market-bbo.cjs +16 -0
- package/dist/actions/get-market-bbo.cjs.map +1 -0
- package/dist/actions/get-market-bbo.d.cts +9 -0
- package/dist/actions/get-market-bbo.d.cts.map +1 -0
- package/dist/actions/get-market-bbo.d.mts +9 -0
- package/dist/actions/get-market-bbo.d.mts.map +1 -0
- package/dist/actions/get-market-bbo.mjs +13 -0
- package/dist/actions/get-market-bbo.mjs.map +1 -0
- package/dist/actions/get-market-book.cjs +16 -0
- package/dist/actions/get-market-book.cjs.map +1 -0
- package/dist/actions/get-market-book.d.cts +9 -0
- package/dist/actions/get-market-book.d.cts.map +1 -0
- package/dist/actions/get-market-book.d.mts +9 -0
- package/dist/actions/get-market-book.d.mts.map +1 -0
- package/dist/actions/get-market-book.mjs +13 -0
- package/dist/actions/get-market-book.mjs.map +1 -0
- package/dist/actions/get-market-by-id.cjs +16 -0
- package/dist/actions/get-market-by-id.cjs.map +1 -0
- package/dist/actions/get-market-by-id.d.cts +9 -0
- package/dist/actions/get-market-by-id.d.cts.map +1 -0
- package/dist/actions/get-market-by-id.d.mts +9 -0
- package/dist/actions/get-market-by-id.d.mts.map +1 -0
- package/dist/actions/get-market-by-id.mjs +13 -0
- package/dist/actions/get-market-by-id.mjs.map +1 -0
- package/dist/actions/get-market-by-slug.cjs +16 -0
- package/dist/actions/get-market-by-slug.cjs.map +1 -0
- package/dist/actions/get-market-by-slug.d.cts +9 -0
- package/dist/actions/get-market-by-slug.d.cts.map +1 -0
- package/dist/actions/get-market-by-slug.d.mts +9 -0
- package/dist/actions/get-market-by-slug.d.mts.map +1 -0
- package/dist/actions/get-market-by-slug.mjs +13 -0
- package/dist/actions/get-market-by-slug.mjs.map +1 -0
- package/dist/actions/get-market-settlement.cjs +19 -0
- package/dist/actions/get-market-settlement.cjs.map +1 -0
- package/dist/actions/get-market-settlement.d.cts +9 -0
- package/dist/actions/get-market-settlement.d.cts.map +1 -0
- package/dist/actions/get-market-settlement.d.mts +9 -0
- package/dist/actions/get-market-settlement.d.mts.map +1 -0
- package/dist/actions/get-market-settlement.mjs +16 -0
- package/dist/actions/get-market-settlement.mjs.map +1 -0
- package/dist/actions/get-markets-for-subject-by-slug.cjs +16 -0
- package/dist/actions/get-markets-for-subject-by-slug.cjs.map +1 -0
- package/dist/actions/get-markets-for-subject-by-slug.d.cts +9 -0
- package/dist/actions/get-markets-for-subject-by-slug.d.cts.map +1 -0
- package/dist/actions/get-markets-for-subject-by-slug.d.mts +9 -0
- package/dist/actions/get-markets-for-subject-by-slug.d.mts.map +1 -0
- package/dist/actions/get-markets-for-subject-by-slug.mjs +13 -0
- package/dist/actions/get-markets-for-subject-by-slug.mjs.map +1 -0
- package/dist/actions/get-markets-for-subject.cjs +16 -0
- package/dist/actions/get-markets-for-subject.cjs.map +1 -0
- package/dist/actions/get-markets-for-subject.d.cts +9 -0
- package/dist/actions/get-markets-for-subject.d.cts.map +1 -0
- package/dist/actions/get-markets-for-subject.d.mts +9 -0
- package/dist/actions/get-markets-for-subject.d.mts.map +1 -0
- package/dist/actions/get-markets-for-subject.mjs +13 -0
- package/dist/actions/get-markets-for-subject.mjs.map +1 -0
- package/dist/actions/get-open-orders.cjs +16 -0
- package/dist/actions/get-open-orders.cjs.map +1 -0
- package/dist/actions/get-open-orders.d.cts +9 -0
- package/dist/actions/get-open-orders.d.cts.map +1 -0
- package/dist/actions/get-open-orders.d.mts +9 -0
- package/dist/actions/get-open-orders.d.mts.map +1 -0
- package/dist/actions/get-open-orders.mjs +13 -0
- package/dist/actions/get-open-orders.mjs.map +1 -0
- package/dist/actions/get-order.cjs +16 -0
- package/dist/actions/get-order.cjs.map +1 -0
- package/dist/actions/get-order.d.cts +9 -0
- package/dist/actions/get-order.d.cts.map +1 -0
- package/dist/actions/get-order.d.mts +9 -0
- package/dist/actions/get-order.d.mts.map +1 -0
- package/dist/actions/get-order.mjs +13 -0
- package/dist/actions/get-order.mjs.map +1 -0
- package/dist/actions/get-series-by-id.cjs +16 -0
- package/dist/actions/get-series-by-id.cjs.map +1 -0
- package/dist/actions/get-series-by-id.d.cts +9 -0
- package/dist/actions/get-series-by-id.d.cts.map +1 -0
- package/dist/actions/get-series-by-id.d.mts +9 -0
- package/dist/actions/get-series-by-id.d.mts.map +1 -0
- package/dist/actions/get-series-by-id.mjs +13 -0
- package/dist/actions/get-series-by-id.mjs.map +1 -0
- package/dist/actions/get-sport-by-slug.cjs +16 -0
- package/dist/actions/get-sport-by-slug.cjs.map +1 -0
- package/dist/actions/get-sport-by-slug.d.cts +9 -0
- package/dist/actions/get-sport-by-slug.d.cts.map +1 -0
- package/dist/actions/get-sport-by-slug.d.mts +9 -0
- package/dist/actions/get-sport-by-slug.d.mts.map +1 -0
- package/dist/actions/get-sport-by-slug.mjs +13 -0
- package/dist/actions/get-sport-by-slug.mjs.map +1 -0
- package/dist/actions/get-subject-by-id.cjs +16 -0
- package/dist/actions/get-subject-by-id.cjs.map +1 -0
- package/dist/actions/get-subject-by-id.d.cts +9 -0
- package/dist/actions/get-subject-by-id.d.cts.map +1 -0
- package/dist/actions/get-subject-by-id.d.mts +9 -0
- package/dist/actions/get-subject-by-id.d.mts.map +1 -0
- package/dist/actions/get-subject-by-id.mjs +13 -0
- package/dist/actions/get-subject-by-id.mjs.map +1 -0
- package/dist/actions/get-subject-by-slug.cjs +16 -0
- package/dist/actions/get-subject-by-slug.cjs.map +1 -0
- package/dist/actions/get-subject-by-slug.d.cts +9 -0
- package/dist/actions/get-subject-by-slug.d.cts.map +1 -0
- package/dist/actions/get-subject-by-slug.d.mts +9 -0
- package/dist/actions/get-subject-by-slug.d.mts.map +1 -0
- package/dist/actions/get-subject-by-slug.mjs +13 -0
- package/dist/actions/get-subject-by-slug.mjs.map +1 -0
- package/dist/actions/get-tag-by-id.cjs +16 -0
- package/dist/actions/get-tag-by-id.cjs.map +1 -0
- package/dist/actions/get-tag-by-id.d.cts +9 -0
- package/dist/actions/get-tag-by-id.d.cts.map +1 -0
- package/dist/actions/get-tag-by-id.d.mts +9 -0
- package/dist/actions/get-tag-by-id.d.mts.map +1 -0
- package/dist/actions/get-tag-by-id.mjs +13 -0
- package/dist/actions/get-tag-by-id.mjs.map +1 -0
- package/dist/actions/get-tag-by-slug.cjs +16 -0
- package/dist/actions/get-tag-by-slug.cjs.map +1 -0
- package/dist/actions/get-tag-by-slug.d.cts +9 -0
- package/dist/actions/get-tag-by-slug.d.cts.map +1 -0
- package/dist/actions/get-tag-by-slug.d.mts +9 -0
- package/dist/actions/get-tag-by-slug.d.mts.map +1 -0
- package/dist/actions/get-tag-by-slug.mjs +13 -0
- package/dist/actions/get-tag-by-slug.mjs.map +1 -0
- package/dist/actions/get-user-positions.cjs +25 -0
- package/dist/actions/get-user-positions.cjs.map +1 -0
- package/dist/actions/get-user-positions.d.cts +9 -0
- package/dist/actions/get-user-positions.d.cts.map +1 -0
- package/dist/actions/get-user-positions.d.mts +9 -0
- package/dist/actions/get-user-positions.d.mts.map +1 -0
- package/dist/actions/get-user-positions.mjs +22 -0
- package/dist/actions/get-user-positions.mjs.map +1 -0
- package/dist/actions/index.cjs +89 -0
- package/dist/actions/index.d.cts +45 -0
- package/dist/actions/index.d.mts +45 -0
- package/dist/actions/index.mjs +45 -0
- package/dist/actions/list-events-for-league.cjs +23 -0
- package/dist/actions/list-events-for-league.cjs.map +1 -0
- package/dist/actions/list-events-for-league.d.cts +9 -0
- package/dist/actions/list-events-for-league.d.cts.map +1 -0
- package/dist/actions/list-events-for-league.d.mts +9 -0
- package/dist/actions/list-events-for-league.d.mts.map +1 -0
- package/dist/actions/list-events-for-league.mjs +20 -0
- package/dist/actions/list-events-for-league.mjs.map +1 -0
- package/dist/actions/list-events-for-series.cjs +23 -0
- package/dist/actions/list-events-for-series.cjs.map +1 -0
- package/dist/actions/list-events-for-series.d.cts +9 -0
- package/dist/actions/list-events-for-series.d.cts.map +1 -0
- package/dist/actions/list-events-for-series.d.mts +9 -0
- package/dist/actions/list-events-for-series.d.mts.map +1 -0
- package/dist/actions/list-events-for-series.mjs +20 -0
- package/dist/actions/list-events-for-series.mjs.map +1 -0
- package/dist/actions/list-events-for-sport.cjs +23 -0
- package/dist/actions/list-events-for-sport.cjs.map +1 -0
- package/dist/actions/list-events-for-sport.d.cts +9 -0
- package/dist/actions/list-events-for-sport.d.cts.map +1 -0
- package/dist/actions/list-events-for-sport.d.mts +9 -0
- package/dist/actions/list-events-for-sport.d.mts.map +1 -0
- package/dist/actions/list-events-for-sport.mjs +20 -0
- package/dist/actions/list-events-for-sport.mjs.map +1 -0
- package/dist/actions/list-events.cjs +32 -0
- package/dist/actions/list-events.cjs.map +1 -0
- package/dist/actions/list-events.d.cts +9 -0
- package/dist/actions/list-events.d.cts.map +1 -0
- package/dist/actions/list-events.d.mts +9 -0
- package/dist/actions/list-events.d.mts.map +1 -0
- package/dist/actions/list-events.mjs +29 -0
- package/dist/actions/list-events.mjs.map +1 -0
- package/dist/actions/list-featured-tags.cjs +16 -0
- package/dist/actions/list-featured-tags.cjs.map +1 -0
- package/dist/actions/list-featured-tags.d.cts +9 -0
- package/dist/actions/list-featured-tags.d.cts.map +1 -0
- package/dist/actions/list-featured-tags.d.mts +9 -0
- package/dist/actions/list-featured-tags.d.mts.map +1 -0
- package/dist/actions/list-featured-tags.mjs +13 -0
- package/dist/actions/list-featured-tags.mjs.map +1 -0
- package/dist/actions/list-leagues.cjs +19 -0
- package/dist/actions/list-leagues.cjs.map +1 -0
- package/dist/actions/list-leagues.d.cts +9 -0
- package/dist/actions/list-leagues.d.cts.map +1 -0
- package/dist/actions/list-leagues.d.mts +9 -0
- package/dist/actions/list-leagues.d.mts.map +1 -0
- package/dist/actions/list-leagues.mjs +16 -0
- package/dist/actions/list-leagues.mjs.map +1 -0
- package/dist/actions/list-markets.cjs +38 -0
- package/dist/actions/list-markets.cjs.map +1 -0
- package/dist/actions/list-markets.d.cts +9 -0
- package/dist/actions/list-markets.d.cts.map +1 -0
- package/dist/actions/list-markets.d.mts +9 -0
- package/dist/actions/list-markets.d.mts.map +1 -0
- package/dist/actions/list-markets.mjs +35 -0
- package/dist/actions/list-markets.mjs.map +1 -0
- package/dist/actions/list-series.cjs +24 -0
- package/dist/actions/list-series.cjs.map +1 -0
- package/dist/actions/list-series.d.cts +9 -0
- package/dist/actions/list-series.d.cts.map +1 -0
- package/dist/actions/list-series.d.mts +9 -0
- package/dist/actions/list-series.d.mts.map +1 -0
- package/dist/actions/list-series.mjs +21 -0
- package/dist/actions/list-series.mjs.map +1 -0
- package/dist/actions/list-sports-teams-for-provider.cjs +20 -0
- package/dist/actions/list-sports-teams-for-provider.cjs.map +1 -0
- package/dist/actions/list-sports-teams-for-provider.d.cts +9 -0
- package/dist/actions/list-sports-teams-for-provider.d.cts.map +1 -0
- package/dist/actions/list-sports-teams-for-provider.d.mts +9 -0
- package/dist/actions/list-sports-teams-for-provider.d.mts.map +1 -0
- package/dist/actions/list-sports-teams-for-provider.mjs +17 -0
- package/dist/actions/list-sports-teams-for-provider.mjs.map +1 -0
- package/dist/actions/list-sports-teams.cjs +25 -0
- package/dist/actions/list-sports-teams.cjs.map +1 -0
- package/dist/actions/list-sports-teams.d.cts +9 -0
- package/dist/actions/list-sports-teams.d.cts.map +1 -0
- package/dist/actions/list-sports-teams.d.mts +9 -0
- package/dist/actions/list-sports-teams.d.mts.map +1 -0
- package/dist/actions/list-sports-teams.mjs +22 -0
- package/dist/actions/list-sports-teams.mjs.map +1 -0
- package/dist/actions/list-sports.cjs +16 -0
- package/dist/actions/list-sports.cjs.map +1 -0
- package/dist/actions/list-sports.d.cts +9 -0
- package/dist/actions/list-sports.d.cts.map +1 -0
- package/dist/actions/list-sports.d.mts +9 -0
- package/dist/actions/list-sports.d.mts.map +1 -0
- package/dist/actions/list-sports.mjs +13 -0
- package/dist/actions/list-sports.mjs.map +1 -0
- package/dist/actions/list-subjects.cjs +21 -0
- package/dist/actions/list-subjects.cjs.map +1 -0
- package/dist/actions/list-subjects.d.cts +9 -0
- package/dist/actions/list-subjects.d.cts.map +1 -0
- package/dist/actions/list-subjects.d.mts +9 -0
- package/dist/actions/list-subjects.d.mts.map +1 -0
- package/dist/actions/list-subjects.mjs +18 -0
- package/dist/actions/list-subjects.mjs.map +1 -0
- package/dist/actions/list-tags.cjs +25 -0
- package/dist/actions/list-tags.cjs.map +1 -0
- package/dist/actions/list-tags.d.cts +9 -0
- package/dist/actions/list-tags.d.cts.map +1 -0
- package/dist/actions/list-tags.d.mts +9 -0
- package/dist/actions/list-tags.d.mts.map +1 -0
- package/dist/actions/list-tags.mjs +22 -0
- package/dist/actions/list-tags.mjs.map +1 -0
- package/dist/actions/modify-multiple-orders.cjs +33 -0
- package/dist/actions/modify-multiple-orders.cjs.map +1 -0
- package/dist/actions/modify-multiple-orders.d.cts +9 -0
- package/dist/actions/modify-multiple-orders.d.cts.map +1 -0
- package/dist/actions/modify-multiple-orders.d.mts +9 -0
- package/dist/actions/modify-multiple-orders.d.mts.map +1 -0
- package/dist/actions/modify-multiple-orders.mjs +30 -0
- package/dist/actions/modify-multiple-orders.mjs.map +1 -0
- package/dist/actions/modify-order.cjs +33 -0
- package/dist/actions/modify-order.cjs.map +1 -0
- package/dist/actions/modify-order.d.cts +9 -0
- package/dist/actions/modify-order.d.cts.map +1 -0
- package/dist/actions/modify-order.d.mts +9 -0
- package/dist/actions/modify-order.d.mts.map +1 -0
- package/dist/actions/modify-order.mjs +30 -0
- package/dist/actions/modify-order.mjs.map +1 -0
- package/dist/actions/preview-order.cjs +56 -0
- package/dist/actions/preview-order.cjs.map +1 -0
- package/dist/actions/preview-order.d.cts +9 -0
- package/dist/actions/preview-order.d.cts.map +1 -0
- package/dist/actions/preview-order.d.mts +9 -0
- package/dist/actions/preview-order.d.mts.map +1 -0
- package/dist/actions/preview-order.mjs +53 -0
- package/dist/actions/preview-order.mjs.map +1 -0
- package/dist/actions/search-markets-and-events.cjs +23 -0
- package/dist/actions/search-markets-and-events.cjs.map +1 -0
- package/dist/actions/search-markets-and-events.d.cts +9 -0
- package/dist/actions/search-markets-and-events.d.cts.map +1 -0
- package/dist/actions/search-markets-and-events.d.mts +9 -0
- package/dist/actions/search-markets-and-events.d.mts.map +1 -0
- package/dist/actions/search-markets-and-events.mjs +20 -0
- package/dist/actions/search-markets-and-events.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +94 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.mts +47 -4
- package/dist/index.mjs +48 -5
- package/package.json +31 -52
- package/LICENSE +0 -21
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/data-g8Gt5cqR.mjs +0 -246
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/polymarket.credential-set-jU6p-ps3.d.mts +0 -14
- package/dist/polymarket.credential-set-wbGYLp9q.mjs +0 -19
- package/dist/pricing-x-VWqR0L.d.mts +0 -309
- package/dist/schemas/index.d.mts +0 -2
- package/dist/schemas/index.mjs +0 -3
- package/dist/search-polymarket.operation-BW-S0mae.d.mts +0 -700
- 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 };
|