@polymarket/client 0.1.0-beta.13 → 0.1.0-beta.15
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/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +1 -1
- package/dist/chunk-IBUXKB4V.js +2 -0
- package/dist/chunk-IBUXKB4V.js.map +1 -0
- package/dist/ethers-v5.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{sports-CI13Qzv8.d.ts → sports-R1VwatKh.d.ts} +1 -1
- package/dist/{types-CGoPQTmJ.d.ts → types-DaUXkJL6.d.ts} +263 -176
- package/dist/viem.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-IASUU6GQ.js +0 -2
- package/dist/chunk-IASUU6GQ.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderResponse } from '@polymarket/bindings/clob';
|
|
2
|
-
import {
|
|
2
|
+
import { bG as RateLimitError, bI as RequestRejectedError, cs as SigningError, cz as TransportError, cC as UnexpectedResponseError, U as UserInputError, as as InsufficientLiquidityError, h as BaseSecureClient, f0 as PrepareLimitOrderRequest, eG as OrderWorkflow, eF as OrderPostingWorkflow, f2 as PrepareMarketOrderRequest, p as CancelledSigningError, bw as PostOrderError, cu as TimeoutError, cv as TransactionFailedError, fE as SignedOrder, B as BaseClient } from './types-DaUXkJL6.js';
|
|
3
3
|
import { SportsMarketTypesResponse, SportsMetadata } from '@polymarket/bindings/gamma';
|
|
4
4
|
|
|
5
5
|
type PrepareMarketOrderError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
@@ -7,7 +7,7 @@ import { ZodError, z } from 'zod';
|
|
|
7
7
|
import * as _polymarket_bindings_clob from '@polymarket/bindings/clob';
|
|
8
8
|
import { ClobTrade, NotificationsResponse, BuilderTrade, Prices, OrderBook, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
|
|
9
9
|
import * as _polymarket_bindings_data from '@polymarket/bindings/data';
|
|
10
|
-
import { Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition,
|
|
10
|
+
import { Activity, ComboActivity, Trade, Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder } from '@polymarket/bindings/data';
|
|
11
11
|
import { ComboMarket, RfqQuoteRequest, RfqRequestedSize, RfqSide, RfqQuoteAck, RfqConfirmationRequest, RfqConfirmationAck as RfqConfirmationAck$1, RfqExecutionUpdate, RfqTrade, RfqQuoteCancelAck, RfqErrorCode, RfqId, RfqQuoteId } from '@polymarket/bindings/rfq';
|
|
12
12
|
import { PerpsInstrument, PerpsTicker, PerpsBook, PerpsCandle, PerpsFundingRate, PerpsPublicTrade, PerpsFeeScheduleEntry, PerpsWithdrawalId, PerpsDepositStatus, PerpsWithdrawalStatus, PerpsPnlInterval, PerpsDecimalInput, PerpsTimeInForce, PerpsCredentials, PerpsBalance, PerpsPortfolio, PerpsAccountStats, PerpsAccountConfig, PerpsOrder, PerpsAccountFill, PerpsAccountFundingPayment, PerpsDeposit, PerpsWithdrawal, PerpsEquityPoint, PerpsPnlPoint, PerpsOrderId, PerpsPostOrderAck, PerpsCancelOrderResult, PerpsUpdateLeverageResult, PerpsInstrumentCategory, PerpsKlineInterval } from '@polymarket/bindings/perps';
|
|
13
13
|
import { PerpsSessionEvent, CommentsEvent, CryptoPricesTopic, EquityPricesTopic, EquityPricesEvent, MarketEvent, StandardMarketEvent, UserEvent, SportsEvent, CryptoPricesBinanceEvent, CryptoPricesChainlinkEvent, PerpsTradeEvent, PerpsBboEvent, PerpsBookEvent, PerpsCandleEvent, PerpsTickerEvent, PerpsStatisticEvent, CryptoPricesEvent, PerpsMarketDataEvent } from '@polymarket/bindings/subscriptions';
|
|
@@ -278,75 +278,208 @@ type Paginated<T> = AsyncIterable<Page<T>> & {
|
|
|
278
278
|
from(cursor?: PaginationCursor): Paginated<T>;
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
declare const
|
|
281
|
+
declare const ListTradesRequestSchema: z.ZodObject<{
|
|
282
282
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
283
|
-
|
|
283
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
284
|
+
takerOnly: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
filterType: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
CASH: "CASH";
|
|
287
|
+
TOKENS: "TOKENS";
|
|
288
|
+
}>>;
|
|
289
|
+
filterAmount: z.ZodOptional<z.ZodNumber>;
|
|
284
290
|
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
291
|
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
292
|
+
user: z.ZodOptional<z.ZodString>;
|
|
293
|
+
side: z.ZodOptional<z.ZodEnum<{
|
|
294
|
+
BUY: "BUY";
|
|
295
|
+
SELL: "SELL";
|
|
296
|
+
}>>;
|
|
297
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
|
|
301
|
+
type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
302
|
+
declare const ListTradesError: {
|
|
303
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Lists trades for a wallet, market, or event.
|
|
307
|
+
*
|
|
308
|
+
* @remarks
|
|
309
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
310
|
+
*
|
|
311
|
+
* @throws {@link ListTradesError}
|
|
312
|
+
* Thrown on failure.
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* Fetch the first page of results:
|
|
316
|
+
* ```ts
|
|
317
|
+
* const result = listTrades(client, {
|
|
318
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
319
|
+
* pageSize: 10,
|
|
320
|
+
* });
|
|
321
|
+
*
|
|
322
|
+
* const firstPage = await result.firstPage();
|
|
323
|
+
*
|
|
324
|
+
* // Optionally, fetch additional pages:
|
|
325
|
+
* for await (const page of result.from(firstPage.nextCursor)) {
|
|
326
|
+
* // page.items: Trade[]
|
|
327
|
+
* }
|
|
328
|
+
* ```
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* Loop through all pages with `for await`:
|
|
332
|
+
* ```ts
|
|
333
|
+
* const result = listTrades(client, {
|
|
334
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
335
|
+
* pageSize: 10,
|
|
336
|
+
* });
|
|
337
|
+
*
|
|
338
|
+
* for await (const page of result) {
|
|
339
|
+
* // page.items: Trade[]
|
|
340
|
+
* }
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
|
|
344
|
+
declare const ListActivityRequestSchema: z.ZodObject<{
|
|
345
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
289
346
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
347
|
+
user: z.ZodString;
|
|
348
|
+
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
349
|
+
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
350
|
+
type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof _polymarket_bindings_data.ActivityType>>>;
|
|
351
|
+
start: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
end: z.ZodOptional<z.ZodNumber>;
|
|
290
353
|
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
291
|
-
|
|
292
|
-
INITIAL: "INITIAL";
|
|
354
|
+
CASH: "CASH";
|
|
293
355
|
TOKENS: "TOKENS";
|
|
294
|
-
|
|
295
|
-
PERCENTPNL: "PERCENTPNL";
|
|
296
|
-
TITLE: "TITLE";
|
|
297
|
-
RESOLVING: "RESOLVING";
|
|
298
|
-
PRICE: "PRICE";
|
|
299
|
-
AVGPRICE: "AVGPRICE";
|
|
356
|
+
TIMESTAMP: "TIMESTAMP";
|
|
300
357
|
}>>;
|
|
301
358
|
sortDirection: z.ZodOptional<z.ZodEnum<{
|
|
302
359
|
ASC: "ASC";
|
|
303
360
|
DESC: "DESC";
|
|
304
361
|
}>>;
|
|
305
|
-
|
|
362
|
+
side: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
BUY: "BUY";
|
|
364
|
+
SELL: "SELL";
|
|
365
|
+
}>>;
|
|
306
366
|
}, z.core.$strip>;
|
|
307
|
-
|
|
367
|
+
type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
|
|
368
|
+
type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
369
|
+
declare const ListActivityError: {
|
|
370
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* Lists wallet activity.
|
|
374
|
+
*
|
|
375
|
+
* @remarks
|
|
376
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
377
|
+
*
|
|
378
|
+
* @throws {@link ListActivityError}
|
|
379
|
+
* Thrown on failure.
|
|
380
|
+
*
|
|
381
|
+
* @example
|
|
382
|
+
* Fetch the first page of results:
|
|
383
|
+
* ```ts
|
|
384
|
+
* const result = listActivity(client, {
|
|
385
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
386
|
+
* pageSize: 10,
|
|
387
|
+
* });
|
|
388
|
+
*
|
|
389
|
+
* const firstPage = await result.firstPage();
|
|
390
|
+
*
|
|
391
|
+
* // Optionally, fetch additional pages:
|
|
392
|
+
* for await (const page of result.from(firstPage.nextCursor)) {
|
|
393
|
+
* // page.items: Activity[]
|
|
394
|
+
* }
|
|
395
|
+
* ```
|
|
396
|
+
*
|
|
397
|
+
* @example
|
|
398
|
+
* Loop through all pages with `for await`:
|
|
399
|
+
* ```ts
|
|
400
|
+
* const result = listActivity(client, {
|
|
401
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
402
|
+
* pageSize: 10,
|
|
403
|
+
* });
|
|
404
|
+
*
|
|
405
|
+
* for await (const page of result) {
|
|
406
|
+
* // page.items: Activity[]
|
|
407
|
+
* }
|
|
408
|
+
* ```
|
|
409
|
+
*/
|
|
410
|
+
declare function listActivity(client: BaseClient, request: ListActivityRequest): Paginated<Activity[]>;
|
|
411
|
+
declare const ListComboActivityRequestSchema: z.ZodObject<{
|
|
412
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
413
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
414
|
+
user: z.ZodString;
|
|
415
|
+
conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>>]>>;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
type ListComboActivityRequest = z.input<typeof ListComboActivityRequestSchema>;
|
|
418
|
+
type ListComboActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
419
|
+
declare const ListComboActivityError: {
|
|
420
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Lists combo lifecycle activity for a wallet.
|
|
424
|
+
*
|
|
425
|
+
* @remarks
|
|
426
|
+
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
427
|
+
*
|
|
428
|
+
* @throws {@link ListComboActivityError}
|
|
429
|
+
* Thrown on failure.
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
* Fetch the first page of results:
|
|
433
|
+
* ```ts
|
|
434
|
+
* const result = listComboActivity(client, {
|
|
435
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
436
|
+
* pageSize: 10,
|
|
437
|
+
* });
|
|
438
|
+
*
|
|
439
|
+
* const firstPage = await result.firstPage();
|
|
440
|
+
*
|
|
441
|
+
* // Optionally, fetch additional pages:
|
|
442
|
+
* for await (const page of result.from(firstPage.nextCursor)) {
|
|
443
|
+
* // page.items: ComboActivity[]
|
|
444
|
+
* }
|
|
445
|
+
* ```
|
|
446
|
+
*/
|
|
447
|
+
declare function listComboActivity(client: BaseClient, request: ListComboActivityRequest): Paginated<ComboActivity[]>;
|
|
448
|
+
|
|
449
|
+
declare enum ComboPositionSort {
|
|
450
|
+
CurrentValueDesc = "current_value_desc",
|
|
451
|
+
FirstEntryDesc = "first_entry_desc",
|
|
452
|
+
EntryCostDesc = "entry_cost_desc",
|
|
453
|
+
ResolvedAtDesc = "resolved_at_desc",
|
|
454
|
+
UpdatedAsc = "updated_asc"
|
|
455
|
+
}
|
|
456
|
+
declare const ListPositionsRequestSchema: z.ZodObject<{
|
|
308
457
|
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
309
458
|
user: z.ZodString;
|
|
310
459
|
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
311
|
-
title: z.ZodOptional<z.ZodString>;
|
|
312
460
|
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
461
|
+
sizeThreshold: z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
redeemable: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
+
mergeable: z.ZodOptional<z.ZodBoolean>;
|
|
313
464
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
314
465
|
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
466
|
+
TOKENS: "TOKENS";
|
|
467
|
+
CURRENT: "CURRENT";
|
|
468
|
+
INITIAL: "INITIAL";
|
|
469
|
+
CASHPNL: "CASHPNL";
|
|
470
|
+
PERCENTPNL: "PERCENTPNL";
|
|
315
471
|
TITLE: "TITLE";
|
|
472
|
+
RESOLVING: "RESOLVING";
|
|
316
473
|
PRICE: "PRICE";
|
|
317
474
|
AVGPRICE: "AVGPRICE";
|
|
318
|
-
REALIZEDPNL: "REALIZEDPNL";
|
|
319
|
-
TIMESTAMP: "TIMESTAMP";
|
|
320
475
|
}>>;
|
|
321
476
|
sortDirection: z.ZodOptional<z.ZodEnum<{
|
|
322
477
|
ASC: "ASC";
|
|
323
478
|
DESC: "DESC";
|
|
324
479
|
}>>;
|
|
325
|
-
|
|
326
|
-
declare const ListComboPositionsRequestSchema: z.ZodObject<{
|
|
327
|
-
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
328
|
-
user: z.ZodString;
|
|
329
|
-
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
330
|
-
status: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.ComboPositionStatus>>;
|
|
331
|
-
conditionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>>;
|
|
332
|
-
positionId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.PositionId, string>>>;
|
|
333
|
-
}, z.core.$strip>;
|
|
334
|
-
declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
|
|
335
|
-
user: z.ZodString;
|
|
336
|
-
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
-
}, z.core.$strip>;
|
|
338
|
-
declare const FetchTradedMarketCountRequestSchema: z.ZodObject<{
|
|
339
|
-
user: z.ZodString;
|
|
340
|
-
}, z.core.$strip>;
|
|
341
|
-
declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
|
|
342
|
-
user: z.ZodString;
|
|
480
|
+
title: z.ZodOptional<z.ZodString>;
|
|
343
481
|
}, z.core.$strip>;
|
|
344
482
|
type ListPositionsRequest = z.input<typeof ListPositionsRequestSchema>;
|
|
345
|
-
type ListClosedPositionsRequest = z.input<typeof ListClosedPositionsRequestSchema>;
|
|
346
|
-
type ListComboPositionsRequest = z.input<typeof ListComboPositionsRequestSchema>;
|
|
347
|
-
type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
|
|
348
|
-
type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountRequestSchema>;
|
|
349
|
-
type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
|
|
350
483
|
type ListPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
351
484
|
declare const ListPositionsError: {
|
|
352
485
|
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
@@ -390,14 +523,30 @@ declare const ListPositionsError: {
|
|
|
390
523
|
* ```
|
|
391
524
|
*/
|
|
392
525
|
declare function listPositions(client: BaseClient, request: ListPositionsRequest): Paginated<Position[]>;
|
|
526
|
+
declare const ListClosedPositionsRequestSchema: z.ZodObject<{
|
|
527
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
528
|
+
user: z.ZodString;
|
|
529
|
+
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
530
|
+
title: z.ZodOptional<z.ZodString>;
|
|
531
|
+
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
532
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
533
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
TIMESTAMP: "TIMESTAMP";
|
|
535
|
+
TITLE: "TITLE";
|
|
536
|
+
PRICE: "PRICE";
|
|
537
|
+
AVGPRICE: "AVGPRICE";
|
|
538
|
+
REALIZEDPNL: "REALIZEDPNL";
|
|
539
|
+
}>>;
|
|
540
|
+
sortDirection: z.ZodOptional<z.ZodEnum<{
|
|
541
|
+
ASC: "ASC";
|
|
542
|
+
DESC: "DESC";
|
|
543
|
+
}>>;
|
|
544
|
+
}, z.core.$strip>;
|
|
545
|
+
type ListClosedPositionsRequest = z.input<typeof ListClosedPositionsRequestSchema>;
|
|
393
546
|
type ListClosedPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
394
547
|
declare const ListClosedPositionsError: {
|
|
395
548
|
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
396
549
|
};
|
|
397
|
-
type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
398
|
-
declare const ListComboPositionsError: {
|
|
399
|
-
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
400
|
-
};
|
|
401
550
|
/**
|
|
402
551
|
* Lists closed positions for a wallet.
|
|
403
552
|
*
|
|
@@ -437,6 +586,21 @@ declare const ListComboPositionsError: {
|
|
|
437
586
|
* ```
|
|
438
587
|
*/
|
|
439
588
|
declare function listClosedPositions(client: BaseClient, request: ListClosedPositionsRequest): Paginated<ClosedPosition[]>;
|
|
589
|
+
declare const ListComboPositionsRequestSchema: z.ZodObject<{
|
|
590
|
+
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
591
|
+
user: z.ZodString;
|
|
592
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
593
|
+
status: z.ZodOptional<z.ZodEnum<typeof _polymarket_bindings_data.ComboPositionStatus>>;
|
|
594
|
+
sort: z.ZodOptional<z.ZodEnum<typeof ComboPositionSort>>;
|
|
595
|
+
conditionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_bindings.ComboConditionId, string>>>]>>;
|
|
596
|
+
updatedAfter: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
updatedBefore: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
type ListComboPositionsRequest = z.input<typeof ListComboPositionsRequestSchema>;
|
|
600
|
+
type ListComboPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
601
|
+
declare const ListComboPositionsError: {
|
|
602
|
+
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
603
|
+
};
|
|
440
604
|
/**
|
|
441
605
|
* Lists combo positions for a wallet.
|
|
442
606
|
*
|
|
@@ -470,8 +634,24 @@ declare function listClosedPositions(client: BaseClient, request: ListClosedPosi
|
|
|
470
634
|
* status: ComboPositionStatus.Open,
|
|
471
635
|
* });
|
|
472
636
|
* ```
|
|
637
|
+
*
|
|
638
|
+
* @example
|
|
639
|
+
* Incrementally sync changed combo positions:
|
|
640
|
+
* ```ts
|
|
641
|
+
* const result = listComboPositions(client, {
|
|
642
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
643
|
+
* updatedAfter: 1_797_360_000,
|
|
644
|
+
* sort: ComboPositionSort.UpdatedAsc,
|
|
645
|
+
* pageSize: 1000,
|
|
646
|
+
* });
|
|
647
|
+
* ```
|
|
473
648
|
*/
|
|
474
649
|
declare function listComboPositions(client: BaseClient, request: ListComboPositionsRequest): Paginated<ComboPosition[]>;
|
|
650
|
+
declare const FetchPortfolioValueRequestSchema: z.ZodObject<{
|
|
651
|
+
user: z.ZodString;
|
|
652
|
+
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
653
|
+
}, z.core.$strip>;
|
|
654
|
+
type FetchPortfolioValueRequest = z.input<typeof FetchPortfolioValueRequestSchema>;
|
|
475
655
|
type FetchPortfolioValueError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
476
656
|
declare const FetchPortfolioValueError: {
|
|
477
657
|
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
@@ -495,6 +675,10 @@ declare const FetchPortfolioValueError: {
|
|
|
495
675
|
* ```
|
|
496
676
|
*/
|
|
497
677
|
declare function fetchPortfolioValue(client: BaseClient, request: FetchPortfolioValueRequest): Promise<Value[]>;
|
|
678
|
+
declare const FetchTradedMarketCountRequestSchema: z.ZodObject<{
|
|
679
|
+
user: z.ZodString;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
type FetchTradedMarketCountRequest = z.input<typeof FetchTradedMarketCountRequestSchema>;
|
|
498
682
|
type FetchTradedMarketCountError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
499
683
|
declare const FetchTradedMarketCountError: {
|
|
500
684
|
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
@@ -518,6 +702,10 @@ declare const FetchTradedMarketCountError: {
|
|
|
518
702
|
* ```
|
|
519
703
|
*/
|
|
520
704
|
declare function fetchTradedMarketCount(client: BaseClient, request: FetchTradedMarketCountRequest): Promise<Traded>;
|
|
705
|
+
declare const DownloadAccountingSnapshotRequestSchema: z.ZodObject<{
|
|
706
|
+
user: z.ZodString;
|
|
707
|
+
}, z.core.$strip>;
|
|
708
|
+
type DownloadAccountingSnapshotRequest = z.input<typeof DownloadAccountingSnapshotRequestSchema>;
|
|
521
709
|
type DownloadAccountingSnapshotError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
522
710
|
declare const DownloadAccountingSnapshotError: {
|
|
523
711
|
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
@@ -559,6 +747,7 @@ type SecureFetchPortfolioValueRequest = DefaultAccountWallet<FetchPortfolioValue
|
|
|
559
747
|
type SecureFetchTradedMarketCountRequest = DefaultAccountWallet<FetchTradedMarketCountRequest>;
|
|
560
748
|
type SecureDownloadAccountingSnapshotRequest = DefaultAccountWallet<DownloadAccountingSnapshotRequest>;
|
|
561
749
|
type SecureListActivityRequest = DefaultAccountWallet<ListActivityRequest>;
|
|
750
|
+
type SecureListComboActivityRequest = DefaultAccountWallet<ListComboActivityRequest>;
|
|
562
751
|
type CommonAccountActions = {
|
|
563
752
|
/**
|
|
564
753
|
* Lists positions for a market.
|
|
@@ -766,6 +955,24 @@ type PublicAccountActions = Prettify<CommonAccountActions & {
|
|
|
766
955
|
* ```
|
|
767
956
|
*/
|
|
768
957
|
listActivity(request: ListActivityRequest): Paginated<Activity[]>;
|
|
958
|
+
/**
|
|
959
|
+
* Lists combo lifecycle activity for a wallet.
|
|
960
|
+
*
|
|
961
|
+
* @throws {@link ListComboActivityError}
|
|
962
|
+
* Thrown on failure.
|
|
963
|
+
*
|
|
964
|
+
* @example
|
|
965
|
+
* Fetch the first page of results:
|
|
966
|
+
* ```ts
|
|
967
|
+
* const paginator = client.listComboActivity({
|
|
968
|
+
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
969
|
+
* pageSize: 10,
|
|
970
|
+
* });
|
|
971
|
+
*
|
|
972
|
+
* const firstPage = await paginator.firstPage();
|
|
973
|
+
* ```
|
|
974
|
+
*/
|
|
975
|
+
listComboActivity(request: ListComboActivityRequest): Paginated<ComboActivity[]>;
|
|
769
976
|
}>;
|
|
770
977
|
type SecureAccountActions = Prettify<CommonAccountActions & {
|
|
771
978
|
/**
|
|
@@ -841,6 +1048,15 @@ type SecureAccountActions = Prettify<CommonAccountActions & {
|
|
|
841
1048
|
* Thrown on failure.
|
|
842
1049
|
*/
|
|
843
1050
|
listActivity(request?: SecureListActivityRequest): Paginated<Activity[]>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Lists combo lifecycle activity for a wallet.
|
|
1053
|
+
*
|
|
1054
|
+
* Defaults to the authenticated account's wallet when `user` is omitted.
|
|
1055
|
+
*
|
|
1056
|
+
* @throws {@link ListComboActivityError}
|
|
1057
|
+
* Thrown on failure.
|
|
1058
|
+
*/
|
|
1059
|
+
listComboActivity(request?: SecureListComboActivityRequest): Paginated<ComboActivity[]>;
|
|
844
1060
|
/**
|
|
845
1061
|
* Lists trades for the authenticated account across all pages.
|
|
846
1062
|
*
|
|
@@ -4137,135 +4353,6 @@ declare const FetchRewardPercentagesError: {
|
|
|
4137
4353
|
*/
|
|
4138
4354
|
declare function fetchRewardPercentages(client: BaseSecureClient): Promise<RewardsPercentages>;
|
|
4139
4355
|
|
|
4140
|
-
declare const ListTradesRequestSchema: z.ZodObject<{
|
|
4141
|
-
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4142
|
-
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4143
|
-
takerOnly: z.ZodOptional<z.ZodBoolean>;
|
|
4144
|
-
filterType: z.ZodOptional<z.ZodEnum<{
|
|
4145
|
-
TOKENS: "TOKENS";
|
|
4146
|
-
CASH: "CASH";
|
|
4147
|
-
}>>;
|
|
4148
|
-
filterAmount: z.ZodOptional<z.ZodNumber>;
|
|
4149
|
-
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4150
|
-
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4151
|
-
user: z.ZodOptional<z.ZodString>;
|
|
4152
|
-
side: z.ZodOptional<z.ZodEnum<{
|
|
4153
|
-
BUY: "BUY";
|
|
4154
|
-
SELL: "SELL";
|
|
4155
|
-
}>>;
|
|
4156
|
-
}, z.core.$strip>;
|
|
4157
|
-
declare const ListActivityRequestSchema: z.ZodObject<{
|
|
4158
|
-
cursor: z.ZodOptional<z.ZodCustom<_polymarket_bindings.PaginationCursor, _polymarket_bindings.PaginationCursor>>;
|
|
4159
|
-
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
4160
|
-
user: z.ZodString;
|
|
4161
|
-
market: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4162
|
-
eventId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
4163
|
-
type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof _polymarket_bindings_data.ActivityType>>>;
|
|
4164
|
-
start: z.ZodOptional<z.ZodNumber>;
|
|
4165
|
-
end: z.ZodOptional<z.ZodNumber>;
|
|
4166
|
-
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
4167
|
-
TOKENS: "TOKENS";
|
|
4168
|
-
TIMESTAMP: "TIMESTAMP";
|
|
4169
|
-
CASH: "CASH";
|
|
4170
|
-
}>>;
|
|
4171
|
-
sortDirection: z.ZodOptional<z.ZodEnum<{
|
|
4172
|
-
ASC: "ASC";
|
|
4173
|
-
DESC: "DESC";
|
|
4174
|
-
}>>;
|
|
4175
|
-
side: z.ZodOptional<z.ZodEnum<{
|
|
4176
|
-
BUY: "BUY";
|
|
4177
|
-
SELL: "SELL";
|
|
4178
|
-
}>>;
|
|
4179
|
-
}, z.core.$strip>;
|
|
4180
|
-
type ListTradesRequest = z.input<typeof ListTradesRequestSchema>;
|
|
4181
|
-
type ListActivityRequest = z.input<typeof ListActivityRequestSchema>;
|
|
4182
|
-
type ListTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4183
|
-
declare const ListTradesError: {
|
|
4184
|
-
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4185
|
-
};
|
|
4186
|
-
/**
|
|
4187
|
-
* Lists trades for a wallet, market, or event.
|
|
4188
|
-
*
|
|
4189
|
-
* @remarks
|
|
4190
|
-
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
4191
|
-
*
|
|
4192
|
-
* @throws {@link ListTradesError}
|
|
4193
|
-
* Thrown on failure.
|
|
4194
|
-
*
|
|
4195
|
-
* @example
|
|
4196
|
-
* Fetch the first page of results:
|
|
4197
|
-
* ```ts
|
|
4198
|
-
* const result = listTrades(client, {
|
|
4199
|
-
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
4200
|
-
* pageSize: 10,
|
|
4201
|
-
* });
|
|
4202
|
-
*
|
|
4203
|
-
* const firstPage = await result.firstPage();
|
|
4204
|
-
*
|
|
4205
|
-
* // Optionally, fetch additional pages:
|
|
4206
|
-
* for await (const page of result.from(firstPage.nextCursor)) {
|
|
4207
|
-
* // page.items: Trade[]
|
|
4208
|
-
* }
|
|
4209
|
-
* ```
|
|
4210
|
-
*
|
|
4211
|
-
* @example
|
|
4212
|
-
* Loop through all pages with `for await`:
|
|
4213
|
-
* ```ts
|
|
4214
|
-
* const result = listTrades(client, {
|
|
4215
|
-
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
4216
|
-
* pageSize: 10,
|
|
4217
|
-
* });
|
|
4218
|
-
*
|
|
4219
|
-
* for await (const page of result) {
|
|
4220
|
-
* // page.items: Trade[]
|
|
4221
|
-
* }
|
|
4222
|
-
* ```
|
|
4223
|
-
*/
|
|
4224
|
-
declare function listTrades(client: BaseClient, request?: ListTradesRequest): Paginated<Trade[]>;
|
|
4225
|
-
type ListActivityError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4226
|
-
declare const ListActivityError: {
|
|
4227
|
-
isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
|
|
4228
|
-
};
|
|
4229
|
-
/**
|
|
4230
|
-
* Lists wallet activity.
|
|
4231
|
-
*
|
|
4232
|
-
* @remarks
|
|
4233
|
-
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
4234
|
-
*
|
|
4235
|
-
* @throws {@link ListActivityError}
|
|
4236
|
-
* Thrown on failure.
|
|
4237
|
-
*
|
|
4238
|
-
* @example
|
|
4239
|
-
* Fetch the first page of results:
|
|
4240
|
-
* ```ts
|
|
4241
|
-
* const result = listActivity(client, {
|
|
4242
|
-
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
4243
|
-
* pageSize: 10,
|
|
4244
|
-
* });
|
|
4245
|
-
*
|
|
4246
|
-
* const firstPage = await result.firstPage();
|
|
4247
|
-
*
|
|
4248
|
-
* // Optionally, fetch additional pages:
|
|
4249
|
-
* for await (const page of result.from(firstPage.nextCursor)) {
|
|
4250
|
-
* // page.items: Activity[]
|
|
4251
|
-
* }
|
|
4252
|
-
* ```
|
|
4253
|
-
*
|
|
4254
|
-
* @example
|
|
4255
|
-
* Loop through all pages with `for await`:
|
|
4256
|
-
* ```ts
|
|
4257
|
-
* const result = listActivity(client, {
|
|
4258
|
-
* user: '0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b',
|
|
4259
|
-
* pageSize: 10,
|
|
4260
|
-
* });
|
|
4261
|
-
*
|
|
4262
|
-
* for await (const page of result) {
|
|
4263
|
-
* // page.items: Activity[]
|
|
4264
|
-
* }
|
|
4265
|
-
* ```
|
|
4266
|
-
*/
|
|
4267
|
-
declare function listActivity(client: BaseClient, request: ListActivityRequest): Paginated<Activity[]>;
|
|
4268
|
-
|
|
4269
4356
|
type Erc20ApprovalWorkflowRequest = GaslessWorkflowRequest | SendErc20ApprovalTransactionRequest;
|
|
4270
4357
|
type Erc20ApprovalWorkflow = AsyncGenerator<Erc20ApprovalWorkflowRequest, TransactionHandle, EvmAddress$1 | EvmSignature | TransactionHandle>;
|
|
4271
4358
|
declare const PrepareErc20ApprovalRequestSchema: z.ZodObject<{
|
|
@@ -7881,4 +7968,4 @@ type Signer = {
|
|
|
7881
7968
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
7882
7969
|
};
|
|
7883
7970
|
|
|
7884
|
-
export { FetchOrderScoringError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, DropNotificationsError as E, type EnvironmentConfig as F, type EnvironmentConfigFork as G, type EnvironmentContracts as H, EstimateMarketPriceError as I, FetchClosedOnlyModeError as J, FetchCommentsByIdError as K, FetchEventError as L, FetchEventLiveVolumeError as M, FetchEventTagsError as N, FetchLastTradePriceError as O, FetchLastTradePricesError as P, FetchMarketError as Q, FetchMarketTagsError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchMidpointError as V, FetchMidpointsError as W, FetchNotificationsError as X, FetchOrderBookError as Y, FetchOrderBooksError as Z, FetchOrderError as _, type TypedData as a, ListTradesError as a$, FetchOrdersScoringError as a0, type FetchPerpsAccountConfigRequest as a1, FetchPerpsBookError as a2, type FetchPerpsBookRequest as a3, FetchPerpsFeesError as a4, FetchPerpsInstrumentsError as a5, type FetchPerpsInstrumentsRequest as a6, type FetchPerpsOpenOrdersRequest as a7, type FetchPerpsOrdersRequest as a8, FetchPerpsTickerError as a9, ListCommentsByUserAddressError as aA, ListCommentsError as aB, ListCurrentRewardsError as aC, ListEventsError as aD, ListMarketHoldersError as aE, ListMarketPositionsError as aF, ListMarketRewardsError as aG, ListMarketsError as aH, ListOpenInterestError as aI, ListOpenOrdersError as aJ, ListPerpsCandlesError as aK, type ListPerpsCandlesRequest as aL, type ListPerpsDepositsRequest as aM, type ListPerpsEquityHistoryRequest as aN, type ListPerpsFillsRequest as aO, ListPerpsFundingHistoryError as aP, type ListPerpsFundingHistoryRequest as aQ, type ListPerpsFundingPaymentsRequest as aR, type ListPerpsPnlHistoryRequest as aS, ListPerpsTradesError as aT, type ListPerpsTradesRequest as aU, type ListPerpsWithdrawalsRequest as aV, ListPositionsError as aW, ListSeriesError as aX, ListTagsError as aY, ListTeamsError as aZ, ListTraderLeaderboardError as a_, type FetchPerpsTickerRequest as aa, FetchPerpsTickersError as ab, type FetchPerpsTickersRequest as ac, FetchPortfolioValueError as ad, FetchPriceError as ae, FetchPriceHistoryError as af, FetchPricesError as ag, FetchPublicProfileError as ah, FetchRelatedTagResourcesError as ai, FetchRelatedTagsError as aj, FetchRewardPercentagesError as ak, FetchSeriesError as al, FetchSpreadError as am, FetchSpreadsError as an, FetchTagError as ao, FetchTotalEarningsForUserForDayError as ap, FetchTradedMarketCountError as aq, InsufficientLiquidityError as ar, ListAccountTradesError as as, ListActivityError as at, ListBuilderLeaderboardError as au, ListBuilderTradesError as av, ListBuilderVolumeError as aw, ListClosedPositionsError as ax, ListComboMarketsError as ay, ListComboPositionsError as az, type TransactionCall as b, type RfqQuoteResponse as b$, ListUserEarningsAndMarketsConfigError as b0, ListUserEarningsForDayError as b1, MergePositionsError as b2, OpenPerpsSessionError as b3, type OpenPerpsSessionRequest as b4, OpenRfqSessionError as b5, type Page as b6, PageSizeSchema as b7, type Paginated as b8, type PerpsActions as b9, type PublicClientOptions as bA, type PublicPerpsActions as bB, type PublicRewardsActions as bC, type PublicSubscriptionsActions as bD, RateLimitError as bE, RedeemPositionsError as bF, RequestRejectedError as bG, type RequestRejectedErrorOptions as bH, type RestEndpoint as bI, type ResumePerpsSessionRequest as bJ, RevokePerpsCredentialsError as bK, type RevokePerpsCredentialsRequest as bL, type RfqCancelQuoteAck as bM, RfqCancelQuoteError as bN, RfqCancelQuoteRejectedError as bO, type RfqCancelQuoteRejectedErrorOptions as bP, type RfqConfirmationAck as bQ, RfqConfirmationError as bR, RfqConfirmationRejectedError as bS, type RfqConfirmationRequestEvent as bT, type RfqEndpoints as bU, type RfqEvent as bV, RfqQuoteError as bW, type RfqQuoteReference as bX, RfqQuoteRejectedError as bY, type RfqQuoteRejectedErrorOptions as bZ, type RfqQuoteRequestEvent as b_, type PerpsBookDepth as ba, type PerpsEndpoints as bb, type PerpsOrderRequest as bc, type PerpsPlaceFokOrderRequest as bd, type PerpsPlaceGtcOrderRequest as be, type PerpsPlaceIocOrderRequest as bf, type PerpsPlacedTpSlOrder as bg, type PerpsPlacedTpSlOrders as bh, type PerpsPositionTpSlTrigger as bi, PerpsSession as bj, type PerpsSessionAccountError as bk, type PerpsSessionLifecycleError as bl, type PerpsSessionTradingError as bm, type PerpsTpSlTrigger as bn, type PlacePerpsOrderRequest as bo, type PlacePerpsOrderResult as bp, type PlacePerpsOrderWithTpSlRequest as bq, type PlacePerpsOrderWithTpSlResult as br, type PlacePerpsPositionTpSlRequest as bs, type PlacePerpsPositionTpSlResult as bt, PostOrderError as bu, PostOrdersError as bv, type PostPerpsOrdersRequest as bw, type PublicAccountActions as bx, type PublicActions as by, type PublicClient as bz, type AccountIdentity as c, type CommentsSubscription as c$, type RfqQuoteSource as c0, type RfqSession as c1, type RfqTradeEvent as c2, SearchError as c3, SearchSort as c4, type SecureAccountActions as c5, type SecureActions as c6, type SecureClient as c7, type SecureClientOptions as c8, type SecureDownloadAccountingSnapshotRequest as c9, UpdatePerpsLeverageError as cA, type UpdatePerpsLeverageRequest as cB, WaitForTransactionError as cC, type WalletDerivationConfig as cD, type WebSocketEndpoint as cE, WithdrawFromPerpsError as cF, type WithdrawFromPerpsRequest as cG, accountActions as cH, allActions as cI, analyticsActions as cJ, createPublicClient as cK, createSecureClient as cL, dataActions as cM, discoveryActions as cN, forkEnvironmentConfig as cO, makeErrorGuard as cP, perpsActions as cQ, production as cR, rewardsActions as cS, rfqActions as cT, subscriptionsActions as cU, tradingActions as cV, walletActions as cW, type CancelMarketOrdersRequest as cX, type CancelOrderRequest as cY, type CancelOrdersRequest as cZ, type CommentsEventType as c_, type SecureFetchPortfolioValueRequest as ca, type SecureFetchTradedMarketCountRequest as cb, type SecureListActivityRequest as cc, type SecureListClosedPositionsRequest as cd, type SecureListComboPositionsRequest as ce, type SecureListPositionsRequest as cf, type SecurePerpsActions as cg, type SecureRewardsActions as ch, type SecureRfqActions as ci, type SecureSubscriptionsActions as cj, type SecureTradingActions as ck, type SecureWalletActions as cl, SetupGaslessWalletError as cm, SetupTradingApprovalsError as cn, type SignerTransactionRequest as co, SigningError as cp, SplitPositionError as cq, TimeoutError as cr, TransactionFailedError as cs, type TransactionHandle as ct, type TransactionOutcome as cu, TransferErc20Error as cv, TransportError as cw, type TypedDataDomain as cx, type TypedDataField as cy, UnexpectedResponseError as cz, type AnalyticsActions as d, type GaslessWorkflowRequest as d$, type CryptoPricesEventType as d0, type CryptoPricesSubscription as d1, DeployDepositWalletError as d2, type DeprecatedTransactionHandle as d3, type DownloadAccountingSnapshotRequest as d4, type DropNotificationsRequest as d5, type EquityPricesEventType as d6, type EquityPricesSubscription as d7, type Erc1155ApprovalForAllWorkflow as d8, type Erc1155ApprovalForAllWorkflowRequest as d9, type FetchMarketTagsRequest as dA, type FetchMidpointRequest as dB, type FetchMidpointsRequest as dC, FetchNegRiskError as dD, type FetchNegRiskRequest as dE, type FetchOrderBookRequest as dF, type FetchOrderBooksRequest as dG, type FetchOrderRequest as dH, type FetchOrderScoringRequest as dI, type FetchOrdersScoringRequest as dJ, type FetchPortfolioValueRequest as dK, type FetchPriceHistoryRequest as dL, type FetchPriceRequest as dM, type FetchPricesRequest as dN, type FetchPublicProfileRequest as dO, type FetchRelatedTagResourcesRequest as dP, type FetchRelatedTagsRequest as dQ, type FetchSeriesRequest as dR, type FetchSpreadRequest as dS, type FetchSpreadsRequest as dT, type FetchTagRequest as dU, FetchTickSizeError as dV, type FetchTickSizeRequest as dW, type FetchTotalEarningsForUserForDayRequest as dX, type FetchTradedMarketCountRequest as dY, GaslessTransactionMetadataSchema as dZ, type GaslessWorkflow as d_, type Erc20ApprovalWorkflow as da, type Erc20ApprovalWorkflowRequest as db, type Erc20TransferWorkflow as dc, type Erc20TransferWorkflowRequest as dd, type EstimateMarketBuyPriceRequest as de, type EstimateMarketPriceRequest as df, type EstimateMarketSellPriceRequest as dg, type EventForSubscriptionSpec as dh, type EventForSubscriptionSpecs as di, FetchBalanceAllowanceError as dj, type FetchBalanceAllowanceRequest as dk, FetchBuilderFeeRatesError as dl, type FetchBuilderFeeRatesRequest as dm, type FetchCommentsByIdRequest as dn, type FetchEventLiveVolumeRequest as dp, type FetchEventRequest as dq, type FetchEventTagsRequest as dr, FetchExecuteParamsError as ds, type FetchExecuteParamsRequest as dt, type FetchGaslessTransactionRequest as du, type FetchLastTradePriceRequest as dv, type FetchLastTradePricesRequest as dw, FetchMarketInfoError as dx, type FetchMarketInfoRequest as dy, type FetchMarketRequest as dz, ApproveErc1155ForAllError as e, type PrepareMarketSellOrderRequest as e$, IsWalletDeployedError as e0, type IsWalletDeployedRequest as e1, type ListAccountTradesRequest as e2, type ListActivityRequest as e3, type ListBuilderLeaderboardRequest as e4, type ListBuilderTradesRequest as e5, type ListBuilderVolumeRequest as e6, type ListClosedPositionsRequest as e7, type ListComboMarketsRequest as e8, type ListComboPositionsRequest as e9, type OrderDraft as eA, type OrderPostingWorkflow as eB, type OrderWorkflow as eC, type OrderWorkflowRequest as eD, type PerpsBboSubscription as eE, type PerpsBookSubscription as eF, type PerpsCandlesSubscription as eG, type PerpsDepositWorkflow as eH, type PerpsDepositWorkflowRequest as eI, type PerpsMarketDataEventType as eJ, type PerpsMarketDataSubscription as eK, type PerpsStatisticsSubscription as eL, type PerpsStreamingCandleInterval as eM, type PerpsTickersSubscription as eN, type PerpsTradesSubscription as eO, type PostOrdersRequest as eP, PrepareErc1155ApprovalForAllError as eQ, type PrepareErc1155ApprovalForAllRequest as eR, PrepareErc20ApprovalError as eS, type PrepareErc20ApprovalRequest as eT, PrepareErc20TransferError as eU, type PrepareErc20TransferRequest as eV, PrepareGaslessTransactionError as eW, type PrepareGaslessTransactionRequest as eX, type PrepareLimitOrderRequest as eY, type PrepareMarketBuyOrderRequest as eZ, type PrepareMarketOrderRequest as e_, type ListCommentsByUserAddressRequest as ea, type ListCommentsRequest as eb, type ListCurrentRewardsRequest as ec, type ListEventsRequest as ed, ListMarketClarificationsError as ee, type ListMarketClarificationsRequest as ef, type ListMarketHoldersRequest as eg, type ListMarketPositionsRequest as eh, type ListMarketRewardsRequest as ei, type ListMarketsRequest as ej, type ListOpenInterestRequest as ek, type ListOpenOrdersRequest as el, type ListPositionsRequest as em, type ListSeriesRequest as en, type ListTagsRequest as eo, type ListTeamsRequest as ep, type ListTraderLeaderboardRequest as eq, type ListTradesRequest as er, type ListUserEarningsAndMarketsConfigRequest as es, type ListUserEarningsForDayRequest as et, type MarketEventType as eu, type MarketSubscription as ev, MergeComboPositionError as ew, MergeMarketPositionError as ex, type MergePositionsWorkflow as ey, type MergePositionsWorkflowRequest as ez, ApproveErc20Error as f, fetchBalanceAllowance as f$, PrepareMergeComboPositionError as f0, type PrepareMergeComboPositionRequest as f1, PrepareMergeMarketPositionError as f2, type PrepareMergeMarketPositionRequest as f3, PrepareMergePositionsError as f4, type PrepareMergePositionsRequest as f5, PreparePerpsDepositError as f6, PrepareRedeemComboPositionError as f7, type PrepareRedeemComboPositionRequest as f8, type PrepareRedeemMarketPositionsByConditionIdRequest as f9, type SignedOrder as fA, SplitComboPositionError as fB, SplitMarketPositionError as fC, type SplitPositionWorkflow as fD, type SplitPositionWorkflowRequest as fE, type SportsEventType as fF, type SportsSubscription as fG, type SubscribeError as fH, type SubscriptionHandle as fI, type TradingApprovalsWorkflow as fJ, type TradingApprovalsWorkflowRequest as fK, UpdateBalanceAllowanceError as fL, type UpdateBalanceAllowanceRequest as fM, type UserEventType as fN, type UserSubscription as fO, WaitForGaslessTransactionError as fP, approveErc1155ForAll as fQ, approveErc20 as fR, cancelAll as fS, cancelMarketOrders as fT, cancelOrder as fU, cancelOrders as fV, deployDepositWallet as fW, depositToPerps as fX, downloadAccountingSnapshot as fY, dropNotifications as fZ, estimateMarketPrice as f_, type PrepareRedeemMarketPositionsByMarketIdRequest as fa, PrepareRedeemMarketPositionsError as fb, type PrepareRedeemMarketPositionsRequest as fc, PrepareRedeemPositionsError as fd, type PrepareRedeemPositionsRequest as fe, PrepareSplitComboPositionError as ff, type PrepareSplitComboPositionRequest as fg, PrepareSplitMarketPositionError as fh, type PrepareSplitMarketPositionRequest as fi, PrepareSplitPositionError as fj, type PrepareSplitPositionRequest as fk, PrepareTradingApprovalsError as fl, type PublicRealtimeEvent as fm, type PublicRealtimeTopic as fn, type PublicSubscriptionSpec as fo, type RedeemPositionsWorkflow as fp, type RedeemPositionsWorkflowRequest as fq, ResolveConditionByTokenError as fr, type ResolveConditionByTokenRequest as fs, type RfqConfirmationRejectedErrorOptions as ft, type RfqExecutionUpdateEvent as fu, type SearchRequest as fv, type SearchResults as fw, type SecureRealtimeEvent as fx, type SecureRealtimeTopic as fy, type SecureSubscriptionSpec as fz, BasePublicClient as g, listPerpsFundingHistory as g$, fetchBuilderFeeRates as g0, fetchBuilderVolume as g1, fetchClosedOnlyMode as g2, fetchCommentsById as g3, fetchEvent as g4, fetchEventLiveVolume as g5, fetchEventTags as g6, fetchExecuteParams as g7, fetchLastTradePrice as g8, fetchLastTradePrices as g9, fetchSpread as gA, fetchSpreads as gB, fetchTag as gC, fetchTickSize as gD, fetchTotalEarningsForUserForDay as gE, fetchTradedMarketCount as gF, fetchTransaction as gG, isWalletDeployed as gH, listAccountTrades as gI, listActivity as gJ, listBuilderLeaderboard as gK, listBuilderTrades as gL, listClosedPositions as gM, listComboMarkets as gN, listComboPositions as gO, listComments as gP, listCommentsByUserAddress as gQ, listCurrentRewards as gR, listEvents as gS, listMarketClarifications as gT, listMarketHolders as gU, listMarketPositions as gV, listMarketRewards as gW, listMarkets as gX, listOpenInterest as gY, listOpenOrders as gZ, listPerpsCandles as g_, fetchMarket as ga, fetchMarketInfo as gb, fetchMarketTags as gc, fetchMidpoint as gd, fetchMidpoints as ge, fetchNegRisk as gf, fetchNotifications as gg, fetchOrder as gh, fetchOrderBook as gi, fetchOrderBooks as gj, fetchOrderScoring as gk, fetchOrdersScoring as gl, fetchPerpsBook as gm, fetchPerpsFees as gn, fetchPerpsInstruments as go, fetchPerpsTicker as gp, fetchPerpsTickers as gq, fetchPortfolioValue as gr, fetchPrice as gs, fetchPriceHistory as gt, fetchPrices as gu, fetchPublicProfile as gv, fetchRelatedTagResources as gw, fetchRelatedTags as gx, fetchRewardPercentages as gy, fetchSeries as gz, BaseSecureClient as h, listPerpsTrades as h0, listPositions as h1, listSeries as h2, listTags as h3, listTeams as h4, listTraderLeaderboard as h5, listTrades as h6, listUserEarningsAndMarketsConfig as h7, listUserEarningsForDay as h8, mergeComboPosition as h9, splitComboPosition as hA, splitMarketPosition as hB, splitPosition as hC, subscribe as hD, transferErc20 as hE, updateBalanceAllowance as hF, withdrawFromPerps as hG, mergeMarketPosition as ha, mergePositions as hb, openPerpsSession as hc, openRfqSession as hd, postOrder as he, postOrders as hf, prepareErc1155ApprovalForAll as hg, prepareErc20Approval as hh, prepareErc20Transfer as hi, prepareGaslessTransaction as hj, prepareMergeComboPosition as hk, prepareMergeMarketPosition as hl, prepareMergePositions as hm, preparePerpsDeposit as hn, prepareRedeemComboPosition as ho, prepareRedeemMarketPositions as hp, prepareRedeemPositions as hq, prepareSplitComboPosition as hr, prepareSplitMarketPosition as hs, prepareSplitPosition as ht, prepareTradingApprovals as hu, redeemPositions as hv, resolveConditionByToken as hw, revokePerpsCredentials as hx, search as hy, setupTradingApprovals as hz, type BeginAuthenticationRequest as i, type CancelAllPerpsOrdersRequest as j, CancelMarketOrdersError as k, CancelOrderError as l, CancelOrdersError as m, type CancelPerpsOrderRequest as n, type CancelPerpsOrdersRequest as o, CancelledSigningError as p, type Client as q, type ClientActions as r, type ClientDecorator as s, type ClobEndpoints as t, type CreatePerpsSessionRequest as u, CreateSecureClientError as v, DepositToPerpsError as w, type DepositToPerpsRequest as x, type DiscoveryActions as y, DownloadAccountingSnapshotError as z };
|
|
7971
|
+
export { FetchOrderError as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type DataActions as D, DownloadAccountingSnapshotError as E, DropNotificationsError as F, type EnvironmentConfig as G, type EnvironmentConfigFork as H, type EnvironmentContracts as I, EstimateMarketPriceError as J, FetchClosedOnlyModeError as K, FetchCommentsByIdError as L, FetchEventError as M, FetchEventLiveVolumeError as N, FetchEventTagsError as O, FetchLastTradePriceError as P, FetchLastTradePricesError as Q, FetchMarketError as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, FetchMarketTagsError as V, FetchMidpointError as W, FetchMidpointsError as X, FetchNotificationsError as Y, FetchOrderBookError as Z, FetchOrderBooksError as _, type TypedData as a, ListTeamsError as a$, FetchOrderScoringError as a0, FetchOrdersScoringError as a1, type FetchPerpsAccountConfigRequest as a2, FetchPerpsBookError as a3, type FetchPerpsBookRequest as a4, FetchPerpsFeesError as a5, FetchPerpsInstrumentsError as a6, type FetchPerpsInstrumentsRequest as a7, type FetchPerpsOpenOrdersRequest as a8, type FetchPerpsOrdersRequest as a9, ListComboMarketsError as aA, ListComboPositionsError as aB, ListCommentsByUserAddressError as aC, ListCommentsError as aD, ListCurrentRewardsError as aE, ListEventsError as aF, ListMarketHoldersError as aG, ListMarketPositionsError as aH, ListMarketRewardsError as aI, ListMarketsError as aJ, ListOpenInterestError as aK, ListOpenOrdersError as aL, ListPerpsCandlesError as aM, type ListPerpsCandlesRequest as aN, type ListPerpsDepositsRequest as aO, type ListPerpsEquityHistoryRequest as aP, type ListPerpsFillsRequest as aQ, ListPerpsFundingHistoryError as aR, type ListPerpsFundingHistoryRequest as aS, type ListPerpsFundingPaymentsRequest as aT, type ListPerpsPnlHistoryRequest as aU, ListPerpsTradesError as aV, type ListPerpsTradesRequest as aW, type ListPerpsWithdrawalsRequest as aX, ListPositionsError as aY, ListSeriesError as aZ, ListTagsError as a_, FetchPerpsTickerError as aa, type FetchPerpsTickerRequest as ab, FetchPerpsTickersError as ac, type FetchPerpsTickersRequest as ad, FetchPortfolioValueError as ae, FetchPriceError as af, FetchPriceHistoryError as ag, FetchPricesError as ah, FetchPublicProfileError as ai, FetchRelatedTagResourcesError as aj, FetchRelatedTagsError as ak, FetchRewardPercentagesError as al, FetchSeriesError as am, FetchSpreadError as an, FetchSpreadsError as ao, FetchTagError as ap, FetchTotalEarningsForUserForDayError as aq, FetchTradedMarketCountError as ar, InsufficientLiquidityError as as, ListAccountTradesError as at, ListActivityError as au, ListBuilderLeaderboardError as av, ListBuilderTradesError as aw, ListBuilderVolumeError as ax, ListClosedPositionsError as ay, ListComboActivityError as az, type TransactionCall as b, type RfqQuoteRejectedErrorOptions as b$, ListTraderLeaderboardError as b0, ListTradesError as b1, ListUserEarningsAndMarketsConfigError as b2, ListUserEarningsForDayError as b3, MergePositionsError as b4, OpenPerpsSessionError as b5, type OpenPerpsSessionRequest as b6, OpenRfqSessionError as b7, type Page as b8, PageSizeSchema as b9, type PublicActions as bA, type PublicClient as bB, type PublicClientOptions as bC, type PublicPerpsActions as bD, type PublicRewardsActions as bE, type PublicSubscriptionsActions as bF, RateLimitError as bG, RedeemPositionsError as bH, RequestRejectedError as bI, type RequestRejectedErrorOptions as bJ, type RestEndpoint as bK, type ResumePerpsSessionRequest as bL, RevokePerpsCredentialsError as bM, type RevokePerpsCredentialsRequest as bN, type RfqCancelQuoteAck as bO, RfqCancelQuoteError as bP, RfqCancelQuoteRejectedError as bQ, type RfqCancelQuoteRejectedErrorOptions as bR, type RfqConfirmationAck as bS, RfqConfirmationError as bT, RfqConfirmationRejectedError as bU, type RfqConfirmationRequestEvent as bV, type RfqEndpoints as bW, type RfqEvent as bX, RfqQuoteError as bY, type RfqQuoteReference as bZ, RfqQuoteRejectedError as b_, type Paginated as ba, type PerpsActions as bb, type PerpsBookDepth as bc, type PerpsEndpoints as bd, type PerpsOrderRequest as be, type PerpsPlaceFokOrderRequest as bf, type PerpsPlaceGtcOrderRequest as bg, type PerpsPlaceIocOrderRequest as bh, type PerpsPlacedTpSlOrder as bi, type PerpsPlacedTpSlOrders as bj, type PerpsPositionTpSlTrigger as bk, PerpsSession as bl, type PerpsSessionAccountError as bm, type PerpsSessionLifecycleError as bn, type PerpsSessionTradingError as bo, type PerpsTpSlTrigger as bp, type PlacePerpsOrderRequest as bq, type PlacePerpsOrderResult as br, type PlacePerpsOrderWithTpSlRequest as bs, type PlacePerpsOrderWithTpSlResult as bt, type PlacePerpsPositionTpSlRequest as bu, type PlacePerpsPositionTpSlResult as bv, PostOrderError as bw, PostOrdersError as bx, type PostPerpsOrdersRequest as by, type PublicAccountActions as bz, type AccountIdentity as c, type CancelOrderRequest as c$, type RfqQuoteRequestEvent as c0, type RfqQuoteResponse as c1, type RfqQuoteSource as c2, type RfqSession as c3, type RfqTradeEvent as c4, SearchError as c5, SearchSort as c6, type SecureAccountActions as c7, type SecureActions as c8, type SecureClient as c9, type TypedDataDomain as cA, type TypedDataField as cB, UnexpectedResponseError as cC, UpdatePerpsLeverageError as cD, type UpdatePerpsLeverageRequest as cE, WaitForTransactionError as cF, type WalletDerivationConfig as cG, type WebSocketEndpoint as cH, WithdrawFromPerpsError as cI, type WithdrawFromPerpsRequest as cJ, accountActions as cK, allActions as cL, analyticsActions as cM, createPublicClient as cN, createSecureClient as cO, dataActions as cP, discoveryActions as cQ, forkEnvironmentConfig as cR, makeErrorGuard as cS, perpsActions as cT, production as cU, rewardsActions as cV, rfqActions as cW, subscriptionsActions as cX, tradingActions as cY, walletActions as cZ, type CancelMarketOrdersRequest as c_, type SecureClientOptions as ca, type SecureDownloadAccountingSnapshotRequest as cb, type SecureFetchPortfolioValueRequest as cc, type SecureFetchTradedMarketCountRequest as cd, type SecureListActivityRequest as ce, type SecureListClosedPositionsRequest as cf, type SecureListComboActivityRequest as cg, type SecureListComboPositionsRequest as ch, type SecureListPositionsRequest as ci, type SecurePerpsActions as cj, type SecureRewardsActions as ck, type SecureRfqActions as cl, type SecureSubscriptionsActions as cm, type SecureTradingActions as cn, type SecureWalletActions as co, SetupGaslessWalletError as cp, SetupTradingApprovalsError as cq, type SignerTransactionRequest as cr, SigningError as cs, SplitPositionError as ct, TimeoutError as cu, TransactionFailedError as cv, type TransactionHandle as cw, type TransactionOutcome as cx, TransferErc20Error as cy, TransportError as cz, type AnalyticsActions as d, type FetchTradedMarketCountRequest as d$, type CancelOrdersRequest as d0, type CommentsEventType as d1, type CommentsSubscription as d2, type CryptoPricesEventType as d3, type CryptoPricesSubscription as d4, DeployDepositWalletError as d5, type DeprecatedTransactionHandle as d6, type DownloadAccountingSnapshotRequest as d7, type DropNotificationsRequest as d8, type EquityPricesEventType as d9, FetchMarketInfoError as dA, type FetchMarketInfoRequest as dB, type FetchMarketRequest as dC, type FetchMarketTagsRequest as dD, type FetchMidpointRequest as dE, type FetchMidpointsRequest as dF, FetchNegRiskError as dG, type FetchNegRiskRequest as dH, type FetchOrderBookRequest as dI, type FetchOrderBooksRequest as dJ, type FetchOrderRequest as dK, type FetchOrderScoringRequest as dL, type FetchOrdersScoringRequest as dM, type FetchPortfolioValueRequest as dN, type FetchPriceHistoryRequest as dO, type FetchPriceRequest as dP, type FetchPricesRequest as dQ, type FetchPublicProfileRequest as dR, type FetchRelatedTagResourcesRequest as dS, type FetchRelatedTagsRequest as dT, type FetchSeriesRequest as dU, type FetchSpreadRequest as dV, type FetchSpreadsRequest as dW, type FetchTagRequest as dX, FetchTickSizeError as dY, type FetchTickSizeRequest as dZ, type FetchTotalEarningsForUserForDayRequest as d_, type EquityPricesSubscription as da, type Erc1155ApprovalForAllWorkflow as db, type Erc1155ApprovalForAllWorkflowRequest as dc, type Erc20ApprovalWorkflow as dd, type Erc20ApprovalWorkflowRequest as de, type Erc20TransferWorkflow as df, type Erc20TransferWorkflowRequest as dg, type EstimateMarketBuyPriceRequest as dh, type EstimateMarketPriceRequest as di, type EstimateMarketSellPriceRequest as dj, type EventForSubscriptionSpec as dk, type EventForSubscriptionSpecs as dl, FetchBalanceAllowanceError as dm, type FetchBalanceAllowanceRequest as dn, FetchBuilderFeeRatesError as dp, type FetchBuilderFeeRatesRequest as dq, type FetchCommentsByIdRequest as dr, type FetchEventLiveVolumeRequest as ds, type FetchEventRequest as dt, type FetchEventTagsRequest as du, FetchExecuteParamsError as dv, type FetchExecuteParamsRequest as dw, type FetchGaslessTransactionRequest as dx, type FetchLastTradePriceRequest as dy, type FetchLastTradePricesRequest as dz, ApproveErc1155ForAllError as e, type PrepareGaslessTransactionRequest as e$, GaslessTransactionMetadataSchema as e0, type GaslessWorkflow as e1, type GaslessWorkflowRequest as e2, IsWalletDeployedError as e3, type IsWalletDeployedRequest as e4, type ListAccountTradesRequest as e5, type ListActivityRequest as e6, type ListBuilderLeaderboardRequest as e7, type ListBuilderTradesRequest as e8, type ListBuilderVolumeRequest as e9, MergeComboPositionError as eA, MergeMarketPositionError as eB, type MergePositionsWorkflow as eC, type MergePositionsWorkflowRequest as eD, type OrderDraft as eE, type OrderPostingWorkflow as eF, type OrderWorkflow as eG, type OrderWorkflowRequest as eH, type PerpsBboSubscription as eI, type PerpsBookSubscription as eJ, type PerpsCandlesSubscription as eK, type PerpsDepositWorkflow as eL, type PerpsDepositWorkflowRequest as eM, type PerpsMarketDataEventType as eN, type PerpsMarketDataSubscription as eO, type PerpsStatisticsSubscription as eP, type PerpsStreamingCandleInterval as eQ, type PerpsTickersSubscription as eR, type PerpsTradesSubscription as eS, type PostOrdersRequest as eT, PrepareErc1155ApprovalForAllError as eU, type PrepareErc1155ApprovalForAllRequest as eV, PrepareErc20ApprovalError as eW, type PrepareErc20ApprovalRequest as eX, PrepareErc20TransferError as eY, type PrepareErc20TransferRequest as eZ, PrepareGaslessTransactionError as e_, type ListClosedPositionsRequest as ea, type ListComboActivityRequest as eb, type ListComboMarketsRequest as ec, type ListComboPositionsRequest as ed, type ListCommentsByUserAddressRequest as ee, type ListCommentsRequest as ef, type ListCurrentRewardsRequest as eg, type ListEventsRequest as eh, ListMarketClarificationsError as ei, type ListMarketClarificationsRequest as ej, type ListMarketHoldersRequest as ek, type ListMarketPositionsRequest as el, type ListMarketRewardsRequest as em, type ListMarketsRequest as en, type ListOpenInterestRequest as eo, type ListOpenOrdersRequest as ep, type ListPositionsRequest as eq, type ListSeriesRequest as er, type ListTagsRequest as es, type ListTeamsRequest as et, type ListTraderLeaderboardRequest as eu, type ListTradesRequest as ev, type ListUserEarningsAndMarketsConfigRequest as ew, type ListUserEarningsForDayRequest as ex, type MarketEventType as ey, type MarketSubscription as ez, ApproveErc20Error as f, depositToPerps as f$, type PrepareLimitOrderRequest as f0, type PrepareMarketBuyOrderRequest as f1, type PrepareMarketOrderRequest as f2, type PrepareMarketSellOrderRequest as f3, PrepareMergeComboPositionError as f4, type PrepareMergeComboPositionRequest as f5, PrepareMergeMarketPositionError as f6, type PrepareMergeMarketPositionRequest as f7, PrepareMergePositionsError as f8, type PrepareMergePositionsRequest as f9, type SearchResults as fA, type SecureRealtimeEvent as fB, type SecureRealtimeTopic as fC, type SecureSubscriptionSpec as fD, type SignedOrder as fE, SplitComboPositionError as fF, SplitMarketPositionError as fG, type SplitPositionWorkflow as fH, type SplitPositionWorkflowRequest as fI, type SportsEventType as fJ, type SportsSubscription as fK, type SubscribeError as fL, type SubscriptionHandle as fM, type TradingApprovalsWorkflow as fN, type TradingApprovalsWorkflowRequest as fO, UpdateBalanceAllowanceError as fP, type UpdateBalanceAllowanceRequest as fQ, type UserEventType as fR, type UserSubscription as fS, WaitForGaslessTransactionError as fT, approveErc1155ForAll as fU, approveErc20 as fV, cancelAll as fW, cancelMarketOrders as fX, cancelOrder as fY, cancelOrders as fZ, deployDepositWallet as f_, PreparePerpsDepositError as fa, PrepareRedeemComboPositionError as fb, type PrepareRedeemComboPositionRequest as fc, type PrepareRedeemMarketPositionsByConditionIdRequest as fd, type PrepareRedeemMarketPositionsByMarketIdRequest as fe, PrepareRedeemMarketPositionsError as ff, type PrepareRedeemMarketPositionsRequest as fg, PrepareRedeemPositionsError as fh, type PrepareRedeemPositionsRequest as fi, PrepareSplitComboPositionError as fj, type PrepareSplitComboPositionRequest as fk, PrepareSplitMarketPositionError as fl, type PrepareSplitMarketPositionRequest as fm, PrepareSplitPositionError as fn, type PrepareSplitPositionRequest as fo, PrepareTradingApprovalsError as fp, type PublicRealtimeEvent as fq, type PublicRealtimeTopic as fr, type PublicSubscriptionSpec as fs, type RedeemPositionsWorkflow as ft, type RedeemPositionsWorkflowRequest as fu, ResolveConditionByTokenError as fv, type ResolveConditionByTokenRequest as fw, type RfqConfirmationRejectedErrorOptions as fx, type RfqExecutionUpdateEvent as fy, type SearchRequest as fz, BasePublicClient as g, listMarketRewards as g$, downloadAccountingSnapshot as g0, dropNotifications as g1, estimateMarketPrice as g2, fetchBalanceAllowance as g3, fetchBuilderFeeRates as g4, fetchBuilderVolume as g5, fetchClosedOnlyMode as g6, fetchCommentsById as g7, fetchEvent as g8, fetchEventLiveVolume as g9, fetchRelatedTagResources as gA, fetchRelatedTags as gB, fetchRewardPercentages as gC, fetchSeries as gD, fetchSpread as gE, fetchSpreads as gF, fetchTag as gG, fetchTickSize as gH, fetchTotalEarningsForUserForDay as gI, fetchTradedMarketCount as gJ, fetchTransaction as gK, isWalletDeployed as gL, listAccountTrades as gM, listActivity as gN, listBuilderLeaderboard as gO, listBuilderTrades as gP, listClosedPositions as gQ, listComboActivity as gR, listComboMarkets as gS, listComboPositions as gT, listComments as gU, listCommentsByUserAddress as gV, listCurrentRewards as gW, listEvents as gX, listMarketClarifications as gY, listMarketHolders as gZ, listMarketPositions as g_, fetchEventTags as ga, fetchExecuteParams as gb, fetchLastTradePrice as gc, fetchLastTradePrices as gd, fetchMarket as ge, fetchMarketInfo as gf, fetchMarketTags as gg, fetchMidpoint as gh, fetchMidpoints as gi, fetchNegRisk as gj, fetchNotifications as gk, fetchOrder as gl, fetchOrderBook as gm, fetchOrderBooks as gn, fetchOrderScoring as go, fetchOrdersScoring as gp, fetchPerpsBook as gq, fetchPerpsFees as gr, fetchPerpsInstruments as gs, fetchPerpsTicker as gt, fetchPerpsTickers as gu, fetchPortfolioValue as gv, fetchPrice as gw, fetchPriceHistory as gx, fetchPrices as gy, fetchPublicProfile as gz, BaseSecureClient as h, listMarkets as h0, listOpenInterest as h1, listOpenOrders as h2, listPerpsCandles as h3, listPerpsFundingHistory as h4, listPerpsTrades as h5, listPositions as h6, listSeries as h7, listTags as h8, listTeams as h9, redeemPositions as hA, resolveConditionByToken as hB, revokePerpsCredentials as hC, search as hD, setupTradingApprovals as hE, splitComboPosition as hF, splitMarketPosition as hG, splitPosition as hH, subscribe as hI, transferErc20 as hJ, updateBalanceAllowance as hK, withdrawFromPerps as hL, listTraderLeaderboard as ha, listTrades as hb, listUserEarningsAndMarketsConfig as hc, listUserEarningsForDay as hd, mergeComboPosition as he, mergeMarketPosition as hf, mergePositions as hg, openPerpsSession as hh, openRfqSession as hi, postOrder as hj, postOrders as hk, prepareErc1155ApprovalForAll as hl, prepareErc20Approval as hm, prepareErc20Transfer as hn, prepareGaslessTransaction as ho, prepareMergeComboPosition as hp, prepareMergeMarketPosition as hq, prepareMergePositions as hr, preparePerpsDeposit as hs, prepareRedeemComboPosition as ht, prepareRedeemMarketPositions as hu, prepareRedeemPositions as hv, prepareSplitComboPosition as hw, prepareSplitMarketPosition as hx, prepareSplitPosition as hy, prepareTradingApprovals as hz, type BeginAuthenticationRequest as i, type CancelAllPerpsOrdersRequest as j, CancelMarketOrdersError as k, CancelOrderError as l, CancelOrdersError as m, type CancelPerpsOrderRequest as n, type CancelPerpsOrdersRequest as o, CancelledSigningError as p, type Client as q, type ClientActions as r, type ClientDecorator as s, type ClobEndpoints as t, ComboPositionSort as u, type CreatePerpsSessionRequest as v, CreateSecureClientError as w, DepositToPerpsError as x, type DepositToPerpsRequest as y, type DiscoveryActions as z };
|
package/dist/viem.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrivateKey } from '@polymarket/types';
|
|
2
2
|
import { Chain, Transport, WalletClient } from 'viem';
|
|
3
|
-
import { S as Signer } from './types-
|
|
3
|
+
import { S as Signer } from './types-DaUXkJL6.js';
|
|
4
4
|
import '@polymarket/bindings';
|
|
5
5
|
import '@polymarket/bindings/gamma';
|
|
6
6
|
import '@polymarket/bindings/relayer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polymarket/client",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.15",
|
|
4
4
|
"description": "The Polymarket TypeScript client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"ky": "^1.14.3",
|
|
94
94
|
"ox": "^0.14.16",
|
|
95
95
|
"zod": "^4.3.6",
|
|
96
|
-
"@polymarket/bindings": "0.1.0-beta.
|
|
96
|
+
"@polymarket/bindings": "0.1.0-beta.13",
|
|
97
97
|
"@polymarket/types": "0.1.0-beta.4"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|