@keystrokehq/polymarket 0.0.1 → 0.0.5
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/LICENSE +21 -0
- package/dist/_official/index.d.mts +1 -1
- package/dist/data.d.mts +5 -5
- package/dist/discovery.d.mts +8 -8
- package/dist/events.d.mts +4 -4
- package/dist/index.d.mts +1 -1
- package/dist/{integration-CSROawvr.d.mts → integration-CTzLOy9r.d.mts} +1 -1
- package/dist/markets.d.mts +4 -4
- package/dist/orderbook.d.mts +3 -3
- package/dist/pricing.d.mts +5 -5
- package/package.json +21 -19
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Buster
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as polymarketBundle } from "../integration-
|
|
1
|
+
import { r as polymarketBundle } from "../integration-CTzLOy9r.mjs";
|
|
2
2
|
export { polymarketBundle };
|
package/dist/data.d.mts
CHANGED
|
@@ -30,7 +30,7 @@ declare const listTrades: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
30
30
|
bucket_index: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
owner: z.ZodOptional<z.ZodString>;
|
|
32
32
|
type: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
33
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
34
34
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
36
36
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -62,7 +62,7 @@ declare const getUserPositions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
62
62
|
icon: z.ZodOptional<z.ZodString>;
|
|
63
63
|
eventSlug: z.ZodOptional<z.ZodString>;
|
|
64
64
|
eventTitle: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
65
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
66
66
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
68
68
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -77,7 +77,7 @@ declare const getMarketHolders: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
77
77
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
78
78
|
value: z.ZodOptional<z.ZodNumber>;
|
|
79
79
|
position: z.ZodOptional<z.ZodString>;
|
|
80
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
80
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
81
81
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
82
82
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
83
83
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -87,7 +87,7 @@ declare const getOpenInterest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
87
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
88
88
|
conditionId: z.ZodOptional<z.ZodString>;
|
|
89
89
|
openInterest: z.ZodOptional<z.ZodNumber>;
|
|
90
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
90
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
91
91
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
92
92
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
93
93
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -97,7 +97,7 @@ declare const getLiveVolume: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
97
97
|
}, z.core.$strip>, z.ZodObject<{
|
|
98
98
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
99
99
|
volume24hr: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
100
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
101
101
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
102
102
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
103
103
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/dist/discovery.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ declare const listTags: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$str
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
label: z.ZodString;
|
|
9
9
|
slug: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
10
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
11
11
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
13
13
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -17,7 +17,7 @@ declare const listSeries: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$s
|
|
|
17
17
|
title: z.ZodString;
|
|
18
18
|
slug: z.ZodOptional<z.ZodString>;
|
|
19
19
|
description: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
20
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
21
21
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
22
22
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
23
23
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -29,7 +29,7 @@ declare const getSeries: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
29
29
|
title: z.ZodString;
|
|
30
30
|
slug: z.ZodOptional<z.ZodString>;
|
|
31
31
|
description: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
32
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
33
33
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
35
35
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -44,7 +44,7 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
44
44
|
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
totalResults: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
47
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
48
48
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
50
50
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -57,22 +57,22 @@ declare const getProfile: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
57
57
|
bio: z.ZodOptional<z.ZodString>;
|
|
58
58
|
profileImage: z.ZodOptional<z.ZodString>;
|
|
59
59
|
displayUsernamePublic: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
60
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
61
61
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
62
62
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
63
63
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
64
64
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
65
|
-
declare const getSportsMetadata: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
65
|
+
declare const getSportsMetadata: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
66
66
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
68
68
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
69
69
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
70
|
-
declare const getSportsMarketTypes: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
70
|
+
declare const getSportsMarketTypes: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
71
71
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
72
72
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
73
73
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
74
74
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
75
|
-
declare const getSportsTeams: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
75
|
+
declare const getSportsTeams: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
76
76
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
78
78
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/dist/events.d.mts
CHANGED
|
@@ -75,7 +75,7 @@ declare const listEvents: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
75
75
|
slug: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, z.core.$loose>>>;
|
|
77
77
|
categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
78
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
78
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
79
79
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
80
80
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
81
81
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -133,7 +133,7 @@ declare const getEvent: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
133
133
|
slug: z.ZodOptional<z.ZodString>;
|
|
134
134
|
}, z.core.$loose>>>;
|
|
135
135
|
categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
136
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
136
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
137
137
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
138
138
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
139
139
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -191,7 +191,7 @@ declare const getEventBySlug: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
191
191
|
slug: z.ZodOptional<z.ZodString>;
|
|
192
192
|
}, z.core.$loose>>>;
|
|
193
193
|
categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
194
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
194
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
195
195
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
196
196
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
197
197
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -202,7 +202,7 @@ declare const getEventTags: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
202
202
|
id: z.ZodString;
|
|
203
203
|
label: z.ZodString;
|
|
204
204
|
slug: z.ZodOptional<z.ZodString>;
|
|
205
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
205
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
206
206
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
207
207
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
208
208
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as polymarket, t as PolymarketCredentials } from "./integration-
|
|
1
|
+
import { n as polymarket, t as PolymarketCredentials } from "./integration-CTzLOy9r.mjs";
|
|
2
2
|
import { getLiveVolume, getMarketHolders, getOpenInterest, getUserPositions, listTrades } from "./data.mjs";
|
|
3
3
|
import { getProfile, getSeries, getSportsMarketTypes, getSportsMetadata, getSportsTeams, listSeries, listTags, search } from "./discovery.mjs";
|
|
4
4
|
import { getEvent, getEventBySlug, getEventTags, listEvents } from "./events.mjs";
|
|
@@ -8,7 +8,7 @@ import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
|
8
8
|
declare const polymarketBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"polymarket", z.ZodObject<{
|
|
9
9
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, z.core.$strip>>;
|
|
11
|
-
declare const polymarket: _keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
11
|
+
declare const polymarket: _keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
12
12
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
14
14
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/dist/markets.d.mts
CHANGED
|
@@ -60,7 +60,7 @@ declare const listMarkets: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
60
60
|
enableOrderBook: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
62
62
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
63
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
63
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
64
64
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
65
65
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
66
66
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -96,7 +96,7 @@ declare const getMarket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
96
96
|
enableOrderBook: z.ZodOptional<z.ZodBoolean>;
|
|
97
97
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
98
98
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
99
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
100
100
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
101
101
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
102
102
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -132,7 +132,7 @@ declare const getMarketBySlug: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
132
132
|
enableOrderBook: z.ZodOptional<z.ZodBoolean>;
|
|
133
133
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
134
134
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
135
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
136
136
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
137
137
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
138
138
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -143,7 +143,7 @@ declare const getMarketTags: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
143
143
|
id: z.ZodString;
|
|
144
144
|
label: z.ZodString;
|
|
145
145
|
slug: z.ZodOptional<z.ZodString>;
|
|
146
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
146
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
147
147
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
148
148
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
149
149
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/dist/orderbook.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ declare const getOrderBook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
21
21
|
min_order_size: z.ZodOptional<z.ZodString>;
|
|
22
22
|
tick_size: z.ZodOptional<z.ZodString>;
|
|
23
23
|
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
24
|
+
}, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
25
25
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
27
27
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -44,7 +44,7 @@ declare const batchGetOrderBooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
44
44
|
min_order_size: z.ZodOptional<z.ZodString>;
|
|
45
45
|
tick_size: z.ZodOptional<z.ZodString>;
|
|
46
46
|
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
47
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
48
48
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
49
49
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
50
50
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -56,7 +56,7 @@ declare const batchGetSpreads: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
56
56
|
spread: z.ZodString;
|
|
57
57
|
bid: z.ZodOptional<z.ZodString>;
|
|
58
58
|
ask: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
59
|
+
}, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
60
60
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
61
61
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
62
62
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/dist/pricing.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ declare const getPrice: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
11
11
|
}>;
|
|
12
12
|
}, z.core.$strip>, z.ZodObject<{
|
|
13
13
|
price: z.ZodString;
|
|
14
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
14
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
15
15
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
17
17
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -20,7 +20,7 @@ declare const getMidpoint: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
20
20
|
tokenID: z.ZodString;
|
|
21
21
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
22
|
mid: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
23
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
24
24
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
26
26
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -28,7 +28,7 @@ declare const getMidpoint: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
28
28
|
declare const listPrices: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
29
29
|
BUY: z.ZodString;
|
|
30
30
|
SELL: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
31
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
32
32
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
33
33
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
34
34
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -38,7 +38,7 @@ declare const batchGetPrices: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
39
39
|
BUY: z.ZodString;
|
|
40
40
|
SELL: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
41
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
42
42
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
43
43
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
44
44
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -54,7 +54,7 @@ declare const getPriceHistory: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
54
54
|
t: z.ZodNumber;
|
|
55
55
|
p: z.ZodNumber;
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"polymarket", z.ZodObject<{
|
|
57
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
|
|
58
58
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
|
59
59
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
60
|
POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/polymarket",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -43,27 +43,21 @@
|
|
|
43
43
|
"README.md",
|
|
44
44
|
"LICENSE"
|
|
45
45
|
],
|
|
46
|
-
"scripts": {
|
|
47
|
-
"build": "tsdown",
|
|
48
|
-
"typecheck": "tsgo --build",
|
|
49
|
-
"lint": "biome check .",
|
|
50
|
-
"lint:fix": "biome check --write .",
|
|
51
|
-
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
52
|
-
"test:int": "vitest run --passWithNoTests --project int",
|
|
53
|
-
"prepublishOnly": "pnpm build && pnpm test:unit"
|
|
54
|
-
},
|
|
55
46
|
"dependencies": {
|
|
56
|
-
"@keystrokehq/integration-authoring": "^0.0.
|
|
57
|
-
"@keystrokehq/core": "^0.0.5",
|
|
47
|
+
"@keystrokehq/integration-authoring": "^0.0.5",
|
|
58
48
|
"zod": "^4.3.6"
|
|
59
49
|
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@keystrokehq/core": ">=0.0.7 <0.1.0"
|
|
52
|
+
},
|
|
60
53
|
"devDependencies": {
|
|
61
|
-
"@types/node": "
|
|
62
|
-
"tsdown": "
|
|
63
|
-
"typescript": "
|
|
64
|
-
"vitest": "
|
|
65
|
-
"@keystrokehq/
|
|
66
|
-
"@keystrokehq/
|
|
54
|
+
"@types/node": "^22.19.11",
|
|
55
|
+
"tsdown": "^0.20.3",
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"vitest": "^4.0.18",
|
|
58
|
+
"@keystrokehq/core": "^0.0.7",
|
|
59
|
+
"@keystrokehq/test-utils": "0.0.0",
|
|
60
|
+
"@keystrokehq/typescript-config": "0.0.0"
|
|
67
61
|
},
|
|
68
62
|
"keywords": [
|
|
69
63
|
"polymarket",
|
|
@@ -80,5 +74,13 @@
|
|
|
80
74
|
"publishConfig": {
|
|
81
75
|
"access": "public",
|
|
82
76
|
"registry": "https://registry.npmjs.org/"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build": "tsdown",
|
|
80
|
+
"typecheck": "tsgo --build",
|
|
81
|
+
"lint": "biome check .",
|
|
82
|
+
"lint:fix": "biome check --write .",
|
|
83
|
+
"test:unit": "vitest run --passWithNoTests --project unit",
|
|
84
|
+
"test:int": "vitest run --passWithNoTests --project int"
|
|
83
85
|
}
|
|
84
|
-
}
|
|
86
|
+
}
|