@grvt/client 1.4.11 → 1.4.13
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/TDG/index.d.ts +7 -2
- package/TDG/index.js +28 -3
- package/interfaces/codegen/data.interface.d.ts +56 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_response.js +14 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_trend_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_trend_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_trend_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_performance_trend_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_query_vault_risk_metric_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_risk_metric_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_query_vault_risk_metric_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_risk_metric_response.js +16 -0
- package/interfaces/codegen/schema-maps/api_query_vault_summary_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_summary_history_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_query_vault_summary_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_summary_history_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_timed_vault_asset_exposure_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_timed_vault_asset_exposure_request.js +16 -0
- package/interfaces/codegen/schema-maps/api_vault_performance_trend.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_performance_trend.js +16 -0
- package/interfaces/codegen/schema-maps/api_vault_summary.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_summary.js +18 -0
- package/interfaces/codegen/schema-maps/index.d.ts +13 -0
- package/interfaces/codegen/schema-maps/index.js +13 -0
- package/interfaces/codegen/schema-maps/query_vault_summary_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_vault_summary_history_request.js +18 -0
- package/interfaces/codegen/schema-maps/query_vault_summary_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_vault_summary_history_response.js +13 -0
- package/interfaces/codegen/schema-maps/vault_lp_info.js +4 -2
- package/package.json +1 -1
package/TDG/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { type IAckResponse, type IApiAggregatedAccountSummaryResponse, type IApiCancelAllOrdersRequest, type IApiCancelAllOrdersResponse, type IApiCancelOrderRequest, type IApiCancelOrderResponse, type IApiCreateBulkOrdersRequest, type IApiCreateBulkOrdersResponse, type IApiCreateOrderRequest, type IApiCreateOrderResponse, type IApiDedustPositionRequest, type IApiDedustPositionResponse, type IApiDepositHistoryRequest, type IApiDepositHistoryResponse, type IApiFillHistoryRequest, type IApiFillHistoryResponse, type IApiFundingAccountSummaryResponse, type IApiFundingPaymentHistoryRequest, type IApiFundingPaymentHistoryResponse, type IApiGetAllInitialLeverageRequest, type IApiGetAllInitialLeverageResponse, type IApiGetMarginTiersResponse, type IApiGetOrderGroupRequest, type IApiGetOrderGroupResponse, type IApiGetOrderRequest, type IApiGetOrderResponse, type IApiOpenOrdersRequest, type IApiOpenOrdersResponse, type IApiOrderHistoryRequest, type IApiOrderHistoryResponse, type IApiPositionsRequest, type IApiPositionsResponse, type IApiPreDepositCheckRequest, type IApiPreDepositCheckResponse, type IApiPreOrderCheckRequest, type IApiPreOrderCheckResponse, type IApiQueryListFundingAccountSummaryRequest, type IApiQueryListFundingAccountSummaryResponse, type IApiQueryListSubAccountSummaryRequest, type IApiQueryListSubAccountSummaryResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiReplaceOrdersRequest, type IApiReplaceOrdersResponse, type IApiSetInitialLeverageRequest, type IApiSetInitialLeverageResponse, type IApiSocializedLossStatusResponse, type IApiSubAccountHistoryRequest, type IApiSubAccountHistoryResponse, type IApiSubAccountSummaryRequest, type IApiSubAccountSummaryResponse, type IApiTimedAssetExposureRequest, type IApiTimedAssetExposureResponse, type IApiTransferHistoryRequest, type IApiTransferHistoryResponse, type IApiTransferRequest, type IApiTransferResponse, type IApiVaultBurnTokensRequest, type IApiVaultInvestorSummaryRequest, type IApiVaultInvestorSummaryResponse, type IApiVaultInvestRequest, type IApiVaultRedeemCancelRequest, type IApiVaultRedeemRequest, type IApiVaultViewRedemptionQueueRequest, type IApiVaultViewRedemptionQueueResponse, type IApiWithdrawalHistoryRequest, type IApiWithdrawalHistoryResponse, type IApiWithdrawalRequest, type IConfig } from '../interfaces';
|
|
2
|
+
import { type IAckResponse, type IApiAggregatedAccountSummaryResponse, type IApiCancelAllOrdersRequest, type IApiCancelAllOrdersResponse, type IApiCancelOrderRequest, type IApiCancelOrderResponse, type IApiCreateBulkOrdersRequest, type IApiCreateBulkOrdersResponse, type IApiCreateOrderRequest, type IApiCreateOrderResponse, type IApiDedustPositionRequest, type IApiDedustPositionResponse, type IApiDepositHistoryRequest, type IApiDepositHistoryResponse, type IApiFillHistoryRequest, type IApiFillHistoryResponse, type IApiFundingAccountSummaryResponse, type IApiFundingPaymentHistoryRequest, type IApiFundingPaymentHistoryResponse, type IApiGetAllInitialLeverageRequest, type IApiGetAllInitialLeverageResponse, type IApiGetMarginTiersResponse, type IApiGetOrderGroupRequest, type IApiGetOrderGroupResponse, type IApiGetOrderRequest, type IApiGetOrderResponse, type IApiOpenOrdersRequest, type IApiOpenOrdersResponse, type IApiOrderHistoryRequest, type IApiOrderHistoryResponse, type IApiPositionsRequest, type IApiPositionsResponse, type IApiPreDepositCheckRequest, type IApiPreDepositCheckResponse, type IApiPreOrderCheckRequest, type IApiPreOrderCheckResponse, type IApiQueryListFundingAccountSummaryRequest, type IApiQueryListFundingAccountSummaryResponse, type IApiQueryListSubAccountSummaryRequest, type IApiQueryListSubAccountSummaryResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiQueryVaultPerformanceRequest, type IApiQueryVaultPerformanceResponse, type IApiQueryVaultPerformanceTrendRequest, type IApiQueryVaultPerformanceTrendResponse, type IApiQueryVaultRiskMetricRequest, type IApiQueryVaultRiskMetricResponse, type IApiQueryVaultSummaryHistoryRequest, type IApiQueryVaultSummaryHistoryResponse, type IApiReplaceOrdersRequest, type IApiReplaceOrdersResponse, type IApiSetInitialLeverageRequest, type IApiSetInitialLeverageResponse, type IApiSocializedLossStatusResponse, type IApiSubAccountHistoryRequest, type IApiSubAccountHistoryResponse, type IApiSubAccountSummaryRequest, type IApiSubAccountSummaryResponse, type IApiTimedAssetExposureRequest, type IApiTimedAssetExposureResponse, type IApiTimedVaultAssetExposureRequest, type IApiTransferHistoryRequest, type IApiTransferHistoryResponse, type IApiTransferRequest, type IApiTransferResponse, type IApiVaultBurnTokensRequest, type IApiVaultInvestorSummaryRequest, type IApiVaultInvestorSummaryResponse, type IApiVaultInvestRequest, type IApiVaultRedeemCancelRequest, type IApiVaultRedeemRequest, type IApiVaultViewRedemptionQueueRequest, type IApiVaultViewRedemptionQueueResponse, type IApiWithdrawalHistoryRequest, type IApiWithdrawalHistoryResponse, type IApiWithdrawalRequest, type IConfig } from '../interfaces';
|
|
3
3
|
export declare class TDG {
|
|
4
4
|
private readonly _axios;
|
|
5
5
|
private readonly _fullUrl;
|
|
@@ -117,6 +117,11 @@ export declare class TDG {
|
|
|
117
117
|
vaultInvest(payload: IApiVaultInvestRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
|
|
118
118
|
vaultInvestorSummary(payload: IApiVaultInvestorSummaryRequest, config?: AxiosRequestConfig): Promise<IApiVaultInvestorSummaryResponse>;
|
|
119
119
|
vaultRedeem(payload: IApiVaultRedeemRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
|
|
120
|
-
vaultViewRedemptionQueue(payload: IApiVaultViewRedemptionQueueRequest, config?: AxiosRequestConfig): Promise<IApiVaultViewRedemptionQueueResponse>;
|
|
121
120
|
vaultRedeemCancel(payload: IApiVaultRedeemCancelRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
|
|
121
|
+
vaultViewRedemptionQueue(payload: IApiVaultViewRedemptionQueueRequest, config?: AxiosRequestConfig): Promise<IApiVaultViewRedemptionQueueResponse>;
|
|
122
|
+
vaultPerformance(payload: IApiQueryVaultPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultPerformanceResponse>;
|
|
123
|
+
vaultPerformanceTrend(payload: IApiQueryVaultPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultPerformanceTrendResponse>;
|
|
124
|
+
vaultRiskMetric(payload: IApiQueryVaultRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultRiskMetricResponse>;
|
|
125
|
+
vaultSummaryHistory(payload: IApiQueryVaultSummaryHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultSummaryHistoryResponse>;
|
|
126
|
+
vaultAssetExposure(payload: IApiTimedVaultAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
|
|
122
127
|
}
|
package/TDG/index.js
CHANGED
|
@@ -271,14 +271,39 @@ class TDG {
|
|
|
271
271
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
|
|
272
272
|
}).catch(utils_1.Utils.coverApiError);
|
|
273
273
|
}
|
|
274
|
+
vaultRedeemCancel(payload, config) {
|
|
275
|
+
return this._axios.post(this._liteUrl + '/vault_redeem_cancel', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_REDEEM_CANCEL_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
276
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
|
|
277
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
278
|
+
}
|
|
274
279
|
vaultViewRedemptionQueue(payload, config) {
|
|
275
280
|
return this._axios.post(this._liteUrl + '/vault_view_redemption_queue', utils_1.Utils.schemaMap(payload, interfaces_1.API_VAULT_VIEW_REDEMPTION_QUEUE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
276
281
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP.LITE_TO_FULL);
|
|
277
282
|
}).catch(utils_1.Utils.coverApiError);
|
|
278
283
|
}
|
|
279
|
-
|
|
280
|
-
return this._axios.post(this._liteUrl + '/
|
|
281
|
-
return utils_1.Utils.schemaMap(response.data, interfaces_1.
|
|
284
|
+
vaultPerformance(payload, config) {
|
|
285
|
+
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
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP.LITE_TO_FULL);
|
|
287
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
288
|
+
}
|
|
289
|
+
vaultPerformanceTrend(payload, config) {
|
|
290
|
+
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
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_PERFORMANCE_TREND_RESPONSE_MAP.LITE_TO_FULL);
|
|
292
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
293
|
+
}
|
|
294
|
+
vaultRiskMetric(payload, config) {
|
|
295
|
+
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
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP.LITE_TO_FULL);
|
|
297
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
298
|
+
}
|
|
299
|
+
vaultSummaryHistory(payload, config) {
|
|
300
|
+
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
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
302
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
303
|
+
}
|
|
304
|
+
vaultAssetExposure(payload, config) {
|
|
305
|
+
return this._axios.post(this._liteUrl + '/vault_asset_exposure', utils_1.Utils.schemaMap(payload, interfaces_1.API_TIMED_ASSET_EXPOSURE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
306
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
|
|
282
307
|
}).catch(utils_1.Utils.coverApiError);
|
|
283
308
|
}
|
|
284
309
|
}
|
|
@@ -634,6 +634,36 @@ export interface IApiQueryTradingPerformanceTrendResponse {
|
|
|
634
634
|
result?: IApiTradingPerformanceTrend[];
|
|
635
635
|
next?: string;
|
|
636
636
|
}
|
|
637
|
+
export interface IApiQueryVaultPerformanceRequest {
|
|
638
|
+
vault_id?: string;
|
|
639
|
+
}
|
|
640
|
+
export interface IApiQueryVaultPerformanceResponse {
|
|
641
|
+
trading_volume?: string;
|
|
642
|
+
apr?: number;
|
|
643
|
+
}
|
|
644
|
+
export interface IApiQueryVaultPerformanceTrendRequest {
|
|
645
|
+
vault_id?: string;
|
|
646
|
+
time_interval?: ETimeInterval;
|
|
647
|
+
}
|
|
648
|
+
export interface IApiQueryVaultPerformanceTrendResponse {
|
|
649
|
+
result?: IApiVaultPerformanceTrend[];
|
|
650
|
+
next?: string;
|
|
651
|
+
}
|
|
652
|
+
export interface IApiQueryVaultRiskMetricRequest {
|
|
653
|
+
vault_id?: string;
|
|
654
|
+
}
|
|
655
|
+
export interface IApiQueryVaultRiskMetricResponse {
|
|
656
|
+
sharpe_ratio?: number;
|
|
657
|
+
sortino_ratio?: number;
|
|
658
|
+
max_drawdown?: number;
|
|
659
|
+
}
|
|
660
|
+
export interface IApiQueryVaultSummaryHistoryRequest {
|
|
661
|
+
vault_id?: string;
|
|
662
|
+
time_interval?: ETimeInterval;
|
|
663
|
+
}
|
|
664
|
+
export interface IApiQueryVaultSummaryHistoryResponse {
|
|
665
|
+
result?: IApiVaultSummary[];
|
|
666
|
+
}
|
|
637
667
|
export interface IApiReplaceOrdersRequest {
|
|
638
668
|
sub_account_id?: string;
|
|
639
669
|
client_order_i_ds?: string[];
|
|
@@ -724,6 +754,11 @@ export interface IApiTimedAssetExposureResponse {
|
|
|
724
754
|
result?: ITimedAssetExposureSummary[];
|
|
725
755
|
next?: string;
|
|
726
756
|
}
|
|
757
|
+
export interface IApiTimedVaultAssetExposureRequest {
|
|
758
|
+
vault_id?: string;
|
|
759
|
+
is_gross_exposure?: boolean;
|
|
760
|
+
time_interval?: ETimeInterval;
|
|
761
|
+
}
|
|
727
762
|
export interface IApiTradeHistoryRequest {
|
|
728
763
|
instrument?: string;
|
|
729
764
|
start_time?: string;
|
|
@@ -808,6 +843,11 @@ export interface IApiVaultInvestorSummaryRequest {
|
|
|
808
843
|
export interface IApiVaultInvestorSummaryResponse {
|
|
809
844
|
vault_investor_summary?: IVaultInvestorSummary[];
|
|
810
845
|
}
|
|
846
|
+
export interface IApiVaultPerformanceTrend {
|
|
847
|
+
start_interval?: string;
|
|
848
|
+
end_interval?: string;
|
|
849
|
+
trading_volume?: string;
|
|
850
|
+
}
|
|
811
851
|
export interface IApiVaultRedeemCancelRequest {
|
|
812
852
|
main_account_id?: string;
|
|
813
853
|
vault_id?: string;
|
|
@@ -819,6 +859,12 @@ export interface IApiVaultRedeemRequest {
|
|
|
819
859
|
num_tokens?: string;
|
|
820
860
|
signature?: ISignature;
|
|
821
861
|
}
|
|
862
|
+
export interface IApiVaultSummary {
|
|
863
|
+
event_time?: string;
|
|
864
|
+
start_interval?: string;
|
|
865
|
+
vault_id?: string;
|
|
866
|
+
share_price?: string;
|
|
867
|
+
}
|
|
822
868
|
export interface IApiVaultViewRedemptionQueueRequest {
|
|
823
869
|
main_account_id?: string;
|
|
824
870
|
vault_id?: string;
|
|
@@ -1254,6 +1300,15 @@ export interface IQueryTradingPerformanceTrendResponse {
|
|
|
1254
1300
|
result?: ITradingPerformancePoint[];
|
|
1255
1301
|
next?: string;
|
|
1256
1302
|
}
|
|
1303
|
+
export interface IQueryVaultSummaryHistoryRequest {
|
|
1304
|
+
vault_id?: string;
|
|
1305
|
+
start_time?: string;
|
|
1306
|
+
end_time?: string;
|
|
1307
|
+
time_interval?: ETimeInterval;
|
|
1308
|
+
}
|
|
1309
|
+
export interface IQueryVaultSummaryHistoryResponse {
|
|
1310
|
+
result?: ISnapVaultSummary[];
|
|
1311
|
+
}
|
|
1257
1312
|
export interface IRewardEpochInfo {
|
|
1258
1313
|
epoch?: number;
|
|
1259
1314
|
epoch_start_time?: string;
|
|
@@ -1479,6 +1534,7 @@ export interface IVaultInvestorSummary {
|
|
|
1479
1534
|
export interface IVaultLpInfo {
|
|
1480
1535
|
lp_token_balance?: string;
|
|
1481
1536
|
usd_notional_invested?: string;
|
|
1537
|
+
realized_pnl?: string;
|
|
1482
1538
|
}
|
|
1483
1539
|
export interface IVaultManagementFeeTickResults {
|
|
1484
1540
|
vault_total_equity?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_PERFORMANCE_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_PERFORMANCE_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_PERFORMANCE_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_id'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_PERFORMANCE_RESPONSE' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_PERFORMANCE_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
trading_volume: 'tv',
|
|
8
|
+
apr: 'a'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
tv: 'trading_volume',
|
|
12
|
+
a: 'apr'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
time_interval: 'ti'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
vi: 'vault_id',
|
|
12
|
+
ti: 'time_interval'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_PERFORMANCE_TREND_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_performance_trend_1 = require("./api_vault_performance_trend");
|
|
5
|
+
// Schema map for the 'API_QUERY_VAULT_PERFORMANCE_TREND_RESPONSE' struct.
|
|
6
|
+
exports.API_QUERY_VAULT_PERFORMANCE_TREND_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_performance_trend_1.API_VAULT_PERFORMANCE_TREND_MAP.FULL_TO_LITE]],
|
|
9
|
+
next: 'n'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
r: ['result', [api_vault_performance_trend_1.API_VAULT_PERFORMANCE_TREND_MAP.LITE_TO_FULL]],
|
|
13
|
+
n: 'next'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_RISK_METRIC_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_RISK_METRIC_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_RISK_METRIC_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_id'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_RISK_METRIC_RESPONSE' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_RISK_METRIC_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sharpe_ratio: 'sr',
|
|
8
|
+
sortino_ratio: 'sr1',
|
|
9
|
+
max_drawdown: 'md'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
sr: 'sharpe_ratio',
|
|
13
|
+
sr1: 'sortino_ratio',
|
|
14
|
+
md: 'max_drawdown'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
time_interval: 'ti'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
vi: 'vault_id',
|
|
12
|
+
ti: 'time_interval'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_summary_1 = require("./api_vault_summary");
|
|
5
|
+
// Schema map for the 'API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE' struct.
|
|
6
|
+
exports.API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_summary_1.API_VAULT_SUMMARY_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_vault_summary_1.API_VAULT_SUMMARY_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST' struct.
|
|
5
|
+
exports.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
is_gross_exposure: 'ig',
|
|
9
|
+
time_interval: 'ti'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
vi: 'vault_id',
|
|
13
|
+
ig: 'is_gross_exposure',
|
|
14
|
+
ti: 'time_interval'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_PERFORMANCE_TREND_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_PERFORMANCE_TREND' struct.
|
|
5
|
+
exports.API_VAULT_PERFORMANCE_TREND_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
start_interval: 'si',
|
|
8
|
+
end_interval: 'ei',
|
|
9
|
+
trading_volume: 'tv'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
si: 'start_interval',
|
|
13
|
+
ei: 'end_interval',
|
|
14
|
+
tv: 'trading_volume'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_SUMMARY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_SUMMARY' struct.
|
|
5
|
+
exports.API_VAULT_SUMMARY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
event_time: 'et',
|
|
8
|
+
start_interval: 'si',
|
|
9
|
+
vault_id: 'vi',
|
|
10
|
+
share_price: 'sp'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
et: 'event_time',
|
|
14
|
+
si: 'start_interval',
|
|
15
|
+
vi: 'vault_id',
|
|
16
|
+
sp: 'share_price'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -98,6 +98,14 @@ export * from './api_query_trading_performance_request';
|
|
|
98
98
|
export * from './api_query_trading_performance_response';
|
|
99
99
|
export * from './api_query_trading_performance_trend_request';
|
|
100
100
|
export * from './api_query_trading_performance_trend_response';
|
|
101
|
+
export * from './api_query_vault_performance_request';
|
|
102
|
+
export * from './api_query_vault_performance_response';
|
|
103
|
+
export * from './api_query_vault_performance_trend_request';
|
|
104
|
+
export * from './api_query_vault_performance_trend_response';
|
|
105
|
+
export * from './api_query_vault_risk_metric_request';
|
|
106
|
+
export * from './api_query_vault_risk_metric_response';
|
|
107
|
+
export * from './api_query_vault_summary_history_request';
|
|
108
|
+
export * from './api_query_vault_summary_history_response';
|
|
101
109
|
export * from './api_replace_orders_request';
|
|
102
110
|
export * from './api_replace_orders_response';
|
|
103
111
|
export * from './api_resolve_epoch_ecosystem_metric_response';
|
|
@@ -117,6 +125,7 @@ export * from './api_ticker_request';
|
|
|
117
125
|
export * from './api_ticker_response';
|
|
118
126
|
export * from './api_timed_asset_exposure_request';
|
|
119
127
|
export * from './api_timed_asset_exposure_response';
|
|
128
|
+
export * from './api_timed_vault_asset_exposure_request';
|
|
120
129
|
export * from './api_trade_history_request';
|
|
121
130
|
export * from './api_trade_history_response';
|
|
122
131
|
export * from './api_trade_request';
|
|
@@ -133,8 +142,10 @@ export * from './api_vault_burn_tokens_request';
|
|
|
133
142
|
export * from './api_vault_invest_request';
|
|
134
143
|
export * from './api_vault_investor_summary_request';
|
|
135
144
|
export * from './api_vault_investor_summary_response';
|
|
145
|
+
export * from './api_vault_performance_trend';
|
|
136
146
|
export * from './api_vault_redeem_cancel_request';
|
|
137
147
|
export * from './api_vault_redeem_request';
|
|
148
|
+
export * from './api_vault_summary';
|
|
138
149
|
export * from './api_vault_view_redemption_queue_request';
|
|
139
150
|
export * from './api_vault_view_redemption_queue_response';
|
|
140
151
|
export * from './api_withdrawal_history_request';
|
|
@@ -197,6 +208,8 @@ export * from './query_get_list_epoch_request';
|
|
|
197
208
|
export * from './query_get_list_epoch_response';
|
|
198
209
|
export * from './query_trading_performance_trend_request';
|
|
199
210
|
export * from './query_trading_performance_trend_response';
|
|
211
|
+
export * from './query_vault_summary_history_request';
|
|
212
|
+
export * from './query_vault_summary_history_response';
|
|
200
213
|
export * from './reward_epoch_info';
|
|
201
214
|
export * from './session_information';
|
|
202
215
|
export * from './signature';
|
|
@@ -114,6 +114,14 @@ __exportStar(require("./api_query_trading_performance_request"), exports);
|
|
|
114
114
|
__exportStar(require("./api_query_trading_performance_response"), exports);
|
|
115
115
|
__exportStar(require("./api_query_trading_performance_trend_request"), exports);
|
|
116
116
|
__exportStar(require("./api_query_trading_performance_trend_response"), exports);
|
|
117
|
+
__exportStar(require("./api_query_vault_performance_request"), exports);
|
|
118
|
+
__exportStar(require("./api_query_vault_performance_response"), exports);
|
|
119
|
+
__exportStar(require("./api_query_vault_performance_trend_request"), exports);
|
|
120
|
+
__exportStar(require("./api_query_vault_performance_trend_response"), exports);
|
|
121
|
+
__exportStar(require("./api_query_vault_risk_metric_request"), exports);
|
|
122
|
+
__exportStar(require("./api_query_vault_risk_metric_response"), exports);
|
|
123
|
+
__exportStar(require("./api_query_vault_summary_history_request"), exports);
|
|
124
|
+
__exportStar(require("./api_query_vault_summary_history_response"), exports);
|
|
117
125
|
__exportStar(require("./api_replace_orders_request"), exports);
|
|
118
126
|
__exportStar(require("./api_replace_orders_response"), exports);
|
|
119
127
|
__exportStar(require("./api_resolve_epoch_ecosystem_metric_response"), exports);
|
|
@@ -133,6 +141,7 @@ __exportStar(require("./api_ticker_request"), exports);
|
|
|
133
141
|
__exportStar(require("./api_ticker_response"), exports);
|
|
134
142
|
__exportStar(require("./api_timed_asset_exposure_request"), exports);
|
|
135
143
|
__exportStar(require("./api_timed_asset_exposure_response"), exports);
|
|
144
|
+
__exportStar(require("./api_timed_vault_asset_exposure_request"), exports);
|
|
136
145
|
__exportStar(require("./api_trade_history_request"), exports);
|
|
137
146
|
__exportStar(require("./api_trade_history_response"), exports);
|
|
138
147
|
__exportStar(require("./api_trade_request"), exports);
|
|
@@ -149,8 +158,10 @@ __exportStar(require("./api_vault_burn_tokens_request"), exports);
|
|
|
149
158
|
__exportStar(require("./api_vault_invest_request"), exports);
|
|
150
159
|
__exportStar(require("./api_vault_investor_summary_request"), exports);
|
|
151
160
|
__exportStar(require("./api_vault_investor_summary_response"), exports);
|
|
161
|
+
__exportStar(require("./api_vault_performance_trend"), exports);
|
|
152
162
|
__exportStar(require("./api_vault_redeem_cancel_request"), exports);
|
|
153
163
|
__exportStar(require("./api_vault_redeem_request"), exports);
|
|
164
|
+
__exportStar(require("./api_vault_summary"), exports);
|
|
154
165
|
__exportStar(require("./api_vault_view_redemption_queue_request"), exports);
|
|
155
166
|
__exportStar(require("./api_vault_view_redemption_queue_response"), exports);
|
|
156
167
|
__exportStar(require("./api_withdrawal_history_request"), exports);
|
|
@@ -213,6 +224,8 @@ __exportStar(require("./query_get_list_epoch_request"), exports);
|
|
|
213
224
|
__exportStar(require("./query_get_list_epoch_response"), exports);
|
|
214
225
|
__exportStar(require("./query_trading_performance_trend_request"), exports);
|
|
215
226
|
__exportStar(require("./query_trading_performance_trend_response"), exports);
|
|
227
|
+
__exportStar(require("./query_vault_summary_history_request"), exports);
|
|
228
|
+
__exportStar(require("./query_vault_summary_history_response"), exports);
|
|
216
229
|
__exportStar(require("./reward_epoch_info"), exports);
|
|
217
230
|
__exportStar(require("./session_information"), exports);
|
|
218
231
|
__exportStar(require("./signature"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_VAULT_SUMMARY_HISTORY_REQUEST' struct.
|
|
5
|
+
exports.QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
start_time: 'st',
|
|
9
|
+
end_time: 'et',
|
|
10
|
+
time_interval: 'ti'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
vi: 'vault_id',
|
|
14
|
+
st: 'start_time',
|
|
15
|
+
et: 'end_time',
|
|
16
|
+
ti: 'time_interval'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
+
const snap_vault_summary_1 = require("./snap_vault_summary");
|
|
5
|
+
// Schema map for the 'QUERY_VAULT_SUMMARY_HISTORY_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [snap_vault_summary_1.SNAP_VAULT_SUMMARY_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [snap_vault_summary_1.SNAP_VAULT_SUMMARY_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -5,10 +5,12 @@ exports.VAULT_LP_INFO_MAP = void 0;
|
|
|
5
5
|
exports.VAULT_LP_INFO_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
lp_token_balance: 'lt',
|
|
8
|
-
usd_notional_invested: 'un'
|
|
8
|
+
usd_notional_invested: 'un',
|
|
9
|
+
realized_pnl: 'rp'
|
|
9
10
|
},
|
|
10
11
|
LITE_TO_FULL: {
|
|
11
12
|
lt: 'lp_token_balance',
|
|
12
|
-
un: 'usd_notional_invested'
|
|
13
|
+
un: 'usd_notional_invested',
|
|
14
|
+
rp: 'realized_pnl'
|
|
13
15
|
}
|
|
14
16
|
});
|