@kodiak-finance/orderly-portfolio 2.8.15 → 2.8.16-rc.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.
- package/dist/index.d.mts +258 -94
- package/dist/index.d.ts +258 -94
- package/dist/index.js +20 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -18
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React$1
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { FC, PropsWithChildren } from 'react';
|
|
2
3
|
import { ScaffoldProps, SideBarProps, SideMenuItem } from '@kodiak-finance/orderly-ui-scaffold';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import * as _kodiak_finance_orderly_types from '@kodiak-finance/orderly-types';
|
|
@@ -28,7 +29,8 @@ declare enum PortfolioLeftSidebarPath {
|
|
|
28
29
|
FeeTier = "/portfolio/feeTier",
|
|
29
30
|
ApiKey = "/portfolio/apiKey",
|
|
30
31
|
Setting = "/portfolio/setting",
|
|
31
|
-
History = "/portfolio/history"
|
|
32
|
+
History = "/portfolio/history",
|
|
33
|
+
SymbolPerformance = "/portfolio/symbol-performance"
|
|
32
34
|
}
|
|
33
35
|
type UseLayoutBuilderOptions = {
|
|
34
36
|
current?: string;
|
|
@@ -71,17 +73,17 @@ declare const useAssetScript: () => {
|
|
|
71
73
|
};
|
|
72
74
|
type AssetScriptReturn = ReturnType<typeof useAssetScript>;
|
|
73
75
|
|
|
74
|
-
declare const AssetsUI:
|
|
76
|
+
declare const AssetsUI: React__default.FC<AssetScriptReturn & {
|
|
75
77
|
onConnectWallet?: () => void;
|
|
76
78
|
}>;
|
|
77
79
|
|
|
78
|
-
declare const AssetWidget:
|
|
80
|
+
declare const AssetWidget: React__default.FC;
|
|
79
81
|
|
|
80
82
|
declare const HistoryDataGroupWidget: React.FC;
|
|
81
83
|
|
|
82
|
-
declare const AssetsChartWidget:
|
|
84
|
+
declare const AssetsChartWidget: React__default.FC;
|
|
83
85
|
|
|
84
|
-
declare enum PeriodType {
|
|
86
|
+
declare enum PeriodType$1 {
|
|
85
87
|
DAY = "1D",
|
|
86
88
|
WEEK = "7D",
|
|
87
89
|
MONTH = "30D",
|
|
@@ -90,10 +92,10 @@ declare enum PeriodType {
|
|
|
90
92
|
declare const useAssetsHistoryData: (localKey: string, options?: {
|
|
91
93
|
isRealtime?: boolean;
|
|
92
94
|
}) => {
|
|
93
|
-
readonly periodTypes: PeriodType[];
|
|
94
|
-
readonly period: PeriodType | null;
|
|
95
|
-
readonly onPeriodChange: (value: PeriodType) => void;
|
|
96
|
-
readonly periodLabel: Record<PeriodType, string>;
|
|
95
|
+
readonly periodTypes: PeriodType$1[];
|
|
96
|
+
readonly period: PeriodType$1 | null;
|
|
97
|
+
readonly onPeriodChange: (value: PeriodType$1) => void;
|
|
98
|
+
readonly periodLabel: Record<PeriodType$1, string>;
|
|
97
99
|
readonly curPeriod: string;
|
|
98
100
|
readonly data: API.DailyRow[];
|
|
99
101
|
readonly aggregateValue: {
|
|
@@ -137,10 +139,10 @@ declare const useAssetsChartScript: () => {
|
|
|
137
139
|
}[];
|
|
138
140
|
readonly invisible: boolean;
|
|
139
141
|
readonly type?: _kodiak_finance_orderly_hooks.TWType;
|
|
140
|
-
readonly periodTypes: PeriodType[];
|
|
141
|
-
readonly period: PeriodType | null;
|
|
142
|
-
readonly onPeriodChange: (value: PeriodType) => void;
|
|
143
|
-
readonly periodLabel: Record<PeriodType, string>;
|
|
142
|
+
readonly periodTypes: PeriodType$1[];
|
|
143
|
+
readonly period: PeriodType$1 | null;
|
|
144
|
+
readonly onPeriodChange: (value: PeriodType$1) => void;
|
|
145
|
+
readonly periodLabel: Record<PeriodType$1, string>;
|
|
144
146
|
readonly curPeriod: string;
|
|
145
147
|
readonly aggregateValue: {
|
|
146
148
|
vol: number;
|
|
@@ -180,7 +182,7 @@ declare const useAssetsChartScript: () => {
|
|
|
180
182
|
type useAssetsChartScriptReturn = ReturnType<typeof useAssetsChartScript>;
|
|
181
183
|
|
|
182
184
|
type AssetsLineChartProps = {} & useAssetsChartScriptReturn;
|
|
183
|
-
declare const AssetsChart:
|
|
185
|
+
declare const AssetsChart: React__default.FC<AssetsLineChartProps>;
|
|
184
186
|
|
|
185
187
|
type Options = {
|
|
186
188
|
chainsInfo: any[];
|
|
@@ -222,7 +224,7 @@ declare const AssetHistory: FC<AssetHistoryProps>;
|
|
|
222
224
|
type AssetHistoryWidgetProps = {
|
|
223
225
|
side: AssetHistorySideEnum;
|
|
224
226
|
};
|
|
225
|
-
declare const AssetHistoryWidget:
|
|
227
|
+
declare const AssetHistoryWidget: React__default.FC<AssetHistoryWidgetProps>;
|
|
226
228
|
|
|
227
229
|
declare const usePerformanceScript: () => {
|
|
228
230
|
data: ReadonlyArray<any>;
|
|
@@ -230,10 +232,10 @@ declare const usePerformanceScript: () => {
|
|
|
230
232
|
visible: boolean;
|
|
231
233
|
setVisible: (value: boolean) => void;
|
|
232
234
|
type?: _kodiak_finance_orderly_hooks.TWType;
|
|
233
|
-
periodTypes: PeriodType[];
|
|
234
|
-
period: PeriodType | null;
|
|
235
|
-
onPeriodChange: (value: PeriodType) => void;
|
|
236
|
-
periodLabel: Record<PeriodType, string>;
|
|
235
|
+
periodTypes: PeriodType$1[];
|
|
236
|
+
period: PeriodType$1 | null;
|
|
237
|
+
onPeriodChange: (value: PeriodType$1) => void;
|
|
238
|
+
periodLabel: Record<PeriodType$1, string>;
|
|
237
239
|
curPeriod: string;
|
|
238
240
|
aggregateValue: {
|
|
239
241
|
vol: number;
|
|
@@ -273,17 +275,17 @@ declare const usePerformanceScript: () => {
|
|
|
273
275
|
type UsePerformanceScriptReturn = ReturnType<typeof usePerformanceScript>;
|
|
274
276
|
|
|
275
277
|
type PerformanceUIProps = {} & UsePerformanceScriptReturn;
|
|
276
|
-
declare const PerformanceUI:
|
|
278
|
+
declare const PerformanceUI: React__default.FC<PerformanceUIProps>;
|
|
277
279
|
|
|
278
|
-
declare const PerformanceWidget:
|
|
280
|
+
declare const PerformanceWidget: React__default.FC;
|
|
279
281
|
|
|
280
|
-
declare const PerformanceMobileUI:
|
|
282
|
+
declare const PerformanceMobileUI: React__default.FC<Pick<useAssetsHistoryDataReturn & UsePerformanceScriptReturn, "data" | "curPeriod" | "aggregateValue" | "onPeriodChange" | "invisible" | "visible" | "createFakeData" | "period" | "filterItems" | "onFilter">>;
|
|
281
283
|
|
|
282
|
-
declare const PerformanceMobileWidget:
|
|
284
|
+
declare const PerformanceMobileWidget: React__default.FC;
|
|
283
285
|
declare const PerformanceMobileSheetId = "PerformanceMobileSheetId";
|
|
284
286
|
declare const PerformanceMobileDialogId = "PerformanceMobileDialogId";
|
|
285
287
|
|
|
286
|
-
declare const FundingHistoryWidget:
|
|
288
|
+
declare const FundingHistoryWidget: React__default.FC;
|
|
287
289
|
|
|
288
290
|
declare const useFundingHistoryHook: () => {
|
|
289
291
|
readonly dataSource: (_kodiak_finance_orderly_types.API.FundingFeeRow & {
|
|
@@ -306,7 +308,7 @@ declare const useFundingHistoryColumns: () => Column<API.FundingFeeRow & {
|
|
|
306
308
|
annual_rate: number;
|
|
307
309
|
}>[];
|
|
308
310
|
|
|
309
|
-
declare const DistributionHistoryWidget:
|
|
311
|
+
declare const DistributionHistoryWidget: React__default.FC;
|
|
310
312
|
|
|
311
313
|
declare const useDistributionHistoryHook: () => {
|
|
312
314
|
readonly dataSource: (_kodiak_finance_orderly_types.API.FundingFeeRow & {
|
|
@@ -332,45 +334,45 @@ declare const DistributionHistoryMobile: FC<FundingHistoryProps$1>;
|
|
|
332
334
|
type FundingHistoryProps = {} & useDistributionHistoryHookReturn;
|
|
333
335
|
declare const DistributionHistoryDesktop: FC<FundingHistoryProps>;
|
|
334
336
|
|
|
335
|
-
declare const OverviewPage:
|
|
337
|
+
declare const OverviewPage: React__default.FC;
|
|
336
338
|
|
|
337
339
|
declare const OverviewProvider: FC<PropsWithChildren<{
|
|
338
340
|
type?: TWType;
|
|
339
341
|
}>>;
|
|
340
342
|
|
|
341
|
-
declare const index$
|
|
342
|
-
declare const index$
|
|
343
|
-
declare const index$
|
|
344
|
-
declare const index$
|
|
345
|
-
declare const index$
|
|
346
|
-
declare const index$
|
|
347
|
-
declare const index$
|
|
348
|
-
declare const index$
|
|
349
|
-
declare const index$
|
|
350
|
-
declare const index$
|
|
351
|
-
declare const index$
|
|
352
|
-
declare const index$
|
|
353
|
-
declare const index$
|
|
354
|
-
declare const index$
|
|
355
|
-
declare const index$
|
|
356
|
-
declare const index$
|
|
357
|
-
declare const index$
|
|
358
|
-
declare const index$
|
|
359
|
-
declare const index$
|
|
360
|
-
declare const index$
|
|
361
|
-
declare const index$
|
|
362
|
-
declare const index$
|
|
363
|
-
declare const index$
|
|
364
|
-
declare const index$
|
|
365
|
-
declare const index$
|
|
366
|
-
declare namespace index$
|
|
367
|
-
export { index$
|
|
343
|
+
declare const index$6_AssetHistory: typeof AssetHistory;
|
|
344
|
+
declare const index$6_AssetHistoryWidget: typeof AssetHistoryWidget;
|
|
345
|
+
declare const index$6_AssetWidget: typeof AssetWidget;
|
|
346
|
+
declare const index$6_AssetsChart: typeof AssetsChart;
|
|
347
|
+
declare const index$6_AssetsChartWidget: typeof AssetsChartWidget;
|
|
348
|
+
declare const index$6_AssetsUI: typeof AssetsUI;
|
|
349
|
+
declare const index$6_DistributionHistoryDesktop: typeof DistributionHistoryDesktop;
|
|
350
|
+
declare const index$6_DistributionHistoryMobile: typeof DistributionHistoryMobile;
|
|
351
|
+
declare const index$6_DistributionHistoryWidget: typeof DistributionHistoryWidget;
|
|
352
|
+
declare const index$6_FundingHistoryWidget: typeof FundingHistoryWidget;
|
|
353
|
+
declare const index$6_HistoryDataGroupWidget: typeof HistoryDataGroupWidget;
|
|
354
|
+
declare const index$6_OverviewPage: typeof OverviewPage;
|
|
355
|
+
declare const index$6_OverviewProvider: typeof OverviewProvider;
|
|
356
|
+
declare const index$6_PerformanceMobileDialogId: typeof PerformanceMobileDialogId;
|
|
357
|
+
declare const index$6_PerformanceMobileSheetId: typeof PerformanceMobileSheetId;
|
|
358
|
+
declare const index$6_PerformanceMobileUI: typeof PerformanceMobileUI;
|
|
359
|
+
declare const index$6_PerformanceMobileWidget: typeof PerformanceMobileWidget;
|
|
360
|
+
declare const index$6_PerformanceUI: typeof PerformanceUI;
|
|
361
|
+
declare const index$6_PerformanceWidget: typeof PerformanceWidget;
|
|
362
|
+
declare const index$6_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
363
|
+
declare const index$6_useAssetHistoryScript: typeof useAssetHistoryScript;
|
|
364
|
+
declare const index$6_useAssetsChartScript: typeof useAssetsChartScript;
|
|
365
|
+
declare const index$6_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
366
|
+
declare const index$6_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
367
|
+
declare const index$6_usePerformanceScript: typeof usePerformanceScript;
|
|
368
|
+
declare namespace index$6 {
|
|
369
|
+
export { index$6_AssetHistory as AssetHistory, index$6_AssetHistoryWidget as AssetHistoryWidget, index$6_AssetWidget as AssetWidget, index$6_AssetsChart as AssetsChart, index$6_AssetsChartWidget as AssetsChartWidget, index$6_AssetsUI as AssetsUI, index$6_DistributionHistoryDesktop as DistributionHistoryDesktop, index$6_DistributionHistoryMobile as DistributionHistoryMobile, index$6_DistributionHistoryWidget as DistributionHistoryWidget, index$6_FundingHistoryWidget as FundingHistoryWidget, index$6_HistoryDataGroupWidget as HistoryDataGroupWidget, index$6_OverviewPage as OverviewPage, index$6_OverviewProvider as OverviewProvider, index$6_PerformanceMobileDialogId as PerformanceMobileDialogId, index$6_PerformanceMobileSheetId as PerformanceMobileSheetId, index$6_PerformanceMobileUI as PerformanceMobileUI, index$6_PerformanceMobileWidget as PerformanceMobileWidget, index$6_PerformanceUI as PerformanceUI, index$6_PerformanceWidget as PerformanceWidget, index$6_useAssetHistoryColumns as useAssetHistoryColumns, index$6_useAssetHistoryScript as useAssetHistoryScript, index$6_useAssetsChartScript as useAssetsChartScript, index$6_useFundingHistoryColumns as useFundingHistoryColumns, index$6_useFundingHistoryHook as useFundingHistoryHook, index$6_usePerformanceScript as usePerformanceScript };
|
|
368
370
|
}
|
|
369
371
|
|
|
370
372
|
type FeeTierWidgetProps = UseFeeTierScriptOptions;
|
|
371
373
|
|
|
372
374
|
type FeeTierPageProps = FeeTierWidgetProps;
|
|
373
|
-
declare const FeeTierPage:
|
|
375
|
+
declare const FeeTierPage: React__default.FC<FeeTierPageProps>;
|
|
374
376
|
|
|
375
377
|
type UseFeeTierScriptOptions = {
|
|
376
378
|
dataAdapter?: (columns: Column<any>[], dataSource: any[], context?: {
|
|
@@ -393,7 +395,7 @@ interface FeeDataType {
|
|
|
393
395
|
tier: number | null;
|
|
394
396
|
volume_min?: number | null;
|
|
395
397
|
volume_max?: number | null;
|
|
396
|
-
volume_node?:
|
|
398
|
+
volume_node?: React__default.ReactNode;
|
|
397
399
|
or?: string | null;
|
|
398
400
|
maker_fee: string;
|
|
399
401
|
taker_fee: string;
|
|
@@ -414,22 +416,22 @@ declare const useFeeTierScript: (options?: UseFeeTierScriptOptions) => {
|
|
|
414
416
|
vol?: number | undefined;
|
|
415
417
|
};
|
|
416
418
|
|
|
417
|
-
type index$
|
|
418
|
-
declare const index$
|
|
419
|
-
type index$
|
|
420
|
-
declare const index$
|
|
421
|
-
declare namespace index$
|
|
422
|
-
export { type index$
|
|
419
|
+
type index$5_FeeDataType = FeeDataType;
|
|
420
|
+
declare const index$5_FeeTierPage: typeof FeeTierPage;
|
|
421
|
+
type index$5_UseFeeTierScriptOptions = UseFeeTierScriptOptions;
|
|
422
|
+
declare const index$5_useFeeTierScript: typeof useFeeTierScript;
|
|
423
|
+
declare namespace index$5 {
|
|
424
|
+
export { type index$5_FeeDataType as FeeDataType, index$5_FeeTierPage as FeeTierPage, type index$5_UseFeeTierScriptOptions as UseFeeTierScriptOptions, index$5_useFeeTierScript as useFeeTierScript };
|
|
423
425
|
}
|
|
424
426
|
|
|
425
|
-
declare const PositionsPage:
|
|
427
|
+
declare const PositionsPage: React__default.FC<PositionsProps>;
|
|
426
428
|
|
|
427
429
|
declare const page$1_PositionsPage: typeof PositionsPage;
|
|
428
430
|
declare namespace page$1 {
|
|
429
431
|
export { page$1_PositionsPage as PositionsPage };
|
|
430
432
|
}
|
|
431
433
|
|
|
432
|
-
declare const OrdersPage:
|
|
434
|
+
declare const OrdersPage: React__default.FC<{
|
|
433
435
|
sharePnLConfig?: SharePnLConfig;
|
|
434
436
|
}>;
|
|
435
437
|
|
|
@@ -454,20 +456,20 @@ declare const APIManagerPage: (props: {
|
|
|
454
456
|
keyStatus?: string;
|
|
455
457
|
}) => react_jsx_runtime.JSX.Element;
|
|
456
458
|
|
|
457
|
-
declare const index$
|
|
458
|
-
declare const index$
|
|
459
|
-
declare namespace index$
|
|
460
|
-
export { index$
|
|
459
|
+
declare const index$4_APIManagerPage: typeof APIManagerPage;
|
|
460
|
+
declare const index$4_APIManagerWidget: typeof APIManagerWidget;
|
|
461
|
+
declare namespace index$4 {
|
|
462
|
+
export { index$4_APIManagerPage as APIManagerPage, index$4_APIManagerWidget as APIManagerWidget };
|
|
461
463
|
}
|
|
462
464
|
|
|
463
|
-
declare const SettingWidget:
|
|
465
|
+
declare const SettingWidget: React__default.FC;
|
|
464
466
|
|
|
465
|
-
declare const SettingPage:
|
|
467
|
+
declare const SettingPage: React__default.FC;
|
|
466
468
|
|
|
467
|
-
declare const index$
|
|
468
|
-
declare const index$
|
|
469
|
-
declare namespace index$
|
|
470
|
-
export { index$
|
|
469
|
+
declare const index$3_SettingPage: typeof SettingPage;
|
|
470
|
+
declare const index$3_SettingWidget: typeof SettingWidget;
|
|
471
|
+
declare namespace index$3 {
|
|
472
|
+
export { index$3_SettingPage as SettingPage, index$3_SettingWidget as SettingWidget };
|
|
471
473
|
}
|
|
472
474
|
|
|
473
475
|
declare const useAssetsScript: () => {
|
|
@@ -510,34 +512,196 @@ declare const useAssetsScript: () => {
|
|
|
510
512
|
type useAssetsScriptReturn = ReturnType<typeof useAssetsScript> & ReturnType<typeof useAccount>;
|
|
511
513
|
|
|
512
514
|
type AssetsWidgetProps = useAssetsScriptReturn;
|
|
513
|
-
declare const AssetsDataTableWidget:
|
|
514
|
-
declare const AssetsWidget:
|
|
515
|
+
declare const AssetsDataTableWidget: React__default.FC;
|
|
516
|
+
declare const AssetsWidget: React__default.FC;
|
|
517
|
+
|
|
518
|
+
declare const AssetsPage: React__default.FC;
|
|
519
|
+
|
|
520
|
+
declare const AssetsDataTable: React__default.FC<Pick<AssetsWidgetProps, "columns" | "dataSource" | "isMainAccount" | "onFilter" | "selectedAccount" | "selectedAsset" | "assetsOptions" | "state">>;
|
|
521
|
+
declare const AssetsTable: React__default.FC<AssetsWidgetProps>;
|
|
515
522
|
|
|
516
|
-
declare const
|
|
523
|
+
declare const AssetsTableMobile: React__default.FC<useAssetsScriptReturn>;
|
|
517
524
|
|
|
518
|
-
declare const
|
|
519
|
-
declare const
|
|
525
|
+
declare const index$2_AssetsDataTable: typeof AssetsDataTable;
|
|
526
|
+
declare const index$2_AssetsDataTableWidget: typeof AssetsDataTableWidget;
|
|
527
|
+
declare const index$2_AssetsPage: typeof AssetsPage;
|
|
528
|
+
declare const index$2_AssetsTable: typeof AssetsTable;
|
|
529
|
+
declare const index$2_AssetsTableMobile: typeof AssetsTableMobile;
|
|
530
|
+
declare const index$2_AssetsWidget: typeof AssetsWidget;
|
|
531
|
+
type index$2_AssetsWidgetProps = AssetsWidgetProps;
|
|
532
|
+
declare namespace index$2 {
|
|
533
|
+
export { index$2_AssetsDataTable as AssetsDataTable, index$2_AssetsDataTableWidget as AssetsDataTableWidget, index$2_AssetsPage as AssetsPage, index$2_AssetsTable as AssetsTable, index$2_AssetsTableMobile as AssetsTableMobile, index$2_AssetsWidget as AssetsWidget, type index$2_AssetsWidgetProps as AssetsWidgetProps };
|
|
534
|
+
}
|
|
520
535
|
|
|
521
|
-
declare const
|
|
536
|
+
declare const HistoryWidget: React__default.FC;
|
|
537
|
+
declare const HistoryPage: React__default.FC;
|
|
522
538
|
|
|
523
|
-
declare const index$
|
|
524
|
-
declare const index$
|
|
525
|
-
declare const index$1_AssetsPage: typeof AssetsPage;
|
|
526
|
-
declare const index$1_AssetsTable: typeof AssetsTable;
|
|
527
|
-
declare const index$1_AssetsTableMobile: typeof AssetsTableMobile;
|
|
528
|
-
declare const index$1_AssetsWidget: typeof AssetsWidget;
|
|
529
|
-
type index$1_AssetsWidgetProps = AssetsWidgetProps;
|
|
539
|
+
declare const index$1_HistoryPage: typeof HistoryPage;
|
|
540
|
+
declare const index$1_HistoryWidget: typeof HistoryWidget;
|
|
530
541
|
declare namespace index$1 {
|
|
531
|
-
export { index$
|
|
542
|
+
export { index$1_HistoryPage as HistoryPage, index$1_HistoryWidget as HistoryWidget };
|
|
532
543
|
}
|
|
533
544
|
|
|
534
|
-
declare const
|
|
535
|
-
|
|
545
|
+
declare const SymbolPerformancePage: React__default.FC;
|
|
546
|
+
|
|
547
|
+
declare const SymbolPerformanceWidget: React__default.FC<{
|
|
548
|
+
symbol?: string;
|
|
549
|
+
}>;
|
|
550
|
+
|
|
551
|
+
interface TradeData {
|
|
552
|
+
id: number;
|
|
553
|
+
symbol: string;
|
|
554
|
+
fee: number;
|
|
555
|
+
fee_asset: string;
|
|
556
|
+
side: "BUY" | "SELL";
|
|
557
|
+
order_id: number;
|
|
558
|
+
executed_price: number;
|
|
559
|
+
executed_quantity: number;
|
|
560
|
+
executed_timestamp: number;
|
|
561
|
+
is_maker: number;
|
|
562
|
+
realized_pnl: number;
|
|
563
|
+
match_id: string;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
interface SymbolPerformanceMetrics {
|
|
567
|
+
totalPnL: number;
|
|
568
|
+
totalVolume: number;
|
|
569
|
+
totalFees: number;
|
|
570
|
+
totalTrades: number;
|
|
571
|
+
makerShare: number;
|
|
572
|
+
dailyData: Array<{
|
|
573
|
+
date: string;
|
|
574
|
+
pnl: number;
|
|
575
|
+
volume: number;
|
|
576
|
+
fees: number;
|
|
577
|
+
}>;
|
|
578
|
+
cumulativeDailyPnL: Array<{
|
|
579
|
+
date: string;
|
|
580
|
+
cumulativePnl: number;
|
|
581
|
+
}>;
|
|
582
|
+
cumulativeDailyFees: Array<{
|
|
583
|
+
date: string;
|
|
584
|
+
cumulativeFees: number;
|
|
585
|
+
}>;
|
|
586
|
+
cumulativeDailyVolume: Array<{
|
|
587
|
+
date: string;
|
|
588
|
+
cumulativeVolume: number;
|
|
589
|
+
}>;
|
|
590
|
+
hourlyData: Array<{
|
|
591
|
+
date: string;
|
|
592
|
+
pnl: number;
|
|
593
|
+
fees: number;
|
|
594
|
+
volume: number;
|
|
595
|
+
}>;
|
|
596
|
+
cumulativeHourlyPnL: Array<{
|
|
597
|
+
date: string;
|
|
598
|
+
cumulativePnl: number;
|
|
599
|
+
}>;
|
|
600
|
+
cumulativeHourlyFees: Array<{
|
|
601
|
+
date: string;
|
|
602
|
+
cumulativeFees: number;
|
|
603
|
+
}>;
|
|
604
|
+
cumulativeHourlyVolume: Array<{
|
|
605
|
+
date: string;
|
|
606
|
+
cumulativeVolume: number;
|
|
607
|
+
}>;
|
|
608
|
+
fifteenMinuteData: Array<{
|
|
609
|
+
date: string;
|
|
610
|
+
pnl: number;
|
|
611
|
+
fees: number;
|
|
612
|
+
volume: number;
|
|
613
|
+
}>;
|
|
614
|
+
cumulativeFifteenMinutePnL: Array<{
|
|
615
|
+
date: string;
|
|
616
|
+
cumulativePnl: number;
|
|
617
|
+
}>;
|
|
618
|
+
cumulativeFifteenMinuteFees: Array<{
|
|
619
|
+
date: string;
|
|
620
|
+
cumulativeFees: number;
|
|
621
|
+
}>;
|
|
622
|
+
cumulativeFifteenMinuteVolume: Array<{
|
|
623
|
+
date: string;
|
|
624
|
+
cumulativeVolume: number;
|
|
625
|
+
}>;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
declare enum PeriodType {
|
|
629
|
+
DAY = "1D",
|
|
630
|
+
WEEK = "7D",
|
|
631
|
+
MONTH = "30D",
|
|
632
|
+
QUARTER = "90D"
|
|
633
|
+
}
|
|
634
|
+
declare enum AggregationWindow {
|
|
635
|
+
FIFTEEN_MIN = "15m",
|
|
636
|
+
HOURLY = "1h",
|
|
637
|
+
DAILY = "1d"
|
|
638
|
+
}
|
|
639
|
+
type Timeframe = "1D" | "7D" | "30D" | "90D" | "ALL";
|
|
640
|
+
declare const useSymbolPerformanceScript: (symbol?: string) => {
|
|
641
|
+
selectedSymbol: string;
|
|
642
|
+
setSelectedSymbol: React$1.Dispatch<React$1.SetStateAction<string>>;
|
|
643
|
+
period: PeriodType | null;
|
|
644
|
+
onPeriodChange: (value: PeriodType) => void;
|
|
645
|
+
periodTypes: PeriodType[];
|
|
646
|
+
aggregationWindow: AggregationWindow;
|
|
647
|
+
setAggregationWindow: React$1.Dispatch<React$1.SetStateAction<AggregationWindow>>;
|
|
648
|
+
aggregationWindowTypes: AggregationWindow[];
|
|
649
|
+
dateRange: {
|
|
650
|
+
from: Date;
|
|
651
|
+
to: Date;
|
|
652
|
+
};
|
|
653
|
+
filterItems: {
|
|
654
|
+
type: "range";
|
|
655
|
+
name: string;
|
|
656
|
+
value: {
|
|
657
|
+
from: Date;
|
|
658
|
+
to: Date;
|
|
659
|
+
};
|
|
660
|
+
max: number;
|
|
661
|
+
}[];
|
|
662
|
+
onFilter: (filter: {
|
|
663
|
+
name: string;
|
|
664
|
+
value: any;
|
|
665
|
+
}) => void;
|
|
666
|
+
trades: TradeData[];
|
|
667
|
+
isLoading: boolean;
|
|
668
|
+
error: any;
|
|
669
|
+
performanceData: SymbolPerformanceMetrics | null;
|
|
670
|
+
aggregatedData: {
|
|
671
|
+
periodData: {
|
|
672
|
+
date: string;
|
|
673
|
+
pnl: number;
|
|
674
|
+
fees: number;
|
|
675
|
+
volume: number;
|
|
676
|
+
}[];
|
|
677
|
+
cumulativePnL: {
|
|
678
|
+
date: string;
|
|
679
|
+
cumulativePnl: number;
|
|
680
|
+
}[];
|
|
681
|
+
cumulativeFees: {
|
|
682
|
+
date: string;
|
|
683
|
+
cumulativeFees: number;
|
|
684
|
+
}[];
|
|
685
|
+
cumulativeVolume: {
|
|
686
|
+
date: string;
|
|
687
|
+
cumulativeVolume: number;
|
|
688
|
+
}[];
|
|
689
|
+
} | null;
|
|
690
|
+
invisible: boolean;
|
|
691
|
+
};
|
|
692
|
+
type UseSymbolPerformanceScriptReturn = ReturnType<typeof useSymbolPerformanceScript>;
|
|
693
|
+
|
|
694
|
+
type SymbolPerformanceUIProps = UseSymbolPerformanceScriptReturn;
|
|
695
|
+
declare const SymbolPerformanceUI: React__default.FC<SymbolPerformanceUIProps>;
|
|
536
696
|
|
|
537
|
-
declare const
|
|
538
|
-
declare const
|
|
697
|
+
declare const index_SymbolPerformancePage: typeof SymbolPerformancePage;
|
|
698
|
+
declare const index_SymbolPerformanceUI: typeof SymbolPerformanceUI;
|
|
699
|
+
declare const index_SymbolPerformanceWidget: typeof SymbolPerformanceWidget;
|
|
700
|
+
type index_Timeframe = Timeframe;
|
|
701
|
+
type index_UseSymbolPerformanceScriptReturn = UseSymbolPerformanceScriptReturn;
|
|
702
|
+
declare const index_useSymbolPerformanceScript: typeof useSymbolPerformanceScript;
|
|
539
703
|
declare namespace index {
|
|
540
|
-
export {
|
|
704
|
+
export { index_SymbolPerformancePage as SymbolPerformancePage, index_SymbolPerformanceUI as SymbolPerformanceUI, index_SymbolPerformanceWidget as SymbolPerformanceWidget, type index_Timeframe as Timeframe, type index_UseSymbolPerformanceScriptReturn as UseSymbolPerformanceScriptReturn, index_useSymbolPerformanceScript as useSymbolPerformanceScript };
|
|
541
705
|
}
|
|
542
706
|
|
|
543
|
-
export { index$
|
|
707
|
+
export { index$4 as APIManagerModule, index$2 as AssetsModule, index$5 as FeeTierModule, index$1 as HistoryModule, page as OrdersModule, index$6 as OverviewModule, PortfolioLayout, type PortfolioLayoutProps, PortfolioLayoutWidget, type PortfolioLayoutWidgetProps, PortfolioLeftSidebarPath, page$1 as PositionsModule, index$3 as SettingModule, index as SymbolPerformanceModule, usePortfolioLayoutScript };
|