@mobula_labs/types 0.1.6 → 0.1.8

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.
Files changed (35) hide show
  1. package/dist/cjs/index.cjs +3528 -3164
  2. package/dist/cjs/index.cjs.map +34 -29
  3. package/dist/esm/index.js +3528 -3164
  4. package/dist/esm/index.js.map +34 -29
  5. package/dist/index.d.ts +9 -2
  6. package/dist/misc/ApiKeysQueries.d.ts +1 -1
  7. package/dist/utils/schemas/BaseMessage.d.ts +6 -0
  8. package/dist/utils/schemas/PlatformMetadataOutput.d.ts +19 -0
  9. package/dist/utils/schemas/TokenMetadataMinimal.d.ts +25 -0
  10. package/dist/utils/schemas/WalletDeployerSchema.d.ts +333 -0
  11. package/dist/utils/schemas/WalletMetadataOutput.d.ts +19 -0
  12. package/dist/v1/market/FundingRateSchema.d.ts +33 -0
  13. package/dist/v1/market/MarketHistoryPairSchema.d.ts +3 -3
  14. package/dist/v1/market/MarketTradesPairSchema.d.ts +35 -2
  15. package/dist/v1/search/SearchSchema.d.ts +19 -2
  16. package/dist/v1/wallet/DeployerSchema.d.ts +157 -0
  17. package/dist/v1/wallet/WalletLabelSchema.d.ts +4 -4
  18. package/dist/v1/wallet/WalletTradesSchema.d.ts +86 -0
  19. package/dist/v2/explorer/BlockDataQuerySchema.d.ts +33 -0
  20. package/dist/v2/explorer/ContractVerifyQuerySchema.ts +27 -0
  21. package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +48 -48
  22. package/dist/v2/swap/SwapQuotingOutput.d.ts +32 -32
  23. package/dist/v2/token/TokenAthSchema.d.ts +233 -0
  24. package/dist/v2/token/TokenPositionsSchema.d.ts +277 -42
  25. package/dist/v2/token/TokenTradesSchema.d.ts +1465 -11697
  26. package/dist/v2/trades/TradesFiltersSchema.d.ts +451 -0
  27. package/dist/v2/wallet/WalletActivityV2Schema.d.ts +275 -3
  28. package/dist/v2/wallet/WalletAnalysisQuerySchema.d.ts +1658 -0
  29. package/dist/v2/wallet/WalletDeployerSchema.d.ts +157 -0
  30. package/dist/v2/wallet/WalletFundingQuerySchema.d.ts +57 -0
  31. package/dist/v2/wallet/WalletPositionsSchema.d.ts +449 -6
  32. package/dist/wss/OhlcvPayloadSchema.d.ts +2 -2
  33. package/dist/wss/PairsPayloadSchema.d.ts +2 -2
  34. package/dist/wss/PositionPayloadSchema.d.ts +18 -0
  35. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9,6 +9,9 @@ export * from './utils/schemas/CurrencySchema.ts';
9
9
  export * from './utils/schemas/EnrichedHoldersData.ts';
10
10
  export * from './utils/schemas/EnrichedMarketData.ts';
11
11
  export * from './utils/schemas/LLMSecuritySchemas.ts';
12
+ export * from './utils/schemas/PlatformMetadataOutput.ts';
13
+ export * from './utils/schemas/TokenMetadataMinimal.ts';
14
+ export * from './utils/schemas/WalletMetadataOutput.ts';
12
15
  export * from './v1/all/AllAssetSchema.ts';
13
16
  export * from './v1/all/BlockchainSchema.ts';
14
17
  export * from './v1/market/CreateFeedSchema.ts';
@@ -65,6 +68,7 @@ export * from './v2/swap/SwapQuotingOutput.ts';
65
68
  export * from './v2/swap/SwapQuotingSchema.ts';
66
69
  export * from './v2/swap/SwapSendOutput.ts';
67
70
  export * from './v2/swap/SwapSendSchema.ts';
71
+ export * from './v2/token/TokenAthSchema.ts';
68
72
  export * from './v2/token/TokenDetailsSchema.ts';
69
73
  export * from './v2/token/TokenKlineBsPointSchema.ts';
70
74
  export * from './v2/token/TokenMarketsSchema.ts';
@@ -75,11 +79,14 @@ export * from './v2/token/TokenSecurityOutput.ts';
75
79
  export * from './v2/token/TokenSecurityQuery.ts';
76
80
  export * from './v2/token/TokenSecuritySchema.ts';
77
81
  export * from './v2/token/TokenTradesSchema.ts';
78
- export * from './v2/wallet/WalleAnalysisQuerySchema.ts';
79
- export * from './v2/wallet/WalleFundingQuerySchema.ts';
82
+ export * from './v2/trades/TradesFiltersSchema.ts';
80
83
  export * from './v2/wallet/WalletActivityV2Schema.ts';
84
+ export * from './v2/wallet/WalletAnalysisQuerySchema.ts';
81
85
  export * from './v2/wallet/WalletDefiPositionsSchema.ts';
86
+ export * from './v2/wallet/WalletDefiPositionsSchema.ts';
87
+ export * from './v2/wallet/WalletDeployerSchema.ts';
82
88
  export * from './v2/wallet/WalletDeployerSchema.ts';
89
+ export * from './v2/wallet/WalletFundingQuerySchema.ts';
83
90
  export * from './v2/wallet/WalletPerpsPositionsSchema.ts';
84
91
  export * from './v2/wallet/WalletPositionsSchema.ts';
85
92
  export * from './v2/wallet/WalletTokenBalancesSchema.ts';
@@ -1,4 +1,4 @@
1
1
  export declare const API_KEYS_QUERIES: {
2
- readonly SELECT_BY_NAME_AND_OWNER: "\n SELECT key FROM misc.api_keys\n WHERE name = $1\n AND (\n ($2::text IS NULL AND organization_id IS NULL AND customer_id = $3)\n OR\n (organization_id = $2)\n )\n LIMIT 1\n ";
2
+ readonly SELECT_BY_NAME_AND_OWNER: "\n SELECT key FROM misc.api_keys\n WHERE name = $1\n AND deleted_at IS NULL\n AND (\n ($2::text IS NULL AND organization_id IS NULL AND customer_id = $3)\n OR\n (organization_id = $2)\n )\n LIMIT 1\n ";
3
3
  readonly INSERT: "\n INSERT INTO misc.api_keys\n (key, customer_id, organization_id, name, total_calls, metrics)\n VALUES\n ($1, $2, $3, $4, 0, $5)\n ";
4
4
  };
@@ -1,5 +1,10 @@
1
1
  import type { MarketDetailsOutputType } from './MarketDetailsOutput.ts';
2
2
  import type { TokenDetailsOutputType } from './TokenDetailsOutput.ts';
3
+ export interface PlatformMetadataType {
4
+ id: string;
5
+ name: string;
6
+ logo: string;
7
+ }
3
8
  export interface BaseMessageType {
4
9
  pair: string;
5
10
  date: number;
@@ -23,5 +28,6 @@ export interface BaseMessageType {
23
28
  postBalanceBaseToken: string | null;
24
29
  postBalanceQuoteToken: string | null;
25
30
  platform?: string | null;
31
+ platformMetadata?: PlatformMetadataType | null;
26
32
  swapRecipient?: string | null;
27
33
  }
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Platform metadata for trading dashboards (Photon, BullX, Maestro, etc.)
4
+ * Used across trade/swap endpoints to provide full platform information.
5
+ */
6
+ export declare const PlatformMetadataOutput: z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ logo: z.ZodNullable<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ id: string;
13
+ logo: string | null;
14
+ }, {
15
+ name: string;
16
+ id: string;
17
+ logo: string | null;
18
+ }>;
19
+ export type PlatformMetadataOutputType = z.infer<typeof PlatformMetadataOutput>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Minimal token metadata for trade responses
4
+ * Contains only essential display information (name, symbol, logo, decimals)
5
+ */
6
+ export declare const TokenMetadataMinimal: z.ZodObject<{
7
+ address: z.ZodString;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ symbol: z.ZodNullable<z.ZodString>;
10
+ logo: z.ZodNullable<z.ZodString>;
11
+ decimals: z.ZodNumber;
12
+ }, "strip", z.ZodTypeAny, {
13
+ symbol: string | null;
14
+ name: string | null;
15
+ address: string;
16
+ decimals: number;
17
+ logo: string | null;
18
+ }, {
19
+ symbol: string | null;
20
+ name: string | null;
21
+ address: string;
22
+ decimals: number;
23
+ logo: string | null;
24
+ }>;
25
+ export type TokenMetadataMinimal = z.infer<typeof TokenMetadataMinimal>;
@@ -1,4 +1,172 @@
1
1
  import { z } from 'zod';
2
+ export declare const FundingInfoSchema: z.ZodObject<{
3
+ from: z.ZodNullable<z.ZodString>;
4
+ date: z.ZodNullable<z.ZodDate>;
5
+ chainId: z.ZodNullable<z.ZodString>;
6
+ txHash: z.ZodNullable<z.ZodString>;
7
+ amount: z.ZodNullable<z.ZodString>;
8
+ formattedAmount: z.ZodNullable<z.ZodNumber>;
9
+ currency: z.ZodNullable<z.ZodObject<{
10
+ name: z.ZodString;
11
+ symbol: z.ZodString;
12
+ logo: z.ZodNullable<z.ZodString>;
13
+ decimals: z.ZodNumber;
14
+ address: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ symbol: string;
17
+ name: string;
18
+ address: string;
19
+ decimals: number;
20
+ logo: string | null;
21
+ }, {
22
+ symbol: string;
23
+ name: string;
24
+ address: string;
25
+ decimals: number;
26
+ logo: string | null;
27
+ }>>;
28
+ fromWalletLogo: z.ZodNullable<z.ZodString>;
29
+ fromWalletTag: z.ZodNullable<z.ZodString>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ date: Date | null;
32
+ chainId: string | null;
33
+ amount: string | null;
34
+ from: string | null;
35
+ txHash: string | null;
36
+ formattedAmount: number | null;
37
+ currency: {
38
+ symbol: string;
39
+ name: string;
40
+ address: string;
41
+ decimals: number;
42
+ logo: string | null;
43
+ } | null;
44
+ fromWalletLogo: string | null;
45
+ fromWalletTag: string | null;
46
+ }, {
47
+ date: Date | null;
48
+ chainId: string | null;
49
+ amount: string | null;
50
+ from: string | null;
51
+ txHash: string | null;
52
+ formattedAmount: number | null;
53
+ currency: {
54
+ symbol: string;
55
+ name: string;
56
+ address: string;
57
+ decimals: number;
58
+ logo: string | null;
59
+ } | null;
60
+ fromWalletLogo: string | null;
61
+ fromWalletTag: string | null;
62
+ }>;
63
+ export type FundingInfo = z.infer<typeof FundingInfoSchema>;
64
+ export declare const WalletMetadataSchema: z.ZodObject<{
65
+ fundingInfo: z.ZodDefault<z.ZodNullable<z.ZodObject<{
66
+ from: z.ZodNullable<z.ZodString>;
67
+ date: z.ZodNullable<z.ZodDate>;
68
+ chainId: z.ZodNullable<z.ZodString>;
69
+ txHash: z.ZodNullable<z.ZodString>;
70
+ amount: z.ZodNullable<z.ZodString>;
71
+ formattedAmount: z.ZodNullable<z.ZodNumber>;
72
+ currency: z.ZodNullable<z.ZodObject<{
73
+ name: z.ZodString;
74
+ symbol: z.ZodString;
75
+ logo: z.ZodNullable<z.ZodString>;
76
+ decimals: z.ZodNumber;
77
+ address: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ symbol: string;
80
+ name: string;
81
+ address: string;
82
+ decimals: number;
83
+ logo: string | null;
84
+ }, {
85
+ symbol: string;
86
+ name: string;
87
+ address: string;
88
+ decimals: number;
89
+ logo: string | null;
90
+ }>>;
91
+ fromWalletLogo: z.ZodNullable<z.ZodString>;
92
+ fromWalletTag: z.ZodNullable<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ date: Date | null;
95
+ chainId: string | null;
96
+ amount: string | null;
97
+ from: string | null;
98
+ txHash: string | null;
99
+ formattedAmount: number | null;
100
+ currency: {
101
+ symbol: string;
102
+ name: string;
103
+ address: string;
104
+ decimals: number;
105
+ logo: string | null;
106
+ } | null;
107
+ fromWalletLogo: string | null;
108
+ fromWalletTag: string | null;
109
+ }, {
110
+ date: Date | null;
111
+ chainId: string | null;
112
+ amount: string | null;
113
+ from: string | null;
114
+ txHash: string | null;
115
+ formattedAmount: number | null;
116
+ currency: {
117
+ symbol: string;
118
+ name: string;
119
+ address: string;
120
+ decimals: number;
121
+ logo: string | null;
122
+ } | null;
123
+ fromWalletLogo: string | null;
124
+ fromWalletTag: string | null;
125
+ }>>>;
126
+ entity: z.ZodDefault<z.ZodNullable<z.ZodString>>;
127
+ labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ fundingInfo: {
130
+ date: Date | null;
131
+ chainId: string | null;
132
+ amount: string | null;
133
+ from: string | null;
134
+ txHash: string | null;
135
+ formattedAmount: number | null;
136
+ currency: {
137
+ symbol: string;
138
+ name: string;
139
+ address: string;
140
+ decimals: number;
141
+ logo: string | null;
142
+ } | null;
143
+ fromWalletLogo: string | null;
144
+ fromWalletTag: string | null;
145
+ } | null;
146
+ entity: string | null;
147
+ labels: string[];
148
+ }, {
149
+ fundingInfo?: {
150
+ date: Date | null;
151
+ chainId: string | null;
152
+ amount: string | null;
153
+ from: string | null;
154
+ txHash: string | null;
155
+ formattedAmount: number | null;
156
+ currency: {
157
+ symbol: string;
158
+ name: string;
159
+ address: string;
160
+ decimals: number;
161
+ logo: string | null;
162
+ } | null;
163
+ fromWalletLogo: string | null;
164
+ fromWalletTag: string | null;
165
+ } | null | undefined;
166
+ entity?: string | null | undefined;
167
+ labels?: string[] | undefined;
168
+ }>;
169
+ export type WalletMetadata = z.infer<typeof WalletMetadataSchema>;
2
170
  export declare const tokenPositionSchema: z.ZodObject<{
3
171
  token: z.ZodObject<{
4
172
  address: z.ZodString;
@@ -929,8 +1097,11 @@ export declare const tokenPositionSchema: z.ZodObject<{
929
1097
  realizedPnlUSD: z.ZodNumber;
930
1098
  unrealizedPnlUSD: z.ZodNumber;
931
1099
  totalPnlUSD: z.ZodNumber;
1100
+ /** Total fees paid on this position (gas + platform + mev fees) - only present when using swap recipient mode */
1101
+ totalFeesPaidUSD: z.ZodOptional<z.ZodNumber>;
932
1102
  firstDate: z.ZodNullable<z.ZodDate>;
933
1103
  lastDate: z.ZodNullable<z.ZodDate>;
1104
+ labels: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
934
1105
  }, "strip", z.ZodTypeAny, {
935
1106
  balance: number;
936
1107
  realizedPnlUSD: number;
@@ -1221,6 +1392,7 @@ export declare const tokenPositionSchema: z.ZodObject<{
1221
1392
  tokenType?: "2020" | "2022" | null | undefined;
1222
1393
  originLogoUrl?: string | null | undefined;
1223
1394
  };
1395
+ labels: string[] | null;
1224
1396
  rawBalance: string;
1225
1397
  buys: number;
1226
1398
  sells: number;
@@ -1233,6 +1405,7 @@ export declare const tokenPositionSchema: z.ZodObject<{
1233
1405
  totalPnlUSD: number;
1234
1406
  firstDate: Date | null;
1235
1407
  lastDate: Date | null;
1408
+ totalFeesPaidUSD?: number | undefined;
1236
1409
  }, {
1237
1410
  balance: number;
1238
1411
  realizedPnlUSD: number;
@@ -1535,6 +1708,8 @@ export declare const tokenPositionSchema: z.ZodObject<{
1535
1708
  totalPnlUSD: number;
1536
1709
  firstDate: Date | null;
1537
1710
  lastDate: Date | null;
1711
+ totalFeesPaidUSD?: number | undefined;
1712
+ labels?: string[] | null | undefined;
1538
1713
  }>;
1539
1714
  export declare const walletDeployerOutputSchema: z.ZodObject<{
1540
1715
  data: z.ZodArray<z.ZodObject<{
@@ -2467,8 +2642,11 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
2467
2642
  realizedPnlUSD: z.ZodNumber;
2468
2643
  unrealizedPnlUSD: z.ZodNumber;
2469
2644
  totalPnlUSD: z.ZodNumber;
2645
+ /** Total fees paid on this position (gas + platform + mev fees) - only present when using swap recipient mode */
2646
+ totalFeesPaidUSD: z.ZodOptional<z.ZodNumber>;
2470
2647
  firstDate: z.ZodNullable<z.ZodDate>;
2471
2648
  lastDate: z.ZodNullable<z.ZodDate>;
2649
+ labels: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2472
2650
  }, "strip", z.ZodTypeAny, {
2473
2651
  balance: number;
2474
2652
  realizedPnlUSD: number;
@@ -2759,6 +2937,7 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
2759
2937
  tokenType?: "2020" | "2022" | null | undefined;
2760
2938
  originLogoUrl?: string | null | undefined;
2761
2939
  };
2940
+ labels: string[] | null;
2762
2941
  rawBalance: string;
2763
2942
  buys: number;
2764
2943
  sells: number;
@@ -2771,6 +2950,7 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
2771
2950
  totalPnlUSD: number;
2772
2951
  firstDate: Date | null;
2773
2952
  lastDate: Date | null;
2953
+ totalFeesPaidUSD?: number | undefined;
2774
2954
  }, {
2775
2955
  balance: number;
2776
2956
  realizedPnlUSD: number;
@@ -3073,6 +3253,8 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3073
3253
  totalPnlUSD: number;
3074
3254
  firstDate: Date | null;
3075
3255
  lastDate: Date | null;
3256
+ totalFeesPaidUSD?: number | undefined;
3257
+ labels?: string[] | null | undefined;
3076
3258
  }>, "many">;
3077
3259
  pagination: z.ZodNullable<z.ZodObject<{
3078
3260
  total: z.ZodNumber;
@@ -3090,6 +3272,111 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3090
3272
  total: number;
3091
3273
  page: number;
3092
3274
  }>>;
3275
+ wallet: z.ZodOptional<z.ZodObject<{
3276
+ fundingInfo: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3277
+ from: z.ZodNullable<z.ZodString>;
3278
+ date: z.ZodNullable<z.ZodDate>;
3279
+ chainId: z.ZodNullable<z.ZodString>;
3280
+ txHash: z.ZodNullable<z.ZodString>;
3281
+ amount: z.ZodNullable<z.ZodString>;
3282
+ formattedAmount: z.ZodNullable<z.ZodNumber>;
3283
+ currency: z.ZodNullable<z.ZodObject<{
3284
+ name: z.ZodString;
3285
+ symbol: z.ZodString;
3286
+ logo: z.ZodNullable<z.ZodString>;
3287
+ decimals: z.ZodNumber;
3288
+ address: z.ZodString;
3289
+ }, "strip", z.ZodTypeAny, {
3290
+ symbol: string;
3291
+ name: string;
3292
+ address: string;
3293
+ decimals: number;
3294
+ logo: string | null;
3295
+ }, {
3296
+ symbol: string;
3297
+ name: string;
3298
+ address: string;
3299
+ decimals: number;
3300
+ logo: string | null;
3301
+ }>>;
3302
+ fromWalletLogo: z.ZodNullable<z.ZodString>;
3303
+ fromWalletTag: z.ZodNullable<z.ZodString>;
3304
+ }, "strip", z.ZodTypeAny, {
3305
+ date: Date | null;
3306
+ chainId: string | null;
3307
+ amount: string | null;
3308
+ from: string | null;
3309
+ txHash: string | null;
3310
+ formattedAmount: number | null;
3311
+ currency: {
3312
+ symbol: string;
3313
+ name: string;
3314
+ address: string;
3315
+ decimals: number;
3316
+ logo: string | null;
3317
+ } | null;
3318
+ fromWalletLogo: string | null;
3319
+ fromWalletTag: string | null;
3320
+ }, {
3321
+ date: Date | null;
3322
+ chainId: string | null;
3323
+ amount: string | null;
3324
+ from: string | null;
3325
+ txHash: string | null;
3326
+ formattedAmount: number | null;
3327
+ currency: {
3328
+ symbol: string;
3329
+ name: string;
3330
+ address: string;
3331
+ decimals: number;
3332
+ logo: string | null;
3333
+ } | null;
3334
+ fromWalletLogo: string | null;
3335
+ fromWalletTag: string | null;
3336
+ }>>>;
3337
+ entity: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3338
+ labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3339
+ }, "strip", z.ZodTypeAny, {
3340
+ fundingInfo: {
3341
+ date: Date | null;
3342
+ chainId: string | null;
3343
+ amount: string | null;
3344
+ from: string | null;
3345
+ txHash: string | null;
3346
+ formattedAmount: number | null;
3347
+ currency: {
3348
+ symbol: string;
3349
+ name: string;
3350
+ address: string;
3351
+ decimals: number;
3352
+ logo: string | null;
3353
+ } | null;
3354
+ fromWalletLogo: string | null;
3355
+ fromWalletTag: string | null;
3356
+ } | null;
3357
+ entity: string | null;
3358
+ labels: string[];
3359
+ }, {
3360
+ fundingInfo?: {
3361
+ date: Date | null;
3362
+ chainId: string | null;
3363
+ amount: string | null;
3364
+ from: string | null;
3365
+ txHash: string | null;
3366
+ formattedAmount: number | null;
3367
+ currency: {
3368
+ symbol: string;
3369
+ name: string;
3370
+ address: string;
3371
+ decimals: number;
3372
+ logo: string | null;
3373
+ } | null;
3374
+ fromWalletLogo: string | null;
3375
+ fromWalletTag: string | null;
3376
+ } | null | undefined;
3377
+ entity?: string | null | undefined;
3378
+ labels?: string[] | undefined;
3379
+ }>>;
3093
3380
  }, "strip", z.ZodTypeAny, {
3094
3381
  data: {
3095
3382
  balance: number;
@@ -3381,6 +3668,7 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3381
3668
  tokenType?: "2020" | "2022" | null | undefined;
3382
3669
  originLogoUrl?: string | null | undefined;
3383
3670
  };
3671
+ labels: string[] | null;
3384
3672
  rawBalance: string;
3385
3673
  buys: number;
3386
3674
  sells: number;
@@ -3393,6 +3681,7 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3393
3681
  totalPnlUSD: number;
3394
3682
  firstDate: Date | null;
3395
3683
  lastDate: Date | null;
3684
+ totalFeesPaidUSD?: number | undefined;
3396
3685
  }[];
3397
3686
  pagination: {
3398
3687
  limit: number;
@@ -3400,6 +3689,27 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3400
3689
  total: number;
3401
3690
  page: number;
3402
3691
  } | null;
3692
+ wallet?: {
3693
+ fundingInfo: {
3694
+ date: Date | null;
3695
+ chainId: string | null;
3696
+ amount: string | null;
3697
+ from: string | null;
3698
+ txHash: string | null;
3699
+ formattedAmount: number | null;
3700
+ currency: {
3701
+ symbol: string;
3702
+ name: string;
3703
+ address: string;
3704
+ decimals: number;
3705
+ logo: string | null;
3706
+ } | null;
3707
+ fromWalletLogo: string | null;
3708
+ fromWalletTag: string | null;
3709
+ } | null;
3710
+ entity: string | null;
3711
+ labels: string[];
3712
+ } | undefined;
3403
3713
  }, {
3404
3714
  data: {
3405
3715
  balance: number;
@@ -3703,6 +4013,8 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3703
4013
  totalPnlUSD: number;
3704
4014
  firstDate: Date | null;
3705
4015
  lastDate: Date | null;
4016
+ totalFeesPaidUSD?: number | undefined;
4017
+ labels?: string[] | null | undefined;
3706
4018
  }[];
3707
4019
  pagination: {
3708
4020
  limit: number;
@@ -3710,6 +4022,27 @@ export declare const walletDeployerOutputSchema: z.ZodObject<{
3710
4022
  total: number;
3711
4023
  page: number;
3712
4024
  } | null;
4025
+ wallet?: {
4026
+ fundingInfo?: {
4027
+ date: Date | null;
4028
+ chainId: string | null;
4029
+ amount: string | null;
4030
+ from: string | null;
4031
+ txHash: string | null;
4032
+ formattedAmount: number | null;
4033
+ currency: {
4034
+ symbol: string;
4035
+ name: string;
4036
+ address: string;
4037
+ decimals: number;
4038
+ logo: string | null;
4039
+ } | null;
4040
+ fromWalletLogo: string | null;
4041
+ fromWalletTag: string | null;
4042
+ } | null | undefined;
4043
+ entity?: string | null | undefined;
4044
+ labels?: string[] | undefined;
4045
+ } | undefined;
3713
4046
  }>;
3714
4047
  export declare const WalletDeployerQuery: z.ZodObject<{
3715
4048
  wallet: z.ZodString;
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Wallet metadata from scraping_wallets table
4
+ * Contains entity information about the wallet (e.g., CEX, LP, known project)
5
+ */
6
+ export declare const WalletMetadataOutput: z.ZodObject<{
7
+ entityName: z.ZodNullable<z.ZodString>;
8
+ entityLogo: z.ZodNullable<z.ZodString>;
9
+ entityLabels: z.ZodArray<z.ZodString, "many">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ entityName: string | null;
12
+ entityLogo: string | null;
13
+ entityLabels: string[];
14
+ }, {
15
+ entityName: string | null;
16
+ entityLogo: string | null;
17
+ entityLabels: string[];
18
+ }>;
19
+ export type WalletMetadataOutput = z.infer<typeof WalletMetadataOutput>;
@@ -134,6 +134,27 @@ export declare const FundingRateResponseSchema: z.ZodObject<{
134
134
  fundingRate: number;
135
135
  epochDurationMs: number;
136
136
  }>>;
137
+ /**
138
+ * Lighter funding rate.
139
+ * Sign convention: positive = longs pay shorts, negative = shorts pay longs.
140
+ * Epoch duration: 1 hour (3600000ms).
141
+ */
142
+ lighterFundingRate: z.ZodOptional<z.ZodObject<{
143
+ symbol: z.ZodString;
144
+ fundingTime: z.ZodNumber;
145
+ fundingRate: z.ZodNumber;
146
+ epochDurationMs: z.ZodNumber;
147
+ }, "strip", z.ZodTypeAny, {
148
+ symbol: string;
149
+ fundingTime: number;
150
+ fundingRate: number;
151
+ epochDurationMs: number;
152
+ }, {
153
+ symbol: string;
154
+ fundingTime: number;
155
+ fundingRate: number;
156
+ epochDurationMs: number;
157
+ }>>;
137
158
  queryDetails: z.ZodObject<{
138
159
  base: z.ZodString;
139
160
  quote: z.ZodNullable<z.ZodString>;
@@ -193,6 +214,12 @@ export declare const FundingRateResponseSchema: z.ZodObject<{
193
214
  fundingRate: number;
194
215
  epochDurationMs: number;
195
216
  } | undefined;
217
+ lighterFundingRate?: {
218
+ symbol: string;
219
+ fundingTime: number;
220
+ fundingRate: number;
221
+ epochDurationMs: number;
222
+ } | undefined;
196
223
  }, {
197
224
  queryDetails: {
198
225
  base: string;
@@ -242,5 +269,11 @@ export declare const FundingRateResponseSchema: z.ZodObject<{
242
269
  fundingRate: number;
243
270
  epochDurationMs: number;
244
271
  } | undefined;
272
+ lighterFundingRate?: {
273
+ symbol: string;
274
+ fundingTime: number;
275
+ fundingRate: number;
276
+ epochDurationMs: number;
277
+ } | undefined;
245
278
  }>;
246
279
  export type FundingRateResponse = z.infer<typeof FundingRateResponseSchema>;
@@ -10,13 +10,13 @@ export declare const MarketHistoryPairParamsSchema: z.ZodObject<{
10
10
  period: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string | undefined>;
11
11
  amount: z.ZodOptional<z.ZodNumber>;
12
12
  usd: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>>, boolean, string | boolean | undefined>;
13
- mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asset", "pool"]>>>;
13
+ mode: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodEnum<["asset", "pair", "pool"]>>>, "asset" | "pair", "asset" | "pair" | "pool" | undefined>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  from: 0 | Date;
16
16
  to: Date;
17
17
  period: string;
18
18
  usd: boolean;
19
- mode: "asset" | "pool";
19
+ mode: "asset" | "pair";
20
20
  symbol?: string | undefined;
21
21
  address?: string | undefined;
22
22
  blockchain?: string | undefined;
@@ -34,7 +34,7 @@ export declare const MarketHistoryPairParamsSchema: z.ZodObject<{
34
34
  to?: number | Date | undefined;
35
35
  period?: string | undefined;
36
36
  usd?: string | boolean | undefined;
37
- mode?: "asset" | "pool" | undefined;
37
+ mode?: "asset" | "pair" | "pool" | undefined;
38
38
  }>;
39
39
  export type MarketHistoryPairParams = z.input<typeof MarketHistoryPairParamsSchema>;
40
40
  export type MarketHistoryPairInferType = z.infer<typeof MarketHistoryPairParamsSchema>;