@grvt/client 1.4.21 → 1.4.23

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.
Files changed (46) hide show
  1. package/MDG/index.d.ts +12 -1
  2. package/MDG/index.js +43 -0
  3. package/TDG/index.d.ts +32 -0
  4. package/TDG/index.js +32 -0
  5. package/interfaces/codegen/data.interface.d.ts +92 -47
  6. package/interfaces/codegen/data.interface.js +5 -88
  7. package/interfaces/codegen/enum-int.js +3 -1
  8. package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_request.d.ts +2 -0
  9. package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_request.js +12 -0
  10. package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_response.d.ts +2 -0
  11. package/interfaces/codegen/schema-maps/api_batch_query_vault_detail_response.js +13 -0
  12. package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_request.d.ts +2 -0
  13. package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_request.js +12 -0
  14. package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_response.d.ts +2 -0
  15. package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_response.js +13 -0
  16. package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_request.d.ts +2 -0
  17. package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_request.js +12 -0
  18. package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_response.d.ts +2 -0
  19. package/interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_response.js +13 -0
  20. package/interfaces/codegen/schema-maps/api_ecn_from_broker_request.d.ts +2 -0
  21. package/interfaces/codegen/schema-maps/api_ecn_from_broker_request.js +22 -0
  22. package/interfaces/codegen/schema-maps/api_ecn_from_broker_response.d.ts +2 -0
  23. package/interfaces/codegen/schema-maps/api_ecn_from_broker_response.js +12 -0
  24. package/interfaces/codegen/schema-maps/api_get_currency_request.d.ts +2 -0
  25. package/interfaces/codegen/schema-maps/api_get_currency_request.js +8 -0
  26. package/interfaces/codegen/schema-maps/api_get_currency_response.d.ts +2 -0
  27. package/interfaces/codegen/schema-maps/api_get_currency_response.js +13 -0
  28. package/interfaces/codegen/schema-maps/api_vault_detail.d.ts +2 -0
  29. package/interfaces/codegen/schema-maps/api_vault_detail.js +20 -0
  30. package/interfaces/codegen/schema-maps/api_vault_performance.d.ts +2 -0
  31. package/interfaces/codegen/schema-maps/api_vault_performance.js +20 -0
  32. package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.js +10 -2
  33. package/interfaces/codegen/schema-maps/currency_detail.d.ts +2 -0
  34. package/interfaces/codegen/schema-maps/currency_detail.js +18 -0
  35. package/interfaces/codegen/schema-maps/ecn_to_broker_feed.d.ts +2 -0
  36. package/interfaces/codegen/schema-maps/ecn_to_broker_feed.js +32 -0
  37. package/interfaces/codegen/schema-maps/index.d.ts +17 -0
  38. package/interfaces/codegen/schema-maps/index.js +17 -0
  39. package/interfaces/codegen/schema-maps/order_metadata.js +4 -2
  40. package/interfaces/codegen/schema-maps/vault_risk_metric.d.ts +2 -0
  41. package/interfaces/codegen/schema-maps/vault_risk_metric.js +18 -0
  42. package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_data_v_1.d.ts +2 -0
  43. package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_data_v_1.js +21 -0
  44. package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_selector_v_1.d.ts +2 -0
  45. package/interfaces/codegen/schema-maps/wsecn_to_broker_feed_selector_v_1.js +14 -0
  46. 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[];
@@ -376,6 +350,17 @@ export interface IApiDropClientWsRequest {
376
350
  export interface IApiDropClientWsResponse {
377
351
  num_dropped?: number;
378
352
  }
353
+ export interface IApiECNFromBrokerRequest {
354
+ sub_account_id?: string;
355
+ order_id?: string;
356
+ client_order_id?: string;
357
+ asset?: string;
358
+ seq_no?: string;
359
+ cumulative_confirmed_size?: string;
360
+ }
361
+ export interface IApiECNFromBrokerResponse {
362
+ result?: boolean;
363
+ }
379
364
  export interface IApiFillHistoryRequest {
380
365
  sub_account_id?: string;
381
366
  kind?: EKind[];
@@ -456,6 +441,11 @@ export interface IApiGetAllInstrumentsRequest {
456
441
  export interface IApiGetAllInstrumentsResponse {
457
442
  result?: IInstrument[];
458
443
  }
444
+ export interface IApiGetCurrencyRequest {
445
+ }
446
+ export interface IApiGetCurrencyResponse {
447
+ result?: ICurrencyDetail[];
448
+ }
459
449
  export interface IApiGetEcosystemLeaderboardRequest {
460
450
  calculate_from?: string;
461
451
  limit?: number;
@@ -935,6 +925,13 @@ export interface IApiVaultBurnTokensRequest {
935
925
  num_tokens?: string;
936
926
  signature?: ISignature;
937
927
  }
928
+ export interface IApiVaultDetail {
929
+ vault_id?: string;
930
+ share_price?: string;
931
+ total_equity?: string;
932
+ valuation_cap?: string;
933
+ unrealized_pnl?: string;
934
+ }
938
935
  export interface IApiVaultDetailRequest {
939
936
  vault_id?: string;
940
937
  }
@@ -970,6 +967,13 @@ export interface IApiVaultInvestorSummaryRequest {
970
967
  export interface IApiVaultInvestorSummaryResponse {
971
968
  vault_investor_summary?: IVaultInvestorSummary[];
972
969
  }
970
+ export interface IApiVaultPerformance {
971
+ vault_id?: string;
972
+ trading_volume?: string;
973
+ apr?: number;
974
+ realized_pnl?: string;
975
+ pnl?: string;
976
+ }
973
977
  export interface IApiVaultPerformanceTrend {
974
978
  start_interval?: string;
975
979
  end_interval?: string;
@@ -1004,6 +1008,10 @@ export interface IApiVaultViewRedemptionQueueRequest {
1004
1008
  }
1005
1009
  export interface IApiVaultViewRedemptionQueueResponse {
1006
1010
  redemption_queue?: IVaultRedemptionReqView[];
1011
+ pending_redemption_token_count?: string;
1012
+ urgent_redemption_token_count?: string;
1013
+ auto_redeemable_balance_vault_quote_cur?: string;
1014
+ currency?: string;
1007
1015
  }
1008
1016
  export interface IApiWithdrawalHistoryRequest {
1009
1017
  currency?: string[];
@@ -1079,6 +1087,12 @@ export interface IClientOrderIDsByGroup {
1079
1087
  client_order_id?: string[];
1080
1088
  sub_account_id?: string;
1081
1089
  }
1090
+ export interface ICurrencyDetail {
1091
+ id?: number;
1092
+ symbol?: string;
1093
+ balance_decimals?: number;
1094
+ quantity_multiplier?: string;
1095
+ }
1082
1096
  export interface IDeposit {
1083
1097
  tx_hash?: string;
1084
1098
  to_account_id?: string;
@@ -1095,6 +1109,19 @@ export interface IDepositHistory {
1095
1109
  confirmed_time?: string;
1096
1110
  from_address?: string;
1097
1111
  }
1112
+ export interface IECNToBrokerFeed {
1113
+ order_id?: string;
1114
+ client_order_id?: string;
1115
+ sub_account_id?: string;
1116
+ asset?: string;
1117
+ seq_no?: string;
1118
+ cumulative_request_size?: string;
1119
+ cumulative_filled_size?: string;
1120
+ cumulative_shortfall?: string;
1121
+ status?: EOrderStatus;
1122
+ reject_reason?: EOrderRejectReason;
1123
+ expiry_time?: string;
1124
+ }
1098
1125
  export interface IEcosystemLeaderboardUser {
1099
1126
  account_id?: string;
1100
1127
  rank?: number;
@@ -1335,6 +1362,7 @@ export interface IOrderMetadata {
1335
1362
  trigger?: ITriggerOrderMetadata;
1336
1363
  broker?: EBrokerTag;
1337
1364
  source?: ESource;
1365
+ is_ecn?: boolean;
1338
1366
  }
1339
1367
  export interface IOrderState {
1340
1368
  status?: EOrderStatus;
@@ -1746,6 +1774,12 @@ export interface IVaultRedemptionReqView {
1746
1774
  num_lp_tokens?: string;
1747
1775
  max_redemption_period_timestamp?: string;
1748
1776
  }
1777
+ export interface IVaultRiskMetric {
1778
+ vault_id?: string;
1779
+ sharpe_ratio?: number;
1780
+ sortino_ratio?: number;
1781
+ max_drawdown?: number;
1782
+ }
1749
1783
  export interface IWSCancelFeedDataV1 {
1750
1784
  stream?: string;
1751
1785
  selector?: string;
@@ -1778,6 +1812,17 @@ export interface IWSDepositFeedDataV1 {
1778
1812
  export interface IWSDepositFeedSelectorV1 {
1779
1813
  main_account_id?: string;
1780
1814
  }
1815
+ export interface IWSECNToBrokerFeedDataV1 {
1816
+ stream?: string;
1817
+ selector?: string;
1818
+ sequence_number?: string;
1819
+ feed?: IECNToBrokerFeed;
1820
+ prev_sequence_number?: string;
1821
+ }
1822
+ export interface IWSECNToBrokerFeedSelectorV1 {
1823
+ sub_account_id?: string;
1824
+ instrument?: string;
1825
+ }
1781
1826
  export interface IWSFillFeedDataV1 {
1782
1827
  stream?: string;
1783
1828
  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.ECurrency = exports.ECandlestickType = exports.ECandlestickInterval = exports.ECancelStatus = exports.EBrokerTag = exports.EBridgeType = void 0;
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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_BATCH_QUERY_VAULT_DETAIL_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_BATCH_QUERY_VAULT_DETAIL_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_BATCH_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_BATCH_QUERY_VAULT_RISK_METRIC_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_BATCH_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_ECN_FROM_BROKER_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_ECN_FROM_BROKER_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_ECN_FROM_BROKER_REQUEST' struct.
5
+ exports.API_ECN_FROM_BROKER_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ sub_account_id: 'sa',
8
+ order_id: 'oi',
9
+ client_order_id: 'co',
10
+ asset: 'a',
11
+ seq_no: 'sn',
12
+ cumulative_confirmed_size: 'cc'
13
+ },
14
+ LITE_TO_FULL: {
15
+ sa: 'sub_account_id',
16
+ oi: 'order_id',
17
+ co: 'client_order_id',
18
+ a: 'asset',
19
+ sn: 'seq_no',
20
+ cc: 'cumulative_confirmed_size'
21
+ }
22
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_ECN_FROM_BROKER_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_ECN_FROM_BROKER_RESPONSE_MAP = void 0;
4
+ // Schema map for the 'API_ECN_FROM_BROKER_RESPONSE' struct.
5
+ exports.API_ECN_FROM_BROKER_RESPONSE_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ result: 'r'
8
+ },
9
+ LITE_TO_FULL: {
10
+ r: 'result'
11
+ }
12
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_CURRENCY_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_CURRENCY_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_DETAIL_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_PERFORMANCE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const CURRENCY_DETAIL_MAP: SchemaPairMap;
@@ -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
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const ECN_TO_BROKER_FEED_MAP: SchemaPairMap;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECN_TO_BROKER_FEED_MAP = void 0;
4
+ // Schema map for the 'ECN_TO_BROKER_FEED' struct.
5
+ exports.ECN_TO_BROKER_FEED_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ order_id: 'oi',
8
+ client_order_id: 'co',
9
+ sub_account_id: 'sa',
10
+ asset: 'a',
11
+ seq_no: 'sn',
12
+ cumulative_request_size: 'cr',
13
+ cumulative_filled_size: 'cf',
14
+ cumulative_shortfall: 'cs',
15
+ status: 's',
16
+ reject_reason: 'rr',
17
+ expiry_time: 'et'
18
+ },
19
+ LITE_TO_FULL: {
20
+ oi: 'order_id',
21
+ co: 'client_order_id',
22
+ sa: 'sub_account_id',
23
+ a: 'asset',
24
+ sn: 'seq_no',
25
+ cr: 'cumulative_request_size',
26
+ cf: 'cumulative_filled_size',
27
+ cs: 'cumulative_shortfall',
28
+ s: 'status',
29
+ rr: 'reject_reason',
30
+ et: 'expiry_time'
31
+ }
32
+ });
@@ -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';
@@ -22,6 +28,8 @@ export * from './api_deposit_history_request';
22
28
  export * from './api_deposit_history_response';
23
29
  export * from './api_drop_client_ws_request';
24
30
  export * from './api_drop_client_ws_response';
31
+ export * from './api_ecn_from_broker_request';
32
+ export * from './api_ecn_from_broker_response';
25
33
  export * from './api_fill_history_request';
26
34
  export * from './api_fill_history_response';
27
35
  export * from './api_find_ecosystem_epoch_metric_response';
@@ -38,6 +46,8 @@ export * from './api_get_all_initial_leverage_request';
38
46
  export * from './api_get_all_initial_leverage_response';
39
47
  export * from './api_get_all_instruments_request';
40
48
  export * from './api_get_all_instruments_response';
49
+ export * from './api_get_currency_request';
50
+ export * from './api_get_currency_response';
41
51
  export * from './api_get_ecosystem_leaderboard_request';
42
52
  export * from './api_get_ecosystem_leaderboard_response';
43
53
  export * from './api_get_ecosystem_referral_stat_response';
@@ -151,12 +161,14 @@ export * from './api_user_category_affinity_score_response';
151
161
  export * from './api_validate_vault_account_request';
152
162
  export * from './api_validate_vault_account_response';
153
163
  export * from './api_vault_burn_tokens_request';
164
+ export * from './api_vault_detail';
154
165
  export * from './api_vault_detail_request';
155
166
  export * from './api_vault_detail_response';
156
167
  export * from './api_vault_invest_request';
157
168
  export * from './api_vault_investor_history';
158
169
  export * from './api_vault_investor_summary_request';
159
170
  export * from './api_vault_investor_summary_response';
171
+ export * from './api_vault_performance';
160
172
  export * from './api_vault_performance_trend';
161
173
  export * from './api_vault_redeem_cancel_request';
162
174
  export * from './api_vault_redeem_request';
@@ -176,8 +188,10 @@ export * from './cancel_status_feed';
176
188
  export * from './candlestick';
177
189
  export * from './claim_ecosystem_badge_response';
178
190
  export * from './client_order_i_ds_by_group';
191
+ export * from './currency_detail';
179
192
  export * from './deposit';
180
193
  export * from './deposit_history';
194
+ export * from './ecn_to_broker_feed';
181
195
  export * from './ecosystem_leaderboard_user';
182
196
  export * from './ecosystem_metric';
183
197
  export * from './ecosystem_point';
@@ -266,12 +280,15 @@ export * from './vault_params';
266
280
  export * from './vault_redeem_results';
267
281
  export * from './vault_redemption';
268
282
  export * from './vault_redemption_req_view';
283
+ export * from './vault_risk_metric';
269
284
  export * from './ws_cancel_feed_data_v_1';
270
285
  export * from './ws_cancel_feed_selector_v_1';
271
286
  export * from './ws_candlestick_feed_data_v_1';
272
287
  export * from './ws_candlestick_feed_selector_v_1';
273
288
  export * from './ws_deposit_feed_data_v_1';
274
289
  export * from './ws_deposit_feed_selector_v_1';
290
+ export * from './wsecn_to_broker_feed_data_v_1';
291
+ export * from './wsecn_to_broker_feed_selector_v_1';
275
292
  export * from './ws_fill_feed_data_v_1';
276
293
  export * from './ws_fill_feed_selector_v_1';
277
294
  export * from './ws_list_streams_params';
@@ -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);
@@ -38,6 +44,8 @@ __exportStar(require("./api_deposit_history_request"), exports);
38
44
  __exportStar(require("./api_deposit_history_response"), exports);
39
45
  __exportStar(require("./api_drop_client_ws_request"), exports);
40
46
  __exportStar(require("./api_drop_client_ws_response"), exports);
47
+ __exportStar(require("./api_ecn_from_broker_request"), exports);
48
+ __exportStar(require("./api_ecn_from_broker_response"), exports);
41
49
  __exportStar(require("./api_fill_history_request"), exports);
42
50
  __exportStar(require("./api_fill_history_response"), exports);
43
51
  __exportStar(require("./api_find_ecosystem_epoch_metric_response"), exports);
@@ -54,6 +62,8 @@ __exportStar(require("./api_get_all_initial_leverage_request"), exports);
54
62
  __exportStar(require("./api_get_all_initial_leverage_response"), exports);
55
63
  __exportStar(require("./api_get_all_instruments_request"), exports);
56
64
  __exportStar(require("./api_get_all_instruments_response"), exports);
65
+ __exportStar(require("./api_get_currency_request"), exports);
66
+ __exportStar(require("./api_get_currency_response"), exports);
57
67
  __exportStar(require("./api_get_ecosystem_leaderboard_request"), exports);
58
68
  __exportStar(require("./api_get_ecosystem_leaderboard_response"), exports);
59
69
  __exportStar(require("./api_get_ecosystem_referral_stat_response"), exports);
@@ -167,12 +177,14 @@ __exportStar(require("./api_user_category_affinity_score_response"), exports);
167
177
  __exportStar(require("./api_validate_vault_account_request"), exports);
168
178
  __exportStar(require("./api_validate_vault_account_response"), exports);
169
179
  __exportStar(require("./api_vault_burn_tokens_request"), exports);
180
+ __exportStar(require("./api_vault_detail"), exports);
170
181
  __exportStar(require("./api_vault_detail_request"), exports);
171
182
  __exportStar(require("./api_vault_detail_response"), exports);
172
183
  __exportStar(require("./api_vault_invest_request"), exports);
173
184
  __exportStar(require("./api_vault_investor_history"), exports);
174
185
  __exportStar(require("./api_vault_investor_summary_request"), exports);
175
186
  __exportStar(require("./api_vault_investor_summary_response"), exports);
187
+ __exportStar(require("./api_vault_performance"), exports);
176
188
  __exportStar(require("./api_vault_performance_trend"), exports);
177
189
  __exportStar(require("./api_vault_redeem_cancel_request"), exports);
178
190
  __exportStar(require("./api_vault_redeem_request"), exports);
@@ -192,8 +204,10 @@ __exportStar(require("./cancel_status_feed"), exports);
192
204
  __exportStar(require("./candlestick"), exports);
193
205
  __exportStar(require("./claim_ecosystem_badge_response"), exports);
194
206
  __exportStar(require("./client_order_i_ds_by_group"), exports);
207
+ __exportStar(require("./currency_detail"), exports);
195
208
  __exportStar(require("./deposit"), exports);
196
209
  __exportStar(require("./deposit_history"), exports);
210
+ __exportStar(require("./ecn_to_broker_feed"), exports);
197
211
  __exportStar(require("./ecosystem_leaderboard_user"), exports);
198
212
  __exportStar(require("./ecosystem_metric"), exports);
199
213
  __exportStar(require("./ecosystem_point"), exports);
@@ -282,12 +296,15 @@ __exportStar(require("./vault_params"), exports);
282
296
  __exportStar(require("./vault_redeem_results"), exports);
283
297
  __exportStar(require("./vault_redemption"), exports);
284
298
  __exportStar(require("./vault_redemption_req_view"), exports);
299
+ __exportStar(require("./vault_risk_metric"), exports);
285
300
  __exportStar(require("./ws_cancel_feed_data_v_1"), exports);
286
301
  __exportStar(require("./ws_cancel_feed_selector_v_1"), exports);
287
302
  __exportStar(require("./ws_candlestick_feed_data_v_1"), exports);
288
303
  __exportStar(require("./ws_candlestick_feed_selector_v_1"), exports);
289
304
  __exportStar(require("./ws_deposit_feed_data_v_1"), exports);
290
305
  __exportStar(require("./ws_deposit_feed_selector_v_1"), exports);
306
+ __exportStar(require("./wsecn_to_broker_feed_data_v_1"), exports);
307
+ __exportStar(require("./wsecn_to_broker_feed_selector_v_1"), exports);
291
308
  __exportStar(require("./ws_fill_feed_data_v_1"), exports);
292
309
  __exportStar(require("./ws_fill_feed_selector_v_1"), exports);
293
310
  __exportStar(require("./ws_list_streams_params"), exports);
@@ -9,13 +9,15 @@ exports.ORDER_METADATA_MAP = Object.freeze({
9
9
  create_time: 'ct',
10
10
  trigger: ['t', trigger_order_metadata_1.TRIGGER_ORDER_METADATA_MAP.FULL_TO_LITE],
11
11
  broker: 'b',
12
- source: 's'
12
+ source: 's',
13
+ is_ecn: 'ie'
13
14
  },
14
15
  LITE_TO_FULL: {
15
16
  co: 'client_order_id',
16
17
  ct: 'create_time',
17
18
  t: ['trigger', trigger_order_metadata_1.TRIGGER_ORDER_METADATA_MAP.LITE_TO_FULL],
18
19
  b: 'broker',
19
- s: 'source'
20
+ s: 'source',
21
+ ie: 'is_ecn'
20
22
  }
21
23
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const VAULT_RISK_METRIC_MAP: SchemaPairMap;
@@ -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
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const WSECN_TO_BROKER_FEED_DATA_V_1_MAP: SchemaPairMap;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WSECN_TO_BROKER_FEED_DATA_V_1_MAP = void 0;
4
+ const ecn_to_broker_feed_1 = require("./ecn_to_broker_feed");
5
+ // Schema map for the 'WSECN_TO_BROKER_FEED_DATA_V_1' struct.
6
+ exports.WSECN_TO_BROKER_FEED_DATA_V_1_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ stream: 's',
9
+ selector: 's1',
10
+ sequence_number: 'sn',
11
+ feed: ['f', ecn_to_broker_feed_1.ECN_TO_BROKER_FEED_MAP.FULL_TO_LITE],
12
+ prev_sequence_number: 'ps'
13
+ },
14
+ LITE_TO_FULL: {
15
+ s: 'stream',
16
+ s1: 'selector',
17
+ sn: 'sequence_number',
18
+ f: ['feed', ecn_to_broker_feed_1.ECN_TO_BROKER_FEED_MAP.LITE_TO_FULL],
19
+ ps: 'prev_sequence_number'
20
+ }
21
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const WSECN_TO_BROKER_FEED_SELECTOR_V_1_MAP: SchemaPairMap;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WSECN_TO_BROKER_FEED_SELECTOR_V_1_MAP = void 0;
4
+ // Schema map for the 'WSECN_TO_BROKER_FEED_SELECTOR_V_1' struct.
5
+ exports.WSECN_TO_BROKER_FEED_SELECTOR_V_1_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ sub_account_id: 'sa',
8
+ instrument: 'i'
9
+ },
10
+ LITE_TO_FULL: {
11
+ sa: 'sub_account_id',
12
+ i: 'instrument'
13
+ }
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",