@crypticdot/defituna-api 1.8.1 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2323,34 +2323,24 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
2323
2323
  estimatedAmountIn: bigint;
2324
2324
  maxAmountIn: bigint;
2325
2325
  }>;
2326
- declare const ShortPoolPriceUpdate$1: z.ZodObject<{
2327
- price: z.ZodNumber;
2328
- uiPrice: z.ZodNumber;
2329
- sqrtPrice: z.ZodBigInt;
2330
- }, "strip", z.ZodTypeAny, {
2331
- price: number;
2332
- sqrtPrice: bigint;
2333
- uiPrice: number;
2334
- }, {
2335
- price: number;
2336
- sqrtPrice: bigint;
2337
- uiPrice: number;
2338
- }>;
2339
2326
  declare const StateSnapshot$1: z.ZodObject<{
2340
2327
  slot: z.ZodBigInt;
2341
2328
  blockTime: z.ZodDate;
2342
2329
  poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
2330
+ pool: z.ZodString;
2343
2331
  price: z.ZodNumber;
2344
- uiPrice: z.ZodNumber;
2345
2332
  sqrtPrice: z.ZodBigInt;
2333
+ time: z.ZodDate;
2346
2334
  }, "strip", z.ZodTypeAny, {
2347
2335
  price: number;
2336
+ time: Date;
2348
2337
  sqrtPrice: bigint;
2349
- uiPrice: number;
2338
+ pool: string;
2350
2339
  }, {
2351
2340
  price: number;
2341
+ time: Date;
2352
2342
  sqrtPrice: bigint;
2353
- uiPrice: number;
2343
+ pool: string;
2354
2344
  }>>>;
2355
2345
  tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2356
2346
  address: z.ZodString;
@@ -2945,8 +2935,9 @@ declare const StateSnapshot$1: z.ZodObject<{
2945
2935
  blockTime: Date;
2946
2936
  poolPrices?: Map<string, {
2947
2937
  price: number;
2938
+ time: Date;
2948
2939
  sqrtPrice: bigint;
2949
- uiPrice: number;
2940
+ pool: string;
2950
2941
  }> | undefined;
2951
2942
  tunaSpotPositions?: {
2952
2943
  total: {
@@ -3103,8 +3094,9 @@ declare const StateSnapshot$1: z.ZodObject<{
3103
3094
  blockTime: Date;
3104
3095
  poolPrices?: Map<string, {
3105
3096
  price: number;
3097
+ time: Date;
3106
3098
  sqrtPrice: bigint;
3107
- uiPrice: number;
3099
+ pool: string;
3108
3100
  }> | undefined;
3109
3101
  tunaSpotPositions?: {
3110
3102
  total: {
@@ -3288,7 +3280,7 @@ declare const UpdateStreamSubscriptionResult: z.ZodObject<{
3288
3280
  }, {
3289
3281
  status: string;
3290
3282
  }>;
3291
- declare const OrderBookNotificationMeta: z.ZodObject<{
3283
+ declare const OrderBookNotificationMeta$1: z.ZodObject<{
3292
3284
  pool: z.ZodString;
3293
3285
  priceStep: z.ZodNumber;
3294
3286
  inverted: z.ZodBoolean;
@@ -7173,17 +7165,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
7173
7165
  slot: z.ZodBigInt;
7174
7166
  blockTime: z.ZodDate;
7175
7167
  poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
7168
+ pool: z.ZodString;
7176
7169
  price: z.ZodNumber;
7177
- uiPrice: z.ZodNumber;
7178
7170
  sqrtPrice: z.ZodBigInt;
7171
+ time: z.ZodDate;
7179
7172
  }, "strip", z.ZodTypeAny, {
7180
7173
  price: number;
7174
+ time: Date;
7181
7175
  sqrtPrice: bigint;
7182
- uiPrice: number;
7176
+ pool: string;
7183
7177
  }, {
7184
7178
  price: number;
7179
+ time: Date;
7185
7180
  sqrtPrice: bigint;
7186
- uiPrice: number;
7181
+ pool: string;
7187
7182
  }>>>;
7188
7183
  tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7189
7184
  address: z.ZodString;
@@ -7778,8 +7773,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
7778
7773
  blockTime: Date;
7779
7774
  poolPrices?: Map<string, {
7780
7775
  price: number;
7776
+ time: Date;
7781
7777
  sqrtPrice: bigint;
7782
- uiPrice: number;
7778
+ pool: string;
7783
7779
  }> | undefined;
7784
7780
  tunaSpotPositions?: {
7785
7781
  total: {
@@ -7936,8 +7932,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
7936
7932
  blockTime: Date;
7937
7933
  poolPrices?: Map<string, {
7938
7934
  price: number;
7935
+ time: Date;
7939
7936
  sqrtPrice: bigint;
7940
- uiPrice: number;
7937
+ pool: string;
7941
7938
  }> | undefined;
7942
7939
  tunaSpotPositions?: {
7943
7940
  total: {
@@ -8100,17 +8097,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
8100
8097
  slot: z.ZodBigInt;
8101
8098
  blockTime: z.ZodDate;
8102
8099
  poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
8100
+ pool: z.ZodString;
8103
8101
  price: z.ZodNumber;
8104
- uiPrice: z.ZodNumber;
8105
8102
  sqrtPrice: z.ZodBigInt;
8103
+ time: z.ZodDate;
8106
8104
  }, "strip", z.ZodTypeAny, {
8107
8105
  price: number;
8106
+ time: Date;
8108
8107
  sqrtPrice: bigint;
8109
- uiPrice: number;
8108
+ pool: string;
8110
8109
  }, {
8111
8110
  price: number;
8111
+ time: Date;
8112
8112
  sqrtPrice: bigint;
8113
- uiPrice: number;
8113
+ pool: string;
8114
8114
  }>>>;
8115
8115
  tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8116
8116
  address: z.ZodString;
@@ -8705,8 +8705,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
8705
8705
  blockTime: Date;
8706
8706
  poolPrices?: Map<string, {
8707
8707
  price: number;
8708
+ time: Date;
8708
8709
  sqrtPrice: bigint;
8709
- uiPrice: number;
8710
+ pool: string;
8710
8711
  }> | undefined;
8711
8712
  tunaSpotPositions?: {
8712
8713
  total: {
@@ -8863,8 +8864,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
8863
8864
  blockTime: Date;
8864
8865
  poolPrices?: Map<string, {
8865
8866
  price: number;
8867
+ time: Date;
8866
8868
  sqrtPrice: bigint;
8867
- uiPrice: number;
8869
+ pool: string;
8868
8870
  }> | undefined;
8869
8871
  tunaSpotPositions?: {
8870
8872
  total: {
@@ -9028,8 +9030,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9028
9030
  blockTime: Date;
9029
9031
  poolPrices?: Map<string, {
9030
9032
  price: number;
9033
+ time: Date;
9031
9034
  sqrtPrice: bigint;
9032
- uiPrice: number;
9035
+ pool: string;
9033
9036
  }> | undefined;
9034
9037
  tunaSpotPositions?: {
9035
9038
  total: {
@@ -9193,8 +9196,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9193
9196
  blockTime: Date;
9194
9197
  poolPrices?: Map<string, {
9195
9198
  price: number;
9199
+ time: Date;
9196
9200
  sqrtPrice: bigint;
9197
- uiPrice: number;
9201
+ pool: string;
9198
9202
  }> | undefined;
9199
9203
  tunaSpotPositions?: {
9200
9204
  total: {
@@ -9358,8 +9362,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9358
9362
  blockTime: Date;
9359
9363
  poolPrices?: Map<string, {
9360
9364
  price: number;
9365
+ time: Date;
9361
9366
  sqrtPrice: bigint;
9362
- uiPrice: number;
9367
+ pool: string;
9363
9368
  }> | undefined;
9364
9369
  tunaSpotPositions?: {
9365
9370
  total: {
@@ -9523,8 +9528,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9523
9528
  blockTime: Date;
9524
9529
  poolPrices?: Map<string, {
9525
9530
  price: number;
9531
+ time: Date;
9526
9532
  sqrtPrice: bigint;
9527
- uiPrice: number;
9533
+ pool: string;
9528
9534
  }> | undefined;
9529
9535
  tunaSpotPositions?: {
9530
9536
  total: {
@@ -9690,7 +9696,6 @@ declare const schemas_NotificationActionSchema: typeof NotificationActionSchema;
9690
9696
  declare const schemas_NotificationEntity: typeof NotificationEntity;
9691
9697
  declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
9692
9698
  declare const schemas_OrderBookNotification: typeof OrderBookNotification;
9693
- declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
9694
9699
  declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
9695
9700
  declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
9696
9701
  declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
@@ -9722,9 +9727,10 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
9722
9727
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
9723
9728
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
9724
9729
  declare namespace schemas {
9725
- export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, ShortPoolPriceUpdate$1 as ShortPoolPriceUpdate, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9730
+ export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9726
9731
  }
9727
9732
 
9733
+ type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
9728
9734
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
9729
9735
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
9730
9736
  type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
@@ -9749,6 +9755,7 @@ type PoolTicks = z.infer<typeof PoolTicks$1>;
9749
9755
  type PoolSwap = z.infer<typeof PoolSwap$1>;
9750
9756
  type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
9751
9757
  type OrderBook = z.infer<typeof OrderBook$1>;
9758
+ type OrderBookNotificationMeta = z.infer<typeof OrderBookNotificationMeta$1>;
9752
9759
  type LendingPosition = z.infer<typeof LendingPosition$1>;
9753
9760
  type TunaPosition = z.infer<typeof TunaPosition$1>;
9754
9761
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
@@ -9772,7 +9779,6 @@ type DecreaseSpotPositionQuote = z.infer<typeof DecreaseSpotPositionQuote$1>;
9772
9779
  type CloseSpotPositionQuote = z.infer<typeof CloseSpotPositionQuote$1>;
9773
9780
  type TradableAmount = z.infer<typeof TradableAmount$1>;
9774
9781
  type PoolPriceUpdate = z.infer<typeof PoolPriceUpdate$1>;
9775
- type ShortPoolPriceUpdate = z.infer<typeof ShortPoolPriceUpdate$1>;
9776
9782
  type StateSnapshot = z.infer<typeof StateSnapshot$1>;
9777
9783
  type SubscriptionPayload = {
9778
9784
  pools?: {
@@ -9982,4 +9988,4 @@ declare class TunaApiClient {
9982
9988
  private appendUrlSearchParams;
9983
9989
  }
9984
9990
 
9985
- export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type ShortPoolPriceUpdate, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
9991
+ export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type NotificationEntityType, type OrderBook, type OrderBookEntry, type OrderBookNotificationMeta, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, PoolSubscriptionTopic, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, WalletSubscriptionTopic, type WalletSubscriptionTopicType, schemas };
package/dist/index.d.ts CHANGED
@@ -2323,34 +2323,24 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
2323
2323
  estimatedAmountIn: bigint;
2324
2324
  maxAmountIn: bigint;
2325
2325
  }>;
2326
- declare const ShortPoolPriceUpdate$1: z.ZodObject<{
2327
- price: z.ZodNumber;
2328
- uiPrice: z.ZodNumber;
2329
- sqrtPrice: z.ZodBigInt;
2330
- }, "strip", z.ZodTypeAny, {
2331
- price: number;
2332
- sqrtPrice: bigint;
2333
- uiPrice: number;
2334
- }, {
2335
- price: number;
2336
- sqrtPrice: bigint;
2337
- uiPrice: number;
2338
- }>;
2339
2326
  declare const StateSnapshot$1: z.ZodObject<{
2340
2327
  slot: z.ZodBigInt;
2341
2328
  blockTime: z.ZodDate;
2342
2329
  poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
2330
+ pool: z.ZodString;
2343
2331
  price: z.ZodNumber;
2344
- uiPrice: z.ZodNumber;
2345
2332
  sqrtPrice: z.ZodBigInt;
2333
+ time: z.ZodDate;
2346
2334
  }, "strip", z.ZodTypeAny, {
2347
2335
  price: number;
2336
+ time: Date;
2348
2337
  sqrtPrice: bigint;
2349
- uiPrice: number;
2338
+ pool: string;
2350
2339
  }, {
2351
2340
  price: number;
2341
+ time: Date;
2352
2342
  sqrtPrice: bigint;
2353
- uiPrice: number;
2343
+ pool: string;
2354
2344
  }>>>;
2355
2345
  tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2356
2346
  address: z.ZodString;
@@ -2945,8 +2935,9 @@ declare const StateSnapshot$1: z.ZodObject<{
2945
2935
  blockTime: Date;
2946
2936
  poolPrices?: Map<string, {
2947
2937
  price: number;
2938
+ time: Date;
2948
2939
  sqrtPrice: bigint;
2949
- uiPrice: number;
2940
+ pool: string;
2950
2941
  }> | undefined;
2951
2942
  tunaSpotPositions?: {
2952
2943
  total: {
@@ -3103,8 +3094,9 @@ declare const StateSnapshot$1: z.ZodObject<{
3103
3094
  blockTime: Date;
3104
3095
  poolPrices?: Map<string, {
3105
3096
  price: number;
3097
+ time: Date;
3106
3098
  sqrtPrice: bigint;
3107
- uiPrice: number;
3099
+ pool: string;
3108
3100
  }> | undefined;
3109
3101
  tunaSpotPositions?: {
3110
3102
  total: {
@@ -3288,7 +3280,7 @@ declare const UpdateStreamSubscriptionResult: z.ZodObject<{
3288
3280
  }, {
3289
3281
  status: string;
3290
3282
  }>;
3291
- declare const OrderBookNotificationMeta: z.ZodObject<{
3283
+ declare const OrderBookNotificationMeta$1: z.ZodObject<{
3292
3284
  pool: z.ZodString;
3293
3285
  priceStep: z.ZodNumber;
3294
3286
  inverted: z.ZodBoolean;
@@ -7173,17 +7165,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
7173
7165
  slot: z.ZodBigInt;
7174
7166
  blockTime: z.ZodDate;
7175
7167
  poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
7168
+ pool: z.ZodString;
7176
7169
  price: z.ZodNumber;
7177
- uiPrice: z.ZodNumber;
7178
7170
  sqrtPrice: z.ZodBigInt;
7171
+ time: z.ZodDate;
7179
7172
  }, "strip", z.ZodTypeAny, {
7180
7173
  price: number;
7174
+ time: Date;
7181
7175
  sqrtPrice: bigint;
7182
- uiPrice: number;
7176
+ pool: string;
7183
7177
  }, {
7184
7178
  price: number;
7179
+ time: Date;
7185
7180
  sqrtPrice: bigint;
7186
- uiPrice: number;
7181
+ pool: string;
7187
7182
  }>>>;
7188
7183
  tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7189
7184
  address: z.ZodString;
@@ -7778,8 +7773,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
7778
7773
  blockTime: Date;
7779
7774
  poolPrices?: Map<string, {
7780
7775
  price: number;
7776
+ time: Date;
7781
7777
  sqrtPrice: bigint;
7782
- uiPrice: number;
7778
+ pool: string;
7783
7779
  }> | undefined;
7784
7780
  tunaSpotPositions?: {
7785
7781
  total: {
@@ -7936,8 +7932,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
7936
7932
  blockTime: Date;
7937
7933
  poolPrices?: Map<string, {
7938
7934
  price: number;
7935
+ time: Date;
7939
7936
  sqrtPrice: bigint;
7940
- uiPrice: number;
7937
+ pool: string;
7941
7938
  }> | undefined;
7942
7939
  tunaSpotPositions?: {
7943
7940
  total: {
@@ -8100,17 +8097,20 @@ declare const StateSnapshotNotification: z.ZodObject<{
8100
8097
  slot: z.ZodBigInt;
8101
8098
  blockTime: z.ZodDate;
8102
8099
  poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
8100
+ pool: z.ZodString;
8103
8101
  price: z.ZodNumber;
8104
- uiPrice: z.ZodNumber;
8105
8102
  sqrtPrice: z.ZodBigInt;
8103
+ time: z.ZodDate;
8106
8104
  }, "strip", z.ZodTypeAny, {
8107
8105
  price: number;
8106
+ time: Date;
8108
8107
  sqrtPrice: bigint;
8109
- uiPrice: number;
8108
+ pool: string;
8110
8109
  }, {
8111
8110
  price: number;
8111
+ time: Date;
8112
8112
  sqrtPrice: bigint;
8113
- uiPrice: number;
8113
+ pool: string;
8114
8114
  }>>>;
8115
8115
  tunaSpotPositions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8116
8116
  address: z.ZodString;
@@ -8705,8 +8705,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
8705
8705
  blockTime: Date;
8706
8706
  poolPrices?: Map<string, {
8707
8707
  price: number;
8708
+ time: Date;
8708
8709
  sqrtPrice: bigint;
8709
- uiPrice: number;
8710
+ pool: string;
8710
8711
  }> | undefined;
8711
8712
  tunaSpotPositions?: {
8712
8713
  total: {
@@ -8863,8 +8864,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
8863
8864
  blockTime: Date;
8864
8865
  poolPrices?: Map<string, {
8865
8866
  price: number;
8867
+ time: Date;
8866
8868
  sqrtPrice: bigint;
8867
- uiPrice: number;
8869
+ pool: string;
8868
8870
  }> | undefined;
8869
8871
  tunaSpotPositions?: {
8870
8872
  total: {
@@ -9028,8 +9030,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9028
9030
  blockTime: Date;
9029
9031
  poolPrices?: Map<string, {
9030
9032
  price: number;
9033
+ time: Date;
9031
9034
  sqrtPrice: bigint;
9032
- uiPrice: number;
9035
+ pool: string;
9033
9036
  }> | undefined;
9034
9037
  tunaSpotPositions?: {
9035
9038
  total: {
@@ -9193,8 +9196,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9193
9196
  blockTime: Date;
9194
9197
  poolPrices?: Map<string, {
9195
9198
  price: number;
9199
+ time: Date;
9196
9200
  sqrtPrice: bigint;
9197
- uiPrice: number;
9201
+ pool: string;
9198
9202
  }> | undefined;
9199
9203
  tunaSpotPositions?: {
9200
9204
  total: {
@@ -9358,8 +9362,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9358
9362
  blockTime: Date;
9359
9363
  poolPrices?: Map<string, {
9360
9364
  price: number;
9365
+ time: Date;
9361
9366
  sqrtPrice: bigint;
9362
- uiPrice: number;
9367
+ pool: string;
9363
9368
  }> | undefined;
9364
9369
  tunaSpotPositions?: {
9365
9370
  total: {
@@ -9523,8 +9528,9 @@ declare const StateSnapshotNotification: z.ZodObject<{
9523
9528
  blockTime: Date;
9524
9529
  poolPrices?: Map<string, {
9525
9530
  price: number;
9531
+ time: Date;
9526
9532
  sqrtPrice: bigint;
9527
- uiPrice: number;
9533
+ pool: string;
9528
9534
  }> | undefined;
9529
9535
  tunaSpotPositions?: {
9530
9536
  total: {
@@ -9690,7 +9696,6 @@ declare const schemas_NotificationActionSchema: typeof NotificationActionSchema;
9690
9696
  declare const schemas_NotificationEntity: typeof NotificationEntity;
9691
9697
  declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
9692
9698
  declare const schemas_OrderBookNotification: typeof OrderBookNotification;
9693
- declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
9694
9699
  declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
9695
9700
  declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
9696
9701
  declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
@@ -9722,9 +9727,10 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
9722
9727
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
9723
9728
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
9724
9729
  declare namespace schemas {
9725
- export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, ShortPoolPriceUpdate$1 as ShortPoolPriceUpdate, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9730
+ export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9726
9731
  }
9727
9732
 
9733
+ type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
9728
9734
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
9729
9735
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
9730
9736
  type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
@@ -9749,6 +9755,7 @@ type PoolTicks = z.infer<typeof PoolTicks$1>;
9749
9755
  type PoolSwap = z.infer<typeof PoolSwap$1>;
9750
9756
  type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
9751
9757
  type OrderBook = z.infer<typeof OrderBook$1>;
9758
+ type OrderBookNotificationMeta = z.infer<typeof OrderBookNotificationMeta$1>;
9752
9759
  type LendingPosition = z.infer<typeof LendingPosition$1>;
9753
9760
  type TunaPosition = z.infer<typeof TunaPosition$1>;
9754
9761
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
@@ -9772,7 +9779,6 @@ type DecreaseSpotPositionQuote = z.infer<typeof DecreaseSpotPositionQuote$1>;
9772
9779
  type CloseSpotPositionQuote = z.infer<typeof CloseSpotPositionQuote$1>;
9773
9780
  type TradableAmount = z.infer<typeof TradableAmount$1>;
9774
9781
  type PoolPriceUpdate = z.infer<typeof PoolPriceUpdate$1>;
9775
- type ShortPoolPriceUpdate = z.infer<typeof ShortPoolPriceUpdate$1>;
9776
9782
  type StateSnapshot = z.infer<typeof StateSnapshot$1>;
9777
9783
  type SubscriptionPayload = {
9778
9784
  pools?: {
@@ -9982,4 +9988,4 @@ declare class TunaApiClient {
9982
9988
  private appendUrlSearchParams;
9983
9989
  }
9984
9990
 
9985
- export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type ShortPoolPriceUpdate, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
9991
+ export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type NotificationEntityType, type OrderBook, type OrderBookEntry, type OrderBookNotificationMeta, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, PoolSubscriptionTopic, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, WalletSubscriptionTopic, type WalletSubscriptionTopicType, schemas };
package/dist/index.js CHANGED
@@ -32,9 +32,11 @@ __export(index_exports, {
32
32
  NotificationAction: () => NotificationAction,
33
33
  NotificationEntity: () => NotificationEntity,
34
34
  PoolProvider: () => PoolProvider,
35
+ PoolSubscriptionTopic: () => PoolSubscriptionTopic,
35
36
  ProviderFilter: () => ProviderFilter,
36
37
  TunaApiClient: () => TunaApiClient,
37
38
  TunaPositionState: () => TunaPositionState,
39
+ WalletSubscriptionTopic: () => WalletSubscriptionTopic,
38
40
  schemas: () => schemas_exports
39
41
  });
40
42
  module.exports = __toCommonJS(index_exports);
@@ -88,7 +90,6 @@ __export(schemas_exports, {
88
90
  PoolSwap: () => PoolSwap,
89
91
  PoolSwapNotification: () => PoolSwapNotification,
90
92
  PoolTicks: () => PoolTicks,
91
- ShortPoolPriceUpdate: () => ShortPoolPriceUpdate,
92
93
  StakingLeaderboardPage: () => StakingLeaderboardPage,
93
94
  StakingLeaderboardPosition: () => StakingLeaderboardPosition,
94
95
  StakingPosition: () => StakingPosition,
@@ -717,15 +718,10 @@ var SwapQuoteByOutput = import_zod.z.object({
717
718
  /** Price impact in percents */
718
719
  priceImpact: import_zod.z.number()
719
720
  });
720
- var ShortPoolPriceUpdate = import_zod.z.object({
721
- price: import_zod.z.number(),
722
- uiPrice: import_zod.z.number(),
723
- sqrtPrice: import_zod.z.coerce.bigint()
724
- });
725
721
  var StateSnapshot = import_zod.z.object({
726
722
  slot: import_zod.z.coerce.bigint(),
727
723
  blockTime: import_zod.z.coerce.date(),
728
- poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), ShortPoolPriceUpdate)),
724
+ poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), PoolPriceUpdate)),
729
725
  tunaSpotPositions: import_zod.z.optional(import_zod.z.array(TunaSpotPosition)),
730
726
  tunaLpPositions: import_zod.z.optional(import_zod.z.array(TunaPosition)),
731
727
  fusionLimitOrders: import_zod.z.optional(import_zod.z.array(LimitOrder))
@@ -1233,8 +1229,10 @@ var TunaApiClient = class {
1233
1229
  NotificationAction,
1234
1230
  NotificationEntity,
1235
1231
  PoolProvider,
1232
+ PoolSubscriptionTopic,
1236
1233
  ProviderFilter,
1237
1234
  TunaApiClient,
1238
1235
  TunaPositionState,
1236
+ WalletSubscriptionTopic,
1239
1237
  schemas
1240
1238
  });
package/dist/index.mjs CHANGED
@@ -53,7 +53,6 @@ __export(schemas_exports, {
53
53
  PoolSwap: () => PoolSwap,
54
54
  PoolSwapNotification: () => PoolSwapNotification,
55
55
  PoolTicks: () => PoolTicks,
56
- ShortPoolPriceUpdate: () => ShortPoolPriceUpdate,
57
56
  StakingLeaderboardPage: () => StakingLeaderboardPage,
58
57
  StakingLeaderboardPosition: () => StakingLeaderboardPosition,
59
58
  StakingPosition: () => StakingPosition,
@@ -682,15 +681,10 @@ var SwapQuoteByOutput = z.object({
682
681
  /** Price impact in percents */
683
682
  priceImpact: z.number()
684
683
  });
685
- var ShortPoolPriceUpdate = z.object({
686
- price: z.number(),
687
- uiPrice: z.number(),
688
- sqrtPrice: z.coerce.bigint()
689
- });
690
684
  var StateSnapshot = z.object({
691
685
  slot: z.coerce.bigint(),
692
686
  blockTime: z.coerce.date(),
693
- poolPrices: z.optional(z.map(z.string(), ShortPoolPriceUpdate)),
687
+ poolPrices: z.optional(z.map(z.string(), PoolPriceUpdate)),
694
688
  tunaSpotPositions: z.optional(z.array(TunaSpotPosition)),
695
689
  tunaLpPositions: z.optional(z.array(TunaPosition)),
696
690
  fusionLimitOrders: z.optional(z.array(LimitOrder))
@@ -1197,8 +1191,10 @@ export {
1197
1191
  NotificationAction,
1198
1192
  NotificationEntity,
1199
1193
  PoolProvider,
1194
+ PoolSubscriptionTopic,
1200
1195
  ProviderFilter,
1201
1196
  TunaApiClient,
1202
1197
  TunaPositionState,
1198
+ WalletSubscriptionTopic,
1203
1199
  schemas_exports as schemas
1204
1200
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",