@grvt/client 1.6.27 → 1.6.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MDG/index.d.ts +2 -1
- package/MDG/index.js +6 -0
- package/TDG/index.d.ts +2 -1
- package/TDG/index.js +7 -0
- package/interfaces/codegen/data.interface.d.ts +160 -0
- package/interfaces/codegen/enums/account-multiplier-metadata-type.d.ts +2 -1
- package/interfaces/codegen/enums/account-multiplier-metadata-type.js +4 -1
- package/interfaces/codegen/enums/cluster-config-type.d.ts +4 -1
- package/interfaces/codegen/enums/cluster-config-type.js +10 -1
- package/interfaces/codegen/enums/kind.d.ts +2 -1
- package/interfaces/codegen/enums/kind.js +4 -1
- package/interfaces/codegen/enums/order-reject-reason.d.ts +6 -1
- package/interfaces/codegen/enums/order-reject-reason.js +16 -1
- package/interfaces/codegen/enums/position-close-status.d.ts +7 -0
- package/interfaces/codegen/enums/position-close-status.js +20 -0
- package/interfaces/codegen/enums/sub-account-mode.d.ts +4 -0
- package/interfaces/codegen/enums/sub-account-mode.js +11 -0
- package/interfaces/codegen/enums/wallet-type.d.ts +6 -0
- package/interfaces/codegen/enums/wallet-type.js +17 -0
- package/interfaces/codegen/hex-string-map.js +1 -0
- package/interfaces/codegen/schema-maps/account_multiplier_metric_point.d.ts +2 -0
- package/interfaces/codegen/schema-maps/account_multiplier_metric_point.js +14 -0
- package/interfaces/codegen/schema-maps/account_multiplier_override_entry.d.ts +2 -0
- package/interfaces/codegen/schema-maps/account_multiplier_override_entry.js +27 -0
- package/interfaces/codegen/schema-maps/account_with_overridden_multiplier_info.d.ts +2 -0
- package/interfaces/codegen/schema-maps/account_with_overridden_multiplier_info.js +22 -0
- package/interfaces/codegen/schema-maps/api_create_account_multiplier_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_default_account_multiplier_values_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_default_account_multiplier_values_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_supported_assets_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_supported_assets_response.js +18 -0
- package/interfaces/codegen/schema-maps/api_list_account_multiplier_with_override_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_list_account_multiplier_with_override_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_lock_account_multiplier_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_lock_account_multiplier_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_position_history.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_position_history.js +52 -0
- package/interfaces/codegen/schema-maps/api_position_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_position_history_request.js +34 -0
- package/interfaces/codegen/schema-maps/api_position_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_position_history_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_query_list_sub_account_summary_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_spot_balance.js +10 -2
- package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_transfer_request.js +6 -2
- package/interfaces/codegen/schema-maps/api_unlock_account_multiplier_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_unlock_account_multiplier_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_update_account_multiplier_lock_flags_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_update_account_multiplier_lock_flags_request.js +14 -0
- package/interfaces/codegen/schema-maps/client_tier.js +6 -2
- package/interfaces/codegen/schema-maps/flat_private_trade.js +4 -2
- package/interfaces/codegen/schema-maps/funding_account_position_summary_result.d.ts +2 -0
- package/interfaces/codegen/schema-maps/funding_account_position_summary_result.js +16 -0
- package/interfaces/codegen/schema-maps/futures_wallet_assets.d.ts +2 -0
- package/interfaces/codegen/schema-maps/futures_wallet_assets.js +15 -0
- package/interfaces/codegen/schema-maps/mini_position.d.ts +2 -0
- package/interfaces/codegen/schema-maps/mini_position.js +26 -0
- package/interfaces/codegen/schema-maps/snap_spot_sub_account.d.ts +2 -0
- package/interfaces/codegen/schema-maps/snap_spot_sub_account.js +19 -0
- package/interfaces/codegen/schema-maps/snap_sub_account.js +4 -2
- package/interfaces/codegen/schema-maps/sub_account_position_summary_result.d.ts +2 -0
- package/interfaces/codegen/schema-maps/sub_account_position_summary_result.js +16 -0
- package/interfaces/codegen/schema-maps/supported_asset.d.ts +2 -0
- package/interfaces/codegen/schema-maps/supported_asset.js +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MINI_POSITION_MAP = void 0;
|
|
4
|
+
// Schema map for the 'MINI_POSITION' struct.
|
|
5
|
+
exports.MINI_POSITION_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
balance: 'b',
|
|
9
|
+
entry_price: 'ep',
|
|
10
|
+
cumulative_realized_pnl: 'cr',
|
|
11
|
+
cumulative_realized_funding_payment: 'cr1',
|
|
12
|
+
margin_type: 'mt',
|
|
13
|
+
leverage: 'l',
|
|
14
|
+
position_balance: 'pb'
|
|
15
|
+
},
|
|
16
|
+
LITE_TO_FULL: {
|
|
17
|
+
sa: 'sub_account_id',
|
|
18
|
+
b: 'balance',
|
|
19
|
+
ep: 'entry_price',
|
|
20
|
+
cr: 'cumulative_realized_pnl',
|
|
21
|
+
cr1: 'cumulative_realized_funding_payment',
|
|
22
|
+
mt: 'margin_type',
|
|
23
|
+
l: 'leverage',
|
|
24
|
+
pb: 'position_balance'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPOT_SUB_ACCOUNT_MAP = void 0;
|
|
4
|
+
const api_spot_balance_1 = require("./api_spot_balance");
|
|
5
|
+
// Schema map for the 'SPOT_SUB_ACCOUNT' struct.
|
|
6
|
+
exports.SPOT_SUB_ACCOUNT_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
event_time: 'et',
|
|
9
|
+
sub_account_id: 'sa',
|
|
10
|
+
total_equity: 'te',
|
|
11
|
+
spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]]
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
et: 'event_time',
|
|
15
|
+
sa: 'sub_account_id',
|
|
16
|
+
te: 'total_equity',
|
|
17
|
+
sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]]
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -23,7 +23,8 @@ exports.SUB_ACCOUNT_MAP = Object.freeze({
|
|
|
23
23
|
derisk_margin: 'dm',
|
|
24
24
|
derisk_to_maintenance_margin_ratio: 'dt',
|
|
25
25
|
total_cross_equity: 'tc',
|
|
26
|
-
cross_unrealized_pnl: 'cu'
|
|
26
|
+
cross_unrealized_pnl: 'cu',
|
|
27
|
+
sub_account_mode: 'sa1'
|
|
27
28
|
},
|
|
28
29
|
LITE_TO_FULL: {
|
|
29
30
|
et: 'event_time',
|
|
@@ -43,6 +44,7 @@ exports.SUB_ACCOUNT_MAP = Object.freeze({
|
|
|
43
44
|
dm: 'derisk_margin',
|
|
44
45
|
dt: 'derisk_to_maintenance_margin_ratio',
|
|
45
46
|
tc: 'total_cross_equity',
|
|
46
|
-
cu: 'cross_unrealized_pnl'
|
|
47
|
+
cu: 'cross_unrealized_pnl',
|
|
48
|
+
sa1: 'sub_account_mode'
|
|
47
49
|
}
|
|
48
50
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUB_ACCOUNT_POSITION_SUMMARY_RESULT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'SUB_ACCOUNT_POSITION_SUMMARY_RESULT' struct.
|
|
5
|
+
exports.SUB_ACCOUNT_POSITION_SUMMARY_RESULT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
total_unrealized_pnl: 'tu',
|
|
9
|
+
total_realized_pnl: 'tr'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
sa: 'sub_account_id',
|
|
13
|
+
tu: 'total_unrealized_pnl',
|
|
14
|
+
tr: 'total_realized_pnl'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUPPORTED_ASSET_MAP = void 0;
|
|
4
|
+
// Schema map for the 'SUPPORTED_ASSET' struct.
|
|
5
|
+
exports.SUPPORTED_ASSET_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
asset_id: 'ai',
|
|
8
|
+
asset_code: 'ac',
|
|
9
|
+
balance_decimals: 'bd'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
ai: 'asset_id',
|
|
13
|
+
ac: 'asset_code',
|
|
14
|
+
bd: 'balance_decimals'
|
|
15
|
+
}
|
|
16
|
+
});
|