@surf-ai/sdk 0.1.6-beta → 1.0.0-alpha.1

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.
@@ -1,1175 +0,0 @@
1
- // src/react/utils.ts
2
- import { clsx } from "clsx";
3
- import { twMerge } from "tailwind-merge";
4
- function cn(...inputs) {
5
- return twMerge(clsx(inputs));
6
- }
7
-
8
- // src/react/use-toast.ts
9
- import * as React from "react";
10
- var TOAST_LIMIT = 1;
11
- var TOAST_REMOVE_DELAY = 1e6;
12
- var count = 0;
13
- function genId() {
14
- return (count = (count + 1) % Number.MAX_SAFE_INTEGER).toString();
15
- }
16
- var toastTimeouts = /* @__PURE__ */ new Map();
17
- var listeners = [];
18
- var memoryState = { toasts: [] };
19
- function dispatch(action) {
20
- memoryState = reducer(memoryState, action);
21
- listeners.forEach((l) => l(memoryState));
22
- }
23
- function reducer(state, action) {
24
- switch (action.type) {
25
- case "ADD_TOAST":
26
- return { ...state, toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT) };
27
- case "UPDATE_TOAST":
28
- return { ...state, toasts: state.toasts.map((t) => t.id === action.toast.id ? { ...t, ...action.toast } : t) };
29
- case "DISMISS_TOAST": {
30
- const { toastId } = action;
31
- if (toastId) {
32
- if (!toastTimeouts.has(toastId)) {
33
- toastTimeouts.set(toastId, setTimeout(() => {
34
- toastTimeouts.delete(toastId);
35
- dispatch({ type: "REMOVE_TOAST", toastId });
36
- }, TOAST_REMOVE_DELAY));
37
- }
38
- } else {
39
- state.toasts.forEach((t) => dispatch({ type: "DISMISS_TOAST", toastId: t.id }));
40
- }
41
- return { ...state, toasts: state.toasts.map((t) => t.id === toastId || !toastId ? { ...t } : t) };
42
- }
43
- case "REMOVE_TOAST":
44
- return { ...state, toasts: action.toastId ? state.toasts.filter((t) => t.id !== action.toastId) : [] };
45
- }
46
- }
47
- function toast(props) {
48
- const id = genId();
49
- dispatch({ type: "ADD_TOAST", toast: { ...props, id } });
50
- return { id, dismiss: () => dispatch({ type: "DISMISS_TOAST", toastId: id }), update: (p) => dispatch({ type: "UPDATE_TOAST", toast: { ...p, id } }) };
51
- }
52
- function useToast() {
53
- const [state, setState] = React.useState(memoryState);
54
- React.useEffect(() => {
55
- listeners.push(setState);
56
- return () => {
57
- const i = listeners.indexOf(setState);
58
- if (i > -1) listeners.splice(i, 1);
59
- };
60
- }, []);
61
- return { ...state, toast, dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId }) };
62
- }
63
-
64
- // src/react/hooks/exchange.ts
65
- import { useQuery } from "@tanstack/react-query";
66
-
67
- // src/react/fetch.ts
68
- var BASE = typeof window !== "undefined" ? (import.meta.env?.BASE_URL || "/").replace(/\/$/, "") : "";
69
- function normalizePath(path) {
70
- return String(path || "").replace(/^\/+/, "").replace(/^(?:proxy\/)+/, "");
71
- }
72
- async function fetchWithRetry(url, init, retries = 1) {
73
- for (let attempt = 0; attempt <= retries; attempt++) {
74
- const res = await fetch(url, init);
75
- if (!res.ok) {
76
- const text2 = await res.text();
77
- throw new Error(`API error ${res.status}: ${text2.slice(0, 200)}`);
78
- }
79
- const text = await res.text();
80
- if (text) return JSON.parse(text);
81
- if (attempt < retries) await new Promise((r) => setTimeout(r, 1e3));
82
- }
83
- throw new Error(`Empty response from ${url}`);
84
- }
85
- async function proxyGet(path, params) {
86
- const cleaned = {};
87
- if (params) {
88
- for (const [k, v] of Object.entries(params)) {
89
- if (v != null) cleaned[k] = String(v);
90
- }
91
- }
92
- const qs = Object.keys(cleaned).length ? "?" + new URLSearchParams(cleaned).toString() : "";
93
- return fetchWithRetry(`${BASE}/proxy/${normalizePath(path)}${qs}`);
94
- }
95
-
96
- // src/react/hooks/exchange.ts
97
- function useExchangeDepth(params) {
98
- return useQuery({
99
- queryKey: ["exchange-depth", params],
100
- queryFn: () => proxyGet("exchange/depth", params)
101
- });
102
- }
103
- function useExchangeFundingHistory(params) {
104
- return useQuery({
105
- queryKey: ["exchange-funding-history", params],
106
- queryFn: () => proxyGet("exchange/funding-history", params)
107
- });
108
- }
109
- function useExchangeKlines(params) {
110
- return useQuery({
111
- queryKey: ["exchange-klines", params],
112
- queryFn: () => proxyGet("exchange/klines", params)
113
- });
114
- }
115
- function useExchangeLongShortRatio(params) {
116
- return useQuery({
117
- queryKey: ["exchange-long-short-ratio", params],
118
- queryFn: () => proxyGet("exchange/long-short-ratio", params)
119
- });
120
- }
121
- function useExchangeMarkets(params) {
122
- return useQuery({
123
- queryKey: ["exchange-markets", params],
124
- queryFn: () => proxyGet("exchange/markets", params)
125
- });
126
- }
127
- function useExchangePerp(params) {
128
- return useQuery({
129
- queryKey: ["exchange-perp", params],
130
- queryFn: () => proxyGet("exchange/perp", params)
131
- });
132
- }
133
- function useExchangePrice(params) {
134
- return useQuery({
135
- queryKey: ["exchange-price", params],
136
- queryFn: () => proxyGet("exchange/price", params)
137
- });
138
- }
139
-
140
- // src/react/hooks/fund.ts
141
- import { useQuery as useQuery2, useInfiniteQuery as useInfiniteQuery2 } from "@tanstack/react-query";
142
- function useFundDetail(params) {
143
- return useQuery2({
144
- queryKey: ["fund-detail", params],
145
- queryFn: () => proxyGet("fund/detail", params)
146
- });
147
- }
148
- function useInfiniteFundPortfolio(params) {
149
- return useInfiniteQuery2({
150
- queryKey: ["fund-portfolio", params],
151
- queryFn: ({ pageParam = 0 }) => proxyGet("fund/portfolio", { ...params, offset: String(pageParam) }),
152
- initialPageParam: 0,
153
- getNextPageParam: (last) => {
154
- const m = last?.meta;
155
- if (!m?.total || !m?.limit) return void 0;
156
- const next = (m.offset ?? 0) + m.limit;
157
- return next < m.total ? next : void 0;
158
- }
159
- });
160
- }
161
- function useInfiniteFundRanking(params) {
162
- return useInfiniteQuery2({
163
- queryKey: ["fund-ranking", params],
164
- queryFn: ({ pageParam = 0 }) => proxyGet("fund/ranking", { ...params, offset: String(pageParam) }),
165
- initialPageParam: 0,
166
- getNextPageParam: (last) => {
167
- const m = last?.meta;
168
- if (!m?.total || !m?.limit) return void 0;
169
- const next = (m.offset ?? 0) + m.limit;
170
- return next < m.total ? next : void 0;
171
- }
172
- });
173
- }
174
-
175
- // src/react/hooks/kalshi.ts
176
- import { useInfiniteQuery as useInfiniteQuery3 } from "@tanstack/react-query";
177
- function useInfiniteKalshiEvents(params) {
178
- return useInfiniteQuery3({
179
- queryKey: ["kalshi-events", params],
180
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/events", { ...params, offset: String(pageParam) }),
181
- initialPageParam: 0,
182
- getNextPageParam: (last) => {
183
- const m = last?.meta;
184
- if (!m?.total || !m?.limit) return void 0;
185
- const next = (m.offset ?? 0) + m.limit;
186
- return next < m.total ? next : void 0;
187
- }
188
- });
189
- }
190
- function useInfiniteKalshiMarkets(params) {
191
- return useInfiniteQuery3({
192
- queryKey: ["kalshi-markets", params],
193
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/markets", { ...params, offset: String(pageParam) }),
194
- initialPageParam: 0,
195
- getNextPageParam: (last) => {
196
- const m = last?.meta;
197
- if (!m?.total || !m?.limit) return void 0;
198
- const next = (m.offset ?? 0) + m.limit;
199
- return next < m.total ? next : void 0;
200
- }
201
- });
202
- }
203
- function useInfiniteKalshiOpenInterest(params) {
204
- return useInfiniteQuery3({
205
- queryKey: ["kalshi-open-interest", params],
206
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/open-interest", { ...params, offset: String(pageParam) }),
207
- initialPageParam: 0,
208
- getNextPageParam: (last) => {
209
- const m = last?.meta;
210
- if (!m?.total || !m?.limit) return void 0;
211
- const next = (m.offset ?? 0) + m.limit;
212
- return next < m.total ? next : void 0;
213
- }
214
- });
215
- }
216
- function useInfiniteKalshiPrices(params) {
217
- return useInfiniteQuery3({
218
- queryKey: ["kalshi-prices", params],
219
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/prices", { ...params, offset: String(pageParam) }),
220
- initialPageParam: 0,
221
- getNextPageParam: (last) => {
222
- const m = last?.meta;
223
- if (!m?.total || !m?.limit) return void 0;
224
- const next = (m.offset ?? 0) + m.limit;
225
- return next < m.total ? next : void 0;
226
- }
227
- });
228
- }
229
- function useInfiniteKalshiRanking(params) {
230
- return useInfiniteQuery3({
231
- queryKey: ["kalshi-ranking", params],
232
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/ranking", { ...params, offset: String(pageParam) }),
233
- initialPageParam: 0,
234
- getNextPageParam: (last) => {
235
- const m = last?.meta;
236
- if (!m?.total || !m?.limit) return void 0;
237
- const next = (m.offset ?? 0) + m.limit;
238
- return next < m.total ? next : void 0;
239
- }
240
- });
241
- }
242
- function useInfiniteKalshiTrades(params) {
243
- return useInfiniteQuery3({
244
- queryKey: ["kalshi-trades", params],
245
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/trades", { ...params, offset: String(pageParam) }),
246
- initialPageParam: 0,
247
- getNextPageParam: (last) => {
248
- const m = last?.meta;
249
- if (!m?.total || !m?.limit) return void 0;
250
- const next = (m.offset ?? 0) + m.limit;
251
- return next < m.total ? next : void 0;
252
- }
253
- });
254
- }
255
- function useInfiniteKalshiVolumes(params) {
256
- return useInfiniteQuery3({
257
- queryKey: ["kalshi-volumes", params],
258
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/kalshi/volumes", { ...params, offset: String(pageParam) }),
259
- initialPageParam: 0,
260
- getNextPageParam: (last) => {
261
- const m = last?.meta;
262
- if (!m?.total || !m?.limit) return void 0;
263
- const next = (m.offset ?? 0) + m.limit;
264
- return next < m.total ? next : void 0;
265
- }
266
- });
267
- }
268
-
269
- // src/react/hooks/market.ts
270
- import { useQuery as useQuery4, useInfiniteQuery as useInfiniteQuery4 } from "@tanstack/react-query";
271
- function useMarketEtf(params) {
272
- return useQuery4({
273
- queryKey: ["market-etf", params],
274
- queryFn: () => proxyGet("market/etf", params)
275
- });
276
- }
277
- function useMarketFearGreed(params) {
278
- return useQuery4({
279
- queryKey: ["market-fear-greed", params],
280
- queryFn: () => proxyGet("market/fear-greed", params)
281
- });
282
- }
283
- function useMarketFutures(params) {
284
- return useQuery4({
285
- queryKey: ["market-futures", params],
286
- queryFn: () => proxyGet("market/futures", params)
287
- });
288
- }
289
- function useMarketLiquidationChart(params) {
290
- return useQuery4({
291
- queryKey: ["market-liquidation-chart", params],
292
- queryFn: () => proxyGet("market/liquidation/chart", params)
293
- });
294
- }
295
- function useMarketLiquidationExchangeList(params) {
296
- return useQuery4({
297
- queryKey: ["market-liquidation-exchange-list", params],
298
- queryFn: () => proxyGet("market/liquidation/exchange-list", params)
299
- });
300
- }
301
- function useMarketLiquidationOrder(params) {
302
- return useQuery4({
303
- queryKey: ["market-liquidation-order", params],
304
- queryFn: () => proxyGet("market/liquidation/order", params)
305
- });
306
- }
307
- function useMarketOnchainIndicator(params) {
308
- return useQuery4({
309
- queryKey: ["market-onchain-indicator", params],
310
- queryFn: () => proxyGet("market/onchain-indicator", params)
311
- });
312
- }
313
- function useMarketOptions(params) {
314
- return useQuery4({
315
- queryKey: ["market-options", params],
316
- queryFn: () => proxyGet("market/options", params)
317
- });
318
- }
319
- function useMarketPrice(params) {
320
- return useQuery4({
321
- queryKey: ["market-price", params],
322
- queryFn: () => proxyGet("market/price", params)
323
- });
324
- }
325
- function useMarketPriceIndicator(params) {
326
- return useQuery4({
327
- queryKey: ["market-price-indicator", params],
328
- queryFn: () => proxyGet("market/price-indicator", params)
329
- });
330
- }
331
- function useInfiniteMarketRanking(params) {
332
- return useInfiniteQuery4({
333
- queryKey: ["market-ranking", params],
334
- queryFn: ({ pageParam = 0 }) => proxyGet("market/ranking", { ...params, offset: String(pageParam) }),
335
- initialPageParam: 0,
336
- getNextPageParam: (last) => {
337
- const m = last?.meta;
338
- if (!m?.total || !m?.limit) return void 0;
339
- const next = (m.offset ?? 0) + m.limit;
340
- return next < m.total ? next : void 0;
341
- }
342
- });
343
- }
344
-
345
- // src/react/hooks/matching.ts
346
- import { useInfiniteQuery as useInfiniteQuery5 } from "@tanstack/react-query";
347
- function useInfiniteMatchingMarketDaily(params) {
348
- return useInfiniteQuery5({
349
- queryKey: ["matching-market-daily", params],
350
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/matching/daily", { ...params, offset: String(pageParam) }),
351
- initialPageParam: 0,
352
- getNextPageParam: (last) => {
353
- const m = last?.meta;
354
- if (!m?.total || !m?.limit) return void 0;
355
- const next = (m.offset ?? 0) + m.limit;
356
- return next < m.total ? next : void 0;
357
- }
358
- });
359
- }
360
- function useInfiniteMatchingMarketFind(params) {
361
- return useInfiniteQuery5({
362
- queryKey: ["matching-market-find", params],
363
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/matching/find", { ...params, offset: String(pageParam) }),
364
- initialPageParam: 0,
365
- getNextPageParam: (last) => {
366
- const m = last?.meta;
367
- if (!m?.total || !m?.limit) return void 0;
368
- const next = (m.offset ?? 0) + m.limit;
369
- return next < m.total ? next : void 0;
370
- }
371
- });
372
- }
373
- function useInfiniteMatchingMarketPairs(params) {
374
- return useInfiniteQuery5({
375
- queryKey: ["matching-market-pairs", params],
376
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/matching/pairs", { ...params, offset: String(pageParam) }),
377
- initialPageParam: 0,
378
- getNextPageParam: (last) => {
379
- const m = last?.meta;
380
- if (!m?.total || !m?.limit) return void 0;
381
- const next = (m.offset ?? 0) + m.limit;
382
- return next < m.total ? next : void 0;
383
- }
384
- });
385
- }
386
-
387
- // src/react/hooks/news.ts
388
- import { useQuery as useQuery6, useInfiniteQuery as useInfiniteQuery6 } from "@tanstack/react-query";
389
- function useNewsDetail(params) {
390
- return useQuery6({
391
- queryKey: ["news-detail", params],
392
- queryFn: () => proxyGet("news/detail", params)
393
- });
394
- }
395
- function useInfiniteNewsFeed(params) {
396
- return useInfiniteQuery6({
397
- queryKey: ["news-feed", params],
398
- queryFn: ({ pageParam = 0 }) => proxyGet("news/feed", { ...params, offset: String(pageParam) }),
399
- initialPageParam: 0,
400
- getNextPageParam: (last) => {
401
- const m = last?.meta;
402
- if (!m?.total || !m?.limit) return void 0;
403
- const next = (m.offset ?? 0) + m.limit;
404
- return next < m.total ? next : void 0;
405
- }
406
- });
407
- }
408
-
409
- // src/react/hooks/onchain.ts
410
- import { useQuery as useQuery7, useInfiniteQuery as useInfiniteQuery7 } from "@tanstack/react-query";
411
- function useInfiniteOnchainBridgeRanking(params) {
412
- return useInfiniteQuery7({
413
- queryKey: ["onchain-bridge-ranking", params],
414
- queryFn: ({ pageParam = 0 }) => proxyGet("onchain/bridge/ranking", { ...params, offset: String(pageParam) }),
415
- initialPageParam: 0,
416
- getNextPageParam: (last) => {
417
- const m = last?.meta;
418
- if (!m?.total || !m?.limit) return void 0;
419
- const next = (m.offset ?? 0) + m.limit;
420
- return next < m.total ? next : void 0;
421
- }
422
- });
423
- }
424
- function useOnchainGasPrice(params) {
425
- return useQuery7({
426
- queryKey: ["onchain-gas-price", params],
427
- queryFn: () => proxyGet("onchain/gas-price", params)
428
- });
429
- }
430
- function useInfiniteOnchainStructuredQuery(params) {
431
- return useInfiniteQuery7({
432
- queryKey: ["onchain-structured-query", params],
433
- queryFn: ({ pageParam = 0 }) => proxyGet("onchain/query", { ...params, offset: String(pageParam) }),
434
- initialPageParam: 0,
435
- getNextPageParam: (last) => {
436
- const m = last?.meta;
437
- if (!m?.total || !m?.limit) return void 0;
438
- const next = (m.offset ?? 0) + m.limit;
439
- return next < m.total ? next : void 0;
440
- }
441
- });
442
- }
443
- function useInfiniteOnchainSchema() {
444
- return useInfiniteQuery7({
445
- queryKey: ["onchain-schema"],
446
- queryFn: () => proxyGet("onchain/schema"),
447
- initialPageParam: 0,
448
- getNextPageParam: (last) => {
449
- const m = last?.meta;
450
- if (!m?.total || !m?.limit) return void 0;
451
- const next = (m.offset ?? 0) + m.limit;
452
- return next < m.total ? next : void 0;
453
- }
454
- });
455
- }
456
- function useInfiniteOnchainSql(params) {
457
- return useInfiniteQuery7({
458
- queryKey: ["onchain-sql", params],
459
- queryFn: ({ pageParam = 0 }) => proxyGet("onchain/sql", { ...params, offset: String(pageParam) }),
460
- initialPageParam: 0,
461
- getNextPageParam: (last) => {
462
- const m = last?.meta;
463
- if (!m?.total || !m?.limit) return void 0;
464
- const next = (m.offset ?? 0) + m.limit;
465
- return next < m.total ? next : void 0;
466
- }
467
- });
468
- }
469
- function useInfiniteOnchainTx(params) {
470
- return useInfiniteQuery7({
471
- queryKey: ["onchain-tx", params],
472
- queryFn: ({ pageParam = 0 }) => proxyGet("onchain/tx", { ...params, offset: String(pageParam) }),
473
- initialPageParam: 0,
474
- getNextPageParam: (last) => {
475
- const m = last?.meta;
476
- if (!m?.total || !m?.limit) return void 0;
477
- const next = (m.offset ?? 0) + m.limit;
478
- return next < m.total ? next : void 0;
479
- }
480
- });
481
- }
482
- function useInfiniteOnchainYieldRanking(params) {
483
- return useInfiniteQuery7({
484
- queryKey: ["onchain-yield-ranking", params],
485
- queryFn: ({ pageParam = 0 }) => proxyGet("onchain/yield/ranking", { ...params, offset: String(pageParam) }),
486
- initialPageParam: 0,
487
- getNextPageParam: (last) => {
488
- const m = last?.meta;
489
- if (!m?.total || !m?.limit) return void 0;
490
- const next = (m.offset ?? 0) + m.limit;
491
- return next < m.total ? next : void 0;
492
- }
493
- });
494
- }
495
-
496
- // src/react/hooks/polymarket.ts
497
- import { useInfiniteQuery as useInfiniteQuery8 } from "@tanstack/react-query";
498
- function useInfinitePolymarketActivity(params) {
499
- return useInfiniteQuery8({
500
- queryKey: ["polymarket-activity", params],
501
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/activity", { ...params, offset: String(pageParam) }),
502
- initialPageParam: 0,
503
- getNextPageParam: (last) => {
504
- const m = last?.meta;
505
- if (!m?.total || !m?.limit) return void 0;
506
- const next = (m.offset ?? 0) + m.limit;
507
- return next < m.total ? next : void 0;
508
- }
509
- });
510
- }
511
- function useInfinitePolymarketEvents(params) {
512
- return useInfiniteQuery8({
513
- queryKey: ["polymarket-events", params],
514
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/events", { ...params, offset: String(pageParam) }),
515
- initialPageParam: 0,
516
- getNextPageParam: (last) => {
517
- const m = last?.meta;
518
- if (!m?.total || !m?.limit) return void 0;
519
- const next = (m.offset ?? 0) + m.limit;
520
- return next < m.total ? next : void 0;
521
- }
522
- });
523
- }
524
- function useInfinitePolymarketMarkets(params) {
525
- return useInfiniteQuery8({
526
- queryKey: ["polymarket-markets", params],
527
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/markets", { ...params, offset: String(pageParam) }),
528
- initialPageParam: 0,
529
- getNextPageParam: (last) => {
530
- const m = last?.meta;
531
- if (!m?.total || !m?.limit) return void 0;
532
- const next = (m.offset ?? 0) + m.limit;
533
- return next < m.total ? next : void 0;
534
- }
535
- });
536
- }
537
- function useInfinitePolymarketOpenInterest(params) {
538
- return useInfiniteQuery8({
539
- queryKey: ["polymarket-open-interest", params],
540
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/open-interest", { ...params, offset: String(pageParam) }),
541
- initialPageParam: 0,
542
- getNextPageParam: (last) => {
543
- const m = last?.meta;
544
- if (!m?.total || !m?.limit) return void 0;
545
- const next = (m.offset ?? 0) + m.limit;
546
- return next < m.total ? next : void 0;
547
- }
548
- });
549
- }
550
- function useInfinitePolymarketPositions(params) {
551
- return useInfiniteQuery8({
552
- queryKey: ["polymarket-positions", params],
553
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/positions", { ...params, offset: String(pageParam) }),
554
- initialPageParam: 0,
555
- getNextPageParam: (last) => {
556
- const m = last?.meta;
557
- if (!m?.total || !m?.limit) return void 0;
558
- const next = (m.offset ?? 0) + m.limit;
559
- return next < m.total ? next : void 0;
560
- }
561
- });
562
- }
563
- function useInfinitePolymarketPrices(params) {
564
- return useInfiniteQuery8({
565
- queryKey: ["polymarket-prices", params],
566
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/prices", { ...params, offset: String(pageParam) }),
567
- initialPageParam: 0,
568
- getNextPageParam: (last) => {
569
- const m = last?.meta;
570
- if (!m?.total || !m?.limit) return void 0;
571
- const next = (m.offset ?? 0) + m.limit;
572
- return next < m.total ? next : void 0;
573
- }
574
- });
575
- }
576
- function useInfinitePolymarketRanking(params) {
577
- return useInfiniteQuery8({
578
- queryKey: ["polymarket-ranking", params],
579
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/ranking", { ...params, offset: String(pageParam) }),
580
- initialPageParam: 0,
581
- getNextPageParam: (last) => {
582
- const m = last?.meta;
583
- if (!m?.total || !m?.limit) return void 0;
584
- const next = (m.offset ?? 0) + m.limit;
585
- return next < m.total ? next : void 0;
586
- }
587
- });
588
- }
589
- function useInfinitePolymarketTrades(params) {
590
- return useInfiniteQuery8({
591
- queryKey: ["polymarket-trades", params],
592
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/trades", { ...params, offset: String(pageParam) }),
593
- initialPageParam: 0,
594
- getNextPageParam: (last) => {
595
- const m = last?.meta;
596
- if (!m?.total || !m?.limit) return void 0;
597
- const next = (m.offset ?? 0) + m.limit;
598
- return next < m.total ? next : void 0;
599
- }
600
- });
601
- }
602
- function useInfinitePolymarketVolumes(params) {
603
- return useInfiniteQuery8({
604
- queryKey: ["polymarket-volumes", params],
605
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/polymarket/volumes", { ...params, offset: String(pageParam) }),
606
- initialPageParam: 0,
607
- getNextPageParam: (last) => {
608
- const m = last?.meta;
609
- if (!m?.total || !m?.limit) return void 0;
610
- const next = (m.offset ?? 0) + m.limit;
611
- return next < m.total ? next : void 0;
612
- }
613
- });
614
- }
615
-
616
- // src/react/hooks/prediction_market.ts
617
- import { useInfiniteQuery as useInfiniteQuery9 } from "@tanstack/react-query";
618
- function useInfinitePredictionMarketCategoryMetrics(params) {
619
- return useInfiniteQuery9({
620
- queryKey: ["prediction-market-category-metrics", params],
621
- queryFn: ({ pageParam = 0 }) => proxyGet("prediction-market/category-metrics", { ...params, offset: String(pageParam) }),
622
- initialPageParam: 0,
623
- getNextPageParam: (last) => {
624
- const m = last?.meta;
625
- if (!m?.total || !m?.limit) return void 0;
626
- const next = (m.offset ?? 0) + m.limit;
627
- return next < m.total ? next : void 0;
628
- }
629
- });
630
- }
631
-
632
- // src/react/hooks/project.ts
633
- import { useQuery as useQuery10, useInfiniteQuery as useInfiniteQuery10 } from "@tanstack/react-query";
634
- function useInfiniteProjectDefiMetrics(params) {
635
- return useInfiniteQuery10({
636
- queryKey: ["project-defi-metrics", params],
637
- queryFn: ({ pageParam = 0 }) => proxyGet("project/defi/metrics", { ...params, offset: String(pageParam) }),
638
- initialPageParam: 0,
639
- getNextPageParam: (last) => {
640
- const m = last?.meta;
641
- if (!m?.total || !m?.limit) return void 0;
642
- const next = (m.offset ?? 0) + m.limit;
643
- return next < m.total ? next : void 0;
644
- }
645
- });
646
- }
647
- function useInfiniteProjectDefiRanking(params) {
648
- return useInfiniteQuery10({
649
- queryKey: ["project-defi-ranking", params],
650
- queryFn: ({ pageParam = 0 }) => proxyGet("project/defi/ranking", { ...params, offset: String(pageParam) }),
651
- initialPageParam: 0,
652
- getNextPageParam: (last) => {
653
- const m = last?.meta;
654
- if (!m?.total || !m?.limit) return void 0;
655
- const next = (m.offset ?? 0) + m.limit;
656
- return next < m.total ? next : void 0;
657
- }
658
- });
659
- }
660
- function useProjectDetail(params) {
661
- return useQuery10({
662
- queryKey: ["project-detail", params],
663
- queryFn: () => proxyGet("project/detail", params)
664
- });
665
- }
666
-
667
- // src/react/hooks/search.ts
668
- import { useInfiniteQuery as useInfiniteQuery11 } from "@tanstack/react-query";
669
- function useInfiniteSearchAirdrop(params) {
670
- return useInfiniteQuery11({
671
- queryKey: ["search-airdrop", params],
672
- queryFn: ({ pageParam = 0 }) => proxyGet("search/airdrop", { ...params, offset: String(pageParam) }),
673
- initialPageParam: 0,
674
- getNextPageParam: (last) => {
675
- const m = last?.meta;
676
- if (!m?.total || !m?.limit) return void 0;
677
- const next = (m.offset ?? 0) + m.limit;
678
- return next < m.total ? next : void 0;
679
- }
680
- });
681
- }
682
- function useInfiniteSearchEvents(params) {
683
- return useInfiniteQuery11({
684
- queryKey: ["search-events", params],
685
- queryFn: ({ pageParam = 0 }) => proxyGet("search/events", { ...params, offset: String(pageParam) }),
686
- initialPageParam: 0,
687
- getNextPageParam: (last) => {
688
- const m = last?.meta;
689
- if (!m?.total || !m?.limit) return void 0;
690
- const next = (m.offset ?? 0) + m.limit;
691
- return next < m.total ? next : void 0;
692
- }
693
- });
694
- }
695
- function useInfiniteSearchFund(params) {
696
- return useInfiniteQuery11({
697
- queryKey: ["search-fund", params],
698
- queryFn: ({ pageParam = 0 }) => proxyGet("search/fund", { ...params, offset: String(pageParam) }),
699
- initialPageParam: 0,
700
- getNextPageParam: (last) => {
701
- const m = last?.meta;
702
- if (!m?.total || !m?.limit) return void 0;
703
- const next = (m.offset ?? 0) + m.limit;
704
- return next < m.total ? next : void 0;
705
- }
706
- });
707
- }
708
- function useInfiniteSearchKalshi(params) {
709
- return useInfiniteQuery11({
710
- queryKey: ["search-kalshi", params],
711
- queryFn: ({ pageParam = 0 }) => proxyGet("search/kalshi", { ...params, offset: String(pageParam) }),
712
- initialPageParam: 0,
713
- getNextPageParam: (last) => {
714
- const m = last?.meta;
715
- if (!m?.total || !m?.limit) return void 0;
716
- const next = (m.offset ?? 0) + m.limit;
717
- return next < m.total ? next : void 0;
718
- }
719
- });
720
- }
721
- function useInfiniteSearchNews(params) {
722
- return useInfiniteQuery11({
723
- queryKey: ["search-news", params],
724
- queryFn: ({ pageParam = 0 }) => proxyGet("search/news", { ...params, offset: String(pageParam) }),
725
- initialPageParam: 0,
726
- getNextPageParam: (last) => {
727
- const m = last?.meta;
728
- if (!m?.total || !m?.limit) return void 0;
729
- const next = (m.offset ?? 0) + m.limit;
730
- return next < m.total ? next : void 0;
731
- }
732
- });
733
- }
734
- function useInfiniteSearchPolymarket(params) {
735
- return useInfiniteQuery11({
736
- queryKey: ["search-polymarket", params],
737
- queryFn: ({ pageParam = 0 }) => proxyGet("search/polymarket", { ...params, offset: String(pageParam) }),
738
- initialPageParam: 0,
739
- getNextPageParam: (last) => {
740
- const m = last?.meta;
741
- if (!m?.total || !m?.limit) return void 0;
742
- const next = (m.offset ?? 0) + m.limit;
743
- return next < m.total ? next : void 0;
744
- }
745
- });
746
- }
747
- function useInfiniteSearchProject(params) {
748
- return useInfiniteQuery11({
749
- queryKey: ["search-project", params],
750
- queryFn: ({ pageParam = 0 }) => proxyGet("search/project", { ...params, offset: String(pageParam) }),
751
- initialPageParam: 0,
752
- getNextPageParam: (last) => {
753
- const m = last?.meta;
754
- if (!m?.total || !m?.limit) return void 0;
755
- const next = (m.offset ?? 0) + m.limit;
756
- return next < m.total ? next : void 0;
757
- }
758
- });
759
- }
760
- function useInfiniteSearchSocialPeople(params) {
761
- return useInfiniteQuery11({
762
- queryKey: ["search-social-people", params],
763
- queryFn: ({ pageParam }) => proxyGet("search/social/people", { ...params, cursor: pageParam || void 0 }),
764
- initialPageParam: "",
765
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
766
- });
767
- }
768
- function useInfiniteSearchSocialPosts(params) {
769
- return useInfiniteQuery11({
770
- queryKey: ["search-social-posts", params],
771
- queryFn: ({ pageParam }) => proxyGet("search/social/posts", { ...params, cursor: pageParam || void 0 }),
772
- initialPageParam: "",
773
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
774
- });
775
- }
776
- function useInfiniteSearchWallet(params) {
777
- return useInfiniteQuery11({
778
- queryKey: ["search-wallet", params],
779
- queryFn: ({ pageParam = 0 }) => proxyGet("search/wallet", { ...params, offset: String(pageParam) }),
780
- initialPageParam: 0,
781
- getNextPageParam: (last) => {
782
- const m = last?.meta;
783
- if (!m?.total || !m?.limit) return void 0;
784
- const next = (m.offset ?? 0) + m.limit;
785
- return next < m.total ? next : void 0;
786
- }
787
- });
788
- }
789
- function useInfiniteSearchWeb(params) {
790
- return useInfiniteQuery11({
791
- queryKey: ["search-web", params],
792
- queryFn: ({ pageParam = 0 }) => proxyGet("search/web", { ...params, offset: String(pageParam) }),
793
- initialPageParam: 0,
794
- getNextPageParam: (last) => {
795
- const m = last?.meta;
796
- if (!m?.total || !m?.limit) return void 0;
797
- const next = (m.offset ?? 0) + m.limit;
798
- return next < m.total ? next : void 0;
799
- }
800
- });
801
- }
802
-
803
- // src/react/hooks/social.ts
804
- import { useQuery as useQuery12, useInfiniteQuery as useInfiniteQuery12 } from "@tanstack/react-query";
805
- function useSocialDetail(params) {
806
- return useQuery12({
807
- queryKey: ["social-detail", params],
808
- queryFn: () => proxyGet("social/detail", params)
809
- });
810
- }
811
- function useInfiniteSocialMindshare(params) {
812
- return useInfiniteQuery12({
813
- queryKey: ["social-mindshare", params],
814
- queryFn: ({ pageParam = 0 }) => proxyGet("social/mindshare", { ...params, offset: String(pageParam) }),
815
- initialPageParam: 0,
816
- getNextPageParam: (last) => {
817
- const m = last?.meta;
818
- if (!m?.total || !m?.limit) return void 0;
819
- const next = (m.offset ?? 0) + m.limit;
820
- return next < m.total ? next : void 0;
821
- }
822
- });
823
- }
824
- function useInfiniteSocialRanking(params) {
825
- return useInfiniteQuery12({
826
- queryKey: ["social-ranking", params],
827
- queryFn: ({ pageParam = 0 }) => proxyGet("social/ranking", { ...params, offset: String(pageParam) }),
828
- initialPageParam: 0,
829
- getNextPageParam: (last) => {
830
- const m = last?.meta;
831
- if (!m?.total || !m?.limit) return void 0;
832
- const next = (m.offset ?? 0) + m.limit;
833
- return next < m.total ? next : void 0;
834
- }
835
- });
836
- }
837
- function useInfiniteSocialSmartFollowersHistory(params) {
838
- return useInfiniteQuery12({
839
- queryKey: ["social-smart-followers-history", params],
840
- queryFn: ({ pageParam = 0 }) => proxyGet("social/smart-followers/history", { ...params, offset: String(pageParam) }),
841
- initialPageParam: 0,
842
- getNextPageParam: (last) => {
843
- const m = last?.meta;
844
- if (!m?.total || !m?.limit) return void 0;
845
- const next = (m.offset ?? 0) + m.limit;
846
- return next < m.total ? next : void 0;
847
- }
848
- });
849
- }
850
- function useInfiniteSocialTweetReplies(params) {
851
- return useInfiniteQuery12({
852
- queryKey: ["social-tweet-replies", params],
853
- queryFn: ({ pageParam }) => proxyGet("social/tweet/replies", { ...params, cursor: pageParam || void 0 }),
854
- initialPageParam: "",
855
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
856
- });
857
- }
858
- function useInfiniteSocialTweets(params) {
859
- return useInfiniteQuery12({
860
- queryKey: ["social-tweets", params],
861
- queryFn: ({ pageParam = 0 }) => proxyGet("social/tweets", { ...params, offset: String(pageParam) }),
862
- initialPageParam: 0,
863
- getNextPageParam: (last) => {
864
- const m = last?.meta;
865
- if (!m?.total || !m?.limit) return void 0;
866
- const next = (m.offset ?? 0) + m.limit;
867
- return next < m.total ? next : void 0;
868
- }
869
- });
870
- }
871
- function useSocialUser(params) {
872
- return useQuery12({
873
- queryKey: ["social-user", params],
874
- queryFn: () => proxyGet("social/user", params)
875
- });
876
- }
877
- function useInfiniteSocialUserFollowers(params) {
878
- return useInfiniteQuery12({
879
- queryKey: ["social-user-followers", params],
880
- queryFn: ({ pageParam }) => proxyGet("social/user/followers", { ...params, cursor: pageParam || void 0 }),
881
- initialPageParam: "",
882
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
883
- });
884
- }
885
- function useInfiniteSocialUserFollowing(params) {
886
- return useInfiniteQuery12({
887
- queryKey: ["social-user-following", params],
888
- queryFn: ({ pageParam }) => proxyGet("social/user/following", { ...params, cursor: pageParam || void 0 }),
889
- initialPageParam: "",
890
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
891
- });
892
- }
893
- function useInfiniteSocialUserPosts(params) {
894
- return useInfiniteQuery12({
895
- queryKey: ["social-user-posts", params],
896
- queryFn: ({ pageParam }) => proxyGet("social/user/posts", { ...params, cursor: pageParam || void 0 }),
897
- initialPageParam: "",
898
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
899
- });
900
- }
901
- function useInfiniteSocialUserReplies(params) {
902
- return useInfiniteQuery12({
903
- queryKey: ["social-user-replies", params],
904
- queryFn: ({ pageParam }) => proxyGet("social/user/replies", { ...params, cursor: pageParam || void 0 }),
905
- initialPageParam: "",
906
- getNextPageParam: (last) => last?.meta?.has_more ? last.meta.next_cursor : void 0
907
- });
908
- }
909
-
910
- // src/react/hooks/token.ts
911
- import { useInfiniteQuery as useInfiniteQuery13 } from "@tanstack/react-query";
912
- function useInfiniteTokenDexTrades(params) {
913
- return useInfiniteQuery13({
914
- queryKey: ["token-dex-trades", params],
915
- queryFn: ({ pageParam = 0 }) => proxyGet("token/dex-trades", { ...params, offset: String(pageParam) }),
916
- initialPageParam: 0,
917
- getNextPageParam: (last) => {
918
- const m = last?.meta;
919
- if (!m?.total || !m?.limit) return void 0;
920
- const next = (m.offset ?? 0) + m.limit;
921
- return next < m.total ? next : void 0;
922
- }
923
- });
924
- }
925
- function useInfiniteTokenHolders(params) {
926
- return useInfiniteQuery13({
927
- queryKey: ["token-holders", params],
928
- queryFn: ({ pageParam = 0 }) => proxyGet("token/holders", { ...params, offset: String(pageParam) }),
929
- initialPageParam: 0,
930
- getNextPageParam: (last) => {
931
- const m = last?.meta;
932
- if (!m?.total || !m?.limit) return void 0;
933
- const next = (m.offset ?? 0) + m.limit;
934
- return next < m.total ? next : void 0;
935
- }
936
- });
937
- }
938
- function useInfiniteTokenTokenomics(params) {
939
- return useInfiniteQuery13({
940
- queryKey: ["token-tokenomics", params],
941
- queryFn: ({ pageParam = 0 }) => proxyGet("token/tokenomics", { ...params, offset: String(pageParam) }),
942
- initialPageParam: 0,
943
- getNextPageParam: (last) => {
944
- const m = last?.meta;
945
- if (!m?.total || !m?.limit) return void 0;
946
- const next = (m.offset ?? 0) + m.limit;
947
- return next < m.total ? next : void 0;
948
- }
949
- });
950
- }
951
- function useInfiniteTokenTransfers(params) {
952
- return useInfiniteQuery13({
953
- queryKey: ["token-transfers", params],
954
- queryFn: ({ pageParam = 0 }) => proxyGet("token/transfers", { ...params, offset: String(pageParam) }),
955
- initialPageParam: 0,
956
- getNextPageParam: (last) => {
957
- const m = last?.meta;
958
- if (!m?.total || !m?.limit) return void 0;
959
- const next = (m.offset ?? 0) + m.limit;
960
- return next < m.total ? next : void 0;
961
- }
962
- });
963
- }
964
-
965
- // src/react/hooks/v2.ts
966
- import { useQuery as useQuery14 } from "@tanstack/react-query";
967
- function useV2KalshiOrderbooks(params) {
968
- return useQuery14({
969
- queryKey: ["v2-kalshi-orderbooks", params],
970
- queryFn: () => proxyGet("gateway/v2/kalshi/orderbooks", params)
971
- });
972
- }
973
- function useV2PolymarketCandlesticks(params) {
974
- return useQuery14({
975
- queryKey: ["v2-polymarket-candlesticks", params],
976
- queryFn: () => proxyGet("gateway/v2/polymarket/candlesticks/{condition_id}", params)
977
- });
978
- }
979
- function useV2PolymarketVolumeTimeseries(params) {
980
- return useQuery14({
981
- queryKey: ["v2-polymarket-volume-timeseries", params],
982
- queryFn: () => proxyGet("gateway/v2/polymarket/markets/{token_id}/volume", params)
983
- });
984
- }
985
- function useV2PolymarketOrderbooks(params) {
986
- return useQuery14({
987
- queryKey: ["v2-polymarket-orderbooks", params],
988
- queryFn: () => proxyGet("gateway/v2/polymarket/orderbooks", params)
989
- });
990
- }
991
- function useV2PolymarketVolumeChart(params) {
992
- return useQuery14({
993
- queryKey: ["v2-polymarket-volume-chart", params],
994
- queryFn: () => proxyGet("gateway/v2/polymarket/volume-chart/{condition_id}", params)
995
- });
996
- }
997
-
998
- // src/react/hooks/wallet.ts
999
- import { useQuery as useQuery15, useInfiniteQuery as useInfiniteQuery15 } from "@tanstack/react-query";
1000
- function useWalletDetail(params) {
1001
- return useQuery15({
1002
- queryKey: ["wallet-detail", params],
1003
- queryFn: () => proxyGet("wallet/detail", params)
1004
- });
1005
- }
1006
- function useInfiniteWalletHistory(params) {
1007
- return useInfiniteQuery15({
1008
- queryKey: ["wallet-history", params],
1009
- queryFn: ({ pageParam = 0 }) => proxyGet("wallet/history", { ...params, offset: String(pageParam) }),
1010
- initialPageParam: 0,
1011
- getNextPageParam: (last) => {
1012
- const m = last?.meta;
1013
- if (!m?.total || !m?.limit) return void 0;
1014
- const next = (m.offset ?? 0) + m.limit;
1015
- return next < m.total ? next : void 0;
1016
- }
1017
- });
1018
- }
1019
- function useInfiniteWalletLabelsBatch(params) {
1020
- return useInfiniteQuery15({
1021
- queryKey: ["wallet-labels-batch", params],
1022
- queryFn: ({ pageParam = 0 }) => proxyGet("wallet/labels/batch", { ...params, offset: String(pageParam) }),
1023
- initialPageParam: 0,
1024
- getNextPageParam: (last) => {
1025
- const m = last?.meta;
1026
- if (!m?.total || !m?.limit) return void 0;
1027
- const next = (m.offset ?? 0) + m.limit;
1028
- return next < m.total ? next : void 0;
1029
- }
1030
- });
1031
- }
1032
- function useInfiniteWalletNetWorth(params) {
1033
- return useInfiniteQuery15({
1034
- queryKey: ["wallet-net-worth", params],
1035
- queryFn: ({ pageParam = 0 }) => proxyGet("wallet/net-worth", { ...params, offset: String(pageParam) }),
1036
- initialPageParam: 0,
1037
- getNextPageParam: (last) => {
1038
- const m = last?.meta;
1039
- if (!m?.total || !m?.limit) return void 0;
1040
- const next = (m.offset ?? 0) + m.limit;
1041
- return next < m.total ? next : void 0;
1042
- }
1043
- });
1044
- }
1045
- function useInfiniteWalletProtocols(params) {
1046
- return useInfiniteQuery15({
1047
- queryKey: ["wallet-protocols", params],
1048
- queryFn: ({ pageParam = 0 }) => proxyGet("wallet/protocols", { ...params, offset: String(pageParam) }),
1049
- initialPageParam: 0,
1050
- getNextPageParam: (last) => {
1051
- const m = last?.meta;
1052
- if (!m?.total || !m?.limit) return void 0;
1053
- const next = (m.offset ?? 0) + m.limit;
1054
- return next < m.total ? next : void 0;
1055
- }
1056
- });
1057
- }
1058
- function useInfiniteWalletTransfers(params) {
1059
- return useInfiniteQuery15({
1060
- queryKey: ["wallet-transfers", params],
1061
- queryFn: ({ pageParam = 0 }) => proxyGet("wallet/transfers", { ...params, offset: String(pageParam) }),
1062
- initialPageParam: 0,
1063
- getNextPageParam: (last) => {
1064
- const m = last?.meta;
1065
- if (!m?.total || !m?.limit) return void 0;
1066
- const next = (m.offset ?? 0) + m.limit;
1067
- return next < m.total ? next : void 0;
1068
- }
1069
- });
1070
- }
1071
-
1072
- // src/react/hooks/web.ts
1073
- import { useQuery as useQuery16 } from "@tanstack/react-query";
1074
- function useWebFetch(params) {
1075
- return useQuery16({
1076
- queryKey: ["web-fetch", params],
1077
- queryFn: () => proxyGet("web/fetch", params)
1078
- });
1079
- }
1080
- export {
1081
- cn,
1082
- toast,
1083
- useExchangeDepth,
1084
- useExchangeFundingHistory,
1085
- useExchangeKlines,
1086
- useExchangeLongShortRatio,
1087
- useExchangeMarkets,
1088
- useExchangePerp,
1089
- useExchangePrice,
1090
- useFundDetail,
1091
- useInfiniteFundPortfolio,
1092
- useInfiniteFundRanking,
1093
- useInfiniteKalshiEvents,
1094
- useInfiniteKalshiMarkets,
1095
- useInfiniteKalshiOpenInterest,
1096
- useInfiniteKalshiPrices,
1097
- useInfiniteKalshiRanking,
1098
- useInfiniteKalshiTrades,
1099
- useInfiniteKalshiVolumes,
1100
- useInfiniteMarketRanking,
1101
- useInfiniteMatchingMarketDaily,
1102
- useInfiniteMatchingMarketFind,
1103
- useInfiniteMatchingMarketPairs,
1104
- useInfiniteNewsFeed,
1105
- useInfiniteOnchainBridgeRanking,
1106
- useInfiniteOnchainSchema,
1107
- useInfiniteOnchainSql,
1108
- useInfiniteOnchainStructuredQuery,
1109
- useInfiniteOnchainTx,
1110
- useInfiniteOnchainYieldRanking,
1111
- useInfinitePolymarketActivity,
1112
- useInfinitePolymarketEvents,
1113
- useInfinitePolymarketMarkets,
1114
- useInfinitePolymarketOpenInterest,
1115
- useInfinitePolymarketPositions,
1116
- useInfinitePolymarketPrices,
1117
- useInfinitePolymarketRanking,
1118
- useInfinitePolymarketTrades,
1119
- useInfinitePolymarketVolumes,
1120
- useInfinitePredictionMarketCategoryMetrics,
1121
- useInfiniteProjectDefiMetrics,
1122
- useInfiniteProjectDefiRanking,
1123
- useInfiniteSearchAirdrop,
1124
- useInfiniteSearchEvents,
1125
- useInfiniteSearchFund,
1126
- useInfiniteSearchKalshi,
1127
- useInfiniteSearchNews,
1128
- useInfiniteSearchPolymarket,
1129
- useInfiniteSearchProject,
1130
- useInfiniteSearchSocialPeople,
1131
- useInfiniteSearchSocialPosts,
1132
- useInfiniteSearchWallet,
1133
- useInfiniteSearchWeb,
1134
- useInfiniteSocialMindshare,
1135
- useInfiniteSocialRanking,
1136
- useInfiniteSocialSmartFollowersHistory,
1137
- useInfiniteSocialTweetReplies,
1138
- useInfiniteSocialTweets,
1139
- useInfiniteSocialUserFollowers,
1140
- useInfiniteSocialUserFollowing,
1141
- useInfiniteSocialUserPosts,
1142
- useInfiniteSocialUserReplies,
1143
- useInfiniteTokenDexTrades,
1144
- useInfiniteTokenHolders,
1145
- useInfiniteTokenTokenomics,
1146
- useInfiniteTokenTransfers,
1147
- useInfiniteWalletHistory,
1148
- useInfiniteWalletLabelsBatch,
1149
- useInfiniteWalletNetWorth,
1150
- useInfiniteWalletProtocols,
1151
- useInfiniteWalletTransfers,
1152
- useMarketEtf,
1153
- useMarketFearGreed,
1154
- useMarketFutures,
1155
- useMarketLiquidationChart,
1156
- useMarketLiquidationExchangeList,
1157
- useMarketLiquidationOrder,
1158
- useMarketOnchainIndicator,
1159
- useMarketOptions,
1160
- useMarketPrice,
1161
- useMarketPriceIndicator,
1162
- useNewsDetail,
1163
- useOnchainGasPrice,
1164
- useProjectDetail,
1165
- useSocialDetail,
1166
- useSocialUser,
1167
- useToast,
1168
- useV2KalshiOrderbooks,
1169
- useV2PolymarketCandlesticks,
1170
- useV2PolymarketOrderbooks,
1171
- useV2PolymarketVolumeChart,
1172
- useV2PolymarketVolumeTimeseries,
1173
- useWalletDetail,
1174
- useWebFetch
1175
- };