@grvt/client 1.4.9 → 1.4.10
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 +2 -1
- package/TDG/index.js +5 -0
- package/interfaces/codegen/data.interface.d.ts +50 -7
- package/interfaces/codegen/data.interface.js +2 -0
- package/interfaces/codegen/enum-int.js +2 -1
- package/interfaces/codegen/hex-string-map.js +1 -0
- package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.js +13 -0
- package/interfaces/codegen/schema-maps/index.d.ts +7 -0
- package/interfaces/codegen/schema-maps/index.js +7 -0
- package/interfaces/codegen/schema-maps/lp_info_entry.d.ts +2 -0
- package/interfaces/codegen/schema-maps/lp_info_entry.js +15 -0
- package/interfaces/codegen/schema-maps/snap_sub_account_summary.js +6 -2
- package/interfaces/codegen/schema-maps/snap_vault_summary.d.ts +2 -0
- package/interfaces/codegen/schema-maps/snap_vault_summary.js +23 -0
- package/interfaces/codegen/schema-maps/sub_account_trade_aggregation.js +4 -2
- package/interfaces/codegen/schema-maps/vault_investor_history.d.ts +2 -0
- package/interfaces/codegen/schema-maps/vault_investor_history.js +26 -0
- package/interfaces/codegen/schema-maps/vault_lp_info.d.ts +2 -0
- package/interfaces/codegen/schema-maps/vault_lp_info.js +14 -0
- package/interfaces/codegen/schema-maps/vault_redemption_req_view.d.ts +2 -0
- package/interfaces/codegen/schema-maps/vault_redemption_req_view.js +16 -0
- 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 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 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';
|
|
3
3
|
export declare class TDG {
|
|
4
4
|
private readonly _axios;
|
|
5
5
|
private readonly _fullUrl;
|
|
@@ -117,5 +117,6 @@ 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>;
|
|
120
121
|
vaultRedeemCancel(payload: IApiVaultRedeemCancelRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
|
|
121
122
|
}
|
package/TDG/index.js
CHANGED
|
@@ -271,6 +271,11 @@ 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
|
+
vaultViewRedemptionQueue(payload, config) {
|
|
275
|
+
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
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP.LITE_TO_FULL);
|
|
277
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
278
|
+
}
|
|
274
279
|
vaultRedeemCancel(payload, config) {
|
|
275
280
|
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
281
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
|
|
@@ -186,7 +186,8 @@ export declare enum ETimeInterval {
|
|
|
186
186
|
INTERVAL_1_D = "INTERVAL_1_D",
|
|
187
187
|
INTERVAL_7_D = "INTERVAL_7_D",
|
|
188
188
|
INTERVAL_30_D = "INTERVAL_30_D",
|
|
189
|
-
INTERVAL_90_D = "INTERVAL_90_D"
|
|
189
|
+
INTERVAL_90_D = "INTERVAL_90_D",
|
|
190
|
+
INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
|
|
190
191
|
}
|
|
191
192
|
export declare enum ETransferType {
|
|
192
193
|
UNSPECIFIED = "UNSPECIFIED",
|
|
@@ -215,8 +216,8 @@ export declare enum EVenue {
|
|
|
215
216
|
RFQ = "RFQ"
|
|
216
217
|
}
|
|
217
218
|
export interface IAPISettlementPrice {
|
|
218
|
-
base?:
|
|
219
|
-
quote?:
|
|
219
|
+
base?: string;
|
|
220
|
+
quote?: string;
|
|
220
221
|
settlement_time?: string;
|
|
221
222
|
settlement_price?: string;
|
|
222
223
|
}
|
|
@@ -407,8 +408,8 @@ export interface IApiGetEcosystemReferralStatResponse {
|
|
|
407
408
|
}
|
|
408
409
|
export interface IApiGetFilteredInstrumentsRequest {
|
|
409
410
|
kind?: EKind[];
|
|
410
|
-
base?:
|
|
411
|
-
quote?:
|
|
411
|
+
base?: string[];
|
|
412
|
+
quote?: string[];
|
|
412
413
|
is_active?: boolean;
|
|
413
414
|
limit?: number;
|
|
414
415
|
}
|
|
@@ -656,8 +657,8 @@ export interface IApiSetInitialLeverageResponse {
|
|
|
656
657
|
success?: boolean;
|
|
657
658
|
}
|
|
658
659
|
export interface IApiSettlementPriceRequest {
|
|
659
|
-
base?:
|
|
660
|
-
quote?:
|
|
660
|
+
base?: string;
|
|
661
|
+
quote?: string;
|
|
661
662
|
start_time?: string;
|
|
662
663
|
end_time?: string;
|
|
663
664
|
limit?: number;
|
|
@@ -699,6 +700,7 @@ export interface IApiSubAccountTradeAggregationRequest {
|
|
|
699
700
|
is_taker?: boolean;
|
|
700
701
|
cursor?: string;
|
|
701
702
|
group_by_signer?: boolean;
|
|
703
|
+
sources?: ESource[];
|
|
702
704
|
}
|
|
703
705
|
export interface IApiSubAccountTradeAggregationResponse {
|
|
704
706
|
result?: ISubAccountTradeAggregation[];
|
|
@@ -817,6 +819,13 @@ export interface IApiVaultRedeemRequest {
|
|
|
817
819
|
num_tokens?: string;
|
|
818
820
|
signature?: ISignature;
|
|
819
821
|
}
|
|
822
|
+
export interface IApiVaultViewRedemptionQueueRequest {
|
|
823
|
+
main_account_id?: string;
|
|
824
|
+
vault_id?: string;
|
|
825
|
+
}
|
|
826
|
+
export interface IApiVaultViewRedemptionQueueResponse {
|
|
827
|
+
redemption_queue?: IVaultRedemptionReqView[];
|
|
828
|
+
}
|
|
820
829
|
export interface IApiWithdrawalHistoryRequest {
|
|
821
830
|
currency?: ECurrency[];
|
|
822
831
|
start_time?: string;
|
|
@@ -1089,6 +1098,10 @@ export interface ILPSnapshot {
|
|
|
1089
1098
|
liquidity_score?: string;
|
|
1090
1099
|
calculate_at?: string;
|
|
1091
1100
|
}
|
|
1101
|
+
export interface ILpInfoEntry {
|
|
1102
|
+
lp_address?: string;
|
|
1103
|
+
info?: IVaultLpInfo;
|
|
1104
|
+
}
|
|
1092
1105
|
export interface IMainAccIDRequest {
|
|
1093
1106
|
main_account_id?: string;
|
|
1094
1107
|
}
|
|
@@ -1280,6 +1293,16 @@ export interface ISnapSubAccountSummary {
|
|
|
1280
1293
|
total_equity?: string;
|
|
1281
1294
|
unrealized_pnl?: string;
|
|
1282
1295
|
positions?: IPositionSummary[];
|
|
1296
|
+
is_vault?: boolean;
|
|
1297
|
+
vault_im_additions?: string;
|
|
1298
|
+
}
|
|
1299
|
+
export interface ISnapVaultSummary {
|
|
1300
|
+
event_time?: string;
|
|
1301
|
+
start_interval?: string;
|
|
1302
|
+
vault_id?: string;
|
|
1303
|
+
lp_infos?: ILpInfoEntry[];
|
|
1304
|
+
total_lp_token_supply?: string;
|
|
1305
|
+
share_price?: string;
|
|
1283
1306
|
}
|
|
1284
1307
|
export interface ISpotBalance {
|
|
1285
1308
|
currency?: ECurrency;
|
|
@@ -1314,6 +1337,7 @@ export interface ISubAccountTradeAggregation {
|
|
|
1314
1337
|
positive_fee?: string;
|
|
1315
1338
|
signer?: string;
|
|
1316
1339
|
realized_pnl?: string;
|
|
1340
|
+
source?: ESource;
|
|
1317
1341
|
}
|
|
1318
1342
|
export interface ITPSLOrderMetadata {
|
|
1319
1343
|
trigger_by?: ETriggerBy;
|
|
@@ -1433,6 +1457,16 @@ export interface IVaultInvestResults {
|
|
|
1433
1457
|
vault_share_price?: string;
|
|
1434
1458
|
num_lp_tokens?: string;
|
|
1435
1459
|
}
|
|
1460
|
+
export interface IVaultInvestorHistory {
|
|
1461
|
+
event_time?: string;
|
|
1462
|
+
main_account_id?: string;
|
|
1463
|
+
vault_id?: string;
|
|
1464
|
+
is_investing?: boolean;
|
|
1465
|
+
price?: string;
|
|
1466
|
+
size?: string;
|
|
1467
|
+
realized_pnl?: string;
|
|
1468
|
+
performance_fee?: string;
|
|
1469
|
+
}
|
|
1436
1470
|
export interface IVaultInvestorSummary {
|
|
1437
1471
|
sub_account_id?: string;
|
|
1438
1472
|
num_lp_tokens?: string;
|
|
@@ -1442,6 +1476,10 @@ export interface IVaultInvestorSummary {
|
|
|
1442
1476
|
all_time_realized_pnl?: string;
|
|
1443
1477
|
pending_redemption?: IVaultRedemption;
|
|
1444
1478
|
}
|
|
1479
|
+
export interface IVaultLpInfo {
|
|
1480
|
+
lp_token_balance?: string;
|
|
1481
|
+
usd_notional_invested?: string;
|
|
1482
|
+
}
|
|
1445
1483
|
export interface IVaultManagementFeeTickResults {
|
|
1446
1484
|
vault_total_equity?: string;
|
|
1447
1485
|
vault_share_price?: string;
|
|
@@ -1471,6 +1509,11 @@ export interface IVaultRedemption {
|
|
|
1471
1509
|
num_lp_tokens?: string;
|
|
1472
1510
|
request_valuation?: string;
|
|
1473
1511
|
}
|
|
1512
|
+
export interface IVaultRedemptionReqView {
|
|
1513
|
+
request_time?: string;
|
|
1514
|
+
currency?: ECurrency;
|
|
1515
|
+
num_lp_tokens?: string;
|
|
1516
|
+
}
|
|
1474
1517
|
export interface IWSCancelFeedDataV1 {
|
|
1475
1518
|
stream?: string;
|
|
1476
1519
|
selector?: string;
|
|
@@ -369,6 +369,8 @@ var ETimeInterval;
|
|
|
369
369
|
ETimeInterval["INTERVAL_30_D"] = "INTERVAL_30_D";
|
|
370
370
|
// 90 days
|
|
371
371
|
ETimeInterval["INTERVAL_90_D"] = "INTERVAL_90_D";
|
|
372
|
+
// Lifetime
|
|
373
|
+
ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
|
|
372
374
|
})(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
|
|
373
375
|
var ETransferType;
|
|
374
376
|
(function (ETransferType) {
|
|
@@ -190,7 +190,8 @@ exports.ETimeIntervalInt = Object.freeze({
|
|
|
190
190
|
[data_interface_1.ETimeInterval.INTERVAL_1_D]: 1,
|
|
191
191
|
[data_interface_1.ETimeInterval.INTERVAL_7_D]: 2,
|
|
192
192
|
[data_interface_1.ETimeInterval.INTERVAL_30_D]: 3,
|
|
193
|
-
[data_interface_1.ETimeInterval.INTERVAL_90_D]: 4
|
|
193
|
+
[data_interface_1.ETimeInterval.INTERVAL_90_D]: 4,
|
|
194
|
+
[data_interface_1.ETimeInterval.INTERVAL_LIFETIME]: 5
|
|
194
195
|
});
|
|
195
196
|
exports.ETransferTypeInt = Object.freeze({
|
|
196
197
|
[data_interface_1.ETransferType.UNSPECIFIED]: 0,
|
|
@@ -13,7 +13,8 @@ exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_REQUEST_MAP = Object.freeze({
|
|
|
13
13
|
is_maker: 'im',
|
|
14
14
|
is_taker: 'it',
|
|
15
15
|
cursor: 'c',
|
|
16
|
-
group_by_signer: 'gb'
|
|
16
|
+
group_by_signer: 'gb',
|
|
17
|
+
sources: 's'
|
|
17
18
|
},
|
|
18
19
|
LITE_TO_FULL: {
|
|
19
20
|
l: 'limit',
|
|
@@ -25,6 +26,7 @@ exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_REQUEST_MAP = Object.freeze({
|
|
|
25
26
|
im: 'is_maker',
|
|
26
27
|
it: 'is_taker',
|
|
27
28
|
c: 'cursor',
|
|
28
|
-
gb: 'group_by_signer'
|
|
29
|
+
gb: 'group_by_signer',
|
|
30
|
+
s: 'sources'
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_VIEW_REDEMPTION_QUEUE_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_VIEW_REDEMPTION_QUEUE_REQUEST' struct.
|
|
5
|
+
exports.API_VAULT_VIEW_REDEMPTION_QUEUE_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
main_account_id: 'ma',
|
|
8
|
+
vault_id: 'vi'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
ma: 'main_account_id',
|
|
12
|
+
vi: 'vault_id'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = void 0;
|
|
4
|
+
const vault_redemption_req_view_1 = require("./vault_redemption_req_view");
|
|
5
|
+
// Schema map for the 'API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE' struct.
|
|
6
|
+
exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -135,6 +135,8 @@ export * from './api_vault_investor_summary_request';
|
|
|
135
135
|
export * from './api_vault_investor_summary_response';
|
|
136
136
|
export * from './api_vault_redeem_cancel_request';
|
|
137
137
|
export * from './api_vault_redeem_request';
|
|
138
|
+
export * from './api_vault_view_redemption_queue_request';
|
|
139
|
+
export * from './api_vault_view_redemption_queue_response';
|
|
138
140
|
export * from './api_withdrawal_history_request';
|
|
139
141
|
export * from './api_withdrawal_history_response';
|
|
140
142
|
export * from './api_withdrawal_request';
|
|
@@ -169,6 +171,7 @@ export * from './jsonrpc_request';
|
|
|
169
171
|
export * from './jsonrpc_response';
|
|
170
172
|
export * from './lp_point';
|
|
171
173
|
export * from './lp_snapshot';
|
|
174
|
+
export * from './lp_info_entry';
|
|
172
175
|
export * from './main_acc_id_request';
|
|
173
176
|
export * from './margin_tier_response';
|
|
174
177
|
export * from './mini_ticker';
|
|
@@ -200,6 +203,7 @@ export * from './signature';
|
|
|
200
203
|
export * from './snap_account_summary';
|
|
201
204
|
export * from './snap_funding_account_summary';
|
|
202
205
|
export * from './snap_sub_account_summary';
|
|
206
|
+
export * from './snap_vault_summary';
|
|
203
207
|
export * from './api_spot_balance';
|
|
204
208
|
export * from './stream_reference';
|
|
205
209
|
export * from './snap_sub_account';
|
|
@@ -217,11 +221,14 @@ export * from './user_category_affinity_score';
|
|
|
217
221
|
export * from './user_tracking_event';
|
|
218
222
|
export * from './user_vault_category_event_pay_load';
|
|
219
223
|
export * from './vault_invest_results';
|
|
224
|
+
export * from './vault_investor_history';
|
|
220
225
|
export * from './vault_investor_summary';
|
|
226
|
+
export * from './vault_lp_info';
|
|
221
227
|
export * from './vault_management_fee_tick_results';
|
|
222
228
|
export * from './vault_params';
|
|
223
229
|
export * from './vault_redeem_results';
|
|
224
230
|
export * from './vault_redemption';
|
|
231
|
+
export * from './vault_redemption_req_view';
|
|
225
232
|
export * from './ws_cancel_feed_data_v_1';
|
|
226
233
|
export * from './ws_cancel_feed_selector_v_1';
|
|
227
234
|
export * from './ws_candlestick_feed_data_v_1';
|
|
@@ -151,6 +151,8 @@ __exportStar(require("./api_vault_investor_summary_request"), exports);
|
|
|
151
151
|
__exportStar(require("./api_vault_investor_summary_response"), exports);
|
|
152
152
|
__exportStar(require("./api_vault_redeem_cancel_request"), exports);
|
|
153
153
|
__exportStar(require("./api_vault_redeem_request"), exports);
|
|
154
|
+
__exportStar(require("./api_vault_view_redemption_queue_request"), exports);
|
|
155
|
+
__exportStar(require("./api_vault_view_redemption_queue_response"), exports);
|
|
154
156
|
__exportStar(require("./api_withdrawal_history_request"), exports);
|
|
155
157
|
__exportStar(require("./api_withdrawal_history_response"), exports);
|
|
156
158
|
__exportStar(require("./api_withdrawal_request"), exports);
|
|
@@ -185,6 +187,7 @@ __exportStar(require("./jsonrpc_request"), exports);
|
|
|
185
187
|
__exportStar(require("./jsonrpc_response"), exports);
|
|
186
188
|
__exportStar(require("./lp_point"), exports);
|
|
187
189
|
__exportStar(require("./lp_snapshot"), exports);
|
|
190
|
+
__exportStar(require("./lp_info_entry"), exports);
|
|
188
191
|
__exportStar(require("./main_acc_id_request"), exports);
|
|
189
192
|
__exportStar(require("./margin_tier_response"), exports);
|
|
190
193
|
__exportStar(require("./mini_ticker"), exports);
|
|
@@ -216,6 +219,7 @@ __exportStar(require("./signature"), exports);
|
|
|
216
219
|
__exportStar(require("./snap_account_summary"), exports);
|
|
217
220
|
__exportStar(require("./snap_funding_account_summary"), exports);
|
|
218
221
|
__exportStar(require("./snap_sub_account_summary"), exports);
|
|
222
|
+
__exportStar(require("./snap_vault_summary"), exports);
|
|
219
223
|
__exportStar(require("./api_spot_balance"), exports);
|
|
220
224
|
__exportStar(require("./stream_reference"), exports);
|
|
221
225
|
__exportStar(require("./snap_sub_account"), exports);
|
|
@@ -233,11 +237,14 @@ __exportStar(require("./user_category_affinity_score"), exports);
|
|
|
233
237
|
__exportStar(require("./user_tracking_event"), exports);
|
|
234
238
|
__exportStar(require("./user_vault_category_event_pay_load"), exports);
|
|
235
239
|
__exportStar(require("./vault_invest_results"), exports);
|
|
240
|
+
__exportStar(require("./vault_investor_history"), exports);
|
|
236
241
|
__exportStar(require("./vault_investor_summary"), exports);
|
|
242
|
+
__exportStar(require("./vault_lp_info"), exports);
|
|
237
243
|
__exportStar(require("./vault_management_fee_tick_results"), exports);
|
|
238
244
|
__exportStar(require("./vault_params"), exports);
|
|
239
245
|
__exportStar(require("./vault_redeem_results"), exports);
|
|
240
246
|
__exportStar(require("./vault_redemption"), exports);
|
|
247
|
+
__exportStar(require("./vault_redemption_req_view"), exports);
|
|
241
248
|
__exportStar(require("./ws_cancel_feed_data_v_1"), exports);
|
|
242
249
|
__exportStar(require("./ws_cancel_feed_selector_v_1"), exports);
|
|
243
250
|
__exportStar(require("./ws_candlestick_feed_data_v_1"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LP_INFO_ENTRY_MAP = void 0;
|
|
4
|
+
const vault_lp_info_1 = require("./vault_lp_info");
|
|
5
|
+
// Schema map for the 'LP_INFO_ENTRY' struct.
|
|
6
|
+
exports.LP_INFO_ENTRY_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
lp_address: 'la',
|
|
9
|
+
info: ['i', vault_lp_info_1.VAULT_LP_INFO_MAP.FULL_TO_LITE]
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
la: 'lp_address',
|
|
13
|
+
i: ['info', vault_lp_info_1.VAULT_LP_INFO_MAP.LITE_TO_FULL]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -10,7 +10,9 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
10
10
|
sub_account_id: 'sa',
|
|
11
11
|
total_equity: 'te',
|
|
12
12
|
unrealized_pnl: 'up',
|
|
13
|
-
positions: ['p', [position_summary_1.POSITION_SUMMARY_MAP.FULL_TO_LITE]]
|
|
13
|
+
positions: ['p', [position_summary_1.POSITION_SUMMARY_MAP.FULL_TO_LITE]],
|
|
14
|
+
is_vault: 'iv',
|
|
15
|
+
vault_im_additions: 'vi'
|
|
14
16
|
},
|
|
15
17
|
LITE_TO_FULL: {
|
|
16
18
|
et: 'event_time',
|
|
@@ -18,6 +20,8 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
18
20
|
sa: 'sub_account_id',
|
|
19
21
|
te: 'total_equity',
|
|
20
22
|
up: 'unrealized_pnl',
|
|
21
|
-
p: ['positions', [position_summary_1.POSITION_SUMMARY_MAP.LITE_TO_FULL]]
|
|
23
|
+
p: ['positions', [position_summary_1.POSITION_SUMMARY_MAP.LITE_TO_FULL]],
|
|
24
|
+
iv: 'is_vault',
|
|
25
|
+
vi: 'vault_im_additions'
|
|
22
26
|
}
|
|
23
27
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SNAP_VAULT_SUMMARY_MAP = void 0;
|
|
4
|
+
const lp_info_entry_1 = require("./lp_info_entry");
|
|
5
|
+
// Schema map for the 'SNAP_VAULT_SUMMARY' struct.
|
|
6
|
+
exports.SNAP_VAULT_SUMMARY_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
event_time: 'et',
|
|
9
|
+
start_interval: 'si',
|
|
10
|
+
vault_id: 'vi',
|
|
11
|
+
lp_infos: ['li', [lp_info_entry_1.LP_INFO_ENTRY_MAP.FULL_TO_LITE]],
|
|
12
|
+
total_lp_token_supply: 'tl',
|
|
13
|
+
share_price: 'sp'
|
|
14
|
+
},
|
|
15
|
+
LITE_TO_FULL: {
|
|
16
|
+
et: 'event_time',
|
|
17
|
+
si: 'start_interval',
|
|
18
|
+
vi: 'vault_id',
|
|
19
|
+
li: ['lp_infos', [lp_info_entry_1.LP_INFO_ENTRY_MAP.LITE_TO_FULL]],
|
|
20
|
+
tl: 'total_lp_token_supply',
|
|
21
|
+
sp: 'share_price'
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -10,7 +10,8 @@ exports.SUB_ACCOUNT_TRADE_AGGREGATION_MAP = Object.freeze({
|
|
|
10
10
|
num_traded: 'nt',
|
|
11
11
|
positive_fee: 'pf',
|
|
12
12
|
signer: 's',
|
|
13
|
-
realized_pnl: 'rp'
|
|
13
|
+
realized_pnl: 'rp',
|
|
14
|
+
source: 's1'
|
|
14
15
|
},
|
|
15
16
|
LITE_TO_FULL: {
|
|
16
17
|
sa: 'sub_account_id',
|
|
@@ -19,6 +20,7 @@ exports.SUB_ACCOUNT_TRADE_AGGREGATION_MAP = Object.freeze({
|
|
|
19
20
|
nt: 'num_traded',
|
|
20
21
|
pf: 'positive_fee',
|
|
21
22
|
s: 'signer',
|
|
22
|
-
rp: 'realized_pnl'
|
|
23
|
+
rp: 'realized_pnl',
|
|
24
|
+
s1: 'source'
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_INVESTOR_HISTORY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'VAULT_INVESTOR_HISTORY' struct.
|
|
5
|
+
exports.VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
event_time: 'et',
|
|
8
|
+
main_account_id: 'ma',
|
|
9
|
+
vault_id: 'vi',
|
|
10
|
+
is_investing: 'ii',
|
|
11
|
+
price: 'p',
|
|
12
|
+
size: 's',
|
|
13
|
+
realized_pnl: 'rp',
|
|
14
|
+
performance_fee: 'pf'
|
|
15
|
+
},
|
|
16
|
+
LITE_TO_FULL: {
|
|
17
|
+
et: 'event_time',
|
|
18
|
+
ma: 'main_account_id',
|
|
19
|
+
vi: 'vault_id',
|
|
20
|
+
ii: 'is_investing',
|
|
21
|
+
p: 'price',
|
|
22
|
+
s: 'size',
|
|
23
|
+
rp: 'realized_pnl',
|
|
24
|
+
pf: 'performance_fee'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_LP_INFO_MAP = void 0;
|
|
4
|
+
// Schema map for the 'VAULT_LP_INFO' struct.
|
|
5
|
+
exports.VAULT_LP_INFO_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
lp_token_balance: 'lt',
|
|
8
|
+
usd_notional_invested: 'un'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
lt: 'lp_token_balance',
|
|
12
|
+
un: 'usd_notional_invested'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_REDEMPTION_REQ_VIEW_MAP = void 0;
|
|
4
|
+
// Schema map for the 'VAULT_REDEMPTION_REQ_VIEW' struct.
|
|
5
|
+
exports.VAULT_REDEMPTION_REQ_VIEW_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
request_time: 'rt',
|
|
8
|
+
currency: 'c',
|
|
9
|
+
num_lp_tokens: 'nl'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
rt: 'request_time',
|
|
13
|
+
c: 'currency',
|
|
14
|
+
nl: 'num_lp_tokens'
|
|
15
|
+
}
|
|
16
|
+
});
|