@polymarket/client 0.8.1 → 0.10.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.
@@ -1,5 +1,5 @@
1
1
  import { OrderResponse } from '@polymarket/bindings/clob';
2
- import { c5 as RateLimitError, cd as RequestRejectedError, d6 as SigningError, df as TransportError, di as UnexpectedResponseError, U as UserInputError, aN as InsufficientLiquidityError, q as BaseSecureClient, fR as PrepareLimitOrderRequest, fu as OrderWorkflow, ft as OrderPostingWorkflow, fT as PrepareMarketOrderRequest, y as CancelledSigningError, bW as PostOrderError, d9 as TimeoutError, db as TransactionFailedError, d3 as SignedOrder, B as BaseClient } from './types-DEAKEE6E.js';
2
+ import { cb as RateLimitError, cj as RequestRejectedError, dd as SigningError, dp as TransportError, ds as UnexpectedResponseError, U as UserInputError, aV as InsufficientLiquidityError, q as BaseSecureClient, g4 as PrepareLimitOrderRequest, fJ as OrderWorkflow, fI as OrderPostingWorkflow, g6 as PrepareMarketOrderRequest, y as CancelledSigningError, b$ as PostOrderError, dg as TimeoutError, dk as TransactionFailedError, da as SignedOrder, B as BaseClient } from './types-BqK8Y3G5.js';
3
3
  import { SportsMarketTypesResponse, SportsMetadata } from '@polymarket/bindings/gamma';
4
4
 
5
5
  type PrepareMarketOrderError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
@@ -18,10 +18,10 @@ declare const PrepareMarketOrderError: {
18
18
  * @example
19
19
  * ```ts
20
20
  * const workflow = await prepareMarketOrder(client, {
21
+ * assetId: '0x0122…0000',
21
22
  * amount: 10,
22
23
  * maxPrice: '0.55',
23
24
  * side: OrderSide.BUY,
24
- * tokenId: '123',
25
25
  * });
26
26
  * ```
27
27
  */
@@ -42,11 +42,11 @@ declare const PrepareLimitOrderError: {
42
42
  * @example
43
43
  * ```ts
44
44
  * const workflow = await prepareLimitOrder(client, {
45
+ * assetId: '0x0122…0000',
45
46
  * postOnly: true,
46
47
  * price: 0.52,
47
48
  * side: OrderSide.BUY,
48
49
  * size: 10,
49
- * tokenId: '123',
50
50
  * });
51
51
  * ```
52
52
  */
@@ -67,10 +67,10 @@ declare const PrepareMarketOrderPostingError: {
67
67
  * @example
68
68
  * ```ts
69
69
  * const workflow = await prepareMarketOrderPosting(client, {
70
+ * assetId: '0x0122…0000',
70
71
  * minPrice: '0.54',
71
72
  * shares: 10,
72
73
  * side: OrderSide.SELL,
73
- * tokenId: '123',
74
74
  * });
75
75
  * ```
76
76
  */
@@ -91,11 +91,11 @@ declare const PrepareLimitOrderPostingError: {
91
91
  * @example
92
92
  * ```ts
93
93
  * const workflow = await prepareLimitOrderPosting(client, {
94
+ * assetId: '0x0122…0000',
94
95
  * postOnly: true,
95
96
  * price: 0.52,
96
97
  * side: OrderSide.BUY,
97
98
  * size: 10,
98
- * tokenId: '123',
99
99
  * });
100
100
  * ```
101
101
  */
@@ -117,10 +117,10 @@ declare const CreateMarketOrderError: {
117
117
  * @example
118
118
  * ```ts
119
119
  * const order = await createMarketOrder(client, {
120
+ * assetId: '0x0122…0000',
120
121
  * amount: '100',
121
122
  * maxPrice: '0.55',
122
123
  * side: OrderSide.BUY,
123
- * tokenId: '123',
124
124
  * });
125
125
  * ```
126
126
  */
@@ -141,10 +141,10 @@ declare const PlaceMarketOrderError: {
141
141
  * @example
142
142
  * ```ts
143
143
  * const response = await placeMarketOrder(client, {
144
+ * assetId: '0x0122…0000',
144
145
  * minPrice: '0.54',
145
146
  * shares: '180',
146
147
  * side: OrderSide.SELL,
147
- * tokenId: '123',
148
148
  * });
149
149
  * ```
150
150
  */