@polymarket/client 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.d.ts +3 -3
- package/dist/actions/index.js +1 -1
- package/dist/chunk-RUTB3ZZX.js +3 -0
- package/dist/chunk-RUTB3ZZX.js.map +1 -0
- package/dist/ethers-v5.d.ts +1 -1
- package/dist/index.d.ts +28 -28
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{sports-w2Iai7fW.d.ts → sports-C9hVRTX2.d.ts} +1 -1
- package/dist/{types-C4sR5GA8.d.ts → types-Cg8WP4aO.d.ts} +485 -319
- package/dist/viem.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-ENQH6V4J.js +0 -3
- package/dist/chunk-ENQH6V4J.js.map +0 -1
|
@@ -4,8 +4,7 @@ import { PolymarketError, HexString, EvmAddress, EvmSignature, NonEmptyArray, Pr
|
|
|
4
4
|
import { WalletType, Event, TagReference, Market, Series, MarketClarification, Tag, RelatedTag, SportsMetadata, SportsMarketTypesResponse, Team, PublicProfile, Comment, MarketClarificationState, Profile, SearchTag } from '@polymarket/bindings/gamma';
|
|
5
5
|
import { RelayerTransactionType, RelayerExecuteParams, GaslessTransaction } from '@polymarket/bindings/relayer';
|
|
6
6
|
import { ZodError, z } from 'zod';
|
|
7
|
-
import
|
|
8
|
-
import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForToken, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OpenOrder, ApiKeyCreds, BalanceAllowanceResponse, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
|
|
7
|
+
import { ClobTrade, NotificationsResponse, BuilderTrade, Midpoints, Prices, OrderBook, Spreads, LastTradePrice, LastTradePriceForAsset, PriceHistoryPoint, CurrentReward, MarketReward, OrdersScoringResponse, UserEarning, TotalUserEarning, UserRewardsEarning, RewardsPercentages, CancelOrdersResponse, SignatureType, OrderResponse, OrderResponses, AcceptedOrderResponse, OpenOrder, ApiKeyCreds, AssetType, BalanceAllowanceResponse, PriceHistoryInterval, BuilderFeeRates, MarketInfo } from '@polymarket/bindings/clob';
|
|
9
8
|
import * as _polymarket_bindings_data from '@polymarket/bindings/data';
|
|
10
9
|
import { Activity, ComboActivity, Trade, ComboPositionStatus, Value, Traded, ClosedPosition, ComboPosition, Position, MetaMarketPosition, LeaderboardEntry, BuilderVolumeEntry, TraderLeaderboardEntry, LiveVolume, OpenInterest, MetaHolder } from '@polymarket/bindings/data';
|
|
11
10
|
import * as _polymarket_bindings_combos from '@polymarket/bindings/combos';
|
|
@@ -1498,143 +1497,142 @@ type DataActions = {
|
|
|
1498
1497
|
*/
|
|
1499
1498
|
fetchEventLiveVolume(request: FetchEventLiveVolumeRequest): Promise<LiveVolume[]>;
|
|
1500
1499
|
/**
|
|
1501
|
-
* Fetches the midpoint price for
|
|
1500
|
+
* Fetches the midpoint price for an exchange asset as a decimal string.
|
|
1502
1501
|
*
|
|
1503
1502
|
* @throws {@link FetchMidpointError}
|
|
1504
1503
|
* Thrown on failure.
|
|
1505
1504
|
*
|
|
1506
1505
|
* @example
|
|
1507
1506
|
* ```ts
|
|
1508
|
-
* const midpoint = await client.fetchMidpoint({
|
|
1507
|
+
* const midpoint = await client.fetchMidpoint({ assetId: '123' });
|
|
1509
1508
|
* ```
|
|
1510
1509
|
*/
|
|
1511
1510
|
fetchMidpoint(request: FetchMidpointRequest): Promise<DecimalString>;
|
|
1512
1511
|
/**
|
|
1513
|
-
* Fetches midpoint prices for multiple
|
|
1512
|
+
* Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
|
|
1514
1513
|
*
|
|
1515
1514
|
* @throws {@link FetchMidpointsError}
|
|
1516
1515
|
* Thrown on failure.
|
|
1517
1516
|
*
|
|
1518
1517
|
* @example
|
|
1519
1518
|
* ```ts
|
|
1520
|
-
* const midpoints = await client.fetchMidpoints([{
|
|
1519
|
+
* const midpoints = await client.fetchMidpoints([{ assetId: '123' }]);
|
|
1521
1520
|
* ```
|
|
1522
1521
|
*/
|
|
1523
1522
|
fetchMidpoints(request: FetchMidpointsRequest): Promise<Midpoints>;
|
|
1524
1523
|
/**
|
|
1525
|
-
* Fetches the current quoted price for
|
|
1524
|
+
* Fetches the current quoted price for an exchange asset and side as a decimal string.
|
|
1526
1525
|
*
|
|
1527
1526
|
* @throws {@link FetchPriceError}
|
|
1528
1527
|
* Thrown on failure.
|
|
1529
1528
|
*
|
|
1530
1529
|
* @example
|
|
1531
1530
|
* ```ts
|
|
1532
|
-
* const price = await client.fetchPrice({
|
|
1531
|
+
* const price = await client.fetchPrice({ assetId: '123', side: OrderSide.BUY });
|
|
1533
1532
|
* ```
|
|
1534
1533
|
*/
|
|
1535
1534
|
fetchPrice(request: FetchPriceRequest): Promise<DecimalString>;
|
|
1536
1535
|
/**
|
|
1537
|
-
* Fetches quoted prices for multiple
|
|
1536
|
+
* Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
|
|
1538
1537
|
*
|
|
1539
1538
|
* @throws {@link FetchPricesError}
|
|
1540
1539
|
* Thrown on failure.
|
|
1541
1540
|
*
|
|
1542
1541
|
* @example
|
|
1543
1542
|
* ```ts
|
|
1544
|
-
* const prices = await client.fetchPrices([{
|
|
1543
|
+
* const prices = await client.fetchPrices([{ assetId: '123', side: OrderSide.BUY }]);
|
|
1545
1544
|
* ```
|
|
1546
1545
|
*/
|
|
1547
1546
|
fetchPrices(request: FetchPricesRequest): Promise<Prices>;
|
|
1548
1547
|
/**
|
|
1549
|
-
* Fetches the current order book for
|
|
1548
|
+
* Fetches the current order book for an exchange asset.
|
|
1550
1549
|
*
|
|
1551
1550
|
* @throws {@link FetchOrderBookError}
|
|
1552
1551
|
* Thrown on failure.
|
|
1553
1552
|
*
|
|
1554
1553
|
* @example
|
|
1555
1554
|
* ```ts
|
|
1556
|
-
* const book = await client.fetchOrderBook({
|
|
1555
|
+
* const book = await client.fetchOrderBook({ assetId: '123' });
|
|
1557
1556
|
* ```
|
|
1558
1557
|
*/
|
|
1559
1558
|
fetchOrderBook(request: FetchOrderBookRequest): Promise<OrderBook>;
|
|
1560
1559
|
/**
|
|
1561
|
-
* Fetches order books for multiple
|
|
1560
|
+
* Fetches order books for multiple exchange assets.
|
|
1562
1561
|
*
|
|
1563
1562
|
* @throws {@link FetchOrderBooksError}
|
|
1564
1563
|
* Thrown on failure.
|
|
1565
1564
|
*
|
|
1566
1565
|
* @example
|
|
1567
1566
|
* ```ts
|
|
1568
|
-
* const books = await client.fetchOrderBooks([{
|
|
1567
|
+
* const books = await client.fetchOrderBooks([{ assetId: '123' }]);
|
|
1569
1568
|
* ```
|
|
1570
1569
|
*/
|
|
1571
1570
|
fetchOrderBooks(request: FetchOrderBooksRequest): Promise<OrderBook[]>;
|
|
1572
1571
|
/**
|
|
1573
|
-
* Fetches the spread for
|
|
1572
|
+
* Fetches the spread for an exchange asset as a decimal string.
|
|
1574
1573
|
*
|
|
1575
1574
|
* @throws {@link FetchSpreadError}
|
|
1576
1575
|
* Thrown on failure.
|
|
1577
1576
|
*
|
|
1578
1577
|
* @example
|
|
1579
1578
|
* ```ts
|
|
1580
|
-
* const spread = await client.fetchSpread({
|
|
1579
|
+
* const spread = await client.fetchSpread({ assetId: '123' });
|
|
1581
1580
|
* ```
|
|
1582
1581
|
*/
|
|
1583
1582
|
fetchSpread(request: FetchSpreadRequest): Promise<DecimalString>;
|
|
1584
1583
|
/**
|
|
1585
|
-
* Fetches spreads for multiple
|
|
1584
|
+
* Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
|
|
1586
1585
|
*
|
|
1587
1586
|
* @throws {@link FetchSpreadsError}
|
|
1588
1587
|
* Thrown on failure.
|
|
1589
1588
|
*
|
|
1590
1589
|
* @example
|
|
1591
1590
|
* ```ts
|
|
1592
|
-
* const spreads = await client.fetchSpreads([{
|
|
1591
|
+
* const spreads = await client.fetchSpreads([{ assetId: '123' }]);
|
|
1593
1592
|
* ```
|
|
1594
1593
|
*/
|
|
1595
1594
|
fetchSpreads(request: FetchSpreadsRequest): Promise<Spreads>;
|
|
1596
1595
|
/**
|
|
1597
|
-
* Fetches the last traded price for
|
|
1596
|
+
* Fetches the last traded price for an exchange asset.
|
|
1598
1597
|
*
|
|
1599
|
-
* Returns `null` when the
|
|
1598
|
+
* Returns `null` when the asset has not traded.
|
|
1600
1599
|
*
|
|
1601
1600
|
* @throws {@link FetchLastTradePriceError}
|
|
1602
1601
|
* Thrown on failure.
|
|
1603
1602
|
*
|
|
1604
1603
|
* @example
|
|
1605
1604
|
* ```ts
|
|
1606
|
-
* const trade = await client.fetchLastTradePrice({
|
|
1605
|
+
* const trade = await client.fetchLastTradePrice({ assetId: '123' });
|
|
1607
1606
|
*
|
|
1608
1607
|
* // trade === LastTradePrice | null
|
|
1609
1608
|
* ```
|
|
1610
1609
|
*/
|
|
1611
1610
|
fetchLastTradePrice(request: FetchLastTradePriceRequest): Promise<LastTradePrice | null>;
|
|
1612
1611
|
/**
|
|
1613
|
-
* Fetches last traded prices for multiple
|
|
1612
|
+
* Fetches last traded prices for multiple exchange assets.
|
|
1614
1613
|
*
|
|
1615
|
-
*
|
|
1616
|
-
* `
|
|
1614
|
+
* Assets without trades are omitted from the response. Match returned rows by
|
|
1615
|
+
* `assetId`; the array is not positionally aligned with the request.
|
|
1617
1616
|
*
|
|
1618
1617
|
* @throws {@link FetchLastTradePricesError}
|
|
1619
1618
|
* Thrown on failure.
|
|
1620
1619
|
*
|
|
1621
1620
|
* @example
|
|
1622
1621
|
* ```ts
|
|
1623
|
-
* const
|
|
1624
|
-
* const
|
|
1625
|
-
* const trade = trades.find((candidate) => candidate.tokenId === tokenId);
|
|
1622
|
+
* const trades = await client.fetchLastTradePrices([{ assetId: '123' }]);
|
|
1623
|
+
* const trade = trades.find((candidate) => candidate.assetId === '123');
|
|
1626
1624
|
* ```
|
|
1627
1625
|
*/
|
|
1628
|
-
fetchLastTradePrices(request: FetchLastTradePricesRequest): Promise<
|
|
1626
|
+
fetchLastTradePrices(request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
|
|
1629
1627
|
/**
|
|
1630
|
-
* Fetches historical price points for
|
|
1628
|
+
* Fetches historical price points for an exchange asset.
|
|
1631
1629
|
*
|
|
1632
1630
|
* @throws {@link FetchPriceHistoryError}
|
|
1633
1631
|
* Thrown on failure.
|
|
1634
1632
|
*
|
|
1635
1633
|
* @example
|
|
1636
1634
|
* ```ts
|
|
1637
|
-
* const history = await client.fetchPriceHistory({
|
|
1635
|
+
* const history = await client.fetchPriceHistory({ assetId: '123', interval: '1d' });
|
|
1638
1636
|
* ```
|
|
1639
1637
|
*/
|
|
1640
1638
|
fetchPriceHistory(request: FetchPriceHistoryRequest): Promise<PriceHistoryPoint[]>;
|
|
@@ -3533,7 +3531,7 @@ type PublicSubscriptionsActions = {
|
|
|
3533
3531
|
* @example
|
|
3534
3532
|
* ```ts
|
|
3535
3533
|
* const handle = await client.subscribe([
|
|
3536
|
-
* { topic: 'market',
|
|
3534
|
+
* { topic: 'market', assetIds: ['123'] },
|
|
3537
3535
|
* ]);
|
|
3538
3536
|
*
|
|
3539
3537
|
* for await (const event of handle) {
|
|
@@ -3554,7 +3552,7 @@ type SecureSubscriptionsActions = {
|
|
|
3554
3552
|
* ```ts
|
|
3555
3553
|
* const handle = await client.subscribe([
|
|
3556
3554
|
* { topic: 'user' },
|
|
3557
|
-
* { topic: 'market',
|
|
3555
|
+
* { topic: 'market', assetIds: ['123'] },
|
|
3558
3556
|
* ]);
|
|
3559
3557
|
*
|
|
3560
3558
|
* for await (const event of handle) {
|
|
@@ -3573,10 +3571,6 @@ declare const CancelOrderRequestSchema: z.ZodObject<{
|
|
|
3573
3571
|
declare const CancelOrdersRequestSchema: z.ZodObject<{
|
|
3574
3572
|
orderIds: z.ZodArray<z.ZodString>;
|
|
3575
3573
|
}, z.core.$strip>;
|
|
3576
|
-
declare const CancelMarketOrdersRequestSchema: z.ZodObject<{
|
|
3577
|
-
tokenId: z.ZodOptional<z.ZodString>;
|
|
3578
|
-
market: z.ZodOptional<z.ZodString>;
|
|
3579
|
-
}, z.core.$strip>;
|
|
3580
3574
|
type CancelOrderRequest = z.input<typeof CancelOrderRequestSchema>;
|
|
3581
3575
|
type CancelOrderError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3582
3576
|
declare const CancelOrderError: {
|
|
@@ -3646,14 +3640,24 @@ declare const CancelAllError: {
|
|
|
3646
3640
|
* ```
|
|
3647
3641
|
*/
|
|
3648
3642
|
declare function cancelAll(client: BaseSecureClient): Promise<CancelOrdersResponse>;
|
|
3649
|
-
type CancelMarketOrdersRequest =
|
|
3643
|
+
type CancelMarketOrdersRequest = {
|
|
3644
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
3645
|
+
assetId?: string;
|
|
3646
|
+
tokenId?: never;
|
|
3647
|
+
market?: string;
|
|
3648
|
+
} | {
|
|
3649
|
+
assetId?: never;
|
|
3650
|
+
/** @deprecated Use `assetId`. */
|
|
3651
|
+
tokenId?: string;
|
|
3652
|
+
market?: string;
|
|
3653
|
+
};
|
|
3650
3654
|
type CancelMarketOrdersError = RequestRejectedError | RateLimitError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
3651
3655
|
declare const CancelMarketOrdersError: {
|
|
3652
3656
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
3653
3657
|
};
|
|
3654
3658
|
/**
|
|
3655
3659
|
* Cancels all open orders for the authenticated account that match the market
|
|
3656
|
-
* or
|
|
3660
|
+
* or asset filter.
|
|
3657
3661
|
*
|
|
3658
3662
|
* @remarks
|
|
3659
3663
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -4216,7 +4220,7 @@ type SecureTradingActions = {
|
|
|
4216
4220
|
*/
|
|
4217
4221
|
cancelAll(): Promise<CancelOrdersResponse>;
|
|
4218
4222
|
/**
|
|
4219
|
-
* Cancels all open orders for the authenticated account that match the market or
|
|
4223
|
+
* Cancels all open orders for the authenticated account that match the market or asset filter.
|
|
4220
4224
|
*
|
|
4221
4225
|
* @throws {@link CancelMarketOrdersError}
|
|
4222
4226
|
* Thrown on failure.
|
|
@@ -4353,7 +4357,7 @@ type SecureWalletActions = {
|
|
|
4353
4357
|
*/
|
|
4354
4358
|
transferErc20(request: PrepareErc20TransferRequest): Promise<TransactionHandle>;
|
|
4355
4359
|
/**
|
|
4356
|
-
* Splits collateral into
|
|
4360
|
+
* Splits collateral into positions.
|
|
4357
4361
|
*
|
|
4358
4362
|
* @throws {@link SplitPositionError}
|
|
4359
4363
|
* Thrown on failure.
|
|
@@ -4362,8 +4366,7 @@ type SecureWalletActions = {
|
|
|
4362
4366
|
* ```ts
|
|
4363
4367
|
* const handle = await client.splitPosition({
|
|
4364
4368
|
* amount: 1n,
|
|
4365
|
-
* conditionId:
|
|
4366
|
-
* '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
|
|
4369
|
+
* conditionId: '0x123…',
|
|
4367
4370
|
* });
|
|
4368
4371
|
*
|
|
4369
4372
|
* const outcome = await handle.wait();
|
|
@@ -4385,7 +4388,7 @@ type SecureWalletActions = {
|
|
|
4385
4388
|
*/
|
|
4386
4389
|
splitPosition(request: PrepareSplitPositionRequest): Promise<TransactionHandle>;
|
|
4387
4390
|
/**
|
|
4388
|
-
* Merges complementary
|
|
4391
|
+
* Merges complementary positions back into collateral.
|
|
4389
4392
|
*
|
|
4390
4393
|
* @throws {@link MergePositionsError}
|
|
4391
4394
|
* Thrown on failure.
|
|
@@ -4394,8 +4397,7 @@ type SecureWalletActions = {
|
|
|
4394
4397
|
* ```ts
|
|
4395
4398
|
* const handle = await client.mergePositions({
|
|
4396
4399
|
* amount: 'max',
|
|
4397
|
-
* conditionId:
|
|
4398
|
-
* '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
|
|
4400
|
+
* conditionId: '0x123…',
|
|
4399
4401
|
* });
|
|
4400
4402
|
*
|
|
4401
4403
|
* const outcome = await handle.wait();
|
|
@@ -4417,7 +4419,7 @@ type SecureWalletActions = {
|
|
|
4417
4419
|
*/
|
|
4418
4420
|
mergePositions(request: PrepareMergePositionsRequest): Promise<TransactionHandle>;
|
|
4419
4421
|
/**
|
|
4420
|
-
* Redeems
|
|
4422
|
+
* Redeems held positions for a market or a specific position by ID.
|
|
4421
4423
|
*
|
|
4422
4424
|
* @throws {@link RedeemPositionsError}
|
|
4423
4425
|
* Thrown on failure.
|
|
@@ -4426,8 +4428,7 @@ type SecureWalletActions = {
|
|
|
4426
4428
|
* ```ts
|
|
4427
4429
|
* // Redeem a market by condition ID.
|
|
4428
4430
|
* const handle = await client.redeemPositions({
|
|
4429
|
-
* conditionId:
|
|
4430
|
-
* '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
|
|
4431
|
+
* conditionId: '0x123…',
|
|
4431
4432
|
* });
|
|
4432
4433
|
*
|
|
4433
4434
|
* const outcome = await handle.wait();
|
|
@@ -4446,7 +4447,7 @@ type SecureWalletActions = {
|
|
|
4446
4447
|
* // outcome.transactionHash: TxHash
|
|
4447
4448
|
* ```
|
|
4448
4449
|
*
|
|
4449
|
-
* @example Redeem a
|
|
4450
|
+
* @example Redeem a Polymarket V2 position by position ID.
|
|
4450
4451
|
* ```ts
|
|
4451
4452
|
* const handle = await client.redeemPositions({
|
|
4452
4453
|
* positionId: '123',
|
|
@@ -4557,6 +4558,8 @@ type EnvironmentContracts = {
|
|
|
4557
4558
|
negRiskExchange: EvmAddress;
|
|
4558
4559
|
exchangeV3: EvmAddress;
|
|
4559
4560
|
protocolV2Router: EvmAddress;
|
|
4561
|
+
binaryModule: EvmAddress;
|
|
4562
|
+
negRiskModule: EvmAddress;
|
|
4560
4563
|
combinatorialModule: EvmAddress;
|
|
4561
4564
|
positionManager: EvmAddress;
|
|
4562
4565
|
autoRedeemOperator: EvmAddress;
|
|
@@ -4908,13 +4911,21 @@ declare const FetchClosedOnlyModeError: {
|
|
|
4908
4911
|
* ```
|
|
4909
4912
|
*/
|
|
4910
4913
|
declare function fetchClosedOnlyMode(client: BaseSecureClient): Promise<boolean>;
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4914
|
+
type ListOpenOrdersRequest = {
|
|
4915
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
4916
|
+
assetId?: string;
|
|
4917
|
+
tokenId?: never;
|
|
4918
|
+
cursor?: string;
|
|
4919
|
+
id?: string;
|
|
4920
|
+
market?: string;
|
|
4921
|
+
} | {
|
|
4922
|
+
assetId?: never;
|
|
4923
|
+
/** @deprecated Use `assetId`. */
|
|
4924
|
+
tokenId?: string;
|
|
4925
|
+
cursor?: string;
|
|
4926
|
+
id?: string;
|
|
4927
|
+
market?: string;
|
|
4928
|
+
};
|
|
4918
4929
|
type ListOpenOrdersError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4919
4930
|
declare const ListOpenOrdersError: {
|
|
4920
4931
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
@@ -4979,16 +4990,27 @@ declare const FetchOrderError: {
|
|
|
4979
4990
|
* ```
|
|
4980
4991
|
*/
|
|
4981
4992
|
declare function fetchOrder(client: BaseSecureClient, request: FetchOrderRequest): Promise<OpenOrder>;
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4993
|
+
type ListAccountTradesRequest = {
|
|
4994
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
4995
|
+
assetId?: string;
|
|
4996
|
+
tokenId?: never;
|
|
4997
|
+
after?: string;
|
|
4998
|
+
before?: string;
|
|
4999
|
+
cursor?: string;
|
|
5000
|
+
id?: string;
|
|
5001
|
+
makerAddress?: string;
|
|
5002
|
+
market?: string;
|
|
5003
|
+
} | {
|
|
5004
|
+
assetId?: never;
|
|
5005
|
+
/** @deprecated Use `assetId`. */
|
|
5006
|
+
tokenId?: string;
|
|
5007
|
+
after?: string;
|
|
5008
|
+
before?: string;
|
|
5009
|
+
cursor?: string;
|
|
5010
|
+
id?: string;
|
|
5011
|
+
makerAddress?: string;
|
|
5012
|
+
market?: string;
|
|
5013
|
+
};
|
|
4992
5014
|
type ListAccountTradesError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
4993
5015
|
declare const ListAccountTradesError: {
|
|
4994
5016
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
@@ -5073,11 +5095,17 @@ declare const DropNotificationsError: {
|
|
|
5073
5095
|
* ```
|
|
5074
5096
|
*/
|
|
5075
5097
|
declare function dropNotifications(client: BaseSecureClient, request: DropNotificationsRequest): Promise<void>;
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5098
|
+
type FetchBalanceAllowanceRequest = {
|
|
5099
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5100
|
+
assetId?: string;
|
|
5101
|
+
tokenId?: never;
|
|
5102
|
+
assetType: AssetType;
|
|
5103
|
+
} | {
|
|
5104
|
+
assetId?: never;
|
|
5105
|
+
/** @deprecated Use `assetId`. */
|
|
5106
|
+
tokenId?: string;
|
|
5107
|
+
assetType: AssetType;
|
|
5108
|
+
};
|
|
5081
5109
|
type FetchBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5082
5110
|
declare const FetchBalanceAllowanceError: {
|
|
5083
5111
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
@@ -5099,11 +5127,17 @@ declare const FetchBalanceAllowanceError: {
|
|
|
5099
5127
|
* ```
|
|
5100
5128
|
*/
|
|
5101
5129
|
declare function fetchBalanceAllowance(client: BaseSecureClient, request: FetchBalanceAllowanceRequest): Promise<BalanceAllowanceResponse>;
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5130
|
+
type UpdateBalanceAllowanceRequest = {
|
|
5131
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5132
|
+
assetId?: string;
|
|
5133
|
+
tokenId?: never;
|
|
5134
|
+
assetType: AssetType;
|
|
5135
|
+
} | {
|
|
5136
|
+
assetId?: never;
|
|
5137
|
+
/** @deprecated Use `assetId`. */
|
|
5138
|
+
tokenId?: string;
|
|
5139
|
+
assetType: AssetType;
|
|
5140
|
+
};
|
|
5107
5141
|
type UpdateBalanceAllowanceError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5108
5142
|
declare const UpdateBalanceAllowanceError: {
|
|
5109
5143
|
isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
@@ -5434,16 +5468,27 @@ declare const SetupTradingApprovalsError: {
|
|
|
5434
5468
|
*/
|
|
5435
5469
|
declare function setupTradingApprovals(client: BaseSecureClient): Promise<void>;
|
|
5436
5470
|
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5471
|
+
type ListBuilderTradesRequest = {
|
|
5472
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5473
|
+
assetId?: string;
|
|
5474
|
+
tokenId?: never;
|
|
5475
|
+
after?: string;
|
|
5476
|
+
before?: string;
|
|
5477
|
+
builderCode: string;
|
|
5478
|
+
cursor?: string;
|
|
5479
|
+
id?: string;
|
|
5480
|
+
market?: string;
|
|
5481
|
+
} | {
|
|
5482
|
+
assetId?: never;
|
|
5483
|
+
/** @deprecated Use `assetId`. */
|
|
5484
|
+
tokenId?: string;
|
|
5485
|
+
after?: string;
|
|
5486
|
+
before?: string;
|
|
5487
|
+
builderCode: string;
|
|
5488
|
+
cursor?: string;
|
|
5489
|
+
id?: string;
|
|
5490
|
+
market?: string;
|
|
5491
|
+
};
|
|
5447
5492
|
type ListBuilderTradesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5448
5493
|
declare const ListBuilderTradesError: {
|
|
5449
5494
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
@@ -5482,16 +5527,21 @@ declare const ListBuilderTradesError: {
|
|
|
5482
5527
|
*/
|
|
5483
5528
|
declare function listBuilderTrades(client: BaseClient, request: ListBuilderTradesRequest): Paginated<BuilderTrade[]>;
|
|
5484
5529
|
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5530
|
+
type FetchMidpointRequest = {
|
|
5531
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5532
|
+
assetId: string;
|
|
5533
|
+
tokenId?: never;
|
|
5534
|
+
} | {
|
|
5535
|
+
assetId?: never;
|
|
5536
|
+
/** @deprecated Use `assetId`. */
|
|
5537
|
+
tokenId: string;
|
|
5538
|
+
};
|
|
5489
5539
|
type FetchMidpointError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5490
5540
|
declare const FetchMidpointError: {
|
|
5491
5541
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5492
5542
|
};
|
|
5493
5543
|
/**
|
|
5494
|
-
* Fetches the midpoint price for
|
|
5544
|
+
* Fetches the midpoint price for an exchange asset as a decimal string.
|
|
5495
5545
|
*
|
|
5496
5546
|
* @remarks
|
|
5497
5547
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5502,8 +5552,7 @@ declare const FetchMidpointError: {
|
|
|
5502
5552
|
* @example
|
|
5503
5553
|
* ```ts
|
|
5504
5554
|
* const midpoint = await fetchMidpoint(client, {
|
|
5505
|
-
*
|
|
5506
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5555
|
+
* assetId: '123',
|
|
5507
5556
|
* });
|
|
5508
5557
|
*
|
|
5509
5558
|
* // midpoint === '0.53'
|
|
@@ -5511,16 +5560,21 @@ declare const FetchMidpointError: {
|
|
|
5511
5560
|
*
|
|
5512
5561
|
*/
|
|
5513
5562
|
declare function fetchMidpoint(client: BaseClient, request: FetchMidpointRequest): Promise<DecimalString>;
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5563
|
+
type FetchMidpointsRequest = Array<{
|
|
5564
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5565
|
+
assetId: string;
|
|
5566
|
+
tokenId?: never;
|
|
5567
|
+
} | {
|
|
5568
|
+
assetId?: never;
|
|
5569
|
+
/** @deprecated Use `assetId`. */
|
|
5570
|
+
tokenId: string;
|
|
5571
|
+
}>;
|
|
5518
5572
|
type FetchMidpointsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5519
5573
|
declare const FetchMidpointsError: {
|
|
5520
5574
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5521
5575
|
};
|
|
5522
5576
|
/**
|
|
5523
|
-
* Fetches midpoint prices for multiple
|
|
5577
|
+
* Fetches midpoint prices for multiple exchange assets as an asset ID keyed lookup.
|
|
5524
5578
|
*
|
|
5525
5579
|
* @remarks
|
|
5526
5580
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5532,26 +5586,30 @@ declare const FetchMidpointsError: {
|
|
|
5532
5586
|
* ```ts
|
|
5533
5587
|
* const midpoints = await fetchMidpoints(client, [
|
|
5534
5588
|
* {
|
|
5535
|
-
*
|
|
5536
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5589
|
+
* assetId: '123',
|
|
5537
5590
|
* },
|
|
5538
5591
|
* ]);
|
|
5539
5592
|
*
|
|
5540
|
-
* // midpoints[
|
|
5593
|
+
* // midpoints['123'] === '0.53'
|
|
5541
5594
|
* ```
|
|
5542
5595
|
*
|
|
5543
5596
|
*/
|
|
5544
5597
|
declare function fetchMidpoints(client: BaseClient, request: FetchMidpointsRequest): Promise<Midpoints>;
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5598
|
+
type FetchTickSizeRequest = {
|
|
5599
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5600
|
+
assetId: string;
|
|
5601
|
+
tokenId?: never;
|
|
5602
|
+
} | {
|
|
5603
|
+
assetId?: never;
|
|
5604
|
+
/** @deprecated Use `assetId`. */
|
|
5605
|
+
tokenId: string;
|
|
5606
|
+
};
|
|
5549
5607
|
type FetchTickSizeError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5550
5608
|
declare const FetchTickSizeError: {
|
|
5551
5609
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5552
5610
|
};
|
|
5553
5611
|
/**
|
|
5554
|
-
* Fetches the minimum price tick size for
|
|
5612
|
+
* Fetches the minimum price tick size for an exchange asset's order book.
|
|
5555
5613
|
*
|
|
5556
5614
|
* @remarks
|
|
5557
5615
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5562,24 +5620,28 @@ declare const FetchTickSizeError: {
|
|
|
5562
5620
|
* @example
|
|
5563
5621
|
* ```ts
|
|
5564
5622
|
* const tickSize = await fetchTickSize(client, {
|
|
5565
|
-
*
|
|
5566
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5623
|
+
* assetId: '123',
|
|
5567
5624
|
* });
|
|
5568
5625
|
*
|
|
5569
5626
|
* // tickSize === 0.01
|
|
5570
5627
|
* ```
|
|
5571
5628
|
*/
|
|
5572
5629
|
declare function fetchTickSize(client: BaseClient, request: FetchTickSizeRequest): Promise<TickSizeValue>;
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5630
|
+
type FetchNegRiskRequest = {
|
|
5631
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5632
|
+
assetId: string;
|
|
5633
|
+
tokenId?: never;
|
|
5634
|
+
} | {
|
|
5635
|
+
assetId?: never;
|
|
5636
|
+
/** @deprecated Use `assetId`. */
|
|
5637
|
+
tokenId: string;
|
|
5638
|
+
};
|
|
5577
5639
|
type FetchNegRiskError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5578
5640
|
declare const FetchNegRiskError: {
|
|
5579
5641
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5580
5642
|
};
|
|
5581
5643
|
/**
|
|
5582
|
-
* Fetches whether
|
|
5644
|
+
* Fetches whether an exchange asset is in a negative-risk market.
|
|
5583
5645
|
*
|
|
5584
5646
|
* @remarks
|
|
5585
5647
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5590,24 +5652,28 @@ declare const FetchNegRiskError: {
|
|
|
5590
5652
|
* @example
|
|
5591
5653
|
* ```ts
|
|
5592
5654
|
* const negRisk = await fetchNegRisk(client, {
|
|
5593
|
-
*
|
|
5594
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5655
|
+
* assetId: '123',
|
|
5595
5656
|
* });
|
|
5596
5657
|
*
|
|
5597
5658
|
* // negRisk === false
|
|
5598
5659
|
* ```
|
|
5599
5660
|
*/
|
|
5600
5661
|
declare function fetchNegRisk(client: BaseClient, request: FetchNegRiskRequest): Promise<boolean>;
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5662
|
+
type ResolveConditionByTokenRequest = {
|
|
5663
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5664
|
+
assetId: string;
|
|
5665
|
+
tokenId?: never;
|
|
5666
|
+
} | {
|
|
5667
|
+
assetId?: never;
|
|
5668
|
+
/** @deprecated Use `assetId`. */
|
|
5669
|
+
tokenId: string;
|
|
5670
|
+
};
|
|
5605
5671
|
type ResolveConditionByTokenError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5606
5672
|
declare const ResolveConditionByTokenError: {
|
|
5607
5673
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5608
5674
|
};
|
|
5609
5675
|
/**
|
|
5610
|
-
* Resolves the condition ID for
|
|
5676
|
+
* Resolves the condition ID for an exchange asset.
|
|
5611
5677
|
*
|
|
5612
5678
|
* @remarks
|
|
5613
5679
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5652,17 +5718,23 @@ declare const FetchBuilderFeeRatesError: {
|
|
|
5652
5718
|
* Thrown on failure.
|
|
5653
5719
|
*/
|
|
5654
5720
|
declare function fetchBuilderFeeRates(client: BaseClient, request: FetchBuilderFeeRatesRequest): Promise<BuilderFeeRates>;
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5721
|
+
type FetchPriceRequest = {
|
|
5722
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5723
|
+
assetId: string;
|
|
5724
|
+
tokenId?: never;
|
|
5725
|
+
side: OrderSide;
|
|
5726
|
+
} | {
|
|
5727
|
+
assetId?: never;
|
|
5728
|
+
/** @deprecated Use `assetId`. */
|
|
5729
|
+
tokenId: string;
|
|
5730
|
+
side: OrderSide;
|
|
5731
|
+
};
|
|
5660
5732
|
type FetchPriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5661
5733
|
declare const FetchPriceError: {
|
|
5662
5734
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5663
5735
|
};
|
|
5664
5736
|
/**
|
|
5665
|
-
* Fetches the current quoted price for
|
|
5737
|
+
* Fetches the current quoted price for an exchange asset and side as a decimal string.
|
|
5666
5738
|
*
|
|
5667
5739
|
* @remarks
|
|
5668
5740
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5673,8 +5745,7 @@ declare const FetchPriceError: {
|
|
|
5673
5745
|
* @example
|
|
5674
5746
|
* ```ts
|
|
5675
5747
|
* const price = await fetchPrice(client, {
|
|
5676
|
-
*
|
|
5677
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5748
|
+
* assetId: '123',
|
|
5678
5749
|
* side: OrderSide.BUY,
|
|
5679
5750
|
* });
|
|
5680
5751
|
*
|
|
@@ -5683,17 +5754,23 @@ declare const FetchPriceError: {
|
|
|
5683
5754
|
*
|
|
5684
5755
|
*/
|
|
5685
5756
|
declare function fetchPrice(client: BaseClient, request: FetchPriceRequest): Promise<DecimalString>;
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5757
|
+
type FetchPricesRequest = Array<{
|
|
5758
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5759
|
+
assetId: string;
|
|
5760
|
+
tokenId?: never;
|
|
5761
|
+
side: OrderSide;
|
|
5762
|
+
} | {
|
|
5763
|
+
assetId?: never;
|
|
5764
|
+
/** @deprecated Use `assetId`. */
|
|
5765
|
+
tokenId: string;
|
|
5766
|
+
side: OrderSide;
|
|
5767
|
+
}>;
|
|
5691
5768
|
type FetchPricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5692
5769
|
declare const FetchPricesError: {
|
|
5693
5770
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5694
5771
|
};
|
|
5695
5772
|
/**
|
|
5696
|
-
* Fetches quoted prices for multiple
|
|
5773
|
+
* Fetches quoted prices for multiple exchange assets as an asset ID keyed lookup.
|
|
5697
5774
|
*
|
|
5698
5775
|
* @remarks
|
|
5699
5776
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5705,27 +5782,31 @@ declare const FetchPricesError: {
|
|
|
5705
5782
|
* ```ts
|
|
5706
5783
|
* const prices = await fetchPrices(client, [
|
|
5707
5784
|
* {
|
|
5708
|
-
*
|
|
5709
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5785
|
+
* assetId: '123',
|
|
5710
5786
|
* side: OrderSide.BUY,
|
|
5711
5787
|
* },
|
|
5712
5788
|
* ]);
|
|
5713
5789
|
*
|
|
5714
|
-
* // prices[
|
|
5790
|
+
* // prices['123']?.BUY === '0.52'
|
|
5715
5791
|
* ```
|
|
5716
5792
|
*
|
|
5717
5793
|
*/
|
|
5718
5794
|
declare function fetchPrices(client: BaseClient, request: FetchPricesRequest): Promise<Prices>;
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5795
|
+
type FetchOrderBookRequest = {
|
|
5796
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5797
|
+
assetId: string;
|
|
5798
|
+
tokenId?: never;
|
|
5799
|
+
} | {
|
|
5800
|
+
assetId?: never;
|
|
5801
|
+
/** @deprecated Use `assetId`. */
|
|
5802
|
+
tokenId: string;
|
|
5803
|
+
};
|
|
5723
5804
|
type FetchOrderBookError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5724
5805
|
declare const FetchOrderBookError: {
|
|
5725
5806
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5726
5807
|
};
|
|
5727
5808
|
/**
|
|
5728
|
-
* Fetches the current order book for
|
|
5809
|
+
* Fetches the current order book for an exchange asset.
|
|
5729
5810
|
*
|
|
5730
5811
|
* @remarks
|
|
5731
5812
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5736,24 +5817,28 @@ declare const FetchOrderBookError: {
|
|
|
5736
5817
|
* @example
|
|
5737
5818
|
* ```ts
|
|
5738
5819
|
* const orderBook = await fetchOrderBook(client, {
|
|
5739
|
-
*
|
|
5740
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5820
|
+
* assetId: '123',
|
|
5741
5821
|
* });
|
|
5742
5822
|
*
|
|
5743
5823
|
* // orderBook.bids / orderBook.asks
|
|
5744
5824
|
* ```
|
|
5745
5825
|
*/
|
|
5746
5826
|
declare function fetchOrderBook(client: BaseClient, request: FetchOrderBookRequest): Promise<OrderBook>;
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5827
|
+
type FetchOrderBooksRequest = Array<{
|
|
5828
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5829
|
+
assetId: string;
|
|
5830
|
+
tokenId?: never;
|
|
5831
|
+
} | {
|
|
5832
|
+
assetId?: never;
|
|
5833
|
+
/** @deprecated Use `assetId`. */
|
|
5834
|
+
tokenId: string;
|
|
5835
|
+
}>;
|
|
5751
5836
|
type FetchOrderBooksError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5752
5837
|
declare const FetchOrderBooksError: {
|
|
5753
5838
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5754
5839
|
};
|
|
5755
5840
|
/**
|
|
5756
|
-
* Fetches order books for multiple
|
|
5841
|
+
* Fetches order books for multiple exchange assets.
|
|
5757
5842
|
*
|
|
5758
5843
|
* @remarks
|
|
5759
5844
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5765,8 +5850,7 @@ declare const FetchOrderBooksError: {
|
|
|
5765
5850
|
* ```ts
|
|
5766
5851
|
* const books = await fetchOrderBooks(client, [
|
|
5767
5852
|
* {
|
|
5768
|
-
*
|
|
5769
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5853
|
+
* assetId: '123',
|
|
5770
5854
|
* },
|
|
5771
5855
|
* ])
|
|
5772
5856
|
*
|
|
@@ -5774,16 +5858,21 @@ declare const FetchOrderBooksError: {
|
|
|
5774
5858
|
* ```
|
|
5775
5859
|
*/
|
|
5776
5860
|
declare function fetchOrderBooks(client: BaseClient, request: FetchOrderBooksRequest): Promise<OrderBook[]>;
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5861
|
+
type FetchSpreadRequest = {
|
|
5862
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5863
|
+
assetId: string;
|
|
5864
|
+
tokenId?: never;
|
|
5865
|
+
} | {
|
|
5866
|
+
assetId?: never;
|
|
5867
|
+
/** @deprecated Use `assetId`. */
|
|
5868
|
+
tokenId: string;
|
|
5869
|
+
};
|
|
5781
5870
|
type FetchSpreadError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5782
5871
|
declare const FetchSpreadError: {
|
|
5783
5872
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5784
5873
|
};
|
|
5785
5874
|
/**
|
|
5786
|
-
* Fetches the spread for
|
|
5875
|
+
* Fetches the spread for an exchange asset as a decimal string.
|
|
5787
5876
|
*
|
|
5788
5877
|
* @remarks
|
|
5789
5878
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5794,8 +5883,7 @@ declare const FetchSpreadError: {
|
|
|
5794
5883
|
* @example
|
|
5795
5884
|
* ```ts
|
|
5796
5885
|
* const spread = await fetchSpread(client, {
|
|
5797
|
-
*
|
|
5798
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5886
|
+
* assetId: '123',
|
|
5799
5887
|
* });
|
|
5800
5888
|
*
|
|
5801
5889
|
* // spread === '0.02'
|
|
@@ -5803,16 +5891,21 @@ declare const FetchSpreadError: {
|
|
|
5803
5891
|
*
|
|
5804
5892
|
*/
|
|
5805
5893
|
declare function fetchSpread(client: BaseClient, request: FetchSpreadRequest): Promise<DecimalString>;
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5894
|
+
type FetchSpreadsRequest = Array<{
|
|
5895
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5896
|
+
assetId: string;
|
|
5897
|
+
tokenId?: never;
|
|
5898
|
+
} | {
|
|
5899
|
+
assetId?: never;
|
|
5900
|
+
/** @deprecated Use `assetId`. */
|
|
5901
|
+
tokenId: string;
|
|
5902
|
+
}>;
|
|
5810
5903
|
type FetchSpreadsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5811
5904
|
declare const FetchSpreadsError: {
|
|
5812
5905
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5813
5906
|
};
|
|
5814
5907
|
/**
|
|
5815
|
-
* Fetches spreads for multiple
|
|
5908
|
+
* Fetches spreads for multiple exchange assets as an asset ID keyed lookup.
|
|
5816
5909
|
*
|
|
5817
5910
|
* @remarks
|
|
5818
5911
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5824,28 +5917,32 @@ declare const FetchSpreadsError: {
|
|
|
5824
5917
|
* ```ts
|
|
5825
5918
|
* const spreads = await fetchSpreads(client, [
|
|
5826
5919
|
* {
|
|
5827
|
-
*
|
|
5828
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5920
|
+
* assetId: '123',
|
|
5829
5921
|
* },
|
|
5830
5922
|
* ]);
|
|
5831
5923
|
*
|
|
5832
|
-
* // spreads[
|
|
5924
|
+
* // spreads['123'] === '0.02'
|
|
5833
5925
|
* ```
|
|
5834
5926
|
*
|
|
5835
5927
|
*/
|
|
5836
5928
|
declare function fetchSpreads(client: BaseClient, request: FetchSpreadsRequest): Promise<Spreads>;
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5929
|
+
type FetchLastTradePriceRequest = {
|
|
5930
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5931
|
+
assetId: string;
|
|
5932
|
+
tokenId?: never;
|
|
5933
|
+
} | {
|
|
5934
|
+
assetId?: never;
|
|
5935
|
+
/** @deprecated Use `assetId`. */
|
|
5936
|
+
tokenId: string;
|
|
5937
|
+
};
|
|
5841
5938
|
type FetchLastTradePriceError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5842
5939
|
declare const FetchLastTradePriceError: {
|
|
5843
5940
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5844
5941
|
};
|
|
5845
5942
|
/**
|
|
5846
|
-
* Fetches the last traded price for
|
|
5943
|
+
* Fetches the last traded price for an exchange asset.
|
|
5847
5944
|
*
|
|
5848
|
-
* Returns `null` when the
|
|
5945
|
+
* Returns `null` when the asset has not traded.
|
|
5849
5946
|
*
|
|
5850
5947
|
* @remarks
|
|
5851
5948
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5856,8 +5953,7 @@ declare const FetchLastTradePriceError: {
|
|
|
5856
5953
|
* @example
|
|
5857
5954
|
* ```ts
|
|
5858
5955
|
* const trade = await fetchLastTradePrice(client, {
|
|
5859
|
-
*
|
|
5860
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
5956
|
+
* assetId: '123',
|
|
5861
5957
|
* });
|
|
5862
5958
|
*
|
|
5863
5959
|
* // trade === LastTradePrice | null
|
|
@@ -5865,19 +5961,24 @@ declare const FetchLastTradePriceError: {
|
|
|
5865
5961
|
*
|
|
5866
5962
|
*/
|
|
5867
5963
|
declare function fetchLastTradePrice(client: BaseClient, request: FetchLastTradePriceRequest): Promise<LastTradePrice | null>;
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5964
|
+
type FetchLastTradePricesRequest = Array<{
|
|
5965
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
5966
|
+
assetId: string;
|
|
5967
|
+
tokenId?: never;
|
|
5968
|
+
} | {
|
|
5969
|
+
assetId?: never;
|
|
5970
|
+
/** @deprecated Use `assetId`. */
|
|
5971
|
+
tokenId: string;
|
|
5972
|
+
}>;
|
|
5872
5973
|
type FetchLastTradePricesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5873
5974
|
declare const FetchLastTradePricesError: {
|
|
5874
5975
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5875
5976
|
};
|
|
5876
5977
|
/**
|
|
5877
|
-
* Fetches last traded prices for multiple
|
|
5978
|
+
* Fetches last traded prices for multiple exchange assets.
|
|
5878
5979
|
*
|
|
5879
|
-
*
|
|
5880
|
-
* `
|
|
5980
|
+
* Assets without trades are omitted from the response. Match returned rows by
|
|
5981
|
+
* `assetId`; the array is not positionally aligned with the request.
|
|
5881
5982
|
*
|
|
5882
5983
|
* @remarks
|
|
5883
5984
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5887,29 +5988,36 @@ declare const FetchLastTradePricesError: {
|
|
|
5887
5988
|
*
|
|
5888
5989
|
* @example
|
|
5889
5990
|
* ```ts
|
|
5890
|
-
* const
|
|
5891
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426';
|
|
5892
|
-
* const trades = await fetchLastTradePrices(client, [{ tokenId }]);
|
|
5991
|
+
* const trades = await fetchLastTradePrices(client, [{ assetId: '123' }]);
|
|
5893
5992
|
*
|
|
5894
|
-
* const trade = trades.find((candidate) => candidate.
|
|
5993
|
+
* const trade = trades.find((candidate) => candidate.assetId === '123');
|
|
5895
5994
|
* ```
|
|
5896
5995
|
*
|
|
5897
5996
|
*/
|
|
5898
|
-
declare function fetchLastTradePrices(client: BaseClient, request: FetchLastTradePricesRequest): Promise<
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5997
|
+
declare function fetchLastTradePrices(client: BaseClient, request: FetchLastTradePricesRequest): Promise<LastTradePriceForAsset[]>;
|
|
5998
|
+
type FetchPriceHistoryRequest = {
|
|
5999
|
+
/** Identifier for a CTF token or Polymarket V2 position. */
|
|
6000
|
+
assetId: string;
|
|
6001
|
+
tokenId?: never;
|
|
6002
|
+
startTs?: number;
|
|
6003
|
+
endTs?: number;
|
|
6004
|
+
fidelity?: number;
|
|
6005
|
+
interval?: PriceHistoryInterval;
|
|
6006
|
+
} | {
|
|
6007
|
+
assetId?: never;
|
|
6008
|
+
/** @deprecated Use `assetId`. */
|
|
6009
|
+
tokenId: string;
|
|
6010
|
+
startTs?: number;
|
|
6011
|
+
endTs?: number;
|
|
6012
|
+
fidelity?: number;
|
|
6013
|
+
interval?: PriceHistoryInterval;
|
|
6014
|
+
};
|
|
5907
6015
|
type FetchPriceHistoryError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
5908
6016
|
declare const FetchPriceHistoryError: {
|
|
5909
6017
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
5910
6018
|
};
|
|
5911
6019
|
/**
|
|
5912
|
-
* Fetches historical price points for
|
|
6020
|
+
* Fetches historical price points for an exchange asset.
|
|
5913
6021
|
*
|
|
5914
6022
|
* @remarks
|
|
5915
6023
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -5920,8 +6028,7 @@ declare const FetchPriceHistoryError: {
|
|
|
5920
6028
|
* @example
|
|
5921
6029
|
* ```ts
|
|
5922
6030
|
* const history = await fetchPriceHistory(client, {
|
|
5923
|
-
*
|
|
5924
|
-
* '8501497159083948713316135768103773293754490207922884688769443031624417212426',
|
|
6031
|
+
* assetId: '123',
|
|
5925
6032
|
* interval: PriceHistoryInterval.ONE_DAY,
|
|
5926
6033
|
* fidelity: 60,
|
|
5927
6034
|
* });
|
|
@@ -8487,8 +8594,18 @@ declare function depositToPerps(client: BaseSecureClient, request: DepositToPerp
|
|
|
8487
8594
|
*/
|
|
8488
8595
|
declare function withdrawFromPerps(client: BaseSecureClient, request: WithdrawFromPerpsRequest): Promise<PerpsWithdrawalId>;
|
|
8489
8596
|
|
|
8597
|
+
type SplitPositionWorkflowRequest = GaslessWorkflowRequest | SendSplitPositionTransactionRequest;
|
|
8598
|
+
type SplitPositionWorkflow = AsyncGenerator<SplitPositionWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
8599
|
+
type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8600
|
+
declare const PrepareSplitPositionError: {
|
|
8601
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8602
|
+
};
|
|
8490
8603
|
/**
|
|
8491
8604
|
* Parameters for preparing a market position split.
|
|
8605
|
+
*
|
|
8606
|
+
* @remarks
|
|
8607
|
+
* The condition ID may identify either a CTF or Polymarket V2 market. The SDK
|
|
8608
|
+
* resolves the protocol internally.
|
|
8492
8609
|
*/
|
|
8493
8610
|
type PrepareSplitMarketPositionRequest = {
|
|
8494
8611
|
/** Amount of collateral to convert into market positions. */
|
|
@@ -8498,66 +8615,12 @@ type PrepareSplitMarketPositionRequest = {
|
|
|
8498
8615
|
/** Optional transaction metadata for workflows that support metadata. */
|
|
8499
8616
|
metadata?: string;
|
|
8500
8617
|
};
|
|
8501
|
-
/**
|
|
8502
|
-
* Parameters for preparing a combo position split.
|
|
8503
|
-
*/
|
|
8504
|
-
type PrepareSplitComboPositionRequest = {
|
|
8505
|
-
/** Amount of collateral to convert into combo positions. */
|
|
8506
|
-
amount: bigint;
|
|
8507
|
-
/** Protocol v2 leg position IDs that define the combo condition. */
|
|
8508
|
-
legs: string[] | PositionId[];
|
|
8509
|
-
/** Optional transaction metadata for workflows that support metadata. */
|
|
8510
|
-
metadata?: string;
|
|
8511
|
-
};
|
|
8512
|
-
/**
|
|
8513
|
-
* Parameters for preparing either supported position split workflow.
|
|
8514
|
-
*
|
|
8515
|
-
* @remarks
|
|
8516
|
-
* Provide either a market `conditionId` or combo `legs`.
|
|
8517
|
-
*/
|
|
8518
|
-
type PrepareSplitPositionRequest = PrepareSplitMarketPositionRequest | PrepareSplitComboPositionRequest;
|
|
8519
|
-
type SplitPositionWorkflowRequest = GaslessWorkflowRequest | SendSplitPositionTransactionRequest;
|
|
8520
|
-
type MergePositionsWorkflowRequest = GaslessWorkflowRequest | SendMergePositionsTransactionRequest;
|
|
8521
|
-
type RedeemPositionsWorkflowRequest = GaslessWorkflowRequest | SendRedeemPositionsTransactionRequest;
|
|
8522
|
-
type SplitPositionWorkflow = AsyncGenerator<SplitPositionWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
8523
|
-
type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
8524
|
-
type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
8525
|
-
type PrepareSplitPositionError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8526
|
-
declare const PrepareSplitPositionError: {
|
|
8527
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8528
|
-
};
|
|
8618
|
+
/** @deprecated Use {@link PrepareSplitPositionError}. */
|
|
8529
8619
|
type PrepareSplitMarketPositionError = PrepareSplitPositionError;
|
|
8620
|
+
/** @deprecated Use {@link PrepareSplitPositionError}. */
|
|
8530
8621
|
declare const PrepareSplitMarketPositionError: {
|
|
8531
8622
|
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8532
8623
|
};
|
|
8533
|
-
type PrepareSplitComboPositionError = PrepareSplitPositionError;
|
|
8534
|
-
declare const PrepareSplitComboPositionError: {
|
|
8535
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8536
|
-
};
|
|
8537
|
-
type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8538
|
-
declare const PrepareMergePositionsError: {
|
|
8539
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8540
|
-
};
|
|
8541
|
-
type PrepareMergeMarketPositionError = PrepareMergePositionsError;
|
|
8542
|
-
declare const PrepareMergeMarketPositionError: {
|
|
8543
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8544
|
-
};
|
|
8545
|
-
type PrepareMergeComboPositionError = PrepareMergePositionsError;
|
|
8546
|
-
declare const PrepareMergeComboPositionError: {
|
|
8547
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8548
|
-
};
|
|
8549
|
-
type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8550
|
-
declare const PrepareRedeemPositionsError: {
|
|
8551
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8552
|
-
};
|
|
8553
|
-
type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
|
|
8554
|
-
declare const PrepareRedeemMarketPositionsError: {
|
|
8555
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8556
|
-
};
|
|
8557
|
-
type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
|
|
8558
|
-
declare const PrepareRedeemComboPositionError: {
|
|
8559
|
-
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8560
|
-
};
|
|
8561
8624
|
/**
|
|
8562
8625
|
* Starts a split workflow for a market condition.
|
|
8563
8626
|
*
|
|
@@ -8573,10 +8636,27 @@ declare const PrepareRedeemComboPositionError: {
|
|
|
8573
8636
|
* });
|
|
8574
8637
|
* ```
|
|
8575
8638
|
*
|
|
8576
|
-
* @throws {@link
|
|
8639
|
+
* @throws {@link PrepareSplitPositionError}
|
|
8577
8640
|
* Thrown on failure.
|
|
8578
8641
|
*/
|
|
8579
8642
|
declare function prepareSplitMarketPosition(client: BaseSecureClient, request: PrepareSplitMarketPositionRequest): Promise<SplitPositionWorkflow>;
|
|
8643
|
+
/**
|
|
8644
|
+
* Parameters for preparing a combo position split.
|
|
8645
|
+
*/
|
|
8646
|
+
type PrepareSplitComboPositionRequest = {
|
|
8647
|
+
/** Amount of collateral to convert into combo positions. */
|
|
8648
|
+
amount: bigint;
|
|
8649
|
+
/** Protocol v2 leg position IDs that define the combo condition. */
|
|
8650
|
+
legs: string[] | PositionId[];
|
|
8651
|
+
/** Optional transaction metadata for workflows that support metadata. */
|
|
8652
|
+
metadata?: string;
|
|
8653
|
+
};
|
|
8654
|
+
/** @deprecated Use {@link PrepareSplitPositionError}. */
|
|
8655
|
+
type PrepareSplitComboPositionError = PrepareSplitPositionError;
|
|
8656
|
+
/** @deprecated Use {@link PrepareSplitPositionError}. */
|
|
8657
|
+
declare const PrepareSplitComboPositionError: {
|
|
8658
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8659
|
+
};
|
|
8580
8660
|
/**
|
|
8581
8661
|
* Starts a split workflow for a combo position from leg position IDs.
|
|
8582
8662
|
*
|
|
@@ -8591,12 +8671,20 @@ declare function prepareSplitMarketPosition(client: BaseSecureClient, request: P
|
|
|
8591
8671
|
* });
|
|
8592
8672
|
* ```
|
|
8593
8673
|
*
|
|
8594
|
-
* @throws {@link
|
|
8674
|
+
* @throws {@link PrepareSplitPositionError}
|
|
8595
8675
|
* Thrown on failure.
|
|
8596
8676
|
*/
|
|
8597
8677
|
declare function prepareSplitComboPosition(client: BaseSecureClient, request: PrepareSplitComboPositionRequest): Promise<SplitPositionWorkflow>;
|
|
8598
8678
|
/**
|
|
8599
|
-
*
|
|
8679
|
+
* Parameters for preparing a position split.
|
|
8680
|
+
*
|
|
8681
|
+
* @remarks
|
|
8682
|
+
* Provide `conditionId` for an existing market condition or `legs` to derive a
|
|
8683
|
+
* Combo condition.
|
|
8684
|
+
*/
|
|
8685
|
+
type PrepareSplitPositionRequest = PrepareSplitMarketPositionRequest | PrepareSplitComboPositionRequest;
|
|
8686
|
+
/**
|
|
8687
|
+
* Starts a position split workflow.
|
|
8600
8688
|
*
|
|
8601
8689
|
* @throws {@link PrepareSplitPositionError}
|
|
8602
8690
|
* Thrown on failure.
|
|
@@ -8606,43 +8694,57 @@ type SplitPositionError = CancelledSigningError | RateLimitError | RequestReject
|
|
|
8606
8694
|
declare const SplitPositionError: {
|
|
8607
8695
|
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8608
8696
|
};
|
|
8697
|
+
/** @deprecated Use {@link SplitPositionError}. */
|
|
8609
8698
|
type SplitMarketPositionError = SplitPositionError;
|
|
8699
|
+
/** @deprecated Use {@link SplitPositionError}. */
|
|
8610
8700
|
declare const SplitMarketPositionError: {
|
|
8611
8701
|
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8612
8702
|
};
|
|
8613
|
-
type SplitComboPositionError = SplitPositionError;
|
|
8614
|
-
declare const SplitComboPositionError: {
|
|
8615
|
-
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8616
|
-
};
|
|
8617
8703
|
/**
|
|
8618
8704
|
* Splits collateral into market positions.
|
|
8619
8705
|
*
|
|
8620
8706
|
* @remarks
|
|
8621
8707
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
8622
8708
|
*
|
|
8623
|
-
* @throws {@link
|
|
8709
|
+
* @throws {@link SplitPositionError}
|
|
8624
8710
|
* Thrown on failure.
|
|
8625
8711
|
*/
|
|
8626
8712
|
declare function splitMarketPosition(client: BaseSecureClient, request: PrepareSplitMarketPositionRequest): Promise<TransactionHandle>;
|
|
8713
|
+
/** @deprecated Use {@link SplitPositionError}. */
|
|
8714
|
+
type SplitComboPositionError = SplitPositionError;
|
|
8715
|
+
/** @deprecated Use {@link SplitPositionError}. */
|
|
8716
|
+
declare const SplitComboPositionError: {
|
|
8717
|
+
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8718
|
+
};
|
|
8627
8719
|
/**
|
|
8628
8720
|
* Splits collateral into combo positions from leg position IDs.
|
|
8629
8721
|
*
|
|
8630
8722
|
* @remarks
|
|
8631
8723
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
8632
8724
|
*
|
|
8633
|
-
* @throws {@link
|
|
8725
|
+
* @throws {@link SplitPositionError}
|
|
8634
8726
|
* Thrown on failure.
|
|
8635
8727
|
*/
|
|
8636
8728
|
declare function splitComboPosition(client: BaseSecureClient, request: PrepareSplitComboPositionRequest): Promise<TransactionHandle>;
|
|
8637
8729
|
/**
|
|
8638
|
-
* Splits collateral into
|
|
8730
|
+
* Splits collateral into positions.
|
|
8639
8731
|
*
|
|
8640
8732
|
* @throws {@link SplitPositionError}
|
|
8641
8733
|
* Thrown on failure.
|
|
8642
8734
|
*/
|
|
8643
8735
|
declare function splitPosition(client: BaseSecureClient, request: PrepareSplitPositionRequest): Promise<TransactionHandle>;
|
|
8736
|
+
type MergePositionsWorkflowRequest = GaslessWorkflowRequest | SendMergePositionsTransactionRequest;
|
|
8737
|
+
type MergePositionsWorkflow = AsyncGenerator<MergePositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
8738
|
+
type PrepareMergePositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8739
|
+
declare const PrepareMergePositionsError: {
|
|
8740
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8741
|
+
};
|
|
8644
8742
|
/**
|
|
8645
8743
|
* Parameters for preparing a market position merge.
|
|
8744
|
+
*
|
|
8745
|
+
* @remarks
|
|
8746
|
+
* The condition ID may identify either a CTF or Polymarket V2 market. The SDK
|
|
8747
|
+
* resolves the protocol internally.
|
|
8646
8748
|
*/
|
|
8647
8749
|
type PrepareMergeMarketPositionRequest = {
|
|
8648
8750
|
/** Amount per complementary market position to merge. */
|
|
@@ -8652,24 +8754,12 @@ type PrepareMergeMarketPositionRequest = {
|
|
|
8652
8754
|
/** Optional transaction metadata for workflows that support metadata. */
|
|
8653
8755
|
metadata?: string;
|
|
8654
8756
|
};
|
|
8655
|
-
/**
|
|
8656
|
-
|
|
8657
|
-
*/
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
amount: bigint | 'max';
|
|
8661
|
-
/** Protocol v2 leg position IDs that define the combo condition. */
|
|
8662
|
-
legs: string[] | PositionId[];
|
|
8663
|
-
/** Optional transaction metadata for workflows that support metadata. */
|
|
8664
|
-
metadata?: string;
|
|
8757
|
+
/** @deprecated Use {@link PrepareMergePositionsError}. */
|
|
8758
|
+
type PrepareMergeMarketPositionError = PrepareMergePositionsError;
|
|
8759
|
+
/** @deprecated Use {@link PrepareMergePositionsError}. */
|
|
8760
|
+
declare const PrepareMergeMarketPositionError: {
|
|
8761
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8665
8762
|
};
|
|
8666
|
-
/**
|
|
8667
|
-
* Parameters for preparing either supported position merge workflow.
|
|
8668
|
-
*
|
|
8669
|
-
* @remarks
|
|
8670
|
-
* Provide either a market `conditionId` or combo `legs`.
|
|
8671
|
-
*/
|
|
8672
|
-
type PrepareMergePositionsRequest = PrepareMergeMarketPositionRequest | PrepareMergeComboPositionRequest;
|
|
8673
8763
|
/**
|
|
8674
8764
|
* Starts a workflow to merge complementary positions in a market back into collateral.
|
|
8675
8765
|
*
|
|
@@ -8685,10 +8775,27 @@ type PrepareMergePositionsRequest = PrepareMergeMarketPositionRequest | PrepareM
|
|
|
8685
8775
|
* });
|
|
8686
8776
|
* ```
|
|
8687
8777
|
*
|
|
8688
|
-
* @throws {@link
|
|
8778
|
+
* @throws {@link PrepareMergePositionsError}
|
|
8689
8779
|
* Thrown on failure.
|
|
8690
8780
|
*/
|
|
8691
8781
|
declare function prepareMergeMarketPosition(client: BaseSecureClient, request: PrepareMergeMarketPositionRequest): Promise<MergePositionsWorkflow>;
|
|
8782
|
+
/**
|
|
8783
|
+
* Parameters for preparing a combo position merge.
|
|
8784
|
+
*/
|
|
8785
|
+
type PrepareMergeComboPositionRequest = {
|
|
8786
|
+
/** Amount per complementary combo position to merge. */
|
|
8787
|
+
amount: bigint | 'max';
|
|
8788
|
+
/** Protocol v2 leg position IDs that define the combo condition. */
|
|
8789
|
+
legs: string[] | PositionId[];
|
|
8790
|
+
/** Optional transaction metadata for workflows that support metadata. */
|
|
8791
|
+
metadata?: string;
|
|
8792
|
+
};
|
|
8793
|
+
/** @deprecated Use {@link PrepareMergePositionsError}. */
|
|
8794
|
+
type PrepareMergeComboPositionError = PrepareMergePositionsError;
|
|
8795
|
+
/** @deprecated Use {@link PrepareMergePositionsError}. */
|
|
8796
|
+
declare const PrepareMergeComboPositionError: {
|
|
8797
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8798
|
+
};
|
|
8692
8799
|
/**
|
|
8693
8800
|
* Starts a workflow to merge complementary combo positions back into collateral.
|
|
8694
8801
|
*
|
|
@@ -8703,12 +8810,20 @@ declare function prepareMergeMarketPosition(client: BaseSecureClient, request: P
|
|
|
8703
8810
|
* });
|
|
8704
8811
|
* ```
|
|
8705
8812
|
*
|
|
8706
|
-
* @throws {@link
|
|
8813
|
+
* @throws {@link PrepareMergePositionsError}
|
|
8707
8814
|
* Thrown on failure.
|
|
8708
8815
|
*/
|
|
8709
8816
|
declare function prepareMergeComboPosition(client: BaseSecureClient, request: PrepareMergeComboPositionRequest): Promise<MergePositionsWorkflow>;
|
|
8710
8817
|
/**
|
|
8711
|
-
*
|
|
8818
|
+
* Parameters for preparing a position merge.
|
|
8819
|
+
*
|
|
8820
|
+
* @remarks
|
|
8821
|
+
* Provide `conditionId` for an existing market condition or `legs` to derive a
|
|
8822
|
+
* Combo condition.
|
|
8823
|
+
*/
|
|
8824
|
+
type PrepareMergePositionsRequest = PrepareMergeMarketPositionRequest | PrepareMergeComboPositionRequest;
|
|
8825
|
+
/**
|
|
8826
|
+
* Starts a position merge workflow.
|
|
8712
8827
|
*
|
|
8713
8828
|
* @throws {@link PrepareMergePositionsError}
|
|
8714
8829
|
* Thrown on failure.
|
|
@@ -8718,43 +8833,57 @@ type MergePositionsError = CancelledSigningError | RateLimitError | RequestRejec
|
|
|
8718
8833
|
declare const MergePositionsError: {
|
|
8719
8834
|
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8720
8835
|
};
|
|
8836
|
+
/** @deprecated Use {@link MergePositionsError}. */
|
|
8721
8837
|
type MergeMarketPositionError = MergePositionsError;
|
|
8838
|
+
/** @deprecated Use {@link MergePositionsError}. */
|
|
8722
8839
|
declare const MergeMarketPositionError: {
|
|
8723
8840
|
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8724
8841
|
};
|
|
8725
|
-
type MergeComboPositionError = MergePositionsError;
|
|
8726
|
-
declare const MergeComboPositionError: {
|
|
8727
|
-
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8728
|
-
};
|
|
8729
8842
|
/**
|
|
8730
8843
|
* Merges complementary market positions back into collateral.
|
|
8731
8844
|
*
|
|
8732
8845
|
* @remarks
|
|
8733
8846
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
8734
8847
|
*
|
|
8735
|
-
* @throws {@link
|
|
8848
|
+
* @throws {@link MergePositionsError}
|
|
8736
8849
|
* Thrown on failure.
|
|
8737
8850
|
*/
|
|
8738
8851
|
declare function mergeMarketPosition(client: BaseSecureClient, request: PrepareMergeMarketPositionRequest): Promise<TransactionHandle>;
|
|
8852
|
+
/** @deprecated Use {@link MergePositionsError}. */
|
|
8853
|
+
type MergeComboPositionError = MergePositionsError;
|
|
8854
|
+
/** @deprecated Use {@link MergePositionsError}. */
|
|
8855
|
+
declare const MergeComboPositionError: {
|
|
8856
|
+
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8857
|
+
};
|
|
8739
8858
|
/**
|
|
8740
8859
|
* Merges complementary combo positions back into collateral.
|
|
8741
8860
|
*
|
|
8742
8861
|
* @remarks
|
|
8743
8862
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
8744
8863
|
*
|
|
8745
|
-
* @throws {@link
|
|
8864
|
+
* @throws {@link MergePositionsError}
|
|
8746
8865
|
* Thrown on failure.
|
|
8747
8866
|
*/
|
|
8748
8867
|
declare function mergeComboPosition(client: BaseSecureClient, request: PrepareMergeComboPositionRequest): Promise<TransactionHandle>;
|
|
8749
8868
|
/**
|
|
8750
|
-
* Merges complementary
|
|
8869
|
+
* Merges complementary positions back into collateral.
|
|
8751
8870
|
*
|
|
8752
8871
|
* @throws {@link MergePositionsError}
|
|
8753
8872
|
* Thrown on failure.
|
|
8754
8873
|
*/
|
|
8755
8874
|
declare function mergePositions(client: BaseSecureClient, request: PrepareMergePositionsRequest): Promise<TransactionHandle>;
|
|
8875
|
+
type RedeemPositionsWorkflowRequest = GaslessWorkflowRequest | SendRedeemPositionsTransactionRequest;
|
|
8876
|
+
type RedeemPositionsWorkflow = AsyncGenerator<RedeemPositionsWorkflowRequest, TransactionHandle, EvmAddress | EvmSignature | TransactionHandle>;
|
|
8877
|
+
type PrepareRedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError;
|
|
8878
|
+
declare const PrepareRedeemPositionsError: {
|
|
8879
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8880
|
+
};
|
|
8756
8881
|
/**
|
|
8757
8882
|
* Parameters for preparing a market position redemption by condition ID.
|
|
8883
|
+
*
|
|
8884
|
+
* @remarks
|
|
8885
|
+
* The condition ID may identify either a CTF or Polymarket V2 market. The SDK
|
|
8886
|
+
* resolves the protocol internally.
|
|
8758
8887
|
*/
|
|
8759
8888
|
type PrepareRedeemMarketPositionsByConditionIdRequest = {
|
|
8760
8889
|
/** Existing market condition ID that identifies the positions to redeem. */
|
|
@@ -8777,25 +8906,13 @@ type PrepareRedeemMarketPositionsByMarketIdRequest = {
|
|
|
8777
8906
|
/** Optional transaction metadata for workflows that support metadata. */
|
|
8778
8907
|
metadata?: string;
|
|
8779
8908
|
};
|
|
8780
|
-
/**
|
|
8781
|
-
* Parameters for preparing a combo position redemption.
|
|
8782
|
-
*/
|
|
8783
|
-
type PrepareRedeemComboPositionRequest = {
|
|
8784
|
-
/** Protocol v2 combo YES/NO position ID to redeem. */
|
|
8785
|
-
positionId: string | PositionId;
|
|
8786
|
-
conditionId?: never;
|
|
8787
|
-
marketId?: never;
|
|
8788
|
-
/** Optional transaction metadata for workflows that support metadata. */
|
|
8789
|
-
metadata?: string;
|
|
8790
|
-
};
|
|
8791
|
-
/**
|
|
8792
|
-
* Parameters for preparing either supported position redemption workflow.
|
|
8793
|
-
*
|
|
8794
|
-
* @remarks
|
|
8795
|
-
* Provide either a market `conditionId` or `marketId`, or a combo `positionId`.
|
|
8796
|
-
*/
|
|
8797
|
-
type PrepareRedeemPositionsRequest = PrepareRedeemMarketPositionsByConditionIdRequest | PrepareRedeemMarketPositionsByMarketIdRequest | PrepareRedeemComboPositionRequest;
|
|
8798
8909
|
type PrepareRedeemMarketPositionsRequest = PrepareRedeemMarketPositionsByConditionIdRequest | PrepareRedeemMarketPositionsByMarketIdRequest;
|
|
8910
|
+
/** @deprecated Use {@link PrepareRedeemPositionsError}. */
|
|
8911
|
+
type PrepareRedeemMarketPositionsError = PrepareRedeemPositionsError;
|
|
8912
|
+
/** @deprecated Use {@link PrepareRedeemPositionsError}. */
|
|
8913
|
+
declare const PrepareRedeemMarketPositionsError: {
|
|
8914
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8915
|
+
};
|
|
8799
8916
|
/**
|
|
8800
8917
|
* Starts a redemption workflow for resolved market positions.
|
|
8801
8918
|
*
|
|
@@ -8817,29 +8934,67 @@ type PrepareRedeemMarketPositionsRequest = PrepareRedeemMarketPositionsByConditi
|
|
|
8817
8934
|
* });
|
|
8818
8935
|
* ```
|
|
8819
8936
|
*
|
|
8820
|
-
* @throws {@link
|
|
8937
|
+
* @throws {@link PrepareRedeemPositionsError}
|
|
8821
8938
|
* Thrown on failure.
|
|
8822
8939
|
*/
|
|
8823
8940
|
declare function prepareRedeemMarketPositions(client: BaseSecureClient, request: PrepareRedeemMarketPositionsRequest): Promise<RedeemPositionsWorkflow>;
|
|
8824
8941
|
/**
|
|
8825
|
-
*
|
|
8942
|
+
* Parameters for preparing a Polymarket V2 position redemption.
|
|
8943
|
+
*/
|
|
8944
|
+
type PrepareRedeemPositionRequest = {
|
|
8945
|
+
/** Polymarket V2 YES/NO position ID to redeem. */
|
|
8946
|
+
positionId: string | PositionId;
|
|
8947
|
+
conditionId?: never;
|
|
8948
|
+
marketId?: never;
|
|
8949
|
+
/** Optional transaction metadata for workflows that support metadata. */
|
|
8950
|
+
metadata?: string;
|
|
8951
|
+
};
|
|
8952
|
+
/**
|
|
8953
|
+
* Starts a redemption workflow for a resolved Polymarket V2 position.
|
|
8826
8954
|
*
|
|
8827
8955
|
* @remarks
|
|
8828
8956
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
8829
8957
|
*
|
|
8830
8958
|
* @example
|
|
8831
8959
|
* ```ts
|
|
8832
|
-
* const workflow = await
|
|
8960
|
+
* const workflow = await prepareRedeemPosition(client, {
|
|
8833
8961
|
* positionId: '123',
|
|
8834
8962
|
* });
|
|
8835
8963
|
* ```
|
|
8836
8964
|
*
|
|
8837
|
-
* @throws {@link
|
|
8965
|
+
* @throws {@link PrepareRedeemPositionsError}
|
|
8966
|
+
* Thrown on failure.
|
|
8967
|
+
*/
|
|
8968
|
+
declare function prepareRedeemPosition(client: BaseSecureClient, request: PrepareRedeemPositionRequest): Promise<RedeemPositionsWorkflow>;
|
|
8969
|
+
/** @deprecated Use {@link PrepareRedeemPositionRequest}. */
|
|
8970
|
+
type PrepareRedeemComboPositionRequest = PrepareRedeemPositionRequest;
|
|
8971
|
+
/** @deprecated Use {@link PrepareRedeemPositionsError}. */
|
|
8972
|
+
type PrepareRedeemComboPositionError = PrepareRedeemPositionsError;
|
|
8973
|
+
/** @deprecated Use {@link PrepareRedeemPositionsError}. */
|
|
8974
|
+
declare const PrepareRedeemComboPositionError: {
|
|
8975
|
+
isError(error: unknown): error is TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
8976
|
+
};
|
|
8977
|
+
/**
|
|
8978
|
+
* Starts a redemption workflow for a resolved Polymarket V2 position.
|
|
8979
|
+
*
|
|
8980
|
+
* @deprecated Use {@link prepareRedeemPosition}.
|
|
8981
|
+
*
|
|
8982
|
+
* @throws {@link PrepareRedeemPositionsError}
|
|
8838
8983
|
* Thrown on failure.
|
|
8839
8984
|
*/
|
|
8840
8985
|
declare function prepareRedeemComboPosition(client: BaseSecureClient, request: PrepareRedeemComboPositionRequest): Promise<RedeemPositionsWorkflow>;
|
|
8841
8986
|
/**
|
|
8842
|
-
*
|
|
8987
|
+
* Parameters for preparing position redemption for a market or a specific
|
|
8988
|
+
* position.
|
|
8989
|
+
*
|
|
8990
|
+
* @remarks
|
|
8991
|
+
* Use `marketId` or `conditionId` to redeem held positions for a market. Use
|
|
8992
|
+
* `positionId` to redeem a specific position.
|
|
8993
|
+
*/
|
|
8994
|
+
type PrepareRedeemPositionsRequest = PrepareRedeemMarketPositionsByConditionIdRequest | PrepareRedeemMarketPositionsByMarketIdRequest | PrepareRedeemPositionRequest;
|
|
8995
|
+
/**
|
|
8996
|
+
* Starts a redemption workflow for held positions in a market or a specific
|
|
8997
|
+
* position by ID.
|
|
8843
8998
|
*
|
|
8844
8999
|
* @remarks
|
|
8845
9000
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -8848,12 +9003,12 @@ declare function prepareRedeemComboPosition(client: BaseSecureClient, request: P
|
|
|
8848
9003
|
* Thrown on failure.
|
|
8849
9004
|
*/
|
|
8850
9005
|
declare function prepareRedeemPositions(client: BaseSecureClient, request: PrepareRedeemPositionsRequest): Promise<RedeemPositionsWorkflow>;
|
|
8851
|
-
type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError;
|
|
9006
|
+
type RedeemPositionsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError | UserInputError | CancelledSigningError | SigningError | TimeoutError | TransactionFailedError;
|
|
8852
9007
|
declare const RedeemPositionsError: {
|
|
8853
|
-
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
|
|
9008
|
+
isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
|
|
8854
9009
|
};
|
|
8855
9010
|
/**
|
|
8856
|
-
* Redeems
|
|
9011
|
+
* Redeems held positions for a market or a specific position by ID.
|
|
8857
9012
|
*
|
|
8858
9013
|
* @remarks
|
|
8859
9014
|
* This is a low-level function. Most SDK consumers should prefer the client instance API.
|
|
@@ -9184,7 +9339,18 @@ type PerpsStreamingCandleInterval = Exclude<PerpsKlineInterval, PerpsKlineInterv
|
|
|
9184
9339
|
type PerpsInstrumentIdInput = number;
|
|
9185
9340
|
type MarketSubscription = {
|
|
9186
9341
|
topic: 'market';
|
|
9187
|
-
/**
|
|
9342
|
+
/** Asset identifiers whose market events should be delivered. */
|
|
9343
|
+
assetIds: readonly string[];
|
|
9344
|
+
tokenIds?: never;
|
|
9345
|
+
/**
|
|
9346
|
+
* When `true`, the server additionally emits `MarketBestBidAskEvent`,
|
|
9347
|
+
* `NewMarketEvent`, and `MarketResolvedEvent`.
|
|
9348
|
+
*/
|
|
9349
|
+
customFeatureEnabled?: boolean;
|
|
9350
|
+
} | {
|
|
9351
|
+
topic: 'market';
|
|
9352
|
+
assetIds?: never;
|
|
9353
|
+
/** @deprecated Use `assetIds`. */
|
|
9188
9354
|
tokenIds: readonly string[];
|
|
9189
9355
|
/**
|
|
9190
9356
|
* When `true`, the server additionally emits `MarketBestBidAskEvent`,
|
|
@@ -9323,7 +9489,7 @@ declare const SubscribeError: {
|
|
|
9323
9489
|
* @example
|
|
9324
9490
|
* ```ts
|
|
9325
9491
|
* const handle = await client.subscribe([
|
|
9326
|
-
* { topic: 'market',
|
|
9492
|
+
* { topic: 'market', assetIds: ['123'] },
|
|
9327
9493
|
* ]);
|
|
9328
9494
|
*
|
|
9329
9495
|
* for await (const event of handle) {
|
|
@@ -9678,4 +9844,4 @@ type Signer = {
|
|
|
9678
9844
|
sendTransaction(request: SignerTransactionRequest): Promise<TransactionHandle>;
|
|
9679
9845
|
};
|
|
9680
9846
|
|
|
9681
|
-
export { type EnvironmentContracts as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ClientActions as D, type ClientDecorator as E, type ClobEndpoints as F, ComboPositionSort as G, type ComboPositionStatusFilter as H, type ComboQuote as I, type CombosEndpoints as J, ConnectionLostError as K, type ConnectionLostErrorOptions as L, type CreatePerpsSessionRequest as M, CreateSecureClientError as N, type CryptoPricesChainlinkTwapSubscription as O, type DataActions as P, DepositToPerpsError as Q, type DepositToPerpsRequest as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DisarmPerpsAutoCancelRequest as V, type DiscoveryActions as W, DownloadAccountingSnapshotError as X, DropNotificationsError as Y, type EnvironmentConfig as Z, type EnvironmentConfigFork as _, type TypedData as a, ListMarketHoldersError as a$, EstimateMarketPriceError as a0, ExecuteCollateralReturnPlanError as a1, type ExecuteCollateralReturnPlanRequest as a2, FetchClosedOnlyModeError as a3, FetchCommentsByIdError as a4, FetchEventError as a5, FetchEventLiveVolumeError as a6, FetchEventTagsError as a7, FetchLastTradePriceError as a8, FetchLastTradePricesError as a9, FetchPublicProfileError as aA, FetchRelatedTagResourcesError as aB, FetchRelatedTagsError as aC, FetchRewardPercentagesError as aD, FetchRfqStatusError as aE, type FetchRfqStatusParams as aF, FetchSeriesError as aG, FetchSessionKeysError as aH, FetchSpreadError as aI, FetchSpreadsError as aJ, FetchTagError as aK, FetchTotalEarningsForUserForDayError as aL, FetchTradedMarketCountError as aM, InsufficientLiquidityError as aN, ListAccountTradesError as aO, ListActivityError as aP, ListBuilderLeaderboardError as aQ, ListBuilderTradesError as aR, ListBuilderVolumeError as aS, ListClosedPositionsError as aT, ListComboActivityError as aU, ListComboMarketsError as aV, ListComboPositionsError as aW, ListCommentsByUserAddressError as aX, ListCommentsError as aY, ListCurrentRewardsError as aZ, ListEventsError as a_, FetchMarketError as aa, FetchMarketTagsError as ab, FetchMidpointError as ac, FetchMidpointsError as ad, FetchNotificationsError as ae, FetchOrderBookError as af, FetchOrderBooksError as ag, FetchOrderError as ah, FetchOrderScoringError as ai, FetchOrdersScoringError as aj, type FetchPerpsAccountConfigRequest as ak, FetchPerpsBookError as al, type FetchPerpsBookRequest as am, FetchPerpsFeesError as an, FetchPerpsInstrumentsError as ao, type FetchPerpsInstrumentsRequest as ap, type FetchPerpsOpenOrdersRequest as aq, type FetchPerpsOrdersRequest as ar, FetchPerpsTickerError as as, type FetchPerpsTickerRequest as at, FetchPerpsTickersError as au, type FetchPerpsTickersRequest as av, FetchPortfolioValueError as aw, FetchPriceError as ax, FetchPriceHistoryError as ay, FetchPricesError as az, type TransactionCall as b, type PublicClient as b$, ListMarketPositionsError as b0, ListMarketRewardsError as b1, ListMarketsError as b2, ListOpenInterestError as b3, ListOpenOrdersError as b4, ListPerpsCandlesError as b5, type ListPerpsCandlesRequest as b6, type ListPerpsDepositsRequest as b7, type ListPerpsEquityHistoryRequest as b8, type ListPerpsFillsRequest as b9, type PerpsActions as bA, type PerpsBookDepth as bB, type PerpsEndpoints as bC, type PerpsOrderRequest as bD, type PerpsPlaceFokOrderRequest as bE, type PerpsPlaceGtcOrderRequest as bF, type PerpsPlaceIocOrderRequest as bG, type PerpsPlacedTpSlOrder as bH, type PerpsPlacedTpSlOrders as bI, type PerpsPositionTpSlTrigger as bJ, PerpsSession as bK, type PerpsSessionAccountError as bL, type PerpsSessionLifecycleError as bM, type PerpsSessionTradingError as bN, type PerpsTpSlTrigger as bO, type PlacePerpsOrderRequest as bP, type PlacePerpsOrderResult as bQ, type PlacePerpsOrderWithTpSlRequest as bR, type PlacePerpsOrderWithTpSlResult as bS, type PlacePerpsPositionTpSlRequest as bT, type PlacePerpsPositionTpSlResult as bU, PlanCollateralReturnError as bV, PostOrderError as bW, PostOrdersError as bX, type PostPerpsOrdersRequest as bY, type PublicAccountActions as bZ, type PublicActions as b_, ListPerpsFundingHistoryError as ba, type ListPerpsFundingHistoryRequest as bb, type ListPerpsFundingPaymentsRequest as bc, type ListPerpsNotificationsRequest as bd, type ListPerpsPnlHistoryRequest as be, ListPerpsTradesError as bf, type ListPerpsTradesRequest as bg, type ListPerpsWithdrawalsRequest as bh, ListPositionsError as bi, ListSeriesError as bj, ListTagsError as bk, ListTeamsError as bl, ListTraderLeaderboardError as bm, ListTradesError as bn, ListUserEarningsAndMarketsConfigError as bo, ListUserEarningsForDayError as bp, type MarkPerpsNotificationsReadRequest as bq, MergePositionsError as br, OpenPerpsSessionError as bs, type OpenPerpsSessionRequest as bt, OpenRfqSessionError as bu, type OrderAsset as bv, type OrderSignature as bw, type Page as bx, PageSizeSchema as by, type Paginated as bz, AcceptComboQuoteError as c, type SessionKey as c$, type PublicClientOptions as c0, type PublicPerpsActions as c1, type PublicRewardsActions as c2, type PublicSubscriptionsActions as c3, type RateLimitBucket as c4, RateLimitError as c5, type RateLimitErrorOptions as c6, type RateLimitUpdate as c7, type RateLimitUpdateListener as c8, RedeemPositionsError as c9, type RfqQuoteResponse as cA, type RfqQuoteSource as cB, RfqRequestRejectedError as cC, type RfqRequestRejectedErrorOptions as cD, type RfqSession as cE, type RfqStatusResult as cF, type RfqTradeEvent as cG, SearchError as cH, SearchSort as cI, type SecureAccountActions as cJ, type SecureActions as cK, type SecureClient as cL, type SecureClientOptions as cM, type SecureDownloadAccountingSnapshotRequest as cN, type SecureFetchPortfolioValueRequest as cO, type SecureFetchTradedMarketCountRequest as cP, type SecureListActivityRequest as cQ, type SecureListClosedPositionsRequest as cR, type SecureListComboActivityRequest as cS, type SecureListComboPositionsRequest as cT, type SecureListPositionsRequest as cU, type SecurePerpsActions as cV, type SecureRewardsActions as cW, type SecureRfqActions as cX, type SecureSubscriptionsActions as cY, type SecureTradingActions as cZ, type SecureWalletActions as c_, RequestComboQuoteError as ca, type RequestComboQuoteParams as cb, type RequestComboQuoteResult as cc, RequestRejectedError as cd, type RequestRejectedErrorOptions as ce, type RestEndpoint as cf, type ResumePerpsSessionRequest as cg, RevokePerpsCredentialsError as ch, type RevokePerpsCredentialsRequest as ci, RevokeSessionKeyError as cj, type RevokeSessionKeyRequest as ck, type RevokeSessionKeyResult as cl, type RfqCancelQuoteAck as cm, RfqCancelQuoteError as cn, RfqCancelQuoteRejectedError as co, type RfqCancelQuoteRejectedErrorOptions as cp, type RfqConfirmationAck as cq, RfqConfirmationError as cr, RfqConfirmationRejectedError as cs, type RfqConfirmationRequestEvent as ct, type RfqEvent as cu, RfqQuoteError as cv, type RfqQuoteReference as cw, RfqQuoteRejectedError as cx, type RfqQuoteRejectedErrorOptions as cy, type RfqQuoteRequestEvent as cz, type AcceptComboQuoteParams as d, type EquityPricesEventType as d$, type SessionKeyActions as d0, SetupGaslessWalletError as d1, SetupTradingApprovalsError as d2, type SignedOrder as d3, type SignerTransactionRequest as d4, SignerType as d5, SigningError as d6, SplitPositionError as d7, SubscribeError as d8, TimeoutError as d9, allActions as dA, analyticsActions as dB, createPublicClient as dC, createSecureClient as dD, dataActions as dE, discoveryActions as dF, forkEnvironmentConfig as dG, makeErrorGuard as dH, perpsActions as dI, production as dJ, rewardsActions as dK, rfqActions as dL, sessionKeyActions as dM, subscriptionsActions as dN, tradingActions as dO, walletActions as dP, type CancelMarketOrdersRequest as dQ, type CancelOrderRequest as dR, type CancelOrdersRequest as dS, type CollateralReturnExecutionWorkflow as dT, type CommentsEventType as dU, type CommentsSubscription as dV, type CryptoPricesEventType as dW, type CryptoPricesSubscription as dX, DeployDepositWalletError as dY, type DownloadAccountingSnapshotRequest as dZ, type DropNotificationsRequest as d_, TradingRestriction as da, TransactionFailedError as db, type TransactionHandle as dc, type TransactionOutcome as dd, TransferErc20Error as de, TransportError as df, type TypedDataDomain as dg, type TypedDataField as dh, UnexpectedResponseError as di, UpdatePerpsLeverageError as dj, type UpdatePerpsLeverageRequest as dk, UpdatePerpsMarginError as dl, type UpdatePerpsMarginRequest as dm, WaitForComboFillError as dn, type WaitForComboFillParams as dp, type WaitForComboFillResult as dq, WaitForOrderFillSettlementError as dr, WaitForTransactionError as ds, type WalletDerivationConfig as dt, type WebSocketCloseCode as du, type WebSocketEndpoint as dv, WebSocketKnownCloseCode as dw, WithdrawFromPerpsError as dx, type WithdrawFromPerpsRequest as dy, accountActions as dz, type AcceptComboQuoteResult as e, type ListClosedPositionsRequest as e$, type EquityPricesSubscription as e0, type Erc1155ApprovalForAllWorkflow as e1, type Erc1155ApprovalForAllWorkflowRequest as e2, type Erc20ApprovalWorkflow as e3, type Erc20ApprovalWorkflowRequest as e4, type Erc20TransferWorkflow as e5, type Erc20TransferWorkflowRequest as e6, type EstimateMarketBuyPriceRequest as e7, type EstimateMarketPriceRequest as e8, type EstimateMarketSellPriceRequest as e9, type FetchOrderScoringRequest as eA, type FetchOrdersScoringRequest as eB, type FetchPortfolioValueRequest as eC, type FetchPriceHistoryRequest as eD, type FetchPriceRequest as eE, type FetchPricesRequest as eF, type FetchPublicProfileRequest as eG, type FetchRelatedTagResourcesRequest as eH, type FetchRelatedTagsRequest as eI, type FetchSeriesRequest as eJ, type FetchSpreadRequest as eK, type FetchSpreadsRequest as eL, type FetchTagRequest as eM, FetchTickSizeError as eN, type FetchTickSizeRequest as eO, type FetchTotalEarningsForUserForDayRequest as eP, type FetchTradedMarketCountRequest as eQ, GaslessTransactionMetadataSchema as eR, type GaslessWorkflow as eS, type GaslessWorkflowRequest as eT, IsWalletDeployedError as eU, type IsWalletDeployedRequest as eV, type ListAccountTradesRequest as eW, type ListActivityRequest as eX, type ListBuilderLeaderboardRequest as eY, type ListBuilderTradesRequest as eZ, type ListBuilderVolumeRequest as e_, type EventForSubscriptionSpec as ea, type EventForSubscriptionSpecs as eb, FetchBalanceAllowanceError as ec, type FetchBalanceAllowanceRequest as ed, FetchBuilderFeeRatesError as ee, type FetchBuilderFeeRatesRequest as ef, type FetchCommentsByIdRequest as eg, type FetchEventLiveVolumeRequest as eh, type FetchEventRequest as ei, type FetchEventTagsRequest as ej, FetchExecuteParamsError as ek, type FetchExecuteParamsRequest as el, type FetchGaslessTransactionRequest as em, type FetchLastTradePriceRequest as en, type FetchLastTradePricesRequest as eo, FetchMarketInfoError as ep, type FetchMarketInfoRequest as eq, type FetchMarketRequest as er, type FetchMarketTagsRequest as es, type FetchMidpointRequest as et, type FetchMidpointsRequest as eu, FetchNegRiskError as ev, type FetchNegRiskRequest as ew, type FetchOrderBookRequest as ex, type FetchOrderBooksRequest as ey, type FetchOrderRequest as ez, type AccountIdentity as f, PreparePerpsDepositError as f$, type ListComboActivityRequest as f0, type ListComboMarketsRequest as f1, type ListComboPositionsRequest as f2, type ListCommentsByUserAddressRequest as f3, type ListCommentsRequest as f4, type ListCurrentRewardsRequest as f5, type ListEventsRequest as f6, ListMarketClarificationsError as f7, type ListMarketClarificationsRequest as f8, type ListMarketHoldersRequest as f9, type PerpsDepositWorkflowRequest as fA, type PerpsMarketDataEventType as fB, type PerpsMarketDataSubscription as fC, type PerpsStatisticsSubscription as fD, type PerpsStreamingCandleInterval as fE, type PerpsTickersSubscription as fF, type PerpsTradesSubscription as fG, type PostOrdersRequest as fH, PrepareCollateralReturnExecutionError as fI, PrepareErc1155ApprovalForAllError as fJ, type PrepareErc1155ApprovalForAllRequest as fK, PrepareErc20ApprovalError as fL, type PrepareErc20ApprovalRequest as fM, PrepareErc20TransferError as fN, type PrepareErc20TransferRequest as fO, PrepareGaslessTransactionError as fP, type PrepareGaslessTransactionRequest as fQ, type PrepareLimitOrderRequest as fR, type PrepareMarketBuyOrderRequest as fS, type PrepareMarketOrderRequest as fT, type PrepareMarketSellOrderRequest as fU, PrepareMergeComboPositionError as fV, type PrepareMergeComboPositionRequest as fW, PrepareMergeMarketPositionError as fX, type PrepareMergeMarketPositionRequest as fY, PrepareMergePositionsError as fZ, type PrepareMergePositionsRequest as f_, type ListMarketPositionsRequest as fa, type ListMarketRewardsRequest as fb, type ListMarketsRequest as fc, type ListOpenInterestRequest as fd, type ListOpenOrdersRequest as fe, type ListPositionsRequest as ff, type ListSeriesRequest as fg, type ListTagsRequest as fh, type ListTeamsRequest as fi, type ListTraderLeaderboardRequest as fj, type ListTradesRequest as fk, type ListUserEarningsAndMarketsConfigRequest as fl, type ListUserEarningsForDayRequest as fm, type MarketEventType as fn, type MarketSubscription as fo, MergeComboPositionError as fp, MergeMarketPositionError as fq, type MergePositionsWorkflow as fr, type MergePositionsWorkflowRequest as fs, type OrderPostingWorkflow as ft, type OrderWorkflow as fu, type OrderWorkflowRequest as fv, type PerpsBboSubscription as fw, type PerpsBookSubscription as fx, type PerpsCandlesSubscription as fy, type PerpsDepositWorkflow as fz, type AnalyticsActions as g, fetchEvent as g$, PrepareRedeemComboPositionError as g0, type PrepareRedeemComboPositionRequest as g1, type PrepareRedeemMarketPositionsByConditionIdRequest as g2, type PrepareRedeemMarketPositionsByMarketIdRequest as g3, PrepareRedeemMarketPositionsError as g4, type PrepareRedeemMarketPositionsRequest as g5, PrepareRedeemPositionsError as g6, type PrepareRedeemPositionsRequest as g7, PrepareSplitComboPositionError as g8, type PrepareSplitComboPositionRequest as g9, type TradingApprovalsWorkflow as gA, type TradingApprovalsWorkflowRequest as gB, UpdateBalanceAllowanceError as gC, type UpdateBalanceAllowanceRequest as gD, type UserEventType as gE, type UserSubscription as gF, WaitForGaslessTransactionError as gG, type WaitForOrderFillSettlementRequest as gH, acceptComboQuote as gI, approveErc1155ForAll as gJ, approveErc20 as gK, authorizeSessionKey as gL, cancelAll as gM, cancelMarketOrders as gN, cancelOrder as gO, cancelOrders as gP, deployDepositWallet as gQ, depositToPerps as gR, downloadAccountingSnapshot as gS, dropNotifications as gT, estimateMarketPrice as gU, executeCollateralReturnPlan as gV, fetchBalanceAllowance as gW, fetchBuilderFeeRates as gX, fetchBuilderVolume as gY, fetchClosedOnlyMode as gZ, fetchCommentsById as g_, PrepareSplitMarketPositionError as ga, type PrepareSplitMarketPositionRequest as gb, PrepareSplitPositionError as gc, type PrepareSplitPositionRequest as gd, PrepareTradingApprovalsError as ge, type PublicRealtimeEvent as gf, type PublicRealtimeTopic as gg, type PublicSubscriptionSpec as gh, type RedeemPositionsWorkflow as gi, type RedeemPositionsWorkflowRequest as gj, ResolveConditionByTokenError as gk, type ResolveConditionByTokenRequest as gl, type RfqConfirmationRejectedErrorOptions as gm, type RfqExecutionUpdateEvent as gn, type SearchRequest as go, type SearchResults as gp, type SecureRealtimeEvent as gq, type SecureRealtimeTopic as gr, type SecureSubscriptionSpec as gs, SplitComboPositionError as gt, SplitMarketPositionError as gu, type SplitPositionWorkflow as gv, type SplitPositionWorkflowRequest as gw, type SportsEventType as gx, type SportsSubscription as gy, type SubscriptionHandle as gz, ApproveErc1155ForAllError as h, listPositions as h$, fetchEventLiveVolume as h0, fetchEventTags as h1, fetchExecuteParams as h2, fetchLastTradePrice as h3, fetchLastTradePrices as h4, fetchMarket as h5, fetchMarketInfo as h6, fetchMarketTags as h7, fetchMidpoint as h8, fetchMidpoints as h9, fetchTickSize as hA, fetchTotalEarningsForUserForDay as hB, fetchTradedMarketCount as hC, fetchTransaction as hD, isWalletDeployed as hE, listAccountTrades as hF, listActivity as hG, listBuilderLeaderboard as hH, listBuilderTrades as hI, listClosedPositions as hJ, listComboActivity as hK, listComboMarkets as hL, listComboPositions as hM, listComments as hN, listCommentsByUserAddress as hO, listCurrentRewards as hP, listEvents as hQ, listMarketClarifications as hR, listMarketHolders as hS, listMarketPositions as hT, listMarketRewards as hU, listMarkets as hV, listOpenInterest as hW, listOpenOrders as hX, listPerpsCandles as hY, listPerpsFundingHistory as hZ, listPerpsTrades as h_, fetchNegRisk as ha, fetchNotifications as hb, fetchOrder as hc, fetchOrderBook as hd, fetchOrderBooks as he, fetchOrderScoring as hf, fetchOrdersScoring as hg, fetchPerpsBook as hh, fetchPerpsFees as hi, fetchPerpsInstruments as hj, fetchPerpsTicker as hk, fetchPerpsTickers as hl, fetchPortfolioValue as hm, fetchPrice as hn, fetchPriceHistory as ho, fetchPrices as hp, fetchPublicProfile as hq, fetchRelatedTagResources as hr, fetchRelatedTags as hs, fetchRewardPercentages as ht, fetchRfqStatus as hu, fetchSeries as hv, fetchSessionKeys as hw, fetchSpread as hx, fetchSpreads as hy, fetchTag as hz, ApproveErc20Error as i, listSeries as i0, listTags as i1, listTeams as i2, listTraderLeaderboard as i3, listTrades as i4, listUserEarningsAndMarketsConfig as i5, listUserEarningsForDay as i6, mergeComboPosition as i7, mergeMarketPosition as i8, mergePositions as i9, revokePerpsCredentials as iA, revokeSessionKey as iB, search as iC, setupTradingApprovals as iD, splitComboPosition as iE, splitMarketPosition as iF, splitPosition as iG, subscribe as iH, transferErc20 as iI, updateBalanceAllowance as iJ, waitForComboFill as iK, waitForOrderFillSettlement as iL, withdrawFromPerps as iM, openPerpsSession as ia, openRfqSession as ib, planCollateralReturn as ic, postOrder as id, postOrders as ie, prepareCollateralReturnExecution as ig, prepareErc1155ApprovalForAll as ih, prepareErc20Approval as ii, prepareErc20Transfer as ij, prepareGaslessTransaction as ik, prepareMergeComboPosition as il, prepareMergeMarketPosition as im, prepareMergePositions as io, preparePerpsDeposit as ip, prepareRedeemComboPosition as iq, prepareRedeemMarketPositions as ir, prepareRedeemPositions as is, prepareSplitComboPosition as it, prepareSplitMarketPosition as iu, prepareSplitPosition as iv, prepareTradingApprovals as iw, redeemPositions as ix, requestComboQuote as iy, resolveConditionByToken as iz, ArmPerpsAutoCancelError as j, type ArmPerpsAutoCancelRequest as k, AuthorizeSessionKeyError as l, type AuthorizeSessionKeyRequest as m, type AuthorizeSessionKeyResult as n, AutoCancelDailyLimitError as o, BasePublicClient as p, BaseSecureClient as q, type BeginAuthenticationRequest as r, type CancelAllPerpsOrdersRequest as s, CancelMarketOrdersError as t, CancelOrderError as u, CancelOrdersError as v, type CancelPerpsOrderRequest as w, type CancelPerpsOrdersRequest as x, CancelledSigningError as y, type Client as z };
|
|
9847
|
+
export { type EnvironmentContracts as $, type ApiKeyAuthorization as A, type BaseClient as B, CancelAllError as C, type ClientActions as D, type ClientDecorator as E, type ClobEndpoints as F, ComboPositionSort as G, type ComboPositionStatusFilter as H, type ComboQuote as I, type CombosEndpoints as J, ConnectionLostError as K, type ConnectionLostErrorOptions as L, type CreatePerpsSessionRequest as M, CreateSecureClientError as N, type CryptoPricesChainlinkTwapSubscription as O, type DataActions as P, DepositToPerpsError as Q, type DepositToPerpsRequest as R, type Signer as S, type TypedDataPayload as T, UserInputError as U, type DisarmPerpsAutoCancelRequest as V, type DiscoveryActions as W, DownloadAccountingSnapshotError as X, DropNotificationsError as Y, type EnvironmentConfig as Z, type EnvironmentConfigFork as _, type TypedData as a, ListMarketHoldersError as a$, EstimateMarketPriceError as a0, ExecuteCollateralReturnPlanError as a1, type ExecuteCollateralReturnPlanRequest as a2, FetchClosedOnlyModeError as a3, FetchCommentsByIdError as a4, FetchEventError as a5, FetchEventLiveVolumeError as a6, FetchEventTagsError as a7, FetchLastTradePriceError as a8, FetchLastTradePricesError as a9, FetchPublicProfileError as aA, FetchRelatedTagResourcesError as aB, FetchRelatedTagsError as aC, FetchRewardPercentagesError as aD, FetchRfqStatusError as aE, type FetchRfqStatusParams as aF, FetchSeriesError as aG, FetchSessionKeysError as aH, FetchSpreadError as aI, FetchSpreadsError as aJ, FetchTagError as aK, FetchTotalEarningsForUserForDayError as aL, FetchTradedMarketCountError as aM, InsufficientLiquidityError as aN, ListAccountTradesError as aO, ListActivityError as aP, ListBuilderLeaderboardError as aQ, ListBuilderTradesError as aR, ListBuilderVolumeError as aS, ListClosedPositionsError as aT, ListComboActivityError as aU, ListComboMarketsError as aV, ListComboPositionsError as aW, ListCommentsByUserAddressError as aX, ListCommentsError as aY, ListCurrentRewardsError as aZ, ListEventsError as a_, FetchMarketError as aa, FetchMarketTagsError as ab, FetchMidpointError as ac, FetchMidpointsError as ad, FetchNotificationsError as ae, FetchOrderBookError as af, FetchOrderBooksError as ag, FetchOrderError as ah, FetchOrderScoringError as ai, FetchOrdersScoringError as aj, type FetchPerpsAccountConfigRequest as ak, FetchPerpsBookError as al, type FetchPerpsBookRequest as am, FetchPerpsFeesError as an, FetchPerpsInstrumentsError as ao, type FetchPerpsInstrumentsRequest as ap, type FetchPerpsOpenOrdersRequest as aq, type FetchPerpsOrdersRequest as ar, FetchPerpsTickerError as as, type FetchPerpsTickerRequest as at, FetchPerpsTickersError as au, type FetchPerpsTickersRequest as av, FetchPortfolioValueError as aw, FetchPriceError as ax, FetchPriceHistoryError as ay, FetchPricesError as az, type TransactionCall as b, type PublicClient as b$, ListMarketPositionsError as b0, ListMarketRewardsError as b1, ListMarketsError as b2, ListOpenInterestError as b3, ListOpenOrdersError as b4, ListPerpsCandlesError as b5, type ListPerpsCandlesRequest as b6, type ListPerpsDepositsRequest as b7, type ListPerpsEquityHistoryRequest as b8, type ListPerpsFillsRequest as b9, type PerpsActions as bA, type PerpsBookDepth as bB, type PerpsEndpoints as bC, type PerpsOrderRequest as bD, type PerpsPlaceFokOrderRequest as bE, type PerpsPlaceGtcOrderRequest as bF, type PerpsPlaceIocOrderRequest as bG, type PerpsPlacedTpSlOrder as bH, type PerpsPlacedTpSlOrders as bI, type PerpsPositionTpSlTrigger as bJ, PerpsSession as bK, type PerpsSessionAccountError as bL, type PerpsSessionLifecycleError as bM, type PerpsSessionTradingError as bN, type PerpsTpSlTrigger as bO, type PlacePerpsOrderRequest as bP, type PlacePerpsOrderResult as bQ, type PlacePerpsOrderWithTpSlRequest as bR, type PlacePerpsOrderWithTpSlResult as bS, type PlacePerpsPositionTpSlRequest as bT, type PlacePerpsPositionTpSlResult as bU, PlanCollateralReturnError as bV, PostOrderError as bW, PostOrdersError as bX, type PostPerpsOrdersRequest as bY, type PublicAccountActions as bZ, type PublicActions as b_, ListPerpsFundingHistoryError as ba, type ListPerpsFundingHistoryRequest as bb, type ListPerpsFundingPaymentsRequest as bc, type ListPerpsNotificationsRequest as bd, type ListPerpsPnlHistoryRequest as be, ListPerpsTradesError as bf, type ListPerpsTradesRequest as bg, type ListPerpsWithdrawalsRequest as bh, ListPositionsError as bi, ListSeriesError as bj, ListTagsError as bk, ListTeamsError as bl, ListTraderLeaderboardError as bm, ListTradesError as bn, ListUserEarningsAndMarketsConfigError as bo, ListUserEarningsForDayError as bp, type MarkPerpsNotificationsReadRequest as bq, MergePositionsError as br, OpenPerpsSessionError as bs, type OpenPerpsSessionRequest as bt, OpenRfqSessionError as bu, type OrderAsset as bv, type OrderSignature as bw, type Page as bx, PageSizeSchema as by, type Paginated as bz, AcceptComboQuoteError as c, type SessionKey as c$, type PublicClientOptions as c0, type PublicPerpsActions as c1, type PublicRewardsActions as c2, type PublicSubscriptionsActions as c3, type RateLimitBucket as c4, RateLimitError as c5, type RateLimitErrorOptions as c6, type RateLimitUpdate as c7, type RateLimitUpdateListener as c8, RedeemPositionsError as c9, type RfqQuoteResponse as cA, type RfqQuoteSource as cB, RfqRequestRejectedError as cC, type RfqRequestRejectedErrorOptions as cD, type RfqSession as cE, type RfqStatusResult as cF, type RfqTradeEvent as cG, SearchError as cH, SearchSort as cI, type SecureAccountActions as cJ, type SecureActions as cK, type SecureClient as cL, type SecureClientOptions as cM, type SecureDownloadAccountingSnapshotRequest as cN, type SecureFetchPortfolioValueRequest as cO, type SecureFetchTradedMarketCountRequest as cP, type SecureListActivityRequest as cQ, type SecureListClosedPositionsRequest as cR, type SecureListComboActivityRequest as cS, type SecureListComboPositionsRequest as cT, type SecureListPositionsRequest as cU, type SecurePerpsActions as cV, type SecureRewardsActions as cW, type SecureRfqActions as cX, type SecureSubscriptionsActions as cY, type SecureTradingActions as cZ, type SecureWalletActions as c_, RequestComboQuoteError as ca, type RequestComboQuoteParams as cb, type RequestComboQuoteResult as cc, RequestRejectedError as cd, type RequestRejectedErrorOptions as ce, type RestEndpoint as cf, type ResumePerpsSessionRequest as cg, RevokePerpsCredentialsError as ch, type RevokePerpsCredentialsRequest as ci, RevokeSessionKeyError as cj, type RevokeSessionKeyRequest as ck, type RevokeSessionKeyResult as cl, type RfqCancelQuoteAck as cm, RfqCancelQuoteError as cn, RfqCancelQuoteRejectedError as co, type RfqCancelQuoteRejectedErrorOptions as cp, type RfqConfirmationAck as cq, RfqConfirmationError as cr, RfqConfirmationRejectedError as cs, type RfqConfirmationRequestEvent as ct, type RfqEvent as cu, RfqQuoteError as cv, type RfqQuoteReference as cw, RfqQuoteRejectedError as cx, type RfqQuoteRejectedErrorOptions as cy, type RfqQuoteRequestEvent as cz, type AcceptComboQuoteParams as d, type EquityPricesEventType as d$, type SessionKeyActions as d0, SetupGaslessWalletError as d1, SetupTradingApprovalsError as d2, type SignedOrder as d3, type SignerTransactionRequest as d4, SignerType as d5, SigningError as d6, SplitPositionError as d7, SubscribeError as d8, TimeoutError as d9, allActions as dA, analyticsActions as dB, createPublicClient as dC, createSecureClient as dD, dataActions as dE, discoveryActions as dF, forkEnvironmentConfig as dG, makeErrorGuard as dH, perpsActions as dI, production as dJ, rewardsActions as dK, rfqActions as dL, sessionKeyActions as dM, subscriptionsActions as dN, tradingActions as dO, walletActions as dP, type CancelMarketOrdersRequest as dQ, type CancelOrderRequest as dR, type CancelOrdersRequest as dS, type CollateralReturnExecutionWorkflow as dT, type CommentsEventType as dU, type CommentsSubscription as dV, type CryptoPricesEventType as dW, type CryptoPricesSubscription as dX, DeployDepositWalletError as dY, type DownloadAccountingSnapshotRequest as dZ, type DropNotificationsRequest as d_, TradingRestriction as da, TransactionFailedError as db, type TransactionHandle as dc, type TransactionOutcome as dd, TransferErc20Error as de, TransportError as df, type TypedDataDomain as dg, type TypedDataField as dh, UnexpectedResponseError as di, UpdatePerpsLeverageError as dj, type UpdatePerpsLeverageRequest as dk, UpdatePerpsMarginError as dl, type UpdatePerpsMarginRequest as dm, WaitForComboFillError as dn, type WaitForComboFillParams as dp, type WaitForComboFillResult as dq, WaitForOrderFillSettlementError as dr, WaitForTransactionError as ds, type WalletDerivationConfig as dt, type WebSocketCloseCode as du, type WebSocketEndpoint as dv, WebSocketKnownCloseCode as dw, WithdrawFromPerpsError as dx, type WithdrawFromPerpsRequest as dy, accountActions as dz, type AcceptComboQuoteResult as e, type ListClosedPositionsRequest as e$, type EquityPricesSubscription as e0, type Erc1155ApprovalForAllWorkflow as e1, type Erc1155ApprovalForAllWorkflowRequest as e2, type Erc20ApprovalWorkflow as e3, type Erc20ApprovalWorkflowRequest as e4, type Erc20TransferWorkflow as e5, type Erc20TransferWorkflowRequest as e6, type EstimateMarketBuyPriceRequest as e7, type EstimateMarketPriceRequest as e8, type EstimateMarketSellPriceRequest as e9, type FetchOrderScoringRequest as eA, type FetchOrdersScoringRequest as eB, type FetchPortfolioValueRequest as eC, type FetchPriceHistoryRequest as eD, type FetchPriceRequest as eE, type FetchPricesRequest as eF, type FetchPublicProfileRequest as eG, type FetchRelatedTagResourcesRequest as eH, type FetchRelatedTagsRequest as eI, type FetchSeriesRequest as eJ, type FetchSpreadRequest as eK, type FetchSpreadsRequest as eL, type FetchTagRequest as eM, FetchTickSizeError as eN, type FetchTickSizeRequest as eO, type FetchTotalEarningsForUserForDayRequest as eP, type FetchTradedMarketCountRequest as eQ, GaslessTransactionMetadataSchema as eR, type GaslessWorkflow as eS, type GaslessWorkflowRequest as eT, IsWalletDeployedError as eU, type IsWalletDeployedRequest as eV, type ListAccountTradesRequest as eW, type ListActivityRequest as eX, type ListBuilderLeaderboardRequest as eY, type ListBuilderTradesRequest as eZ, type ListBuilderVolumeRequest as e_, type EventForSubscriptionSpec as ea, type EventForSubscriptionSpecs as eb, FetchBalanceAllowanceError as ec, type FetchBalanceAllowanceRequest as ed, FetchBuilderFeeRatesError as ee, type FetchBuilderFeeRatesRequest as ef, type FetchCommentsByIdRequest as eg, type FetchEventLiveVolumeRequest as eh, type FetchEventRequest as ei, type FetchEventTagsRequest as ej, FetchExecuteParamsError as ek, type FetchExecuteParamsRequest as el, type FetchGaslessTransactionRequest as em, type FetchLastTradePriceRequest as en, type FetchLastTradePricesRequest as eo, FetchMarketInfoError as ep, type FetchMarketInfoRequest as eq, type FetchMarketRequest as er, type FetchMarketTagsRequest as es, type FetchMidpointRequest as et, type FetchMidpointsRequest as eu, FetchNegRiskError as ev, type FetchNegRiskRequest as ew, type FetchOrderBookRequest as ex, type FetchOrderBooksRequest as ey, type FetchOrderRequest as ez, type AccountIdentity as f, PreparePerpsDepositError as f$, type ListComboActivityRequest as f0, type ListComboMarketsRequest as f1, type ListComboPositionsRequest as f2, type ListCommentsByUserAddressRequest as f3, type ListCommentsRequest as f4, type ListCurrentRewardsRequest as f5, type ListEventsRequest as f6, ListMarketClarificationsError as f7, type ListMarketClarificationsRequest as f8, type ListMarketHoldersRequest as f9, type PerpsDepositWorkflowRequest as fA, type PerpsMarketDataEventType as fB, type PerpsMarketDataSubscription as fC, type PerpsStatisticsSubscription as fD, type PerpsStreamingCandleInterval as fE, type PerpsTickersSubscription as fF, type PerpsTradesSubscription as fG, type PostOrdersRequest as fH, PrepareCollateralReturnExecutionError as fI, PrepareErc1155ApprovalForAllError as fJ, type PrepareErc1155ApprovalForAllRequest as fK, PrepareErc20ApprovalError as fL, type PrepareErc20ApprovalRequest as fM, PrepareErc20TransferError as fN, type PrepareErc20TransferRequest as fO, PrepareGaslessTransactionError as fP, type PrepareGaslessTransactionRequest as fQ, type PrepareLimitOrderRequest as fR, type PrepareMarketBuyOrderRequest as fS, type PrepareMarketOrderRequest as fT, type PrepareMarketSellOrderRequest as fU, PrepareMergeComboPositionError as fV, type PrepareMergeComboPositionRequest as fW, PrepareMergeMarketPositionError as fX, type PrepareMergeMarketPositionRequest as fY, PrepareMergePositionsError as fZ, type PrepareMergePositionsRequest as f_, type ListMarketPositionsRequest as fa, type ListMarketRewardsRequest as fb, type ListMarketsRequest as fc, type ListOpenInterestRequest as fd, type ListOpenOrdersRequest as fe, type ListPositionsRequest as ff, type ListSeriesRequest as fg, type ListTagsRequest as fh, type ListTeamsRequest as fi, type ListTraderLeaderboardRequest as fj, type ListTradesRequest as fk, type ListUserEarningsAndMarketsConfigRequest as fl, type ListUserEarningsForDayRequest as fm, type MarketEventType as fn, type MarketSubscription as fo, MergeComboPositionError as fp, MergeMarketPositionError as fq, type MergePositionsWorkflow as fr, type MergePositionsWorkflowRequest as fs, type OrderPostingWorkflow as ft, type OrderWorkflow as fu, type OrderWorkflowRequest as fv, type PerpsBboSubscription as fw, type PerpsBookSubscription as fx, type PerpsCandlesSubscription as fy, type PerpsDepositWorkflow as fz, type AnalyticsActions as g, fetchCommentsById as g$, PrepareRedeemComboPositionError as g0, type PrepareRedeemComboPositionRequest as g1, type PrepareRedeemMarketPositionsByConditionIdRequest as g2, type PrepareRedeemMarketPositionsByMarketIdRequest as g3, PrepareRedeemMarketPositionsError as g4, type PrepareRedeemMarketPositionsRequest as g5, type PrepareRedeemPositionRequest as g6, PrepareRedeemPositionsError as g7, type PrepareRedeemPositionsRequest as g8, PrepareSplitComboPositionError as g9, type SubscriptionHandle as gA, type TradingApprovalsWorkflow as gB, type TradingApprovalsWorkflowRequest as gC, UpdateBalanceAllowanceError as gD, type UpdateBalanceAllowanceRequest as gE, type UserEventType as gF, type UserSubscription as gG, WaitForGaslessTransactionError as gH, type WaitForOrderFillSettlementRequest as gI, acceptComboQuote as gJ, approveErc1155ForAll as gK, approveErc20 as gL, authorizeSessionKey as gM, cancelAll as gN, cancelMarketOrders as gO, cancelOrder as gP, cancelOrders as gQ, deployDepositWallet as gR, depositToPerps as gS, downloadAccountingSnapshot as gT, dropNotifications as gU, estimateMarketPrice as gV, executeCollateralReturnPlan as gW, fetchBalanceAllowance as gX, fetchBuilderFeeRates as gY, fetchBuilderVolume as gZ, fetchClosedOnlyMode as g_, type PrepareSplitComboPositionRequest as ga, PrepareSplitMarketPositionError as gb, type PrepareSplitMarketPositionRequest as gc, PrepareSplitPositionError as gd, type PrepareSplitPositionRequest as ge, PrepareTradingApprovalsError as gf, type PublicRealtimeEvent as gg, type PublicRealtimeTopic as gh, type PublicSubscriptionSpec as gi, type RedeemPositionsWorkflow as gj, type RedeemPositionsWorkflowRequest as gk, ResolveConditionByTokenError as gl, type ResolveConditionByTokenRequest as gm, type RfqConfirmationRejectedErrorOptions as gn, type RfqExecutionUpdateEvent as go, type SearchRequest as gp, type SearchResults as gq, type SecureRealtimeEvent as gr, type SecureRealtimeTopic as gs, type SecureSubscriptionSpec as gt, SplitComboPositionError as gu, SplitMarketPositionError as gv, type SplitPositionWorkflow as gw, type SplitPositionWorkflowRequest as gx, type SportsEventType as gy, type SportsSubscription as gz, ApproveErc1155ForAllError as h, listPerpsTrades as h$, fetchEvent as h0, fetchEventLiveVolume as h1, fetchEventTags as h2, fetchExecuteParams as h3, fetchLastTradePrice as h4, fetchLastTradePrices as h5, fetchMarket as h6, fetchMarketInfo as h7, fetchMarketTags as h8, fetchMidpoint as h9, fetchTag as hA, fetchTickSize as hB, fetchTotalEarningsForUserForDay as hC, fetchTradedMarketCount as hD, fetchTransaction as hE, isWalletDeployed as hF, listAccountTrades as hG, listActivity as hH, listBuilderLeaderboard as hI, listBuilderTrades as hJ, listClosedPositions as hK, listComboActivity as hL, listComboMarkets as hM, listComboPositions as hN, listComments as hO, listCommentsByUserAddress as hP, listCurrentRewards as hQ, listEvents as hR, listMarketClarifications as hS, listMarketHolders as hT, listMarketPositions as hU, listMarketRewards as hV, listMarkets as hW, listOpenInterest as hX, listOpenOrders as hY, listPerpsCandles as hZ, listPerpsFundingHistory as h_, fetchMidpoints as ha, fetchNegRisk as hb, fetchNotifications as hc, fetchOrder as hd, fetchOrderBook as he, fetchOrderBooks as hf, fetchOrderScoring as hg, fetchOrdersScoring as hh, fetchPerpsBook as hi, fetchPerpsFees as hj, fetchPerpsInstruments as hk, fetchPerpsTicker as hl, fetchPerpsTickers as hm, fetchPortfolioValue as hn, fetchPrice as ho, fetchPriceHistory as hp, fetchPrices as hq, fetchPublicProfile as hr, fetchRelatedTagResources as hs, fetchRelatedTags as ht, fetchRewardPercentages as hu, fetchRfqStatus as hv, fetchSeries as hw, fetchSessionKeys as hx, fetchSpread as hy, fetchSpreads as hz, ApproveErc20Error as i, listPositions as i0, listSeries as i1, listTags as i2, listTeams as i3, listTraderLeaderboard as i4, listTrades as i5, listUserEarningsAndMarketsConfig as i6, listUserEarningsForDay as i7, mergeComboPosition as i8, mergeMarketPosition as i9, requestComboQuote as iA, resolveConditionByToken as iB, revokePerpsCredentials as iC, revokeSessionKey as iD, search as iE, setupTradingApprovals as iF, splitComboPosition as iG, splitMarketPosition as iH, splitPosition as iI, subscribe as iJ, transferErc20 as iK, updateBalanceAllowance as iL, waitForComboFill as iM, waitForOrderFillSettlement as iN, withdrawFromPerps as iO, mergePositions as ia, openPerpsSession as ib, openRfqSession as ic, planCollateralReturn as id, postOrder as ie, postOrders as ig, prepareCollateralReturnExecution as ih, prepareErc1155ApprovalForAll as ii, prepareErc20Approval as ij, prepareErc20Transfer as ik, prepareGaslessTransaction as il, prepareMergeComboPosition as im, prepareMergeMarketPosition as io, prepareMergePositions as ip, preparePerpsDeposit as iq, prepareRedeemComboPosition as ir, prepareRedeemMarketPositions as is, prepareRedeemPosition as it, prepareRedeemPositions as iu, prepareSplitComboPosition as iv, prepareSplitMarketPosition as iw, prepareSplitPosition as ix, prepareTradingApprovals as iy, redeemPositions as iz, ArmPerpsAutoCancelError as j, type ArmPerpsAutoCancelRequest as k, AuthorizeSessionKeyError as l, type AuthorizeSessionKeyRequest as m, type AuthorizeSessionKeyResult as n, AutoCancelDailyLimitError as o, BasePublicClient as p, BaseSecureClient as q, type BeginAuthenticationRequest as r, type CancelAllPerpsOrdersRequest as s, CancelMarketOrdersError as t, CancelOrderError as u, CancelOrdersError as v, type CancelPerpsOrderRequest as w, type CancelPerpsOrdersRequest as x, CancelledSigningError as y, type Client as z };
|