@grvt/client 1.4.21 → 1.4.22
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/MDG/index.d.ts +12 -1
- package/MDG/index.js +43 -0
- package/TDG/index.d.ts +32 -0
- package/TDG/index.js +32 -0
- package/interfaces/codegen/data.interface.d.ts +56 -47
- package/interfaces/codegen/data.interface.js +5 -88
- package/interfaces/codegen/enum-int.js +3 -1
- package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_currency_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_currency_request.js +8 -0
- package/interfaces/codegen/schema-maps/api_get_currency_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_currency_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_vault_detail.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_detail.js +20 -0
- package/interfaces/codegen/schema-maps/api_vault_performance.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_performance.js +20 -0
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.js +10 -2
- package/interfaces/codegen/schema-maps/currency_detail.d.ts +2 -0
- package/interfaces/codegen/schema-maps/currency_detail.js +18 -0
- package/interfaces/codegen/schema-maps/index.d.ts +12 -0
- package/interfaces/codegen/schema-maps/index.js +12 -0
- package/interfaces/codegen/schema-maps/vault_risk_metric.d.ts +2 -0
- package/interfaces/codegen/schema-maps/vault_risk_metric.js +18 -0
- package/package.json +1 -1
package/MDG/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { type IApiCandlestickRequest, type IApiCandlestickResponse, type IApiFundingRateRequest, type IApiFundingRateResponse, type IApiGetAllInstrumentsRequest, type IApiGetAllInstrumentsResponse, type IApiGetFilteredInstrumentsRequest, type IApiGetFilteredInstrumentsResponse, type IApiGetInstrumentRequest, type IApiGetInstrumentResponse, type IApiMiniTickerRequest, type IApiMiniTickerResponse, type IApiOrderbookLevelsRequest, type IApiOrderbookLevelsResponse, type IApiSettlementPriceRequest, type IApiSettlementPriceResponse, type IApiTickerRequest, type IApiTickerResponse, type IApiTradeHistoryRequest, type IApiTradeHistoryResponse, type IApiTradeRequest, type IApiTradeResponse, type IConfig } from '../interfaces';
|
|
2
|
+
import { type IApiBatchQueryVaultDetailRequest, type IApiBatchQueryVaultDetailResponse, type IApiBatchQueryVaultPerformanceRequest, type IApiBatchQueryVaultPerformanceResponse, type IApiBatchQueryVaultRiskMetricRequest, type IApiBatchQueryVaultRiskMetricResponse, type IApiCandlestickRequest, type IApiCandlestickResponse, type IApiFundingRateRequest, type IApiFundingRateResponse, type IApiGetAllInstrumentsRequest, type IApiGetAllInstrumentsResponse, type IApiGetFilteredInstrumentsRequest, type IApiGetFilteredInstrumentsResponse, type IApiGetInstrumentRequest, type IApiGetInstrumentResponse, type IApiMiniTickerRequest, type IApiMiniTickerResponse, type IApiOrderbookLevelsRequest, type IApiOrderbookLevelsResponse, type IApiQueryListVaultSubAccountSummaryRequest, type IApiQueryListVaultSubAccountSummaryResponse, type IApiQuerySnapVaultPositionRequest, type IApiQuerySnapVaultPositionResponse, type IApiQueryVaultPerformanceTrendRequest, type IApiQueryVaultPerformanceTrendResponse, type IApiQueryVaultSummaryHistoryRequest, type IApiQueryVaultSummaryHistoryResponse, type IApiSettlementPriceRequest, type IApiSettlementPriceResponse, type IApiTickerRequest, type IApiTickerResponse, type IApiTimedAssetExposureResponse, type IApiTimedVaultAssetExposureRequest, type IApiTradeHistoryRequest, type IApiTradeHistoryResponse, type IApiTradeRequest, type IApiTradeResponse, type IConfig } from '../interfaces';
|
|
3
3
|
export declare class MDG {
|
|
4
4
|
private readonly _axios;
|
|
5
5
|
private readonly _fullUrl;
|
|
@@ -50,4 +50,15 @@ export declare class MDG {
|
|
|
50
50
|
* @see https://api-docs.grvt.io/market_data_api/#candlestick
|
|
51
51
|
*/
|
|
52
52
|
candlestick(payload: IApiCandlestickRequest, config?: AxiosRequestConfig): Promise<IApiCandlestickResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* SECTION: Vault
|
|
55
|
+
*/
|
|
56
|
+
vaultAssetExposure(payload: IApiTimedVaultAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
|
|
57
|
+
snapVaultPosition(payload: IApiQuerySnapVaultPositionRequest, config?: AxiosRequestConfig): Promise<IApiQuerySnapVaultPositionResponse>;
|
|
58
|
+
vaultDetail(payload: IApiBatchQueryVaultDetailRequest, config?: AxiosRequestConfig): Promise<IApiBatchQueryVaultDetailResponse>;
|
|
59
|
+
vaultPerformance(payload: IApiBatchQueryVaultPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiBatchQueryVaultPerformanceResponse>;
|
|
60
|
+
vaultPerformanceTrend(payload: IApiQueryVaultPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultPerformanceTrendResponse>;
|
|
61
|
+
vaultRiskMetric(payload: IApiBatchQueryVaultRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiBatchQueryVaultRiskMetricResponse>;
|
|
62
|
+
vaultSummaryHistory(payload: IApiQueryVaultSummaryHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultSummaryHistoryResponse>;
|
|
63
|
+
vaultSubAccountSummaryHistory(payload: IApiQueryListVaultSubAccountSummaryRequest, config?: AxiosRequestConfig): Promise<IApiQueryListVaultSubAccountSummaryResponse>;
|
|
53
64
|
}
|
package/MDG/index.js
CHANGED
|
@@ -102,5 +102,48 @@ class MDG {
|
|
|
102
102
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_CANDLESTICK_RESPONSE_MAP.LITE_TO_FULL);
|
|
103
103
|
}).catch(utils_1.Utils.coverApiError);
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* SECTION: Vault
|
|
107
|
+
*/
|
|
108
|
+
vaultAssetExposure(payload, config) {
|
|
109
|
+
return this._axios.post(this._liteUrl + '/vault_asset_exposure', utils_1.Utils.schemaMap(payload, interfaces_1.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
110
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
|
|
111
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
112
|
+
}
|
|
113
|
+
snapVaultPosition(payload, config) {
|
|
114
|
+
return this._axios.post(this._liteUrl + '/snap_vault_position', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_SNAP_VAULT_POSITION_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
115
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_SNAP_VAULT_POSITION_RESPONSE_MAP.LITE_TO_FULL);
|
|
116
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
117
|
+
}
|
|
118
|
+
vaultDetail(payload, config) {
|
|
119
|
+
return this._axios.post(this._liteUrl + '/vault_detail', utils_1.Utils.schemaMap(payload, interfaces_1.API_BATCH_QUERY_VAULT_DETAIL_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
120
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_BATCH_QUERY_VAULT_DETAIL_RESPONSE_MAP.LITE_TO_FULL);
|
|
121
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
122
|
+
}
|
|
123
|
+
vaultPerformance(payload, config) {
|
|
124
|
+
return this._axios.post(this._liteUrl + '/vault_performance', utils_1.Utils.schemaMap(payload, interfaces_1.API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
125
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_BATCH_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP.LITE_TO_FULL);
|
|
126
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
127
|
+
}
|
|
128
|
+
vaultPerformanceTrend(payload, config) {
|
|
129
|
+
return this._axios.post(this._liteUrl + '/vault_performance_trend', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
130
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_PERFORMANCE_TREND_RESPONSE_MAP.LITE_TO_FULL);
|
|
131
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
132
|
+
}
|
|
133
|
+
vaultRiskMetric(payload, config) {
|
|
134
|
+
return this._axios.post(this._liteUrl + '/vault_risk_metric', utils_1.Utils.schemaMap(payload, interfaces_1.API_BATCH_QUERY_VAULT_RISK_METRIC_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
135
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_BATCH_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP.LITE_TO_FULL);
|
|
136
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
137
|
+
}
|
|
138
|
+
vaultSummaryHistory(payload, config) {
|
|
139
|
+
return this._axios.post(this._liteUrl + '/vault_summary_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
140
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
141
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
142
|
+
}
|
|
143
|
+
vaultSubAccountSummaryHistory(payload, config) {
|
|
144
|
+
return this._axios.post(this._liteUrl + '/vault_sub_account_summary_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
145
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP.LITE_TO_FULL);
|
|
146
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
147
|
+
}
|
|
105
148
|
}
|
|
106
149
|
exports.MDG = MDG;
|
package/TDG/index.d.ts
CHANGED
|
@@ -117,14 +117,46 @@ export declare class TDG {
|
|
|
117
117
|
vaultRedeem(payload: IApiVaultRedeemRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
|
|
118
118
|
vaultRedeemCancel(payload: IApiVaultRedeemCancelRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
|
|
119
119
|
vaultViewRedemptionQueue(payload: IApiVaultViewRedemptionQueueRequest, config?: AxiosRequestConfig): Promise<IApiVaultViewRedemptionQueueResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated
|
|
122
|
+
* Use MDG
|
|
123
|
+
*/
|
|
120
124
|
vaultPerformance(payload: IApiQueryVaultPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultPerformanceResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated
|
|
127
|
+
* Use MDG
|
|
128
|
+
*/
|
|
121
129
|
vaultPerformanceTrend(payload: IApiQueryVaultPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultPerformanceTrendResponse>;
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated
|
|
132
|
+
* Use MDG
|
|
133
|
+
*/
|
|
122
134
|
vaultRiskMetric(payload: IApiQueryVaultRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultRiskMetricResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* @deprecated
|
|
137
|
+
* Use MDG
|
|
138
|
+
*/
|
|
123
139
|
vaultSummaryHistory(payload: IApiQueryVaultSummaryHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultSummaryHistoryResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated
|
|
142
|
+
* Use MDG
|
|
143
|
+
*/
|
|
124
144
|
vaultSubAccountSummaryHistory(payload: IApiQueryListVaultSubAccountSummaryRequest, config?: AxiosRequestConfig): Promise<IApiQueryListVaultSubAccountSummaryResponse>;
|
|
125
145
|
vaultInvestorHistory(payload: IApiQueryVaultInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultInvestorHistoryResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated
|
|
148
|
+
* Use MDG
|
|
149
|
+
*/
|
|
126
150
|
vaultAssetExposure(payload: IApiTimedVaultAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated
|
|
153
|
+
* Use MDG
|
|
154
|
+
*/
|
|
127
155
|
snapVaultPosition(payload: IApiQuerySnapVaultPositionRequest, config?: AxiosRequestConfig): Promise<IApiQuerySnapVaultPositionResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated
|
|
158
|
+
* Use MDG
|
|
159
|
+
*/
|
|
128
160
|
vaultDetail(payload: IApiVaultDetailRequest, config?: AxiosRequestConfig): Promise<IApiVaultDetailResponse>;
|
|
129
161
|
vaultManagerInvestorHistory(payload: IApiQueryVaultManagerInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultManagerInvestorHistoryResponse>;
|
|
130
162
|
}
|
package/TDG/index.js
CHANGED
|
@@ -281,26 +281,46 @@ class TDG {
|
|
|
281
281
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP.LITE_TO_FULL);
|
|
282
282
|
}).catch(utils_1.Utils.coverApiError);
|
|
283
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* @deprecated
|
|
286
|
+
* Use MDG
|
|
287
|
+
*/
|
|
284
288
|
vaultPerformance(payload, config) {
|
|
285
289
|
return this._axios.post(this._liteUrl + '/vault_performance', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_PERFORMANCE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
286
290
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP.LITE_TO_FULL);
|
|
287
291
|
}).catch(utils_1.Utils.coverApiError);
|
|
288
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* @deprecated
|
|
295
|
+
* Use MDG
|
|
296
|
+
*/
|
|
289
297
|
vaultPerformanceTrend(payload, config) {
|
|
290
298
|
return this._axios.post(this._liteUrl + '/vault_performance_trend', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
291
299
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_PERFORMANCE_TREND_RESPONSE_MAP.LITE_TO_FULL);
|
|
292
300
|
}).catch(utils_1.Utils.coverApiError);
|
|
293
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* @deprecated
|
|
304
|
+
* Use MDG
|
|
305
|
+
*/
|
|
294
306
|
vaultRiskMetric(payload, config) {
|
|
295
307
|
return this._axios.post(this._liteUrl + '/vault_risk_metric', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_RISK_METRIC_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
296
308
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP.LITE_TO_FULL);
|
|
297
309
|
}).catch(utils_1.Utils.coverApiError);
|
|
298
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* @deprecated
|
|
313
|
+
* Use MDG
|
|
314
|
+
*/
|
|
299
315
|
vaultSummaryHistory(payload, config) {
|
|
300
316
|
return this._axios.post(this._liteUrl + '/vault_summary_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
301
317
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
302
318
|
}).catch(utils_1.Utils.coverApiError);
|
|
303
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* @deprecated
|
|
322
|
+
* Use MDG
|
|
323
|
+
*/
|
|
304
324
|
vaultSubAccountSummaryHistory(payload, config) {
|
|
305
325
|
return this._axios.post(this._liteUrl + '/vault_sub_account_summary_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
306
326
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP.LITE_TO_FULL);
|
|
@@ -311,16 +331,28 @@ class TDG {
|
|
|
311
331
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
312
332
|
}).catch(utils_1.Utils.coverApiError);
|
|
313
333
|
}
|
|
334
|
+
/**
|
|
335
|
+
* @deprecated
|
|
336
|
+
* Use MDG
|
|
337
|
+
*/
|
|
314
338
|
vaultAssetExposure(payload, config) {
|
|
315
339
|
return this._axios.post(this._liteUrl + '/vault_asset_exposure', utils_1.Utils.schemaMap(payload, interfaces_1.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
316
340
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
|
|
317
341
|
}).catch(utils_1.Utils.coverApiError);
|
|
318
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* @deprecated
|
|
345
|
+
* Use MDG
|
|
346
|
+
*/
|
|
319
347
|
snapVaultPosition(payload, config) {
|
|
320
348
|
return this._axios.post(this._liteUrl + '/snap_vault_position', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_SNAP_VAULT_POSITION_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
321
349
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_SNAP_VAULT_POSITION_RESPONSE_MAP.LITE_TO_FULL);
|
|
322
350
|
}).catch(utils_1.Utils.coverApiError);
|
|
323
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* @deprecated
|
|
354
|
+
* Use MDG
|
|
355
|
+
*/
|
|
324
356
|
vaultDetail(payload, config) {
|
|
325
357
|
return this._axios.post(this._liteUrl + '/vault_detail', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_DETAIL_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
326
358
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_DETAIL_RESPONSE_MAP.LITE_TO_FULL);
|
|
@@ -38,52 +38,6 @@ export declare enum ECandlestickType {
|
|
|
38
38
|
INDEX = "INDEX",
|
|
39
39
|
MID = "MID"
|
|
40
40
|
}
|
|
41
|
-
/**
|
|
42
|
-
* The list of Currencies that are supported on the GRVT exchange
|
|
43
|
-
* @deprecated
|
|
44
|
-
*/
|
|
45
|
-
export declare enum ECurrency {
|
|
46
|
-
USD = "USD",
|
|
47
|
-
USDC = "USDC",
|
|
48
|
-
USDT = "USDT",
|
|
49
|
-
ETH = "ETH",
|
|
50
|
-
BTC = "BTC",
|
|
51
|
-
SOL = "SOL",
|
|
52
|
-
ARB = "ARB",
|
|
53
|
-
BNB = "BNB",
|
|
54
|
-
ZK = "ZK",
|
|
55
|
-
POL = "POL",
|
|
56
|
-
OP = "OP",
|
|
57
|
-
ATOM = "ATOM",
|
|
58
|
-
KPEPE = "KPEPE",
|
|
59
|
-
TON = "TON",
|
|
60
|
-
XRP = "XRP",
|
|
61
|
-
XLM = "XLM",
|
|
62
|
-
WLD = "WLD",
|
|
63
|
-
WIF = "WIF",
|
|
64
|
-
VIRTUAL = "VIRTUAL",
|
|
65
|
-
TRUMP = "TRUMP",
|
|
66
|
-
SUI = "SUI",
|
|
67
|
-
KSHIB = "KSHIB",
|
|
68
|
-
POPCAT = "POPCAT",
|
|
69
|
-
PENGU = "PENGU",
|
|
70
|
-
LINK = "LINK",
|
|
71
|
-
KBONK = "KBONK",
|
|
72
|
-
JUP = "JUP",
|
|
73
|
-
FARTCOIN = "FARTCOIN",
|
|
74
|
-
ENA = "ENA",
|
|
75
|
-
DOGE = "DOGE",
|
|
76
|
-
AIXBT = "AIXBT",
|
|
77
|
-
AI16Z = "AI16Z",
|
|
78
|
-
ADA = "ADA",
|
|
79
|
-
AAVE = "AAVE",
|
|
80
|
-
BERA = "BERA",
|
|
81
|
-
VINE = "VINE",
|
|
82
|
-
PENDLE = "PENDLE",
|
|
83
|
-
UXLINK = "UXLINK",
|
|
84
|
-
KAITO = "KAITO",
|
|
85
|
-
IP = "IP"
|
|
86
|
-
}
|
|
87
41
|
export declare enum EEpochBadgeType {
|
|
88
42
|
CHAMPION = "CHAMPION",
|
|
89
43
|
LEGEND = "LEGEND",
|
|
@@ -263,7 +217,9 @@ export declare enum ETransferType {
|
|
|
263
217
|
export declare enum ETriggerBy {
|
|
264
218
|
UNSPECIFIED = "UNSPECIFIED",
|
|
265
219
|
INDEX = "INDEX",
|
|
266
|
-
LAST = "LAST"
|
|
220
|
+
LAST = "LAST",
|
|
221
|
+
MID = "MID",
|
|
222
|
+
MARK = "MARK"
|
|
267
223
|
}
|
|
268
224
|
export declare enum ETriggerType {
|
|
269
225
|
UNSPECIFIED = "UNSPECIFIED",
|
|
@@ -298,6 +254,24 @@ export interface IAggregatedAccountSummary {
|
|
|
298
254
|
export interface IApiAggregatedAccountSummaryResponse {
|
|
299
255
|
result?: IAggregatedAccountSummary;
|
|
300
256
|
}
|
|
257
|
+
export interface IApiBatchQueryVaultDetailRequest {
|
|
258
|
+
vault_i_ds?: string[];
|
|
259
|
+
}
|
|
260
|
+
export interface IApiBatchQueryVaultDetailResponse {
|
|
261
|
+
result?: IApiVaultDetail[];
|
|
262
|
+
}
|
|
263
|
+
export interface IApiBatchQueryVaultPerformanceRequest {
|
|
264
|
+
vault_i_ds?: string[];
|
|
265
|
+
}
|
|
266
|
+
export interface IApiBatchQueryVaultPerformanceResponse {
|
|
267
|
+
result?: IApiVaultPerformance[];
|
|
268
|
+
}
|
|
269
|
+
export interface IApiBatchQueryVaultRiskMetricRequest {
|
|
270
|
+
vault_i_ds?: string[];
|
|
271
|
+
}
|
|
272
|
+
export interface IApiBatchQueryVaultRiskMetricResponse {
|
|
273
|
+
result?: IVaultRiskMetric[];
|
|
274
|
+
}
|
|
301
275
|
export interface IApiCancelAllOrdersRequest {
|
|
302
276
|
sub_account_id?: string;
|
|
303
277
|
kind?: EKind[];
|
|
@@ -456,6 +430,11 @@ export interface IApiGetAllInstrumentsRequest {
|
|
|
456
430
|
export interface IApiGetAllInstrumentsResponse {
|
|
457
431
|
result?: IInstrument[];
|
|
458
432
|
}
|
|
433
|
+
export interface IApiGetCurrencyRequest {
|
|
434
|
+
}
|
|
435
|
+
export interface IApiGetCurrencyResponse {
|
|
436
|
+
result?: ICurrencyDetail[];
|
|
437
|
+
}
|
|
459
438
|
export interface IApiGetEcosystemLeaderboardRequest {
|
|
460
439
|
calculate_from?: string;
|
|
461
440
|
limit?: number;
|
|
@@ -935,6 +914,13 @@ export interface IApiVaultBurnTokensRequest {
|
|
|
935
914
|
num_tokens?: string;
|
|
936
915
|
signature?: ISignature;
|
|
937
916
|
}
|
|
917
|
+
export interface IApiVaultDetail {
|
|
918
|
+
vault_id?: string;
|
|
919
|
+
share_price?: string;
|
|
920
|
+
total_equity?: string;
|
|
921
|
+
valuation_cap?: string;
|
|
922
|
+
unrealized_pnl?: string;
|
|
923
|
+
}
|
|
938
924
|
export interface IApiVaultDetailRequest {
|
|
939
925
|
vault_id?: string;
|
|
940
926
|
}
|
|
@@ -970,6 +956,13 @@ export interface IApiVaultInvestorSummaryRequest {
|
|
|
970
956
|
export interface IApiVaultInvestorSummaryResponse {
|
|
971
957
|
vault_investor_summary?: IVaultInvestorSummary[];
|
|
972
958
|
}
|
|
959
|
+
export interface IApiVaultPerformance {
|
|
960
|
+
vault_id?: string;
|
|
961
|
+
trading_volume?: string;
|
|
962
|
+
apr?: number;
|
|
963
|
+
realized_pnl?: string;
|
|
964
|
+
pnl?: string;
|
|
965
|
+
}
|
|
973
966
|
export interface IApiVaultPerformanceTrend {
|
|
974
967
|
start_interval?: string;
|
|
975
968
|
end_interval?: string;
|
|
@@ -1004,6 +997,10 @@ export interface IApiVaultViewRedemptionQueueRequest {
|
|
|
1004
997
|
}
|
|
1005
998
|
export interface IApiVaultViewRedemptionQueueResponse {
|
|
1006
999
|
redemption_queue?: IVaultRedemptionReqView[];
|
|
1000
|
+
pending_redemption_token_count?: string;
|
|
1001
|
+
urgent_redemption_token_count?: string;
|
|
1002
|
+
auto_redeemable_balance_vault_quote_cur?: string;
|
|
1003
|
+
currency?: string;
|
|
1007
1004
|
}
|
|
1008
1005
|
export interface IApiWithdrawalHistoryRequest {
|
|
1009
1006
|
currency?: string[];
|
|
@@ -1079,6 +1076,12 @@ export interface IClientOrderIDsByGroup {
|
|
|
1079
1076
|
client_order_id?: string[];
|
|
1080
1077
|
sub_account_id?: string;
|
|
1081
1078
|
}
|
|
1079
|
+
export interface ICurrencyDetail {
|
|
1080
|
+
id?: number;
|
|
1081
|
+
symbol?: string;
|
|
1082
|
+
balance_decimals?: number;
|
|
1083
|
+
quantity_multiplier?: string;
|
|
1084
|
+
}
|
|
1082
1085
|
export interface IDeposit {
|
|
1083
1086
|
tx_hash?: string;
|
|
1084
1087
|
to_account_id?: string;
|
|
@@ -1746,6 +1749,12 @@ export interface IVaultRedemptionReqView {
|
|
|
1746
1749
|
num_lp_tokens?: string;
|
|
1747
1750
|
max_redemption_period_timestamp?: string;
|
|
1748
1751
|
}
|
|
1752
|
+
export interface IVaultRiskMetric {
|
|
1753
|
+
vault_id?: string;
|
|
1754
|
+
sharpe_ratio?: number;
|
|
1755
|
+
sortino_ratio?: number;
|
|
1756
|
+
max_drawdown?: number;
|
|
1757
|
+
}
|
|
1749
1758
|
export interface IWSCancelFeedDataV1 {
|
|
1750
1759
|
stream?: string;
|
|
1751
1760
|
selector?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EVenue = exports.EVaultType = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETransactionType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EQueryMainAccountLeaderboardOrderBy = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.
|
|
3
|
+
exports.EVenue = exports.EVaultType = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETransactionType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EQueryMainAccountLeaderboardOrderBy = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.ECandlestickType = exports.ECandlestickInterval = exports.ECancelStatus = exports.EBrokerTag = exports.EBridgeType = void 0;
|
|
4
4
|
var EBridgeType;
|
|
5
5
|
(function (EBridgeType) {
|
|
6
6
|
// XY Bridge type
|
|
@@ -76,93 +76,6 @@ var ECandlestickType;
|
|
|
76
76
|
// Tracks book mid prices
|
|
77
77
|
ECandlestickType["MID"] = "MID";
|
|
78
78
|
})(ECandlestickType || (exports.ECandlestickType = ECandlestickType = {}));
|
|
79
|
-
/**
|
|
80
|
-
* The list of Currencies that are supported on the GRVT exchange
|
|
81
|
-
* @deprecated
|
|
82
|
-
*/
|
|
83
|
-
var ECurrency;
|
|
84
|
-
(function (ECurrency) {
|
|
85
|
-
// the USD fiat currency
|
|
86
|
-
ECurrency["USD"] = "USD";
|
|
87
|
-
// the USDC token
|
|
88
|
-
ECurrency["USDC"] = "USDC";
|
|
89
|
-
// the USDT token
|
|
90
|
-
ECurrency["USDT"] = "USDT";
|
|
91
|
-
// the ETH token
|
|
92
|
-
ECurrency["ETH"] = "ETH";
|
|
93
|
-
// the BTC token
|
|
94
|
-
ECurrency["BTC"] = "BTC";
|
|
95
|
-
// the SOL token
|
|
96
|
-
ECurrency["SOL"] = "SOL";
|
|
97
|
-
// the ARB token
|
|
98
|
-
ECurrency["ARB"] = "ARB";
|
|
99
|
-
// the BNB token
|
|
100
|
-
ECurrency["BNB"] = "BNB";
|
|
101
|
-
// the ZK token
|
|
102
|
-
ECurrency["ZK"] = "ZK";
|
|
103
|
-
// the POL token
|
|
104
|
-
ECurrency["POL"] = "POL";
|
|
105
|
-
// the OP token
|
|
106
|
-
ECurrency["OP"] = "OP";
|
|
107
|
-
// the ATOM token
|
|
108
|
-
ECurrency["ATOM"] = "ATOM";
|
|
109
|
-
// the 1000PEPE token
|
|
110
|
-
ECurrency["KPEPE"] = "KPEPE";
|
|
111
|
-
// the TON token
|
|
112
|
-
ECurrency["TON"] = "TON";
|
|
113
|
-
// the XRP token
|
|
114
|
-
ECurrency["XRP"] = "XRP";
|
|
115
|
-
// the XLM token
|
|
116
|
-
ECurrency["XLM"] = "XLM";
|
|
117
|
-
// the WLD token
|
|
118
|
-
ECurrency["WLD"] = "WLD";
|
|
119
|
-
// the WIF token
|
|
120
|
-
ECurrency["WIF"] = "WIF";
|
|
121
|
-
// the VIRTUAL token
|
|
122
|
-
ECurrency["VIRTUAL"] = "VIRTUAL";
|
|
123
|
-
// the TRUMP token
|
|
124
|
-
ECurrency["TRUMP"] = "TRUMP";
|
|
125
|
-
// the SUI token
|
|
126
|
-
ECurrency["SUI"] = "SUI";
|
|
127
|
-
// the 1000SHIB token
|
|
128
|
-
ECurrency["KSHIB"] = "KSHIB";
|
|
129
|
-
// the POPCAT token
|
|
130
|
-
ECurrency["POPCAT"] = "POPCAT";
|
|
131
|
-
// the PENGU token
|
|
132
|
-
ECurrency["PENGU"] = "PENGU";
|
|
133
|
-
// the LINK token
|
|
134
|
-
ECurrency["LINK"] = "LINK";
|
|
135
|
-
// the 1000BONK token
|
|
136
|
-
ECurrency["KBONK"] = "KBONK";
|
|
137
|
-
// the JUP token
|
|
138
|
-
ECurrency["JUP"] = "JUP";
|
|
139
|
-
// the FARTCOIN token
|
|
140
|
-
ECurrency["FARTCOIN"] = "FARTCOIN";
|
|
141
|
-
// the ENA token
|
|
142
|
-
ECurrency["ENA"] = "ENA";
|
|
143
|
-
// the DOGE token
|
|
144
|
-
ECurrency["DOGE"] = "DOGE";
|
|
145
|
-
// the AIXBT token
|
|
146
|
-
ECurrency["AIXBT"] = "AIXBT";
|
|
147
|
-
// the AI16Z token
|
|
148
|
-
ECurrency["AI16Z"] = "AI16Z";
|
|
149
|
-
// the ADA token
|
|
150
|
-
ECurrency["ADA"] = "ADA";
|
|
151
|
-
// the AAVE token
|
|
152
|
-
ECurrency["AAVE"] = "AAVE";
|
|
153
|
-
// the BERA token
|
|
154
|
-
ECurrency["BERA"] = "BERA";
|
|
155
|
-
// the VINE token
|
|
156
|
-
ECurrency["VINE"] = "VINE";
|
|
157
|
-
// the PENDLE token
|
|
158
|
-
ECurrency["PENDLE"] = "PENDLE";
|
|
159
|
-
// the UXLINK token
|
|
160
|
-
ECurrency["UXLINK"] = "UXLINK";
|
|
161
|
-
// the KAITO token
|
|
162
|
-
ECurrency["KAITO"] = "KAITO";
|
|
163
|
-
// the IP token
|
|
164
|
-
ECurrency["IP"] = "IP";
|
|
165
|
-
})(ECurrency || (exports.ECurrency = ECurrency = {}));
|
|
166
79
|
var EEpochBadgeType;
|
|
167
80
|
(function (EEpochBadgeType) {
|
|
168
81
|
// Champion
|
|
@@ -471,6 +384,10 @@ var ETriggerBy;
|
|
|
471
384
|
ETriggerBy["INDEX"] = "INDEX";
|
|
472
385
|
// LAST - Order is activated when the last trade price reaches the trigger price
|
|
473
386
|
ETriggerBy["LAST"] = "LAST";
|
|
387
|
+
// MID - Order is activated when the mid price reaches the trigger price
|
|
388
|
+
ETriggerBy["MID"] = "MID";
|
|
389
|
+
// MARK - Order is activated when the mark price reaches the trigger price
|
|
390
|
+
ETriggerBy["MARK"] = "MARK";
|
|
474
391
|
})(ETriggerBy || (exports.ETriggerBy = ETriggerBy = {}));
|
|
475
392
|
// Defines the type of trigger order used in trading, such as Take Profit or Stop Loss.
|
|
476
393
|
//
|
|
@@ -221,7 +221,9 @@ exports.ETransferTypeInt = Object.freeze({
|
|
|
221
221
|
exports.ETriggerByInt = Object.freeze({
|
|
222
222
|
[data_interface_1.ETriggerBy.UNSPECIFIED]: 0,
|
|
223
223
|
[data_interface_1.ETriggerBy.INDEX]: 1,
|
|
224
|
-
[data_interface_1.ETriggerBy.LAST]: 2
|
|
224
|
+
[data_interface_1.ETriggerBy.LAST]: 2,
|
|
225
|
+
[data_interface_1.ETriggerBy.MID]: 3,
|
|
226
|
+
[data_interface_1.ETriggerBy.MARK]: 4
|
|
225
227
|
});
|
|
226
228
|
exports.ETriggerTypeInt = Object.freeze({
|
|
227
229
|
[data_interface_1.ETriggerType.UNSPECIFIED]: 0,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_BATCH_QUERY_VAULT_DETAIL_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_BATCH_QUERY_VAULT_DETAIL_REQUEST' struct.
|
|
5
|
+
exports.API_BATCH_QUERY_VAULT_DETAIL_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_i_ds: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_i_ds'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_BATCH_QUERY_VAULT_DETAIL_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_detail_1 = require("./api_vault_detail");
|
|
5
|
+
// Schema map for the 'API_BATCH_QUERY_VAULT_DETAIL_RESPONSE' struct.
|
|
6
|
+
exports.API_BATCH_QUERY_VAULT_DETAIL_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_detail_1.API_VAULT_DETAIL_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_vault_detail_1.API_VAULT_DETAIL_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST' struct.
|
|
5
|
+
exports.API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_i_ds: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_i_ds'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_BATCH_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_performance_1 = require("./api_vault_performance");
|
|
5
|
+
// Schema map for the 'API_BATCH_QUERY_VAULT_PERFORMANCE_RESPONSE' struct.
|
|
6
|
+
exports.API_BATCH_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_performance_1.API_VAULT_PERFORMANCE_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_vault_performance_1.API_VAULT_PERFORMANCE_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_BATCH_QUERY_VAULT_RISK_METRIC_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_BATCH_QUERY_VAULT_RISK_METRIC_REQUEST' struct.
|
|
5
|
+
exports.API_BATCH_QUERY_VAULT_RISK_METRIC_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_i_ds: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_i_ds'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_BATCH_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP = void 0;
|
|
4
|
+
const vault_risk_metric_1 = require("./vault_risk_metric");
|
|
5
|
+
// Schema map for the 'API_BATCH_QUERY_VAULT_RISK_METRIC_RESPONSE' struct.
|
|
6
|
+
exports.API_BATCH_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [vault_risk_metric_1.VAULT_RISK_METRIC_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [vault_risk_metric_1.VAULT_RISK_METRIC_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_CURRENCY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_GET_CURRENCY_REQUEST' struct.
|
|
5
|
+
exports.API_GET_CURRENCY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {},
|
|
7
|
+
LITE_TO_FULL: {}
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_CURRENCY_RESPONSE_MAP = void 0;
|
|
4
|
+
const currency_detail_1 = require("./currency_detail");
|
|
5
|
+
// Schema map for the 'API_GET_CURRENCY_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_CURRENCY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [currency_detail_1.CURRENCY_DETAIL_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [currency_detail_1.CURRENCY_DETAIL_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_DETAIL_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_DETAIL' struct.
|
|
5
|
+
exports.API_VAULT_DETAIL_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
share_price: 'sp',
|
|
9
|
+
total_equity: 'te',
|
|
10
|
+
valuation_cap: 'vc',
|
|
11
|
+
unrealized_pnl: 'up'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
vi: 'vault_id',
|
|
15
|
+
sp: 'share_price',
|
|
16
|
+
te: 'total_equity',
|
|
17
|
+
vc: 'valuation_cap',
|
|
18
|
+
up: 'unrealized_pnl'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_PERFORMANCE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_PERFORMANCE' struct.
|
|
5
|
+
exports.API_VAULT_PERFORMANCE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
trading_volume: 'tv',
|
|
9
|
+
apr: 'a',
|
|
10
|
+
realized_pnl: 'rp',
|
|
11
|
+
pnl: 'p'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
vi: 'vault_id',
|
|
15
|
+
tv: 'trading_volume',
|
|
16
|
+
a: 'apr',
|
|
17
|
+
rp: 'realized_pnl',
|
|
18
|
+
p: 'pnl'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -5,9 +5,17 @@ const vault_redemption_req_view_1 = require("./vault_redemption_req_view");
|
|
|
5
5
|
// Schema map for the 'API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE' struct.
|
|
6
6
|
exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.FULL_TO_LITE]]
|
|
8
|
+
redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.FULL_TO_LITE]],
|
|
9
|
+
pending_redemption_token_count: 'pr',
|
|
10
|
+
urgent_redemption_token_count: 'ur',
|
|
11
|
+
auto_redeemable_balance_vault_quote_cur: 'ar',
|
|
12
|
+
currency: 'c'
|
|
9
13
|
},
|
|
10
14
|
LITE_TO_FULL: {
|
|
11
|
-
rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.LITE_TO_FULL]]
|
|
15
|
+
rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.LITE_TO_FULL]],
|
|
16
|
+
pr: 'pending_redemption_token_count',
|
|
17
|
+
ur: 'urgent_redemption_token_count',
|
|
18
|
+
ar: 'auto_redeemable_balance_vault_quote_cur',
|
|
19
|
+
c: 'currency'
|
|
12
20
|
}
|
|
13
21
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CURRENCY_DETAIL_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CURRENCY_DETAIL' struct.
|
|
5
|
+
exports.CURRENCY_DETAIL_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
id: 'i',
|
|
8
|
+
symbol: 's',
|
|
9
|
+
balance_decimals: 'bd',
|
|
10
|
+
quantity_multiplier: 'qm'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
i: 'id',
|
|
14
|
+
s: 'symbol',
|
|
15
|
+
bd: 'balance_decimals',
|
|
16
|
+
qm: 'quantity_multiplier'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -3,6 +3,12 @@ export * from './ack';
|
|
|
3
3
|
export * from './ack_response';
|
|
4
4
|
export * from './aggregated_account_summary';
|
|
5
5
|
export * from './api_aggregated_account_summary_response';
|
|
6
|
+
export * from './api_batch_query_vault_detail_request';
|
|
7
|
+
export * from './api_batch_query_vault_detail_response';
|
|
8
|
+
export * from './api_batch_query_vault_performance_request';
|
|
9
|
+
export * from './api_batch_query_vault_performance_response';
|
|
10
|
+
export * from './api_batch_query_vault_risk_metric_request';
|
|
11
|
+
export * from './api_batch_query_vault_risk_metric_response';
|
|
6
12
|
export * from './api_cancel_all_orders_request';
|
|
7
13
|
export * from './api_cancel_all_orders_response';
|
|
8
14
|
export * from './api_cancel_on_disconnect_request';
|
|
@@ -38,6 +44,8 @@ export * from './api_get_all_initial_leverage_request';
|
|
|
38
44
|
export * from './api_get_all_initial_leverage_response';
|
|
39
45
|
export * from './api_get_all_instruments_request';
|
|
40
46
|
export * from './api_get_all_instruments_response';
|
|
47
|
+
export * from './api_get_currency_request';
|
|
48
|
+
export * from './api_get_currency_response';
|
|
41
49
|
export * from './api_get_ecosystem_leaderboard_request';
|
|
42
50
|
export * from './api_get_ecosystem_leaderboard_response';
|
|
43
51
|
export * from './api_get_ecosystem_referral_stat_response';
|
|
@@ -151,12 +159,14 @@ export * from './api_user_category_affinity_score_response';
|
|
|
151
159
|
export * from './api_validate_vault_account_request';
|
|
152
160
|
export * from './api_validate_vault_account_response';
|
|
153
161
|
export * from './api_vault_burn_tokens_request';
|
|
162
|
+
export * from './api_vault_detail';
|
|
154
163
|
export * from './api_vault_detail_request';
|
|
155
164
|
export * from './api_vault_detail_response';
|
|
156
165
|
export * from './api_vault_invest_request';
|
|
157
166
|
export * from './api_vault_investor_history';
|
|
158
167
|
export * from './api_vault_investor_summary_request';
|
|
159
168
|
export * from './api_vault_investor_summary_response';
|
|
169
|
+
export * from './api_vault_performance';
|
|
160
170
|
export * from './api_vault_performance_trend';
|
|
161
171
|
export * from './api_vault_redeem_cancel_request';
|
|
162
172
|
export * from './api_vault_redeem_request';
|
|
@@ -176,6 +186,7 @@ export * from './cancel_status_feed';
|
|
|
176
186
|
export * from './candlestick';
|
|
177
187
|
export * from './claim_ecosystem_badge_response';
|
|
178
188
|
export * from './client_order_i_ds_by_group';
|
|
189
|
+
export * from './currency_detail';
|
|
179
190
|
export * from './deposit';
|
|
180
191
|
export * from './deposit_history';
|
|
181
192
|
export * from './ecosystem_leaderboard_user';
|
|
@@ -266,6 +277,7 @@ export * from './vault_params';
|
|
|
266
277
|
export * from './vault_redeem_results';
|
|
267
278
|
export * from './vault_redemption';
|
|
268
279
|
export * from './vault_redemption_req_view';
|
|
280
|
+
export * from './vault_risk_metric';
|
|
269
281
|
export * from './ws_cancel_feed_data_v_1';
|
|
270
282
|
export * from './ws_cancel_feed_selector_v_1';
|
|
271
283
|
export * from './ws_candlestick_feed_data_v_1';
|
|
@@ -19,6 +19,12 @@ __exportStar(require("./ack"), exports);
|
|
|
19
19
|
__exportStar(require("./ack_response"), exports);
|
|
20
20
|
__exportStar(require("./aggregated_account_summary"), exports);
|
|
21
21
|
__exportStar(require("./api_aggregated_account_summary_response"), exports);
|
|
22
|
+
__exportStar(require("./api_batch_query_vault_detail_request"), exports);
|
|
23
|
+
__exportStar(require("./api_batch_query_vault_detail_response"), exports);
|
|
24
|
+
__exportStar(require("./api_batch_query_vault_performance_request"), exports);
|
|
25
|
+
__exportStar(require("./api_batch_query_vault_performance_response"), exports);
|
|
26
|
+
__exportStar(require("./api_batch_query_vault_risk_metric_request"), exports);
|
|
27
|
+
__exportStar(require("./api_batch_query_vault_risk_metric_response"), exports);
|
|
22
28
|
__exportStar(require("./api_cancel_all_orders_request"), exports);
|
|
23
29
|
__exportStar(require("./api_cancel_all_orders_response"), exports);
|
|
24
30
|
__exportStar(require("./api_cancel_on_disconnect_request"), exports);
|
|
@@ -54,6 +60,8 @@ __exportStar(require("./api_get_all_initial_leverage_request"), exports);
|
|
|
54
60
|
__exportStar(require("./api_get_all_initial_leverage_response"), exports);
|
|
55
61
|
__exportStar(require("./api_get_all_instruments_request"), exports);
|
|
56
62
|
__exportStar(require("./api_get_all_instruments_response"), exports);
|
|
63
|
+
__exportStar(require("./api_get_currency_request"), exports);
|
|
64
|
+
__exportStar(require("./api_get_currency_response"), exports);
|
|
57
65
|
__exportStar(require("./api_get_ecosystem_leaderboard_request"), exports);
|
|
58
66
|
__exportStar(require("./api_get_ecosystem_leaderboard_response"), exports);
|
|
59
67
|
__exportStar(require("./api_get_ecosystem_referral_stat_response"), exports);
|
|
@@ -167,12 +175,14 @@ __exportStar(require("./api_user_category_affinity_score_response"), exports);
|
|
|
167
175
|
__exportStar(require("./api_validate_vault_account_request"), exports);
|
|
168
176
|
__exportStar(require("./api_validate_vault_account_response"), exports);
|
|
169
177
|
__exportStar(require("./api_vault_burn_tokens_request"), exports);
|
|
178
|
+
__exportStar(require("./api_vault_detail"), exports);
|
|
170
179
|
__exportStar(require("./api_vault_detail_request"), exports);
|
|
171
180
|
__exportStar(require("./api_vault_detail_response"), exports);
|
|
172
181
|
__exportStar(require("./api_vault_invest_request"), exports);
|
|
173
182
|
__exportStar(require("./api_vault_investor_history"), exports);
|
|
174
183
|
__exportStar(require("./api_vault_investor_summary_request"), exports);
|
|
175
184
|
__exportStar(require("./api_vault_investor_summary_response"), exports);
|
|
185
|
+
__exportStar(require("./api_vault_performance"), exports);
|
|
176
186
|
__exportStar(require("./api_vault_performance_trend"), exports);
|
|
177
187
|
__exportStar(require("./api_vault_redeem_cancel_request"), exports);
|
|
178
188
|
__exportStar(require("./api_vault_redeem_request"), exports);
|
|
@@ -192,6 +202,7 @@ __exportStar(require("./cancel_status_feed"), exports);
|
|
|
192
202
|
__exportStar(require("./candlestick"), exports);
|
|
193
203
|
__exportStar(require("./claim_ecosystem_badge_response"), exports);
|
|
194
204
|
__exportStar(require("./client_order_i_ds_by_group"), exports);
|
|
205
|
+
__exportStar(require("./currency_detail"), exports);
|
|
195
206
|
__exportStar(require("./deposit"), exports);
|
|
196
207
|
__exportStar(require("./deposit_history"), exports);
|
|
197
208
|
__exportStar(require("./ecosystem_leaderboard_user"), exports);
|
|
@@ -282,6 +293,7 @@ __exportStar(require("./vault_params"), exports);
|
|
|
282
293
|
__exportStar(require("./vault_redeem_results"), exports);
|
|
283
294
|
__exportStar(require("./vault_redemption"), exports);
|
|
284
295
|
__exportStar(require("./vault_redemption_req_view"), exports);
|
|
296
|
+
__exportStar(require("./vault_risk_metric"), exports);
|
|
285
297
|
__exportStar(require("./ws_cancel_feed_data_v_1"), exports);
|
|
286
298
|
__exportStar(require("./ws_cancel_feed_selector_v_1"), exports);
|
|
287
299
|
__exportStar(require("./ws_candlestick_feed_data_v_1"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_RISK_METRIC_MAP = void 0;
|
|
4
|
+
// Schema map for the 'VAULT_RISK_METRIC' struct.
|
|
5
|
+
exports.VAULT_RISK_METRIC_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
sharpe_ratio: 'sr',
|
|
9
|
+
sortino_ratio: 'sr1',
|
|
10
|
+
max_drawdown: 'md'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
vi: 'vault_id',
|
|
14
|
+
sr: 'sharpe_ratio',
|
|
15
|
+
sr1: 'sortino_ratio',
|
|
16
|
+
md: 'max_drawdown'
|
|
17
|
+
}
|
|
18
|
+
});
|