@polymarket/bindings 0.4.0 → 0.6.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/chunk-AY4D74DC.js +2 -0
- package/dist/chunk-AY4D74DC.js.map +1 -0
- package/dist/chunk-QX4CCP47.js +2 -0
- package/dist/chunk-QX4CCP47.js.map +1 -0
- package/dist/chunk-UDKFL2IM.js +2 -0
- package/dist/chunk-UDKFL2IM.js.map +1 -0
- package/dist/clob/index.d.ts +97 -87
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/combos/index.d.ts +432 -176
- package/dist/combos/index.js +1 -1
- package/dist/combos/index.js.map +1 -1
- package/dist/data/index.d.ts +48 -48
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +77 -67
- package/dist/gamma/index.js +1 -1
- package/dist/index.d.ts +14 -5
- package/dist/index.js +1 -1
- package/dist/{orders-CTqTKxTR.d.ts → orders-BDfNkzav.d.ts} +9 -1
- package/dist/perps/index.d.ts +73 -3
- package/dist/perps/index.js +1 -1
- package/dist/perps/index.js.map +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/subscriptions/index.d.ts +21 -11
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6TO35A2S.js +0 -2
- package/dist/chunk-6TO35A2S.js.map +0 -1
- package/dist/chunk-BVFKAX4O.js +0 -2
- package/dist/chunk-BVFKAX4O.js.map +0 -1
- package/dist/chunk-GJX3FYFG.js +0 -2
- package/dist/chunk-GJX3FYFG.js.map +0 -1
package/dist/gamma/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a,F,e,t,s,r}from'../chunk-
|
|
1
|
+
import {a,F,e,t,s,r}from'../chunk-UDKFL2IM.js';export{y as BestLineSchema,d as CategoryReferenceSchema,u as ChatSchema,g as ClobRewardsSchema,r as CollectionReferenceSchema,O as CommentMediaSchema,J as CommentPositionSchema,K as CommentProfileSchema,P as CommentSchema,v as EventCreatorSchema,x as EventExternalPartnerMappingSchema,c as EventReferenceSchema,F as EventSchema,b as FeeScheduleSchema,I as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,E as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,Q as ListCommentsResponseSchema,H as ListEventsKeysetResponseSchema,G as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,C as ListSportsMetadataResponseSchema,B as ListTeamsResponseSchema,k as MarketSchema,w as PartnerSchema,N as ReactionSchema,L as ReactionType,M as ReactionTypeSchema,f as RelatedMarketSchema,q as SeriesIdSchema,s as SeriesReferenceSchema,D as SportsMarketTypesResponseSchema,A as SportsMetadataSchema,e as TagReferenceSchema,z as TeamSchema,t as TemplateReferenceSchema,i as UmaResolutionStatus,p as hasBinaryOutcomes,o as normalizeMarket}from'../chunk-UDKFL2IM.js';import {A as A$1,qa,Oa,ea,Ga,oa,La}from'../chunk-AY4D74DC.js';export{La as TagIdSchema}from'../chunk-AY4D74DC.js';import {z as z$1}from'zod';var z=(a=>(a.Pending="pending",a.Queued="queued",a.Success="success",a.Failed="failed",a.Cancelled="cancelled",a))(z||{}),E=z$1.union([z$1.string(),z$1.number().int().transform(String)]).transform(A$1),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:oa.nullish(),questionId:Ga.nullish(),content:z$1.string().nullish(),state:z$1.enum(z).nullish(),clearBook:z$1.boolean().nullish(),notifyDiscord:z$1.boolean().nullish(),showInFrontend:z$1.boolean().nullish(),adapterAddress:ea.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Oa.nullish(),createdAt:qa.nullish(),queuedAt:qa.nullish(),scheduledFor:qa.nullish(),txTimestamp:qa.nullish()}),Re=z$1.array(O);var Ie=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var j=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),L=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:qa.nullish(),updatedAt:qa.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:qa.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:qa.nullish(),viewOnlyAcknowledgedAt:qa.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),Ee=z$1.object({createdAt:qa.nullish(),proxyWallet:ea.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(j).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i}));var k=z$1.object({id:La,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:i,...l})=>({...l,eventCount:i})),C=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),Ue=z$1.object({events:z$1.array(F).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(t).nullish()}),D=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:i,relatedTagID:l,...v})=>({...v,tagId:i,relatedTagId:l})),Be=z$1.array(u),Ye=z$1.array(D),Ne=z$1.array(u);var U=s.extend({events:z$1.array(F).nullish(),collections:z$1.array(r).nullish(),tags:z$1.array(u).nullish()}),Je=z$1.array(U);var A=(s=>(s[s.EOA=0]="EOA",s[s.POLY_PROXY=1]="POLY_PROXY",s[s.GNOSIS_SAFE=2]="GNOSIS_SAFE",s[s.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",s))(A||{}),Ze=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Re as ListMarketClarificationsResponseSchema,Ne as ListRelatedTagResourcesResponseSchema,Ye as ListRelatedTagsResponseSchema,Je as ListSeriesResponseSchema,Be as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ie as PaginationEnvelopeSchema,L as ProfileSchema,Ee as PublicProfileSchema,j as PublicProfileUserSchema,Ue as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,Ze as WalletTypeSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,9 @@ type ClobRewardId = Tagged<string, 'ClobRewardId'>;
|
|
|
43
43
|
type CommentId = Tagged<string, 'CommentId'>;
|
|
44
44
|
type ComboActivityId = Tagged<string, 'ComboActivityId'>;
|
|
45
45
|
type ComboConditionId = Tagged<HexString, 'ComboConditionId'>;
|
|
46
|
-
type
|
|
46
|
+
type ConditionId = Tagged<HexString, 'ConditionId'>;
|
|
47
|
+
/** @deprecated Use {@link ConditionId}. */
|
|
48
|
+
type CtfConditionId = ConditionId;
|
|
47
49
|
type CollectionId = Tagged<string, 'CollectionId'>;
|
|
48
50
|
type EventCreatorId = Tagged<string, 'EventCreatorId'>;
|
|
49
51
|
type EventExternalPartnerMappingId = Tagged<number, 'EventExternalPartnerMappingId'>;
|
|
@@ -83,7 +85,9 @@ declare function toChatId(value: string): ChatId;
|
|
|
83
85
|
declare function toClobRewardId(value: string): ClobRewardId;
|
|
84
86
|
declare function toCommentId(value: string): CommentId;
|
|
85
87
|
declare function toComboActivityId(value: string): ComboActivityId;
|
|
86
|
-
declare function
|
|
88
|
+
declare function toConditionId(value: string): ConditionId;
|
|
89
|
+
/** @deprecated Use {@link toConditionId}. */
|
|
90
|
+
declare const toCtfConditionId: typeof toConditionId;
|
|
87
91
|
declare function toComboConditionId(value: string): ComboConditionId;
|
|
88
92
|
declare function toCollectionId(value: string): CollectionId;
|
|
89
93
|
declare function toEventCreatorId(value: string): EventCreatorId;
|
|
@@ -122,8 +126,13 @@ declare const ClobRewardIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewa
|
|
|
122
126
|
declare const CommentIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
|
|
123
127
|
declare const ComboActivityIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboActivityId, string>>;
|
|
124
128
|
declare const ComboConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
125
|
-
declare const
|
|
126
|
-
|
|
129
|
+
declare const ConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
130
|
+
/** @deprecated Use {@link ConditionIdSchema}. */
|
|
131
|
+
declare const CtfConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
132
|
+
declare const OptionalConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
133
|
+
/** @deprecated Use {@link OptionalConditionIdSchema}. */
|
|
134
|
+
declare const OptionalCtfConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
135
|
+
declare const ConditionIdResponseSchema: z.ZodCustom<ConditionId, ConditionId>;
|
|
127
136
|
declare const EvmAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
128
137
|
declare const EpochMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
129
138
|
declare const EpochSecondsToMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
@@ -183,4 +192,4 @@ declare function emptyStringToNull(value: unknown): unknown;
|
|
|
183
192
|
*/
|
|
184
193
|
declare const OptionalDecimalStringSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
185
194
|
|
|
186
|
-
export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalDecimalStringSchema, OptionalEpochLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, type OrderId, OrderIdSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, TradeStatus, TradeStatusSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboActivityId, toComboConditionId, toCommentId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toOrderId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
|
|
195
|
+
export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdResponseSchema, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalDecimalStringSchema, OptionalEpochLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, type OrderId, OrderIdSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, TradeStatus, TradeStatusSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboActivityId, toComboConditionId, toCommentId, toConditionId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toOrderId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{V as ApiKeySchema,Ta as BaseUnitsSchema,W as BuilderCodeSchema,U as CategoryIdSchema,X as ClobRewardIdSchema,Z as ComboActivityIdSchema,_ as ComboConditionIdSchema,Y as CommentIdSchema,a as CommentParentEntityType,za as CommentParentEntityTypeSchema,da as ConditionIdResponseSchema,$ as ConditionIdSchema,aa as CtfConditionIdSchema,ia as DateLikeToIsoDateTimeStringSchema,Pa as DecimalStringSchema,Ra as DecimalishSchema,Qa as E6BigIntStringToDecimalStringSchema,ja as EpochLikeToIsoDateTimeStringSchema,fa as EpochMillisecondsSchema,ha as EpochMillisecondsStringSchema,ma as EpochMillisecondsToIsoDateTimeStringSchema,ga as EpochSecondsToMillisecondsSchema,oa as EventIdSchema,ea as EvmAddressSchema,ua as ISOCalendarDateSchema,ta as ISODateStringSchema,va as ImageOptimizationIdSchema,wa as InternalUserIdSchema,ra as IsoCalendarDateStringSchema,qa as IsoDateTimeStringSchema,xa as MarketIdSchema,sa as MixedDateTimeStringSchema,ya as NotificationIdSchema,ba as OptionalConditionIdSchema,ca as OptionalCtfConditionIdSchema,ka as OptionalDateLikeToIsoDateTimeStringSchema,Va as OptionalDecimalStringSchema,la as OptionalEpochLikeToIsoDateTimeStringSchema,na as OptionalEpochMillisecondsToIsoDateTimeStringSchema,Aa as OrderIdSchema,b as OrderSide,Ba as OrderSideSchema,c as OrderType,Ca as OrderTypeSchema,Ea as PaginationCursorSchema,Fa as PositionIdSchema,Sa as PositiveDecimalNumberSchema,Ga as QuestionIdSchema,Ha as ResolutionRequestIdSchema,Ia as RfqIdSchema,Ja as RfqQuoteIdSchema,Ka as RfqRequestorPublicIdSchema,La as TagIdSchema,pa as TickSizeValueSchema,Ma as TokenIdSchema,d as TradeStatus,Da as TradeStatusSchema,Na as TransactionIdSchema,Oa as TxHashSchema,Ua as emptyStringToNull,h as toApiKey,T as toBaseUnits,e as toBestLineId,f as toBuilderCode,i as toCategoryId,j as toChatId,k as toClobRewardId,q as toCollectionId,m as toComboActivityId,p as toComboConditionId,l as toCommentId,n as toConditionId,o as toCtfConditionId,S as toDecimalString,t as toEpochMilliseconds,r as toEventCreatorId,s as toEventExternalPartnerMappingId,u as toEventId,v as toImageOptimizationId,w as toInternalUserId,x as toIsoCalendarDateString,y as toIsoDateTimeString,A as toMarketId,z as toMixedDateTimeString,B as toNotificationId,C as toOrderId,E as toPaginationCursor,D as toPartnerId,F as toPositionId,G as toQuestionId,H as toResolutionRequestId,I as toRfqId,J as toRfqQuoteId,K as toRfqRequestorPublicId,L as toSeriesId,M as toSportId,N as toTagId,O as toTeamId,P as toTemplateId,R as toTokenId,Q as toTransactionId,g as toUuid}from'./chunk-AY4D74DC.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -26,6 +26,10 @@ type PerpsNotificationId = Tagged<string, 'PerpsNotificationId'>;
|
|
|
26
26
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
27
27
|
*/
|
|
28
28
|
type PerpsTradeId = Tagged<number, 'PerpsTradeId'>;
|
|
29
|
+
/**
|
|
30
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
31
|
+
*/
|
|
32
|
+
type PerpsFundingPaymentId = Tagged<number, 'PerpsFundingPaymentId'>;
|
|
29
33
|
/**
|
|
30
34
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
31
35
|
*/
|
|
@@ -62,6 +66,10 @@ declare const PerpsNotificationIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<Per
|
|
|
62
66
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
63
67
|
*/
|
|
64
68
|
declare const PerpsTradeIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
69
|
+
/**
|
|
70
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
71
|
+
*/
|
|
72
|
+
declare const PerpsFundingPaymentIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
|
|
65
73
|
/**
|
|
66
74
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
67
75
|
*/
|
|
@@ -1728,4 +1736,4 @@ declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1728
1736
|
coid?: string | undefined;
|
|
1729
1737
|
}>>;
|
|
1730
1738
|
|
|
1731
|
-
export {
|
|
1739
|
+
export { PerpsMarginType as $, PerpsCommandStatusSchema as A, type PerpsCredentials as B, PerpsDataResponseSchema as C, type PerpsDecimal as D, type PerpsDecimalInput as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsDecimalInputSchema as G, type PerpsDepositAmount as H, PerpsDepositStatusSchema as I, PerpsEntityIdSchema as J, type PerpsFundingInterval as K, ListPerpsFillsResponseSchema as L, MarkPerpsNotificationsReadResponseSchema as M, PerpsFundingIntervalSchema as N, PerpsFundingPaymentIdSchema as O, type PerpsInstrumentId as P, PerpsInstrumentCategorySchema as Q, PerpsInstrumentIdSchema as R, PerpsInstrumentTypeSchema as S, PerpsInternalTransferDirectionSchema as T, PerpsInternalTransferIdSchema as U, PerpsKlineInterval as V, PerpsKlineIntervalSchema as W, type PerpsLimitOrderCanceledNotification as X, PerpsLimitOrderCanceledNotificationSchema as Y, type PerpsLiquidationWarningNotification as Z, PerpsLiquidationWarningNotificationSchema as _, type PerpsEntityId as a, PerpsMarginTypeSchema as a0, type PerpsNotification as a1, type PerpsNotificationEntry as a2, PerpsNotificationEntrySchema as a3, type PerpsNotificationId as a4, PerpsNotificationIdSchema as a5, PerpsNotificationOrderType as a6, PerpsNotificationOrderTypeSchema as a7, PerpsNotificationSchema as a8, PerpsNotificationType as a9, PerpsTpSlOrderFieldsSchema as aA, PerpsTpSlScope as aB, PerpsTpSlScopeSchema as aC, PerpsTradeIdSchema as aD, type PerpsTxHash as aE, PerpsTxHashSchema as aF, type PerpsUpdateLeverageResult as aG, PerpsUpdateLeverageResultSchema as aH, type PerpsWithdrawalAmount as aI, PerpsWithdrawalIdSchema as aJ, type PerpsWithdrawalStatus as aK, PerpsWithdrawalStatusSchema as aL, decimalString as aM, perpsBaseUnits as aN, perpsDecimal as aO, PerpsNotificationTypeSchema as aa, type PerpsOrder as ab, type PerpsOrderId as ac, PerpsOrderIdSchema as ad, PerpsOrderSchema as ae, PerpsOrderStatus as af, PerpsOrderStatusSchema as ag, PerpsOrderUpdateSchema as ah, PerpsPnlInterval as ai, PerpsPnlIntervalSchema as aj, type PerpsPositionChangeNotification as ak, PerpsPositionChangeNotificationSchema as al, type PerpsPositionClosedNotification as am, PerpsPositionClosedNotificationSchema as an, type PerpsPositionLiquidatedNotification as ao, PerpsPositionLiquidatedNotificationSchema as ap, type PerpsPostOrderAck as aq, PerpsPostOrderAckSchema as ar, PerpsSideSchema as as, PerpsSortDirection as at, PerpsSortDirectionSchema as au, PerpsTimeInForce as av, PerpsTimeInForceSchema as aw, PerpsTpSlKind as ax, PerpsTpSlKindSchema as ay, type PerpsTpSlOrderFields as az, type PerpsFundingPaymentId as b, PerpsDepositStatus as c, type PerpsWithdrawalId as d, PerpsKnownWithdrawalStatus as e, type PerpsInternalTransferId as f, PerpsInternalTransferDirection as g, PerpsInstrumentType as h, PerpsInstrumentCategory as i, type PerpsTradeId as j, PerpsSide as k, FetchPerpsOrdersResponseSchema as l, FetchPerpsUnreadNotificationsCountResponseSchema as m, ListPerpsNotificationsResponseSchema as n, type PerpsAccountFill as o, PerpsAccountFillSchema as p, PerpsAccountFillUpdateSchema as q, PerpsAssetSchema as r, type PerpsCancelAllOrdersResponse as s, PerpsCancelAllOrdersResponseSchema as t, type PerpsCancelOrderResult as u, PerpsCancelOrderResultSchema as v, type PerpsClientOrderId as w, PerpsClientOrderIdSchema as x, type PerpsCommandAck as y, PerpsCommandAckSchema as z };
|
package/dist/perps/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
|
-
import { P as PerpsInstrumentId, a as PerpsEntityId, b as
|
|
3
|
-
export { F as FetchPerpsOpenOrdersResponseSchema,
|
|
2
|
+
import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsFundingPaymentId, c as PerpsDepositStatus, d as PerpsWithdrawalId, e as PerpsKnownWithdrawalStatus, f as PerpsInternalTransferId, g as PerpsInternalTransferDirection, h as PerpsInstrumentType, i as PerpsInstrumentCategory, j as PerpsTradeId, k as PerpsSide } from '../orders-BDfNkzav.js';
|
|
3
|
+
export { F as FetchPerpsOpenOrdersResponseSchema, l as FetchPerpsOrdersResponseSchema, m as FetchPerpsUnreadNotificationsCountResponseSchema, L as ListPerpsFillsResponseSchema, n as ListPerpsNotificationsResponseSchema, M as MarkPerpsNotificationsReadResponseSchema, o as PerpsAccountFill, p as PerpsAccountFillSchema, q as PerpsAccountFillUpdateSchema, r as PerpsAssetSchema, s as PerpsCancelAllOrdersResponse, t as PerpsCancelAllOrdersResponseSchema, u as PerpsCancelOrderResult, v as PerpsCancelOrderResultSchema, w as PerpsClientOrderId, x as PerpsClientOrderIdSchema, y as PerpsCommandAck, z as PerpsCommandAckSchema, A as PerpsCommandStatusSchema, B as PerpsCredentials, C as PerpsDataResponseSchema, D as PerpsDecimal, E as PerpsDecimalInput, G as PerpsDecimalInputSchema, H as PerpsDepositAmount, I as PerpsDepositStatusSchema, J as PerpsEntityIdSchema, K as PerpsFundingInterval, N as PerpsFundingIntervalSchema, O as PerpsFundingPaymentIdSchema, Q as PerpsInstrumentCategorySchema, R as PerpsInstrumentIdSchema, S as PerpsInstrumentTypeSchema, T as PerpsInternalTransferDirectionSchema, U as PerpsInternalTransferIdSchema, V as PerpsKlineInterval, W as PerpsKlineIntervalSchema, X as PerpsLimitOrderCanceledNotification, Y as PerpsLimitOrderCanceledNotificationSchema, Z as PerpsLiquidationWarningNotification, _ as PerpsLiquidationWarningNotificationSchema, $ as PerpsMarginType, a0 as PerpsMarginTypeSchema, a1 as PerpsNotification, a2 as PerpsNotificationEntry, a3 as PerpsNotificationEntrySchema, a4 as PerpsNotificationId, a5 as PerpsNotificationIdSchema, a6 as PerpsNotificationOrderType, a7 as PerpsNotificationOrderTypeSchema, a8 as PerpsNotificationSchema, a9 as PerpsNotificationType, aa as PerpsNotificationTypeSchema, ab as PerpsOrder, ac as PerpsOrderId, ad as PerpsOrderIdSchema, ae as PerpsOrderSchema, af as PerpsOrderStatus, ag as PerpsOrderStatusSchema, ah as PerpsOrderUpdateSchema, ai as PerpsPnlInterval, aj as PerpsPnlIntervalSchema, ak as PerpsPositionChangeNotification, al as PerpsPositionChangeNotificationSchema, am as PerpsPositionClosedNotification, an as PerpsPositionClosedNotificationSchema, ao as PerpsPositionLiquidatedNotification, ap as PerpsPositionLiquidatedNotificationSchema, aq as PerpsPostOrderAck, ar as PerpsPostOrderAckSchema, as as PerpsSideSchema, at as PerpsSortDirection, au as PerpsSortDirectionSchema, av as PerpsTimeInForce, aw as PerpsTimeInForceSchema, ax as PerpsTpSlKind, ay as PerpsTpSlKindSchema, az as PerpsTpSlOrderFields, aA as PerpsTpSlOrderFieldsSchema, aB as PerpsTpSlScope, aC as PerpsTpSlScopeSchema, aD as PerpsTradeIdSchema, aE as PerpsTxHash, aF as PerpsTxHashSchema, aG as PerpsUpdateLeverageResult, aH as PerpsUpdateLeverageResultSchema, aI as PerpsWithdrawalAmount, aJ as PerpsWithdrawalIdSchema, aK as PerpsWithdrawalStatus, aL as PerpsWithdrawalStatusSchema, aM as decimalString, aN as perpsBaseUnits, aO as perpsDecimal } from '../orders-BDfNkzav.js';
|
|
4
4
|
import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
@@ -389,6 +389,7 @@ declare const FetchPerpsPortfolioResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
389
389
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
390
390
|
*/
|
|
391
391
|
declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
|
|
392
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
|
|
392
393
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
393
394
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
394
395
|
funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -396,6 +397,7 @@ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
396
397
|
funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
397
398
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
398
399
|
}, z.core.$strip>, z.ZodTransform<{
|
|
400
|
+
id: PerpsFundingPaymentId;
|
|
399
401
|
instrumentId: PerpsInstrumentId;
|
|
400
402
|
size: DecimalString;
|
|
401
403
|
fundingRate: DecimalString;
|
|
@@ -403,6 +405,7 @@ declare const PerpsAccountFundingPaymentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
403
405
|
funding: DecimalString;
|
|
404
406
|
timestamp: EpochMilliseconds;
|
|
405
407
|
}, {
|
|
408
|
+
id: PerpsFundingPaymentId;
|
|
406
409
|
instrument_id: PerpsInstrumentId;
|
|
407
410
|
size: DecimalString;
|
|
408
411
|
funding_rate: DecimalString;
|
|
@@ -419,6 +422,7 @@ type PerpsAccountFundingPayment = z.infer<typeof PerpsAccountFundingPaymentSchem
|
|
|
419
422
|
*/
|
|
420
423
|
declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
|
|
421
424
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
425
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
|
|
422
426
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
423
427
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
424
428
|
funding_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -426,6 +430,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
|
|
|
426
430
|
funding: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
427
431
|
timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
428
432
|
}, z.core.$strip>, z.ZodTransform<{
|
|
433
|
+
id: PerpsFundingPaymentId;
|
|
429
434
|
instrumentId: PerpsInstrumentId;
|
|
430
435
|
size: DecimalString;
|
|
431
436
|
fundingRate: DecimalString;
|
|
@@ -433,6 +438,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
|
|
|
433
438
|
funding: DecimalString;
|
|
434
439
|
timestamp: EpochMilliseconds;
|
|
435
440
|
}, {
|
|
441
|
+
id: PerpsFundingPaymentId;
|
|
436
442
|
instrument_id: PerpsInstrumentId;
|
|
437
443
|
size: DecimalString;
|
|
438
444
|
funding_rate: DecimalString;
|
|
@@ -446,6 +452,7 @@ declare const ListPerpsFundingPaymentsResponseSchema: z.ZodObject<{
|
|
|
446
452
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
447
453
|
*/
|
|
448
454
|
declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
455
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
|
|
449
456
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
450
457
|
sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
451
458
|
fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -453,6 +460,7 @@ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
453
460
|
fua: z.ZodString;
|
|
454
461
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
455
462
|
}, z.core.$strip>, z.ZodTransform<{
|
|
463
|
+
id: PerpsFundingPaymentId;
|
|
456
464
|
instrumentId: PerpsInstrumentId;
|
|
457
465
|
size: DecimalString;
|
|
458
466
|
fundingRate: DecimalString;
|
|
@@ -460,6 +468,7 @@ declare const PerpsAccountFundingPaymentEntrySchema: z.ZodPipe<z.ZodObject<{
|
|
|
460
468
|
funding: DecimalString;
|
|
461
469
|
timestamp: EpochMilliseconds;
|
|
462
470
|
}, {
|
|
471
|
+
id: PerpsFundingPaymentId;
|
|
463
472
|
iid: PerpsInstrumentId;
|
|
464
473
|
sz: DecimalString;
|
|
465
474
|
fr: DecimalString;
|
|
@@ -615,6 +624,67 @@ declare const PerpsDeleteProxyResponseSchema: z.ZodObject<{
|
|
|
615
624
|
error: z.ZodOptional<z.ZodString>;
|
|
616
625
|
}, z.core.$strip>;
|
|
617
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Acknowledgement for a Perps auto-cancel update. `deadline` echoes the armed
|
|
629
|
+
* cancellation time in Unix milliseconds, or `null` when the schedule was
|
|
630
|
+
* disarmed.
|
|
631
|
+
*
|
|
632
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
633
|
+
*/
|
|
634
|
+
declare const PerpsAutoCancelResponseSchema: z.ZodObject<{
|
|
635
|
+
status: z.ZodLiteral<"ok">;
|
|
636
|
+
deadline: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds | null, number>>;
|
|
637
|
+
}, z.core.$strip>;
|
|
638
|
+
/**
|
|
639
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
640
|
+
*/
|
|
641
|
+
type PerpsAutoCancelResponse = z.infer<typeof PerpsAutoCancelResponseSchema>;
|
|
642
|
+
/**
|
|
643
|
+
* Current auto-cancel state for an account. `deadline` is `null` when no
|
|
644
|
+
* schedule is armed.
|
|
645
|
+
*
|
|
646
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
647
|
+
*/
|
|
648
|
+
declare const PerpsAutoCancelStatusSchema: z.ZodPipe<z.ZodObject<{
|
|
649
|
+
deadline: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds | null, number>>;
|
|
650
|
+
triggered: z.ZodNumber;
|
|
651
|
+
daily_limit: z.ZodNumber;
|
|
652
|
+
next_reset: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
653
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
654
|
+
deadline: EpochMilliseconds | null;
|
|
655
|
+
triggered: number;
|
|
656
|
+
dailyLimit: number;
|
|
657
|
+
nextReset: EpochMilliseconds;
|
|
658
|
+
}, {
|
|
659
|
+
deadline: EpochMilliseconds | null;
|
|
660
|
+
triggered: number;
|
|
661
|
+
daily_limit: number;
|
|
662
|
+
next_reset: EpochMilliseconds;
|
|
663
|
+
}>>;
|
|
664
|
+
/**
|
|
665
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
666
|
+
*/
|
|
667
|
+
type PerpsAutoCancelStatus = z.infer<typeof PerpsAutoCancelStatusSchema>;
|
|
668
|
+
/**
|
|
669
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
670
|
+
*/
|
|
671
|
+
declare const FetchPerpsAutoCancelStatusResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
672
|
+
deadline: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds | null, number>>;
|
|
673
|
+
triggered: z.ZodNumber;
|
|
674
|
+
daily_limit: z.ZodNumber;
|
|
675
|
+
next_reset: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
676
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
677
|
+
deadline: EpochMilliseconds | null;
|
|
678
|
+
triggered: number;
|
|
679
|
+
dailyLimit: number;
|
|
680
|
+
nextReset: EpochMilliseconds;
|
|
681
|
+
}, {
|
|
682
|
+
deadline: EpochMilliseconds | null;
|
|
683
|
+
triggered: number;
|
|
684
|
+
daily_limit: number;
|
|
685
|
+
next_reset: EpochMilliseconds;
|
|
686
|
+
}>>;
|
|
687
|
+
|
|
618
688
|
/**
|
|
619
689
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
620
690
|
*/
|
|
@@ -1754,4 +1824,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
|
|
|
1754
1824
|
more: z.ZodBoolean;
|
|
1755
1825
|
}, z.core.$strip>;
|
|
1756
1826
|
|
|
1757
|
-
export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeeTier, PerpsFeeTierSchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, PerpsKnownWithdrawalStatus, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalUpdateSchema };
|
|
1827
|
+
export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsAutoCancelStatusResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsAutoCancelResponse, PerpsAutoCancelResponseSchema, type PerpsAutoCancelStatus, PerpsAutoCancelStatusSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeeTier, PerpsFeeTierSchema, type PerpsFeesInfo, PerpsFeesInfoSchema, PerpsFundingPaymentId, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, PerpsKnownWithdrawalStatus, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalUpdateSchema };
|
package/dist/perps/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{$ as FetchPerpsAccountConfigResponseSchema,S as FetchPerpsAccountStatsResponseSchema,Q as FetchPerpsBalancesResponseSchema,Oa as FetchPerpsCandlesResponseSchema,Na as FetchPerpsFeesResponseSchema,Ja as FetchPerpsFundingHistoryResponseSchema,sa as FetchPerpsInstrumentsResponseSchema,ob as FetchPerpsOpenOrdersResponseSchema,nb as FetchPerpsOrdersResponseSchema,W as FetchPerpsPortfolioResponseSchema,ya as FetchPerpsStatisticsResponseSchema,ua as FetchPerpsTickersResponseSchema,Ha as FetchPerpsTradesResponseSchema,bb as FetchPerpsUnreadNotificationsCountResponseSchema,ja as ListPerpsDepositsResponseSchema,ba as ListPerpsEquityHistoryResponseSchema,rb as ListPerpsFillsResponseSchema,Y as ListPerpsFundingPaymentsResponseSchema,ab as ListPerpsNotificationsResponseSchema,da as ListPerpsPnlHistoryResponseSchema,ma as ListPerpsWithdrawalsResponseSchema,cb as MarkPerpsNotificationsReadResponseSchema,_ as PerpsAccountConfigSchema,qb as PerpsAccountFillSchema,sb as PerpsAccountFillUpdateSchema,Z as PerpsAccountFundingPaymentEntrySchema,X as PerpsAccountFundingPaymentSchema,R as PerpsAccountStatsSchema,J as PerpsAssetSchema,P as PerpsBalanceSchema,Da as PerpsBboSchema,Ea as PerpsBboUpdateSchema,Aa as PerpsBookLevelSchema,Ba as PerpsBookSchema,Ca as PerpsBookUpdateSchema,kb as PerpsCancelAllOrdersResponseSchema,jb as PerpsCancelOrderResultSchema,wa as PerpsCandleSchema,c as PerpsClientOrderIdSchema,hb as PerpsCommandAckSchema,gb as PerpsCommandStatusSchema,ga as PerpsCreateProxyResponseSchema,fa as PerpsCredentialsResponseSchema,L as PerpsDataResponseSchema,k as PerpsDecimalInputSchema,ha as PerpsDeleteProxyResponseSchema,ia as PerpsDepositSchema,r as PerpsDepositStatus,D as PerpsDepositStatusSchema,ka as PerpsDepositUpdateSchema,i as PerpsEntityIdSchema,aa as PerpsEquityPointSchema,La as PerpsFeeScheduleEntrySchema,Ka as PerpsFeeTierSchema,Ma as PerpsFeesInfoSchema,j as PerpsFundingIntervalSchema,f as PerpsFundingPaymentIdSchema,Ia as PerpsFundingRateSchema,m as PerpsInstrumentCategory,y as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,ra as PerpsInstrumentSchema,l as PerpsInstrumentType,x as PerpsInstrumentTypeSchema,t as PerpsInternalTransferDirection,F as PerpsInternalTransferDirectionSchema,h as PerpsInternalTransferIdSchema,pa as PerpsInternalTransferSchema,u as PerpsKlineInterval,G as PerpsKlineIntervalSchema,s as PerpsKnownWithdrawalStatus,Xa as PerpsLimitOrderCanceledNotificationSchema,Ya as PerpsLiquidationWarningNotificationSchema,U as PerpsMarginSummarySchema,Ta as PerpsMarginType,Ua as PerpsMarginTypeSchema,$a as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,Ra as PerpsNotificationOrderType,Sa as PerpsNotificationOrderTypeSchema,_a as PerpsNotificationSchema,Pa as PerpsNotificationType,Qa as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,mb as PerpsOrderSchema,db as PerpsOrderStatus,fb as PerpsOrderStatusSchema,pb as PerpsOrderUpdateSchema,v as PerpsPnlInterval,H as PerpsPnlIntervalSchema,ca as PerpsPnlPointSchema,T as PerpsPortfolioPositionSchema,V as PerpsPortfolioSchema,Va as PerpsPositionChangeNotificationSchema,Wa as PerpsPositionClosedNotificationSchema,Za as PerpsPositionLiquidatedNotificationSchema,ib as PerpsPostOrderAckSchema,ea as PerpsProxyKeySchema,Fa as PerpsPublicTradeSchema,Ga as PerpsPublicTradeUpdateSchema,qa as PerpsRiskTierSchema,n as PerpsSide,z as PerpsSideSchema,w as PerpsSortDirection,I as PerpsSortDirectionSchema,xa as PerpsStatisticSchema,za as PerpsStatisticUpdateSchema,va as PerpsTickerEntrySchema,ta as PerpsTickerSchema,o as PerpsTimeInForce,A as PerpsTimeInForceSchema,p as PerpsTpSlKind,B as PerpsTpSlKindSchema,eb as PerpsTpSlOrderFieldsSchema,q as PerpsTpSlScope,C as PerpsTpSlScopeSchema,e as PerpsTradeIdSchema,K as PerpsTxHashSchema,lb as PerpsUpdateLeverageResultSchema,na as PerpsWithdrawResponseSchema,g as PerpsWithdrawalIdSchema,la as PerpsWithdrawalSchema,E as PerpsWithdrawalStatusSchema,oa as PerpsWithdrawalUpdateSchema,O as decimalString,N as perpsBaseUnits,M as perpsDecimal}from'../chunk-QX4CCP47.js';import {t,fa}from'../chunk-AY4D74DC.js';import {z}from'zod';var n=z.number().int().transform(e=>e===0?null:t(e)),jt=z.object({status:z.literal("ok"),deadline:n}),i=z.object({deadline:n,triggered:z.number().int().nonnegative(),daily_limit:z.number().int().nonnegative(),next_reset:fa}).transform(e=>({deadline:e.deadline,triggered:e.triggered,dailyLimit:e.daily_limit,nextReset:e.next_reset})),Et=i;export{Et as FetchPerpsAutoCancelStatusResponseSchema,jt as PerpsAutoCancelResponseSchema,i as PerpsAutoCancelStatusSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/perps/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../src/perps/auto-cancel.ts"],"names":["AutoCancelDeadlineSchema","z","value","toEpochMilliseconds","PerpsAutoCancelResponseSchema","PerpsAutoCancelStatusSchema","EpochMillisecondsSchema","status","FetchPerpsAutoCancelStatusResponseSchema"],"mappings":"8gIAIA,IAAMA,EAA2BC,CAAAA,CAC9B,MAAA,EAAO,CACP,GAAA,GACA,SAAA,CAAWC,CAAAA,EAAWA,CAAAA,GAAU,CAAA,CAAI,KAAOC,CAAAA,CAAoBD,CAAK,CAAE,CAAA,CAS5DE,GAAgCH,CAAAA,CAAE,MAAA,CAAO,CACpD,MAAA,CAAQA,EAAE,OAAA,CAAQ,IAAI,CAAA,CACtB,QAAA,CAAUD,CACZ,CAAC,CAAA,CAeYK,CAAAA,CAA8BJ,CAAAA,CACxC,OAAO,CACN,QAAA,CAAUD,CAAAA,CACV,SAAA,CAAWC,EAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,aAAY,CACxC,WAAA,CAAaA,CAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,WAAA,EAAY,CAC1C,WAAYK,EACd,CAAC,CAAA,CACA,SAAA,CAAWC,IAAY,CACtB,QAAA,CAAUA,CAAAA,CAAO,QAAA,CACjB,UAAWA,CAAAA,CAAO,SAAA,CAClB,UAAA,CAAYA,CAAAA,CAAO,YACnB,SAAA,CAAWA,CAAAA,CAAO,UACpB,CAAA,CAAE,EAUSC,EAAAA,CACXH","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport { EpochMillisecondsSchema, toEpochMilliseconds } from '../shared';\n\n// The API reports an unarmed schedule as `deadline: 0`.\nconst AutoCancelDeadlineSchema = z\n .number()\n .int()\n .transform((value) => (value === 0 ? null : toEpochMilliseconds(value)));\n\n/**\n * Acknowledgement for a Perps auto-cancel update. `deadline` echoes the armed\n * cancellation time in Unix milliseconds, or `null` when the schedule was\n * disarmed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const PerpsAutoCancelResponseSchema = z.object({\n status: z.literal('ok'),\n deadline: AutoCancelDeadlineSchema,\n});\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport type PerpsAutoCancelResponse = z.infer<\n typeof PerpsAutoCancelResponseSchema\n>;\n\n/**\n * Current auto-cancel state for an account. `deadline` is `null` when no\n * schedule is armed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const PerpsAutoCancelStatusSchema = z\n .object({\n deadline: AutoCancelDeadlineSchema,\n triggered: z.number().int().nonnegative(),\n daily_limit: z.number().int().nonnegative(),\n next_reset: EpochMillisecondsSchema,\n })\n .transform((status) => ({\n deadline: status.deadline,\n triggered: status.triggered,\n dailyLimit: status.daily_limit,\n nextReset: status.next_reset,\n }));\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport type PerpsAutoCancelStatus = z.infer<typeof PerpsAutoCancelStatusSchema>;\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const FetchPerpsAutoCancelStatusResponseSchema =\n PerpsAutoCancelStatusSchema;\n"]}
|
package/dist/relayer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ea,Na,Oa}from'../chunk-AY4D74DC.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:ea.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:ea.optional(),paymentToken:ea.optional(),refundReceiver:ea.optional(),relay:ea.optional(),relayHub:ea.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:ea,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:ea,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:ea,signature:z.string().min(1),signatureParams:y,to:ea,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:ea,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:ea}),S=z.object({depositWalletParams:x,from:ea,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:ea,type:z.literal("WALLET")}),g=z.object({from:ea,metadata:z.string().optional(),to:ea,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Oa.nullish().transform(a=>a??null),transactionID:Na}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Oa]).transform(a=>a===""?null:a),transaction_id:Na}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TokenId, DecimalString, EpochMilliseconds,
|
|
1
|
+
import { TokenId, DecimalString, EpochMilliseconds, ConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { P as PerpsInstrumentId,
|
|
3
|
+
import { P as PerpsInstrumentId, V as PerpsKlineInterval, c as PerpsDepositStatus, j as PerpsTradeId, ac as PerpsOrderId, k as PerpsSide, b as PerpsFundingPaymentId, a4 as PerpsNotificationId, a9 as PerpsNotificationType, a6 as PerpsNotificationOrderType, $ as PerpsMarginType, av as PerpsTimeInForce, af as PerpsOrderStatus, ax as PerpsTpSlKind, aB as PerpsTpSlScope, d as PerpsWithdrawalId, e as PerpsKnownWithdrawalStatus } from '../orders-BDfNkzav.js';
|
|
4
4
|
import * as _polymarket_types from '@polymarket/types';
|
|
5
5
|
import { R as ReactionType } from '../comment-C-jBbhp7.js';
|
|
6
6
|
|
|
@@ -277,7 +277,7 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
277
277
|
}, z.core.$strip>>>;
|
|
278
278
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
279
279
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
280
|
-
condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
280
|
+
condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
281
281
|
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
282
282
|
clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
283
283
|
sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -300,7 +300,7 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
300
300
|
title?: string | null | undefined;
|
|
301
301
|
description?: string | null | undefined;
|
|
302
302
|
} | null | undefined;
|
|
303
|
-
conditionId:
|
|
303
|
+
conditionId: ConditionId | null | undefined;
|
|
304
304
|
clobTokenIds: string[] | null | undefined;
|
|
305
305
|
sportsMarketType: string | null | undefined;
|
|
306
306
|
gameStartTime: IsoDateTimeString | null | undefined;
|
|
@@ -338,7 +338,7 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
338
338
|
} | null | undefined;
|
|
339
339
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
340
340
|
tags?: string[] | null | undefined;
|
|
341
|
-
condition_id?:
|
|
341
|
+
condition_id?: ConditionId | null | undefined;
|
|
342
342
|
active?: boolean | null | undefined;
|
|
343
343
|
clob_token_ids?: string[] | null | undefined;
|
|
344
344
|
sports_market_type?: string | null | undefined;
|
|
@@ -858,7 +858,7 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
|
|
|
858
858
|
}, z.core.$strip>>>;
|
|
859
859
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
860
860
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
861
|
-
condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
861
|
+
condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
862
862
|
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
863
863
|
clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
864
864
|
sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -881,7 +881,7 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
|
|
|
881
881
|
title?: string | null | undefined;
|
|
882
882
|
description?: string | null | undefined;
|
|
883
883
|
} | null | undefined;
|
|
884
|
-
conditionId:
|
|
884
|
+
conditionId: ConditionId | null | undefined;
|
|
885
885
|
clobTokenIds: string[] | null | undefined;
|
|
886
886
|
sportsMarketType: string | null | undefined;
|
|
887
887
|
gameStartTime: IsoDateTimeString | null | undefined;
|
|
@@ -919,7 +919,7 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
|
|
|
919
919
|
} | null | undefined;
|
|
920
920
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
921
921
|
tags?: string[] | null | undefined;
|
|
922
|
-
condition_id?:
|
|
922
|
+
condition_id?: ConditionId | null | undefined;
|
|
923
923
|
active?: boolean | null | undefined;
|
|
924
924
|
clob_token_ids?: string[] | null | undefined;
|
|
925
925
|
sports_market_type?: string | null | undefined;
|
|
@@ -1200,7 +1200,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1200
1200
|
}, z.core.$strip>>>;
|
|
1201
1201
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1202
1202
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1203
|
-
condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
1203
|
+
condition_id: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
|
|
1204
1204
|
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1205
1205
|
clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1206
1206
|
sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1223,7 +1223,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1223
1223
|
title?: string | null | undefined;
|
|
1224
1224
|
description?: string | null | undefined;
|
|
1225
1225
|
} | null | undefined;
|
|
1226
|
-
conditionId:
|
|
1226
|
+
conditionId: ConditionId | null | undefined;
|
|
1227
1227
|
clobTokenIds: string[] | null | undefined;
|
|
1228
1228
|
sportsMarketType: string | null | undefined;
|
|
1229
1229
|
gameStartTime: IsoDateTimeString | null | undefined;
|
|
@@ -1261,7 +1261,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1261
1261
|
} | null | undefined;
|
|
1262
1262
|
timestamp?: EpochMilliseconds | null | undefined;
|
|
1263
1263
|
tags?: string[] | null | undefined;
|
|
1264
|
-
condition_id?:
|
|
1264
|
+
condition_id?: ConditionId | null | undefined;
|
|
1265
1265
|
active?: boolean | null | undefined;
|
|
1266
1266
|
clob_token_ids?: string[] | null | undefined;
|
|
1267
1267
|
sports_market_type?: string | null | undefined;
|
|
@@ -2775,6 +2775,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2775
2775
|
sq: z.ZodNumber;
|
|
2776
2776
|
ch: z.ZodLiteral<"funding">;
|
|
2777
2777
|
data: z.ZodPipe<z.ZodObject<{
|
|
2778
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
|
|
2778
2779
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
2779
2780
|
sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2780
2781
|
fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -2782,6 +2783,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2782
2783
|
fua: z.ZodString;
|
|
2783
2784
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2784
2785
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2786
|
+
id: PerpsFundingPaymentId;
|
|
2785
2787
|
instrumentId: PerpsInstrumentId;
|
|
2786
2788
|
size: DecimalString;
|
|
2787
2789
|
fundingRate: DecimalString;
|
|
@@ -2789,6 +2791,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2789
2791
|
funding: DecimalString;
|
|
2790
2792
|
timestamp: EpochMilliseconds;
|
|
2791
2793
|
}, {
|
|
2794
|
+
id: PerpsFundingPaymentId;
|
|
2792
2795
|
iid: PerpsInstrumentId;
|
|
2793
2796
|
sz: DecimalString;
|
|
2794
2797
|
fr: DecimalString;
|
|
@@ -2802,6 +2805,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2802
2805
|
timestamp: number;
|
|
2803
2806
|
sequence: number;
|
|
2804
2807
|
payload: {
|
|
2808
|
+
id: PerpsFundingPaymentId;
|
|
2805
2809
|
instrumentId: PerpsInstrumentId;
|
|
2806
2810
|
size: DecimalString;
|
|
2807
2811
|
fundingRate: DecimalString;
|
|
@@ -2814,6 +2818,7 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2814
2818
|
sq: number;
|
|
2815
2819
|
ch: "funding";
|
|
2816
2820
|
data: {
|
|
2821
|
+
id: PerpsFundingPaymentId;
|
|
2817
2822
|
instrumentId: PerpsInstrumentId;
|
|
2818
2823
|
size: DecimalString;
|
|
2819
2824
|
fundingRate: DecimalString;
|
|
@@ -3732,6 +3737,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3732
3737
|
sq: z.ZodNumber;
|
|
3733
3738
|
ch: z.ZodLiteral<"funding">;
|
|
3734
3739
|
data: z.ZodPipe<z.ZodObject<{
|
|
3740
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsFundingPaymentId, number>>;
|
|
3735
3741
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
3736
3742
|
sz: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3737
3743
|
fr: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -3739,6 +3745,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3739
3745
|
fua: z.ZodString;
|
|
3740
3746
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3741
3747
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3748
|
+
id: PerpsFundingPaymentId;
|
|
3742
3749
|
instrumentId: PerpsInstrumentId;
|
|
3743
3750
|
size: DecimalString;
|
|
3744
3751
|
fundingRate: DecimalString;
|
|
@@ -3746,6 +3753,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3746
3753
|
funding: DecimalString;
|
|
3747
3754
|
timestamp: EpochMilliseconds;
|
|
3748
3755
|
}, {
|
|
3756
|
+
id: PerpsFundingPaymentId;
|
|
3749
3757
|
iid: PerpsInstrumentId;
|
|
3750
3758
|
sz: DecimalString;
|
|
3751
3759
|
fr: DecimalString;
|
|
@@ -3759,6 +3767,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3759
3767
|
timestamp: number;
|
|
3760
3768
|
sequence: number;
|
|
3761
3769
|
payload: {
|
|
3770
|
+
id: PerpsFundingPaymentId;
|
|
3762
3771
|
instrumentId: PerpsInstrumentId;
|
|
3763
3772
|
size: DecimalString;
|
|
3764
3773
|
fundingRate: DecimalString;
|
|
@@ -3771,6 +3780,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3771
3780
|
sq: number;
|
|
3772
3781
|
ch: "funding";
|
|
3773
3782
|
data: {
|
|
3783
|
+
id: PerpsFundingPaymentId;
|
|
3774
3784
|
instrumentId: PerpsInstrumentId;
|
|
3775
3785
|
size: DecimalString;
|
|
3776
3786
|
fundingRate: DecimalString;
|