@orderly.network/portfolio 2.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.
- package/dist/index.d.mts +274 -0
- package/dist/index.d.ts +274 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +1 -0
- package/package.json +48 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
3
|
+
import { API } from '@orderly.network/types';
|
|
4
|
+
import { Column } from '@orderly.network/ui';
|
|
5
|
+
import * as react from 'react';
|
|
6
|
+
import { FC, PropsWithChildren } from 'react';
|
|
7
|
+
import { LayoutProps } from '@orderly.network/ui-scaffold';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
connected?: boolean;
|
|
11
|
+
onConnectWallet?: () => void;
|
|
12
|
+
onWithdraw?: () => void;
|
|
13
|
+
onDeposit?: () => void;
|
|
14
|
+
onLeverageEdit?: () => void;
|
|
15
|
+
portfolioValue: number;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
toggleVisible: () => void;
|
|
18
|
+
wrongNetwork: boolean;
|
|
19
|
+
} & StatisticProps;
|
|
20
|
+
type StatisticProps = {
|
|
21
|
+
currentLeverage: number;
|
|
22
|
+
unrealPnL: number;
|
|
23
|
+
unrealROI: number;
|
|
24
|
+
freeCollateral: number;
|
|
25
|
+
};
|
|
26
|
+
declare const AssetsUI: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare const AssetWidget: () => react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const AssetsChartWidget: () => react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare enum PeriodType {
|
|
33
|
+
WEEK = "7D",
|
|
34
|
+
MONTH = "30D",
|
|
35
|
+
QUARTER = "90D"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const useAssetsLineChartScript: () => {
|
|
39
|
+
readonly wrongNetwork: boolean;
|
|
40
|
+
readonly data: {
|
|
41
|
+
account_value?: number | undefined;
|
|
42
|
+
broker_id?: string | undefined;
|
|
43
|
+
date: string;
|
|
44
|
+
perp_volume?: number | undefined;
|
|
45
|
+
pnl?: number | undefined;
|
|
46
|
+
snapshot_time?: number | undefined;
|
|
47
|
+
}[] | null;
|
|
48
|
+
readonly invisible: boolean;
|
|
49
|
+
readonly periodTypes: PeriodType[];
|
|
50
|
+
readonly period: any;
|
|
51
|
+
readonly onPeriodChange: (value: PeriodType) => void;
|
|
52
|
+
readonly aggregateValue: {
|
|
53
|
+
vol: number;
|
|
54
|
+
pnl: number;
|
|
55
|
+
roi: number;
|
|
56
|
+
};
|
|
57
|
+
readonly createFakeData: (start: Partial<_orderly_network_types.API.DailyRow>, end: Partial<_orderly_network_types.API.DailyRow>) => {
|
|
58
|
+
account_value?: number | undefined;
|
|
59
|
+
broker_id?: string | undefined;
|
|
60
|
+
date: string;
|
|
61
|
+
perp_volume?: number | undefined;
|
|
62
|
+
pnl?: number | undefined;
|
|
63
|
+
snapshot_time?: number | undefined;
|
|
64
|
+
}[];
|
|
65
|
+
readonly volumeUpdateDate: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare const HistoryDataGroupWidget: () => react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare const useAssetHistoryColumns: () => Column[];
|
|
71
|
+
|
|
72
|
+
declare const useAssetHistoryHook: () => {
|
|
73
|
+
dataSource: _orderly_network_types.API.AssetHistoryRow[];
|
|
74
|
+
meta: {
|
|
75
|
+
count: number;
|
|
76
|
+
page: number;
|
|
77
|
+
pageSize: number;
|
|
78
|
+
pageTotal: number;
|
|
79
|
+
};
|
|
80
|
+
total: number | undefined;
|
|
81
|
+
isLoading: boolean;
|
|
82
|
+
queryParameter: {
|
|
83
|
+
side: string;
|
|
84
|
+
dateRange: Date[];
|
|
85
|
+
};
|
|
86
|
+
onFilter: (filter: {
|
|
87
|
+
name: string;
|
|
88
|
+
value: any;
|
|
89
|
+
}) => void;
|
|
90
|
+
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
91
|
+
setPageSize: (pageSize: number) => void;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
type UseAssetHistoryReturn = ReturnType<typeof useAssetHistoryHook>;
|
|
95
|
+
|
|
96
|
+
type AssetHistoryProps = {} & UseAssetHistoryReturn;
|
|
97
|
+
declare const AssetHistory: FC<AssetHistoryProps>;
|
|
98
|
+
|
|
99
|
+
declare const AssetHistoryWidget: () => react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
declare const usePerformanceScript: () => {
|
|
102
|
+
data: {
|
|
103
|
+
account_value?: number | undefined;
|
|
104
|
+
broker_id?: string | undefined;
|
|
105
|
+
date: string;
|
|
106
|
+
perp_volume?: number | undefined;
|
|
107
|
+
pnl?: number | undefined;
|
|
108
|
+
snapshot_time?: number | undefined;
|
|
109
|
+
}[] | null;
|
|
110
|
+
invisible: boolean;
|
|
111
|
+
visible: any;
|
|
112
|
+
periodTypes: PeriodType[];
|
|
113
|
+
period: any;
|
|
114
|
+
onPeriodChange: (value: PeriodType) => void;
|
|
115
|
+
aggregateValue: {
|
|
116
|
+
vol: number;
|
|
117
|
+
pnl: number;
|
|
118
|
+
roi: number;
|
|
119
|
+
};
|
|
120
|
+
createFakeData: (start: Partial<_orderly_network_types.API.DailyRow>, end: Partial<_orderly_network_types.API.DailyRow>) => {
|
|
121
|
+
account_value?: number | undefined;
|
|
122
|
+
broker_id?: string | undefined;
|
|
123
|
+
date: string;
|
|
124
|
+
perp_volume?: number | undefined;
|
|
125
|
+
pnl?: number | undefined;
|
|
126
|
+
snapshot_time?: number | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
volumeUpdateDate: string;
|
|
129
|
+
};
|
|
130
|
+
type UsePerformanceScriptReturn = ReturnType<typeof usePerformanceScript>;
|
|
131
|
+
|
|
132
|
+
type PerformanceUIProps = {} & UsePerformanceScriptReturn;
|
|
133
|
+
declare const PerformanceUI: (props: PerformanceUIProps) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
declare const PerformanceWidget: () => react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
declare const FundingHistoryWidget: () => react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
declare const useFundingHistoryHook: () => {
|
|
140
|
+
readonly dataSource: (_orderly_network_types.API.FundingFeeRow & {
|
|
141
|
+
annual_rate: number;
|
|
142
|
+
})[] | null;
|
|
143
|
+
readonly meta: {
|
|
144
|
+
count: number;
|
|
145
|
+
page: number;
|
|
146
|
+
pageSize: number;
|
|
147
|
+
pageTotal: number;
|
|
148
|
+
};
|
|
149
|
+
readonly isLoading: boolean;
|
|
150
|
+
readonly isValidating: boolean;
|
|
151
|
+
readonly queryParameter: {
|
|
152
|
+
readonly symbol: string;
|
|
153
|
+
readonly dateRange: Date[];
|
|
154
|
+
};
|
|
155
|
+
readonly onFilter: (filter: {
|
|
156
|
+
name: string;
|
|
157
|
+
value: any;
|
|
158
|
+
}) => void;
|
|
159
|
+
readonly setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
160
|
+
readonly setPageSize: (pageSize: number) => void;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare const useFundingHistoryColumns: () => Column<API.FundingFeeRow & {
|
|
164
|
+
annual_rate: number;
|
|
165
|
+
}>[];
|
|
166
|
+
|
|
167
|
+
declare const DistributionHistoryWidget: () => react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare const useDistributionHistoryHook: () => {
|
|
170
|
+
readonly dataSource: (_orderly_network_types.API.FundingFeeRow & {
|
|
171
|
+
annual_rate: number;
|
|
172
|
+
})[];
|
|
173
|
+
readonly meta: {
|
|
174
|
+
count: number;
|
|
175
|
+
page: number;
|
|
176
|
+
pageSize: number;
|
|
177
|
+
pageTotal: number;
|
|
178
|
+
};
|
|
179
|
+
readonly isLoading: boolean;
|
|
180
|
+
readonly isValidating: boolean;
|
|
181
|
+
readonly queryParameter: {
|
|
182
|
+
readonly type: string;
|
|
183
|
+
readonly dateRange: Date[];
|
|
184
|
+
};
|
|
185
|
+
readonly onFilter: (filter: {
|
|
186
|
+
name: string;
|
|
187
|
+
value: any;
|
|
188
|
+
}) => void;
|
|
189
|
+
readonly setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
190
|
+
readonly setPageSize: (pageSize: number) => void;
|
|
191
|
+
};
|
|
192
|
+
type useDistributionHistoryHookReturn = ReturnType<typeof useDistributionHistoryHook>;
|
|
193
|
+
|
|
194
|
+
type FundingHistoryProps = {} & useDistributionHistoryHookReturn;
|
|
195
|
+
declare const DistributionHistoryUI: FC<FundingHistoryProps>;
|
|
196
|
+
|
|
197
|
+
declare const OverviewPage: () => react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
199
|
+
declare const index$3_AssetHistory: typeof AssetHistory;
|
|
200
|
+
declare const index$3_AssetHistoryWidget: typeof AssetHistoryWidget;
|
|
201
|
+
declare const index$3_AssetWidget: typeof AssetWidget;
|
|
202
|
+
declare const index$3_AssetsChartWidget: typeof AssetsChartWidget;
|
|
203
|
+
declare const index$3_AssetsUI: typeof AssetsUI;
|
|
204
|
+
declare const index$3_DistributionHistoryUI: typeof DistributionHistoryUI;
|
|
205
|
+
declare const index$3_DistributionHistoryWidget: typeof DistributionHistoryWidget;
|
|
206
|
+
declare const index$3_FundingHistoryWidget: typeof FundingHistoryWidget;
|
|
207
|
+
declare const index$3_HistoryDataGroupWidget: typeof HistoryDataGroupWidget;
|
|
208
|
+
declare const index$3_OverviewPage: typeof OverviewPage;
|
|
209
|
+
declare const index$3_PerformanceUI: typeof PerformanceUI;
|
|
210
|
+
declare const index$3_PerformanceWidget: typeof PerformanceWidget;
|
|
211
|
+
declare const index$3_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
212
|
+
declare const index$3_useAssetHistoryHook: typeof useAssetHistoryHook;
|
|
213
|
+
declare const index$3_useAssetsLineChartScript: typeof useAssetsLineChartScript;
|
|
214
|
+
declare const index$3_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
215
|
+
declare const index$3_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
216
|
+
declare const index$3_usePerformanceScript: typeof usePerformanceScript;
|
|
217
|
+
declare namespace index$3 {
|
|
218
|
+
export { index$3_AssetHistory as AssetHistory, index$3_AssetHistoryWidget as AssetHistoryWidget, index$3_AssetWidget as AssetWidget, index$3_AssetsChartWidget as AssetsChartWidget, index$3_AssetsUI as AssetsUI, index$3_DistributionHistoryUI as DistributionHistoryUI, index$3_DistributionHistoryWidget as DistributionHistoryWidget, index$3_FundingHistoryWidget as FundingHistoryWidget, index$3_HistoryDataGroupWidget as HistoryDataGroupWidget, index$3_OverviewPage as OverviewPage, index$3_PerformanceUI as PerformanceUI, index$3_PerformanceWidget as PerformanceWidget, index$3_useAssetHistoryColumns as useAssetHistoryColumns, index$3_useAssetHistoryHook as useAssetHistoryHook, index$3_useAssetsLineChartScript as useAssetsLineChartScript, index$3_useFundingHistoryColumns as useFundingHistoryColumns, index$3_useFundingHistoryHook as useFundingHistoryHook, index$3_usePerformanceScript as usePerformanceScript };
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare const PortfolioLayoutWidget: (props: PropsWithChildren<LayoutProps>) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
type UseFeeTierScriptOptions = {
|
|
224
|
+
dataAdapter?: (columns: Column[], dataSource: any[]) => {
|
|
225
|
+
columns: Column[];
|
|
226
|
+
dataSource: any[];
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
type FeeTierWidgetProps = UseFeeTierScriptOptions;
|
|
231
|
+
|
|
232
|
+
type FeeTierPageProps = FeeTierWidgetProps;
|
|
233
|
+
declare const FeeTierPage: FC<FeeTierPageProps>;
|
|
234
|
+
|
|
235
|
+
declare const index$2_FeeTierPage: typeof FeeTierPage;
|
|
236
|
+
declare namespace index$2 {
|
|
237
|
+
export { index$2_FeeTierPage as FeeTierPage };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare const PositionsPage: () => react_jsx_runtime.JSX.Element;
|
|
241
|
+
|
|
242
|
+
declare const page$1_PositionsPage: typeof PositionsPage;
|
|
243
|
+
declare namespace page$1 {
|
|
244
|
+
export { page$1_PositionsPage as PositionsPage };
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare const OrdersPage: () => react_jsx_runtime.JSX.Element;
|
|
248
|
+
|
|
249
|
+
declare const page_OrdersPage: typeof OrdersPage;
|
|
250
|
+
declare namespace page {
|
|
251
|
+
export { page_OrdersPage as OrdersPage };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare const APIManagerWidget: () => react_jsx_runtime.JSX.Element;
|
|
255
|
+
|
|
256
|
+
declare const ApiManagerPage: () => react_jsx_runtime.JSX.Element;
|
|
257
|
+
|
|
258
|
+
declare const index$1_APIManagerWidget: typeof APIManagerWidget;
|
|
259
|
+
declare const index$1_ApiManagerPage: typeof ApiManagerPage;
|
|
260
|
+
declare namespace index$1 {
|
|
261
|
+
export { index$1_APIManagerWidget as APIManagerWidget, index$1_ApiManagerPage as ApiManagerPage };
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare const SettingWidget: () => react_jsx_runtime.JSX.Element;
|
|
265
|
+
|
|
266
|
+
declare const SettingPage: () => react_jsx_runtime.JSX.Element;
|
|
267
|
+
|
|
268
|
+
declare const index_SettingPage: typeof SettingPage;
|
|
269
|
+
declare const index_SettingWidget: typeof SettingWidget;
|
|
270
|
+
declare namespace index {
|
|
271
|
+
export { index_SettingPage as SettingPage, index_SettingWidget as SettingWidget };
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export { index$1 as APIManagerModule, index$2 as FeeTierModule, page as OrdersModule, index$3 as OverviewModule, PortfolioLayoutWidget, page$1 as PositionsModule, index as SettingModule };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
3
|
+
import { API } from '@orderly.network/types';
|
|
4
|
+
import { Column } from '@orderly.network/ui';
|
|
5
|
+
import * as react from 'react';
|
|
6
|
+
import { FC, PropsWithChildren } from 'react';
|
|
7
|
+
import { LayoutProps } from '@orderly.network/ui-scaffold';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
connected?: boolean;
|
|
11
|
+
onConnectWallet?: () => void;
|
|
12
|
+
onWithdraw?: () => void;
|
|
13
|
+
onDeposit?: () => void;
|
|
14
|
+
onLeverageEdit?: () => void;
|
|
15
|
+
portfolioValue: number;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
toggleVisible: () => void;
|
|
18
|
+
wrongNetwork: boolean;
|
|
19
|
+
} & StatisticProps;
|
|
20
|
+
type StatisticProps = {
|
|
21
|
+
currentLeverage: number;
|
|
22
|
+
unrealPnL: number;
|
|
23
|
+
unrealROI: number;
|
|
24
|
+
freeCollateral: number;
|
|
25
|
+
};
|
|
26
|
+
declare const AssetsUI: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare const AssetWidget: () => react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const AssetsChartWidget: () => react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare enum PeriodType {
|
|
33
|
+
WEEK = "7D",
|
|
34
|
+
MONTH = "30D",
|
|
35
|
+
QUARTER = "90D"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const useAssetsLineChartScript: () => {
|
|
39
|
+
readonly wrongNetwork: boolean;
|
|
40
|
+
readonly data: {
|
|
41
|
+
account_value?: number | undefined;
|
|
42
|
+
broker_id?: string | undefined;
|
|
43
|
+
date: string;
|
|
44
|
+
perp_volume?: number | undefined;
|
|
45
|
+
pnl?: number | undefined;
|
|
46
|
+
snapshot_time?: number | undefined;
|
|
47
|
+
}[] | null;
|
|
48
|
+
readonly invisible: boolean;
|
|
49
|
+
readonly periodTypes: PeriodType[];
|
|
50
|
+
readonly period: any;
|
|
51
|
+
readonly onPeriodChange: (value: PeriodType) => void;
|
|
52
|
+
readonly aggregateValue: {
|
|
53
|
+
vol: number;
|
|
54
|
+
pnl: number;
|
|
55
|
+
roi: number;
|
|
56
|
+
};
|
|
57
|
+
readonly createFakeData: (start: Partial<_orderly_network_types.API.DailyRow>, end: Partial<_orderly_network_types.API.DailyRow>) => {
|
|
58
|
+
account_value?: number | undefined;
|
|
59
|
+
broker_id?: string | undefined;
|
|
60
|
+
date: string;
|
|
61
|
+
perp_volume?: number | undefined;
|
|
62
|
+
pnl?: number | undefined;
|
|
63
|
+
snapshot_time?: number | undefined;
|
|
64
|
+
}[];
|
|
65
|
+
readonly volumeUpdateDate: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare const HistoryDataGroupWidget: () => react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare const useAssetHistoryColumns: () => Column[];
|
|
71
|
+
|
|
72
|
+
declare const useAssetHistoryHook: () => {
|
|
73
|
+
dataSource: _orderly_network_types.API.AssetHistoryRow[];
|
|
74
|
+
meta: {
|
|
75
|
+
count: number;
|
|
76
|
+
page: number;
|
|
77
|
+
pageSize: number;
|
|
78
|
+
pageTotal: number;
|
|
79
|
+
};
|
|
80
|
+
total: number | undefined;
|
|
81
|
+
isLoading: boolean;
|
|
82
|
+
queryParameter: {
|
|
83
|
+
side: string;
|
|
84
|
+
dateRange: Date[];
|
|
85
|
+
};
|
|
86
|
+
onFilter: (filter: {
|
|
87
|
+
name: string;
|
|
88
|
+
value: any;
|
|
89
|
+
}) => void;
|
|
90
|
+
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
91
|
+
setPageSize: (pageSize: number) => void;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
type UseAssetHistoryReturn = ReturnType<typeof useAssetHistoryHook>;
|
|
95
|
+
|
|
96
|
+
type AssetHistoryProps = {} & UseAssetHistoryReturn;
|
|
97
|
+
declare const AssetHistory: FC<AssetHistoryProps>;
|
|
98
|
+
|
|
99
|
+
declare const AssetHistoryWidget: () => react_jsx_runtime.JSX.Element;
|
|
100
|
+
|
|
101
|
+
declare const usePerformanceScript: () => {
|
|
102
|
+
data: {
|
|
103
|
+
account_value?: number | undefined;
|
|
104
|
+
broker_id?: string | undefined;
|
|
105
|
+
date: string;
|
|
106
|
+
perp_volume?: number | undefined;
|
|
107
|
+
pnl?: number | undefined;
|
|
108
|
+
snapshot_time?: number | undefined;
|
|
109
|
+
}[] | null;
|
|
110
|
+
invisible: boolean;
|
|
111
|
+
visible: any;
|
|
112
|
+
periodTypes: PeriodType[];
|
|
113
|
+
period: any;
|
|
114
|
+
onPeriodChange: (value: PeriodType) => void;
|
|
115
|
+
aggregateValue: {
|
|
116
|
+
vol: number;
|
|
117
|
+
pnl: number;
|
|
118
|
+
roi: number;
|
|
119
|
+
};
|
|
120
|
+
createFakeData: (start: Partial<_orderly_network_types.API.DailyRow>, end: Partial<_orderly_network_types.API.DailyRow>) => {
|
|
121
|
+
account_value?: number | undefined;
|
|
122
|
+
broker_id?: string | undefined;
|
|
123
|
+
date: string;
|
|
124
|
+
perp_volume?: number | undefined;
|
|
125
|
+
pnl?: number | undefined;
|
|
126
|
+
snapshot_time?: number | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
volumeUpdateDate: string;
|
|
129
|
+
};
|
|
130
|
+
type UsePerformanceScriptReturn = ReturnType<typeof usePerformanceScript>;
|
|
131
|
+
|
|
132
|
+
type PerformanceUIProps = {} & UsePerformanceScriptReturn;
|
|
133
|
+
declare const PerformanceUI: (props: PerformanceUIProps) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
declare const PerformanceWidget: () => react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
declare const FundingHistoryWidget: () => react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
declare const useFundingHistoryHook: () => {
|
|
140
|
+
readonly dataSource: (_orderly_network_types.API.FundingFeeRow & {
|
|
141
|
+
annual_rate: number;
|
|
142
|
+
})[] | null;
|
|
143
|
+
readonly meta: {
|
|
144
|
+
count: number;
|
|
145
|
+
page: number;
|
|
146
|
+
pageSize: number;
|
|
147
|
+
pageTotal: number;
|
|
148
|
+
};
|
|
149
|
+
readonly isLoading: boolean;
|
|
150
|
+
readonly isValidating: boolean;
|
|
151
|
+
readonly queryParameter: {
|
|
152
|
+
readonly symbol: string;
|
|
153
|
+
readonly dateRange: Date[];
|
|
154
|
+
};
|
|
155
|
+
readonly onFilter: (filter: {
|
|
156
|
+
name: string;
|
|
157
|
+
value: any;
|
|
158
|
+
}) => void;
|
|
159
|
+
readonly setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
160
|
+
readonly setPageSize: (pageSize: number) => void;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare const useFundingHistoryColumns: () => Column<API.FundingFeeRow & {
|
|
164
|
+
annual_rate: number;
|
|
165
|
+
}>[];
|
|
166
|
+
|
|
167
|
+
declare const DistributionHistoryWidget: () => react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare const useDistributionHistoryHook: () => {
|
|
170
|
+
readonly dataSource: (_orderly_network_types.API.FundingFeeRow & {
|
|
171
|
+
annual_rate: number;
|
|
172
|
+
})[];
|
|
173
|
+
readonly meta: {
|
|
174
|
+
count: number;
|
|
175
|
+
page: number;
|
|
176
|
+
pageSize: number;
|
|
177
|
+
pageTotal: number;
|
|
178
|
+
};
|
|
179
|
+
readonly isLoading: boolean;
|
|
180
|
+
readonly isValidating: boolean;
|
|
181
|
+
readonly queryParameter: {
|
|
182
|
+
readonly type: string;
|
|
183
|
+
readonly dateRange: Date[];
|
|
184
|
+
};
|
|
185
|
+
readonly onFilter: (filter: {
|
|
186
|
+
name: string;
|
|
187
|
+
value: any;
|
|
188
|
+
}) => void;
|
|
189
|
+
readonly setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
190
|
+
readonly setPageSize: (pageSize: number) => void;
|
|
191
|
+
};
|
|
192
|
+
type useDistributionHistoryHookReturn = ReturnType<typeof useDistributionHistoryHook>;
|
|
193
|
+
|
|
194
|
+
type FundingHistoryProps = {} & useDistributionHistoryHookReturn;
|
|
195
|
+
declare const DistributionHistoryUI: FC<FundingHistoryProps>;
|
|
196
|
+
|
|
197
|
+
declare const OverviewPage: () => react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
199
|
+
declare const index$3_AssetHistory: typeof AssetHistory;
|
|
200
|
+
declare const index$3_AssetHistoryWidget: typeof AssetHistoryWidget;
|
|
201
|
+
declare const index$3_AssetWidget: typeof AssetWidget;
|
|
202
|
+
declare const index$3_AssetsChartWidget: typeof AssetsChartWidget;
|
|
203
|
+
declare const index$3_AssetsUI: typeof AssetsUI;
|
|
204
|
+
declare const index$3_DistributionHistoryUI: typeof DistributionHistoryUI;
|
|
205
|
+
declare const index$3_DistributionHistoryWidget: typeof DistributionHistoryWidget;
|
|
206
|
+
declare const index$3_FundingHistoryWidget: typeof FundingHistoryWidget;
|
|
207
|
+
declare const index$3_HistoryDataGroupWidget: typeof HistoryDataGroupWidget;
|
|
208
|
+
declare const index$3_OverviewPage: typeof OverviewPage;
|
|
209
|
+
declare const index$3_PerformanceUI: typeof PerformanceUI;
|
|
210
|
+
declare const index$3_PerformanceWidget: typeof PerformanceWidget;
|
|
211
|
+
declare const index$3_useAssetHistoryColumns: typeof useAssetHistoryColumns;
|
|
212
|
+
declare const index$3_useAssetHistoryHook: typeof useAssetHistoryHook;
|
|
213
|
+
declare const index$3_useAssetsLineChartScript: typeof useAssetsLineChartScript;
|
|
214
|
+
declare const index$3_useFundingHistoryColumns: typeof useFundingHistoryColumns;
|
|
215
|
+
declare const index$3_useFundingHistoryHook: typeof useFundingHistoryHook;
|
|
216
|
+
declare const index$3_usePerformanceScript: typeof usePerformanceScript;
|
|
217
|
+
declare namespace index$3 {
|
|
218
|
+
export { index$3_AssetHistory as AssetHistory, index$3_AssetHistoryWidget as AssetHistoryWidget, index$3_AssetWidget as AssetWidget, index$3_AssetsChartWidget as AssetsChartWidget, index$3_AssetsUI as AssetsUI, index$3_DistributionHistoryUI as DistributionHistoryUI, index$3_DistributionHistoryWidget as DistributionHistoryWidget, index$3_FundingHistoryWidget as FundingHistoryWidget, index$3_HistoryDataGroupWidget as HistoryDataGroupWidget, index$3_OverviewPage as OverviewPage, index$3_PerformanceUI as PerformanceUI, index$3_PerformanceWidget as PerformanceWidget, index$3_useAssetHistoryColumns as useAssetHistoryColumns, index$3_useAssetHistoryHook as useAssetHistoryHook, index$3_useAssetsLineChartScript as useAssetsLineChartScript, index$3_useFundingHistoryColumns as useFundingHistoryColumns, index$3_useFundingHistoryHook as useFundingHistoryHook, index$3_usePerformanceScript as usePerformanceScript };
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare const PortfolioLayoutWidget: (props: PropsWithChildren<LayoutProps>) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
type UseFeeTierScriptOptions = {
|
|
224
|
+
dataAdapter?: (columns: Column[], dataSource: any[]) => {
|
|
225
|
+
columns: Column[];
|
|
226
|
+
dataSource: any[];
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
type FeeTierWidgetProps = UseFeeTierScriptOptions;
|
|
231
|
+
|
|
232
|
+
type FeeTierPageProps = FeeTierWidgetProps;
|
|
233
|
+
declare const FeeTierPage: FC<FeeTierPageProps>;
|
|
234
|
+
|
|
235
|
+
declare const index$2_FeeTierPage: typeof FeeTierPage;
|
|
236
|
+
declare namespace index$2 {
|
|
237
|
+
export { index$2_FeeTierPage as FeeTierPage };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare const PositionsPage: () => react_jsx_runtime.JSX.Element;
|
|
241
|
+
|
|
242
|
+
declare const page$1_PositionsPage: typeof PositionsPage;
|
|
243
|
+
declare namespace page$1 {
|
|
244
|
+
export { page$1_PositionsPage as PositionsPage };
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare const OrdersPage: () => react_jsx_runtime.JSX.Element;
|
|
248
|
+
|
|
249
|
+
declare const page_OrdersPage: typeof OrdersPage;
|
|
250
|
+
declare namespace page {
|
|
251
|
+
export { page_OrdersPage as OrdersPage };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare const APIManagerWidget: () => react_jsx_runtime.JSX.Element;
|
|
255
|
+
|
|
256
|
+
declare const ApiManagerPage: () => react_jsx_runtime.JSX.Element;
|
|
257
|
+
|
|
258
|
+
declare const index$1_APIManagerWidget: typeof APIManagerWidget;
|
|
259
|
+
declare const index$1_ApiManagerPage: typeof ApiManagerPage;
|
|
260
|
+
declare namespace index$1 {
|
|
261
|
+
export { index$1_APIManagerWidget as APIManagerWidget, index$1_ApiManagerPage as ApiManagerPage };
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare const SettingWidget: () => react_jsx_runtime.JSX.Element;
|
|
265
|
+
|
|
266
|
+
declare const SettingPage: () => react_jsx_runtime.JSX.Element;
|
|
267
|
+
|
|
268
|
+
declare const index_SettingPage: typeof SettingPage;
|
|
269
|
+
declare const index_SettingWidget: typeof SettingWidget;
|
|
270
|
+
declare namespace index {
|
|
271
|
+
export { index_SettingPage as SettingPage, index_SettingWidget as SettingWidget };
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export { index$1 as APIManagerModule, index$2 as FeeTierModule, page as OrdersModule, index$3 as OverviewModule, PortfolioLayoutWidget, page$1 as PositionsModule, index as SettingModule };
|