@polymarket/client 0.1.0-beta.2 → 0.1.0-beta.3

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.
@@ -1,5 +1,5 @@
1
1
  import { OrderResponse } from '@polymarket/bindings/clob';
2
- import { aI as RateLimitError, aK as RequestRejectedError, b2 as SigningError, b9 as TransportError, bc as UnexpectedResponseError, U as UserInputError, a6 as InsufficientLiquidityError, h as BaseSecureClient, d9 as PrepareLimitOrderRequest, c_ as OrderWorkflow, cZ as OrderPostingWorkflow, db as PrepareMarketOrderRequest, m as CancelledSigningError, aA as PostOrderError, b4 as TimeoutError, b5 as TransactionFailedError, dx as SignedOrder, B as BaseClient } from './types-D7tLX0ye.js';
2
+ import { aJ as RateLimitError, aL as RequestRejectedError, bm as SigningError, bt as TransportError, bw as UnexpectedResponseError, U as UserInputError, a6 as InsufficientLiquidityError, h as BaseSecureClient, dA as PrepareLimitOrderRequest, dp as OrderWorkflow, dn as OrderPostingWorkflow, dC as PrepareMarketOrderRequest, m as CancelledSigningError, aB as PostOrderError, bo as TimeoutError, bp as TransactionFailedError, eb as SignedOrder, B as BaseClient } from './types-CYRIvfiu.js';
3
3
  import { SportsMarketTypesResponse, SportsMetadata } from '@polymarket/bindings/gamma';
4
4
 
5
5
  type PrepareMarketOrderError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
@@ -10,7 +10,7 @@ declare const PrepareMarketOrderError: {
10
10
  * Starts the market-order workflow.
11
11
  *
12
12
  * @remarks
13
- * This is a low-level action that most SDK consumers will not need.
13
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
14
14
  *
15
15
  * @throws {@link PrepareMarketOrderError}
16
16
  * Thrown on failure.
@@ -33,7 +33,7 @@ declare const PrepareLimitOrderError: {
33
33
  * Starts the limit-order workflow.
34
34
  *
35
35
  * @remarks
36
- * This is a low-level action that most SDK consumers will not need.
36
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
37
37
  *
38
38
  * @throws {@link PrepareLimitOrderError}
39
39
  * Thrown on failure.
@@ -58,7 +58,7 @@ declare const PrepareMarketOrderPostingError: {
58
58
  * Starts and posts a market-order workflow.
59
59
  *
60
60
  * @remarks
61
- * This is a low-level action that most SDK consumers will not need.
61
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
62
62
  *
63
63
  * @throws {@link PrepareMarketOrderPostingError}
64
64
  * Thrown on failure.
@@ -81,7 +81,7 @@ declare const PrepareLimitOrderPostingError: {
81
81
  * Starts and posts a limit-order workflow.
82
82
  *
83
83
  * @remarks
84
- * This is a low-level action that most SDK consumers will not need.
84
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
85
85
  *
86
86
  * @throws {@link PrepareLimitOrderPostingError}
87
87
  * Thrown on failure.
@@ -106,6 +106,9 @@ declare const CreateMarketOrderError: {
106
106
  /**
107
107
  * Creates a signed market order for the authenticated account.
108
108
  *
109
+ * @remarks
110
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
111
+ *
109
112
  * @throws {@link CreateMarketOrderError}
110
113
  * Thrown on failure.
111
114
  */
@@ -117,6 +120,9 @@ declare const PlaceMarketOrderError: {
117
120
  /**
118
121
  * Creates and posts a market order for the authenticated account.
119
122
  *
123
+ * @remarks
124
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
125
+ *
120
126
  * @throws {@link PlaceMarketOrderError}
121
127
  * Thrown on failure.
122
128
  */
@@ -128,6 +134,13 @@ declare const CreateLimitOrderError: {
128
134
  /**
129
135
  * Creates a signed limit order for the authenticated account.
130
136
  *
137
+ * @remarks
138
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
139
+ *
140
+ * GTD expirations must be at least 60 seconds in the future. Add your own
141
+ * buffer for network latency and clock skew when deriving an expiration from
142
+ * the current time.
143
+ *
131
144
  * @throws {@link CreateLimitOrderError}
132
145
  * Thrown on failure.
133
146
  */
@@ -139,6 +152,13 @@ declare const PlaceLimitOrderError: {
139
152
  /**
140
153
  * Creates and posts a limit order for the authenticated account.
141
154
  *
155
+ * @remarks
156
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
157
+ *
158
+ * GTD expirations must be at least 60 seconds in the future. Add your own
159
+ * buffer for network latency and clock skew when deriving an expiration from
160
+ * the current time.
161
+ *
142
162
  * @throws {@link PlaceLimitOrderError}
143
163
  * Thrown on failure.
144
164
  */
@@ -151,6 +171,9 @@ declare const ListSportsError: {
151
171
  /**
152
172
  * Lists available sports metadata.
153
173
  *
174
+ * @remarks
175
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
176
+ *
154
177
  * @throws {@link ListSportsError}
155
178
  * Thrown on failure.
156
179
  *
@@ -169,6 +192,9 @@ declare const FetchSportsMarketTypesError: {
169
192
  /**
170
193
  * Fetches the available market types grouped by sport.
171
194
  *
195
+ * @remarks
196
+ * This is a low-level function. Most SDK consumers should prefer the client instance API.
197
+ *
172
198
  * @throws {@link FetchSportsMarketTypesError}
173
199
  * Thrown on failure.
174
200
  *