@pear-protocol/core-sdk 0.0.24 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,9 @@ import { ClientHeaders } from '../types.js';
4
4
 
5
5
  declare class Core {
6
6
  private client;
7
- constructor(client: HttpClient);
7
+ private clientId?;
8
+ constructor(client: HttpClient, clientId?: string | null);
9
+ private withClientId;
8
10
  accounts: {
9
11
  list: (query?: HttpTypes.TradeAccountListParamsInput, headers?: ClientHeaders) => Promise<{
10
12
  accounts: {
@@ -180,6 +182,25 @@ declare class Core {
180
182
  }>;
181
183
  restore: (id: string, headers?: ClientHeaders) => Promise<void>;
182
184
  };
185
+ apiKeys: {
186
+ list: (headers?: ClientHeaders) => Promise<{
187
+ id: string;
188
+ label: string;
189
+ scope: "read" | "read_write";
190
+ keyPrefix: string;
191
+ lastUsedAt: string | null;
192
+ expiresAt: string | null;
193
+ revokedAt: string | null;
194
+ createdAt: string;
195
+ }[]>;
196
+ create: (body: HttpTypes.CreateApiKeyInput, headers?: ClientHeaders) => Promise<{
197
+ id: string;
198
+ label: string;
199
+ scope: "read" | "read_write";
200
+ key: string;
201
+ }>;
202
+ revoke: (id: string, headers?: ClientHeaders) => Promise<void>;
203
+ };
183
204
  executions: {
184
205
  list: (query: HttpTypes.ExecutionListParamsInput, headers?: ClientHeaders) => Promise<{
185
206
  limit: number;
@@ -405,6 +426,68 @@ declare class Core {
405
426
  data: Record<string, string>;
406
427
  }>;
407
428
  };
429
+ markets: {
430
+ list: (query: HttpTypes.MarketsQueryParamsInput, headers?: ClientHeaders) => Promise<{
431
+ markets: {
432
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
433
+ instrumentId: string;
434
+ displaySymbol: string;
435
+ base: string;
436
+ quote: string;
437
+ price: string;
438
+ volume24h: string;
439
+ change24h: string;
440
+ openInterest: string;
441
+ fundingRate: string;
442
+ tradeability: {
443
+ status: "tradable" | "reduce_only" | "not_tradable";
444
+ reason: string | null;
445
+ };
446
+ updatedAt: number;
447
+ }[];
448
+ totals: {
449
+ markets: number;
450
+ volume24h: string;
451
+ openInterest: string;
452
+ };
453
+ }>;
454
+ baskets: (query: HttpTypes.MarketBasketsQueryParamsInput, headers?: ClientHeaders) => Promise<{
455
+ limit: number;
456
+ offset: number;
457
+ count: number;
458
+ markets: {
459
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
460
+ basketKey: string;
461
+ displaySymbol: string;
462
+ longInstrumentIds: string[];
463
+ shortInstrumentIds: string[];
464
+ price: string;
465
+ priceChange24h: string;
466
+ weightRatio: string;
467
+ weightRatioChange24h: string;
468
+ netFunding: string;
469
+ volume24h: string;
470
+ openInterest: string;
471
+ tradeability: {
472
+ status: "tradable" | "reduce_only" | "not_tradable";
473
+ reason: string | null;
474
+ };
475
+ updatedAt: number;
476
+ hasMaterializedStats: boolean;
477
+ }[];
478
+ }>;
479
+ };
480
+ oracle: {
481
+ btcdom: (headers?: ClientHeaders) => Promise<{
482
+ id: string;
483
+ category: "btcdom";
484
+ source: "coingecko";
485
+ oracle: {
486
+ value: number;
487
+ unit: "cent" | "percent";
488
+ } | null;
489
+ }>;
490
+ };
408
491
  positions: {
409
492
  list: (query: HttpTypes.PositionListParamsInput, headers?: ClientHeaders) => Promise<{
410
493
  positions: {
@@ -430,6 +513,177 @@ declare class Core {
430
513
  }[];
431
514
  }>;
432
515
  };
516
+ portfolio: {
517
+ overview: (query?: HttpTypes.PortfolioQueryInput, headers?: ClientHeaders) => Promise<{
518
+ intervals: {
519
+ oneDay: {
520
+ periodStart: string;
521
+ periodEnd: string;
522
+ volume: number;
523
+ openInterest: number;
524
+ winningTradesCount: number;
525
+ winningTradesUsd: number;
526
+ losingTradesCount: number;
527
+ losingTradesUsd: number;
528
+ }[];
529
+ oneWeek: {
530
+ periodStart: string;
531
+ periodEnd: string;
532
+ volume: number;
533
+ openInterest: number;
534
+ winningTradesCount: number;
535
+ winningTradesUsd: number;
536
+ losingTradesCount: number;
537
+ losingTradesUsd: number;
538
+ }[];
539
+ oneMonth: {
540
+ periodStart: string;
541
+ periodEnd: string;
542
+ volume: number;
543
+ openInterest: number;
544
+ winningTradesCount: number;
545
+ winningTradesUsd: number;
546
+ losingTradesCount: number;
547
+ losingTradesUsd: number;
548
+ }[];
549
+ oneYear: {
550
+ periodStart: string;
551
+ periodEnd: string;
552
+ volume: number;
553
+ openInterest: number;
554
+ winningTradesCount: number;
555
+ winningTradesUsd: number;
556
+ losingTradesCount: number;
557
+ losingTradesUsd: number;
558
+ }[];
559
+ all: {
560
+ periodStart: string;
561
+ periodEnd: string;
562
+ volume: number;
563
+ openInterest: number;
564
+ winningTradesCount: number;
565
+ winningTradesUsd: number;
566
+ losingTradesCount: number;
567
+ losingTradesUsd: number;
568
+ }[];
569
+ } | null;
570
+ overall: {
571
+ totalWinningTradesCount: number;
572
+ totalLosingTradesCount: number;
573
+ totalWinningUsd: number;
574
+ totalLosingUsd: number;
575
+ currentOpenInterest: number;
576
+ currentTotalVolume: number;
577
+ unrealizedPnl: number;
578
+ realizedPnl: number;
579
+ totalFees: number;
580
+ totalTrades: number;
581
+ };
582
+ }>;
583
+ analytics: (query?: HttpTypes.PortfolioAnalyticsQueryInput, headers?: ClientHeaders) => Promise<{
584
+ config: {
585
+ rollingWindowDays: number;
586
+ startDate: string;
587
+ endDate: string;
588
+ };
589
+ portfolio: {
590
+ realizedOnly: {
591
+ pnlAbsolute: number;
592
+ pnlPercent: number | null;
593
+ hitRate: number | null;
594
+ profitFactor: number | null;
595
+ avgWinSize: number | null;
596
+ avgLossSize: number | null;
597
+ avgReturnPerWin: number | null;
598
+ avgReturnPerLoss: number | null;
599
+ maxDrawdown: number | null;
600
+ sharpeRatio: number | null;
601
+ sortinoRatio: number | null;
602
+ };
603
+ realizedPlusUnrealized: {
604
+ pnlAbsolute: number;
605
+ pnlPercent: number | null;
606
+ hitRate: number | null;
607
+ profitFactor: number | null;
608
+ avgWinSize: number | null;
609
+ avgLossSize: number | null;
610
+ avgReturnPerWin: number | null;
611
+ avgReturnPerLoss: number | null;
612
+ maxDrawdown: number | null;
613
+ sharpeRatio: number | null;
614
+ sortinoRatio: number | null;
615
+ };
616
+ realizedHitRate: number | null;
617
+ profitFactor: number | null;
618
+ avgWinSize: number | null;
619
+ avgLossSize: number | null;
620
+ breakevenHitRate: number | null;
621
+ cushion: number | null;
622
+ };
623
+ assets: {
624
+ asset: string;
625
+ realizedOnly: {
626
+ pnlAbsolute: number;
627
+ pnlPercent: number | null;
628
+ hitRate: number | null;
629
+ profitFactor: number | null;
630
+ avgWinSize: number | null;
631
+ avgLossSize: number | null;
632
+ avgReturnPerWin: number | null;
633
+ avgReturnPerLoss: number | null;
634
+ maxDrawdown: number | null;
635
+ sharpeRatio: number | null;
636
+ sortinoRatio: number | null;
637
+ };
638
+ realizedPlusUnrealized: {
639
+ pnlAbsolute: number;
640
+ pnlPercent: number | null;
641
+ hitRate: number | null;
642
+ profitFactor: number | null;
643
+ avgWinSize: number | null;
644
+ avgLossSize: number | null;
645
+ avgReturnPerWin: number | null;
646
+ avgReturnPerLoss: number | null;
647
+ maxDrawdown: number | null;
648
+ sharpeRatio: number | null;
649
+ sortinoRatio: number | null;
650
+ };
651
+ unrealizedReturnPerDay: number | null;
652
+ }[];
653
+ pairs: {
654
+ key: string;
655
+ longAssets: string[];
656
+ shortAssets: string[];
657
+ trades: number;
658
+ wins: number;
659
+ losses: number;
660
+ hitRate: number | null;
661
+ avgWinSize: number | null;
662
+ avgLossSize: number | null;
663
+ expectancy: number | null;
664
+ totalPnl: number;
665
+ bookPercent: number | null;
666
+ }[];
667
+ series?: {
668
+ date: string;
669
+ trades: number;
670
+ wins: number;
671
+ losses: number;
672
+ dayPnl: number;
673
+ hitRate: number | null;
674
+ winLossRatio: number | null;
675
+ rollingHitRate: number | null;
676
+ rollingWinLossRatio: number | null;
677
+ dailyReturn: number | null;
678
+ cumulativeReturn: number;
679
+ equity: number;
680
+ drawdown: number;
681
+ rollingSharpe: number | null;
682
+ rollingSortino: number | null;
683
+ rollingVolatility: number | null;
684
+ }[] | undefined;
685
+ }>;
686
+ };
433
687
  prices: {
434
688
  list: (query: HttpTypes.PricesQueryParams, headers?: ClientHeaders) => Promise<{
435
689
  mid: Record<string, string>;
@@ -1163,6 +1417,29 @@ declare class Core {
1163
1417
  track: "PEAK" | "TROUGH";
1164
1418
  threshold: number;
1165
1419
  };
1420
+ } | {
1421
+ type: "funding_rate";
1422
+ data: {
1423
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1424
+ symbol: string;
1425
+ track: "PEAK" | "TROUGH";
1426
+ threshold: number;
1427
+ };
1428
+ } | {
1429
+ type: "prediction_market";
1430
+ data: {
1431
+ source: "kalshi" | "polymarket";
1432
+ marketKey: string;
1433
+ track: "PEAK" | "TROUGH";
1434
+ threshold: number;
1435
+ };
1436
+ } | {
1437
+ type: "btc_dominance";
1438
+ data: {
1439
+ source: "coingecko";
1440
+ track: "PEAK" | "TROUGH";
1441
+ threshold: number;
1442
+ };
1166
1443
  };
1167
1444
  context: {
1168
1445
  type: "MARKET";
@@ -1264,6 +1541,29 @@ declare class Core {
1264
1541
  track: "PEAK" | "TROUGH";
1265
1542
  threshold: number;
1266
1543
  };
1544
+ } | {
1545
+ type: "funding_rate";
1546
+ data: {
1547
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1548
+ symbol: string;
1549
+ track: "PEAK" | "TROUGH";
1550
+ threshold: number;
1551
+ };
1552
+ } | {
1553
+ type: "prediction_market";
1554
+ data: {
1555
+ source: "kalshi" | "polymarket";
1556
+ marketKey: string;
1557
+ track: "PEAK" | "TROUGH";
1558
+ threshold: number;
1559
+ };
1560
+ } | {
1561
+ type: "btc_dominance";
1562
+ data: {
1563
+ source: "coingecko";
1564
+ track: "PEAK" | "TROUGH";
1565
+ threshold: number;
1566
+ };
1267
1567
  };
1268
1568
  context: {
1269
1569
  type: "MARKET";
@@ -1417,6 +1717,29 @@ declare class Core {
1417
1717
  data: {
1418
1718
  priceSource: "mark" | "mid";
1419
1719
  };
1720
+ } | {
1721
+ type: "funding_rate";
1722
+ data: {
1723
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1724
+ symbol: string;
1725
+ track: "PEAK" | "TROUGH";
1726
+ threshold: number;
1727
+ };
1728
+ } | {
1729
+ type: "prediction_market";
1730
+ data: {
1731
+ source: "kalshi" | "polymarket";
1732
+ marketKey: string;
1733
+ track: "PEAK" | "TROUGH";
1734
+ threshold: number;
1735
+ };
1736
+ } | {
1737
+ type: "btc_dominance";
1738
+ data: {
1739
+ source: "coingecko";
1740
+ track: "PEAK" | "TROUGH";
1741
+ threshold: number;
1742
+ };
1420
1743
  };
1421
1744
  context: {
1422
1745
  type: "MARKET";
@@ -1501,6 +1824,29 @@ declare class Core {
1501
1824
  track: "PEAK" | "TROUGH";
1502
1825
  threshold: number;
1503
1826
  };
1827
+ } | {
1828
+ type: "funding_rate";
1829
+ data: {
1830
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1831
+ symbol: string;
1832
+ track: "PEAK" | "TROUGH";
1833
+ threshold: number;
1834
+ };
1835
+ } | {
1836
+ type: "prediction_market";
1837
+ data: {
1838
+ source: "kalshi" | "polymarket";
1839
+ marketKey: string;
1840
+ track: "PEAK" | "TROUGH";
1841
+ threshold: number;
1842
+ };
1843
+ } | {
1844
+ type: "btc_dominance";
1845
+ data: {
1846
+ source: "coingecko";
1847
+ track: "PEAK" | "TROUGH";
1848
+ threshold: number;
1849
+ };
1504
1850
  };
1505
1851
  context: {
1506
1852
  type: "MARKET";
@@ -1602,6 +1948,29 @@ declare class Core {
1602
1948
  track: "PEAK" | "TROUGH";
1603
1949
  threshold: number;
1604
1950
  };
1951
+ } | {
1952
+ type: "funding_rate";
1953
+ data: {
1954
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1955
+ symbol: string;
1956
+ track: "PEAK" | "TROUGH";
1957
+ threshold: number;
1958
+ };
1959
+ } | {
1960
+ type: "prediction_market";
1961
+ data: {
1962
+ source: "kalshi" | "polymarket";
1963
+ marketKey: string;
1964
+ track: "PEAK" | "TROUGH";
1965
+ threshold: number;
1966
+ };
1967
+ } | {
1968
+ type: "btc_dominance";
1969
+ data: {
1970
+ source: "coingecko";
1971
+ track: "PEAK" | "TROUGH";
1972
+ threshold: number;
1973
+ };
1605
1974
  };
1606
1975
  context: {
1607
1976
  type: "MARKET";
@@ -1755,6 +2124,29 @@ declare class Core {
1755
2124
  data: {
1756
2125
  priceSource: "mark" | "mid";
1757
2126
  };
2127
+ } | {
2128
+ type: "funding_rate";
2129
+ data: {
2130
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2131
+ symbol: string;
2132
+ track: "PEAK" | "TROUGH";
2133
+ threshold: number;
2134
+ };
2135
+ } | {
2136
+ type: "prediction_market";
2137
+ data: {
2138
+ source: "kalshi" | "polymarket";
2139
+ marketKey: string;
2140
+ track: "PEAK" | "TROUGH";
2141
+ threshold: number;
2142
+ };
2143
+ } | {
2144
+ type: "btc_dominance";
2145
+ data: {
2146
+ source: "coingecko";
2147
+ track: "PEAK" | "TROUGH";
2148
+ threshold: number;
2149
+ };
1758
2150
  };
1759
2151
  context: {
1760
2152
  type: "MARKET";
@@ -1839,6 +2231,29 @@ declare class Core {
1839
2231
  track: "PEAK" | "TROUGH";
1840
2232
  threshold: number;
1841
2233
  };
2234
+ } | {
2235
+ type: "funding_rate";
2236
+ data: {
2237
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2238
+ symbol: string;
2239
+ track: "PEAK" | "TROUGH";
2240
+ threshold: number;
2241
+ };
2242
+ } | {
2243
+ type: "prediction_market";
2244
+ data: {
2245
+ source: "kalshi" | "polymarket";
2246
+ marketKey: string;
2247
+ track: "PEAK" | "TROUGH";
2248
+ threshold: number;
2249
+ };
2250
+ } | {
2251
+ type: "btc_dominance";
2252
+ data: {
2253
+ source: "coingecko";
2254
+ track: "PEAK" | "TROUGH";
2255
+ threshold: number;
2256
+ };
1842
2257
  };
1843
2258
  context: {
1844
2259
  type: "MARKET";
@@ -1940,6 +2355,29 @@ declare class Core {
1940
2355
  track: "PEAK" | "TROUGH";
1941
2356
  threshold: number;
1942
2357
  };
2358
+ } | {
2359
+ type: "funding_rate";
2360
+ data: {
2361
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2362
+ symbol: string;
2363
+ track: "PEAK" | "TROUGH";
2364
+ threshold: number;
2365
+ };
2366
+ } | {
2367
+ type: "prediction_market";
2368
+ data: {
2369
+ source: "kalshi" | "polymarket";
2370
+ marketKey: string;
2371
+ track: "PEAK" | "TROUGH";
2372
+ threshold: number;
2373
+ };
2374
+ } | {
2375
+ type: "btc_dominance";
2376
+ data: {
2377
+ source: "coingecko";
2378
+ track: "PEAK" | "TROUGH";
2379
+ threshold: number;
2380
+ };
1943
2381
  };
1944
2382
  context: {
1945
2383
  type: "MARKET";
@@ -2093,6 +2531,29 @@ declare class Core {
2093
2531
  data: {
2094
2532
  priceSource: "mark" | "mid";
2095
2533
  };
2534
+ } | {
2535
+ type: "funding_rate";
2536
+ data: {
2537
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2538
+ symbol: string;
2539
+ track: "PEAK" | "TROUGH";
2540
+ threshold: number;
2541
+ };
2542
+ } | {
2543
+ type: "prediction_market";
2544
+ data: {
2545
+ source: "kalshi" | "polymarket";
2546
+ marketKey: string;
2547
+ track: "PEAK" | "TROUGH";
2548
+ threshold: number;
2549
+ };
2550
+ } | {
2551
+ type: "btc_dominance";
2552
+ data: {
2553
+ source: "coingecko";
2554
+ track: "PEAK" | "TROUGH";
2555
+ threshold: number;
2556
+ };
2096
2557
  };
2097
2558
  context: {
2098
2559
  type: "MARKET";
@@ -2149,7 +2610,7 @@ declare class Core {
2149
2610
  profile: {
2150
2611
  id: string;
2151
2612
  displayName: string;
2152
- role: "basic" | "pro";
2613
+ role: "basic" | "pro" | "admin";
2153
2614
  address: string | null;
2154
2615
  email: string | null;
2155
2616
  emailVerified: boolean;
@@ -2210,6 +2671,170 @@ declare class Core {
2210
2671
  }[];
2211
2672
  }>;
2212
2673
  };
2674
+ tca: {
2675
+ execution: (executionId: string, headers?: ClientHeaders) => Promise<{
2676
+ fillMetrics: {
2677
+ id: string;
2678
+ fillId: string;
2679
+ tradeAccountId: string;
2680
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2681
+ symbol: string;
2682
+ status: "FINAL";
2683
+ createdAt: string;
2684
+ updatedAt: string;
2685
+ benchmarkId?: string | undefined;
2686
+ executionId?: string | undefined;
2687
+ positionId?: string | undefined;
2688
+ cloid?: string | undefined;
2689
+ exchangeFillId?: string | undefined;
2690
+ slippageBps?: string | undefined;
2691
+ slippageQuote?: string | undefined;
2692
+ slippageUsd?: string | undefined;
2693
+ implementationShortfallBps?: string | undefined;
2694
+ spreadCostQuote?: string | undefined;
2695
+ spreadCostUsd?: string | undefined;
2696
+ tradeFee?: string | undefined;
2697
+ pearFee?: string | undefined;
2698
+ totalCostUsd?: string | undefined;
2699
+ gatewayLatencyMs?: number | undefined;
2700
+ timeToFillMs?: number | undefined;
2701
+ quoteAsset?: string | undefined;
2702
+ notionalQuote?: string | undefined;
2703
+ notionalUsd?: string | undefined;
2704
+ submittedAt?: string | undefined;
2705
+ acknowledgedAt?: string | undefined;
2706
+ exchangeExecutedAt?: string | undefined;
2707
+ timingGranularity?: "BATCH" | "LEG" | undefined;
2708
+ benchmark?: {
2709
+ id: string;
2710
+ executionId: string;
2711
+ legIndex: number;
2712
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2713
+ symbol: string;
2714
+ side: "BUY" | "SELL";
2715
+ source: string;
2716
+ timestamp: string;
2717
+ createdAt: string;
2718
+ orderId?: string | undefined;
2719
+ cloid?: string | undefined;
2720
+ decisionPrice?: string | undefined;
2721
+ arrivalMid?: string | undefined;
2722
+ arrivalBid?: string | undefined;
2723
+ arrivalAsk?: string | undefined;
2724
+ markPrice?: string | undefined;
2725
+ indexPrice?: string | undefined;
2726
+ quoteAsset?: string | undefined;
2727
+ usdConversionPrice?: string | undefined;
2728
+ } | undefined;
2729
+ }[];
2730
+ summary?: {
2731
+ id: string;
2732
+ executionId: string;
2733
+ tradeAccountId: string;
2734
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2735
+ fillCount: number;
2736
+ status: "FINAL";
2737
+ createdAt: string;
2738
+ updatedAt: string;
2739
+ notionalQuote?: string | undefined;
2740
+ notionalUsd?: string | undefined;
2741
+ weightedSlippageBps?: string | undefined;
2742
+ totalSlippageUsd?: string | undefined;
2743
+ totalTradeFee?: string | undefined;
2744
+ totalPearFee?: string | undefined;
2745
+ totalCostUsd?: string | undefined;
2746
+ } | undefined;
2747
+ }>;
2748
+ position: (positionId: string, query?: HttpTypes.TcaPositionQueryParamsInput, headers?: ClientHeaders) => Promise<{
2749
+ limit: number;
2750
+ fillMetrics: {
2751
+ id: string;
2752
+ fillId: string;
2753
+ tradeAccountId: string;
2754
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2755
+ symbol: string;
2756
+ status: "FINAL";
2757
+ createdAt: string;
2758
+ updatedAt: string;
2759
+ benchmarkId?: string | undefined;
2760
+ executionId?: string | undefined;
2761
+ positionId?: string | undefined;
2762
+ cloid?: string | undefined;
2763
+ exchangeFillId?: string | undefined;
2764
+ slippageBps?: string | undefined;
2765
+ slippageQuote?: string | undefined;
2766
+ slippageUsd?: string | undefined;
2767
+ implementationShortfallBps?: string | undefined;
2768
+ spreadCostQuote?: string | undefined;
2769
+ spreadCostUsd?: string | undefined;
2770
+ tradeFee?: string | undefined;
2771
+ pearFee?: string | undefined;
2772
+ totalCostUsd?: string | undefined;
2773
+ gatewayLatencyMs?: number | undefined;
2774
+ timeToFillMs?: number | undefined;
2775
+ quoteAsset?: string | undefined;
2776
+ notionalQuote?: string | undefined;
2777
+ notionalUsd?: string | undefined;
2778
+ submittedAt?: string | undefined;
2779
+ acknowledgedAt?: string | undefined;
2780
+ exchangeExecutedAt?: string | undefined;
2781
+ timingGranularity?: "BATCH" | "LEG" | undefined;
2782
+ benchmark?: {
2783
+ id: string;
2784
+ executionId: string;
2785
+ legIndex: number;
2786
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2787
+ symbol: string;
2788
+ side: "BUY" | "SELL";
2789
+ source: string;
2790
+ timestamp: string;
2791
+ createdAt: string;
2792
+ orderId?: string | undefined;
2793
+ cloid?: string | undefined;
2794
+ decisionPrice?: string | undefined;
2795
+ arrivalMid?: string | undefined;
2796
+ arrivalBid?: string | undefined;
2797
+ arrivalAsk?: string | undefined;
2798
+ markPrice?: string | undefined;
2799
+ indexPrice?: string | undefined;
2800
+ quoteAsset?: string | undefined;
2801
+ usdConversionPrice?: string | undefined;
2802
+ } | undefined;
2803
+ }[];
2804
+ nextCursor?: string | undefined;
2805
+ }>;
2806
+ summary: (query?: HttpTypes.TcaSummaryQueryParamsInput, headers?: ClientHeaders) => Promise<{
2807
+ limit: number;
2808
+ summaries: {
2809
+ id: string;
2810
+ executionId: string;
2811
+ tradeAccountId: string;
2812
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
2813
+ fillCount: number;
2814
+ status: "FINAL";
2815
+ createdAt: string;
2816
+ updatedAt: string;
2817
+ notionalQuote?: string | undefined;
2818
+ notionalUsd?: string | undefined;
2819
+ weightedSlippageBps?: string | undefined;
2820
+ totalSlippageUsd?: string | undefined;
2821
+ totalTradeFee?: string | undefined;
2822
+ totalPearFee?: string | undefined;
2823
+ totalCostUsd?: string | undefined;
2824
+ }[];
2825
+ totals: {
2826
+ executionCount: number;
2827
+ fillCount: number;
2828
+ notionalQuote?: string | undefined;
2829
+ notionalUsd?: string | undefined;
2830
+ totalSlippageUsd?: string | undefined;
2831
+ totalTradeFee?: string | undefined;
2832
+ totalPearFee?: string | undefined;
2833
+ totalCostUsd?: string | undefined;
2834
+ };
2835
+ nextCursor?: string | undefined;
2836
+ }>;
2837
+ };
2213
2838
  }
2214
2839
 
2215
2840
  export { Core };