@grvt/client 1.6.28 → 1.6.30
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 +3 -1
- package/TDG/index.js +14 -0
- package/interfaces/codegen/data.interface.d.ts +131 -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 +7 -1
- package/interfaces/codegen/enums/order-reject-reason.js +19 -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/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_dedust_spot_balances_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_dedust_spot_balances_request.js +13 -0
- package/interfaces/codegen/schema-maps/api_dedust_spot_balances_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_dedust_spot_balances_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_snap_aggregated_account_summary.js +4 -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/order.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
|
@@ -10,7 +10,8 @@ exports.API_CREATE_ACCOUNT_MULTIPLIER_REQUEST_MAP = Object.freeze({
|
|
|
10
10
|
multiplier: 'm1',
|
|
11
11
|
effective_epoch_start: 'ee',
|
|
12
12
|
effective_epoch_end: 'ee1',
|
|
13
|
-
reserve_multiplier: 'rm'
|
|
13
|
+
reserve_multiplier: 'rm',
|
|
14
|
+
note: 'n'
|
|
14
15
|
},
|
|
15
16
|
LITE_TO_FULL: {
|
|
16
17
|
m: 'metric',
|
|
@@ -19,6 +20,7 @@ exports.API_CREATE_ACCOUNT_MULTIPLIER_REQUEST_MAP = Object.freeze({
|
|
|
19
20
|
m1: 'multiplier',
|
|
20
21
|
ee: 'effective_epoch_start',
|
|
21
22
|
ee1: 'effective_epoch_end',
|
|
22
|
-
rm: 'reserve_multiplier'
|
|
23
|
+
rm: 'reserve_multiplier',
|
|
24
|
+
n: 'note'
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_DEDUST_SPOT_BALANCES_REQUEST_MAP = void 0;
|
|
4
|
+
const order_1 = require("./order");
|
|
5
|
+
// Schema map for the 'API_DEDUST_SPOT_BALANCES_REQUEST' struct.
|
|
6
|
+
exports.API_DEDUST_SPOT_BALANCES_REQUEST_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
order: ['o', order_1.ORDER_MAP.FULL_TO_LITE]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
o: ['order', order_1.ORDER_MAP.LITE_TO_FULL]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_DEDUST_SPOT_BALANCES_RESPONSE_MAP = void 0;
|
|
4
|
+
const order_1 = require("./order");
|
|
5
|
+
// Schema map for the 'API_DEDUST_SPOT_BALANCES_RESPONSE' struct.
|
|
6
|
+
exports.API_DEDUST_SPOT_BALANCES_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', order_1.ORDER_MAP.FULL_TO_LITE]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', order_1.ORDER_MAP.LITE_TO_FULL]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_DEFAULT_ACCOUNT_MULTIPLIER_VALUES_RESPONSE_MAP = void 0;
|
|
4
|
+
const reward_account_multiplier_1 = require("./reward_account_multiplier");
|
|
5
|
+
// Schema map for the 'API_GET_DEFAULT_ACCOUNT_MULTIPLIER_VALUES_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_DEFAULT_ACCOUNT_MULTIPLIER_VALUES_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [reward_account_multiplier_1.REWARD_ACCOUNT_MULTIPLIER_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [reward_account_multiplier_1.REWARD_ACCOUNT_MULTIPLIER_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_REQUEST' struct.
|
|
5
|
+
exports.API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
main_account_i_ds: 'ma',
|
|
8
|
+
assets: 'a'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
ma: 'main_account_i_ds',
|
|
12
|
+
a: 'assets'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_RESPONSE_MAP = void 0;
|
|
4
|
+
const funding_account_position_summary_result_1 = require("./funding_account_position_summary_result");
|
|
5
|
+
// Schema map for the 'API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [funding_account_position_summary_result_1.FUNDING_ACCOUNT_POSITION_SUMMARY_RESULT_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [funding_account_position_summary_result_1.FUNDING_ACCOUNT_POSITION_SUMMARY_RESULT_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_SUB_ACCOUNT_POSITION_SUMMARY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_GET_SUB_ACCOUNT_POSITION_SUMMARY_REQUEST' struct.
|
|
5
|
+
exports.API_GET_SUB_ACCOUNT_POSITION_SUMMARY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_i_ds: 'sa',
|
|
8
|
+
assets: 'a'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
sa: 'sub_account_i_ds',
|
|
12
|
+
a: 'assets'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_SUB_ACCOUNT_POSITION_SUMMARY_RESPONSE_MAP = void 0;
|
|
4
|
+
const sub_account_position_summary_result_1 = require("./sub_account_position_summary_result");
|
|
5
|
+
// Schema map for the 'API_GET_SUB_ACCOUNT_POSITION_SUMMARY_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_SUB_ACCOUNT_POSITION_SUMMARY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [sub_account_position_summary_result_1.SUB_ACCOUNT_POSITION_SUMMARY_RESULT_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [sub_account_position_summary_result_1.SUB_ACCOUNT_POSITION_SUMMARY_RESULT_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_SUPPORTED_ASSETS_RESPONSE_MAP = void 0;
|
|
4
|
+
const supported_asset_1 = require("./supported_asset");
|
|
5
|
+
const futures_wallet_assets_1 = require("./futures_wallet_assets");
|
|
6
|
+
// Schema map for the 'API_GET_SUPPORTED_ASSETS_RESPONSE' struct.
|
|
7
|
+
exports.API_GET_SUPPORTED_ASSETS_RESPONSE_MAP = Object.freeze({
|
|
8
|
+
FULL_TO_LITE: {
|
|
9
|
+
funding: ['f', [supported_asset_1.SUPPORTED_ASSET_MAP.FULL_TO_LITE]],
|
|
10
|
+
spot: ['s', [supported_asset_1.SUPPORTED_ASSET_MAP.FULL_TO_LITE]],
|
|
11
|
+
futures: ['f1', [futures_wallet_assets_1.FUTURES_WALLET_ASSETS_MAP.FULL_TO_LITE]]
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
f: ['funding', [supported_asset_1.SUPPORTED_ASSET_MAP.LITE_TO_FULL]],
|
|
15
|
+
s: ['spot', [supported_asset_1.SUPPORTED_ASSET_MAP.LITE_TO_FULL]],
|
|
16
|
+
f1: ['futures', [futures_wallet_assets_1.FUTURES_WALLET_ASSETS_MAP.LITE_TO_FULL]]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_LIST_ACCOUNT_MULTIPLIER_WITH_OVERRIDE_RESPONSE_MAP = void 0;
|
|
4
|
+
const account_with_overridden_multiplier_info_1 = require("./account_with_overridden_multiplier_info");
|
|
5
|
+
// Schema map for the 'API_LIST_ACCOUNT_MULTIPLIER_WITH_OVERRIDE_RESPONSE' struct.
|
|
6
|
+
exports.API_LIST_ACCOUNT_MULTIPLIER_WITH_OVERRIDE_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [account_with_overridden_multiplier_info_1.ACCOUNT_WITH_OVERRIDDEN_MULTIPLIER_INFO_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [account_with_overridden_multiplier_info_1.ACCOUNT_WITH_OVERRIDDEN_MULTIPLIER_INFO_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_LOCK_ACCOUNT_MULTIPLIER_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_LOCK_ACCOUNT_MULTIPLIER_REQUEST' struct.
|
|
5
|
+
exports.API_LOCK_ACCOUNT_MULTIPLIER_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc',
|
|
8
|
+
apply_to_direct_referrals: 'at'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
oc: 'off_chain_account_id',
|
|
12
|
+
at: 'apply_to_direct_referrals'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_POSITION_HISTORY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_POSITION_HISTORY' struct.
|
|
5
|
+
exports.API_POSITION_HISTORY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
instrument: 'i',
|
|
9
|
+
open_time: 'ot',
|
|
10
|
+
status: 's',
|
|
11
|
+
is_long: 'il',
|
|
12
|
+
margin_type: 'mt',
|
|
13
|
+
close_time: 'ct',
|
|
14
|
+
entry_price: 'ep',
|
|
15
|
+
exit_price: 'ep1',
|
|
16
|
+
position_close_mark_price: 'pc',
|
|
17
|
+
realized_pnl: 'rp',
|
|
18
|
+
cumulative_fee: 'cf',
|
|
19
|
+
cumulative_realized_funding_payment: 'cr',
|
|
20
|
+
closed_volume_base: 'cv',
|
|
21
|
+
closed_volume_quote: 'cv1',
|
|
22
|
+
max_open_interest_base: 'mo',
|
|
23
|
+
max_open_interest_quote: 'mo1',
|
|
24
|
+
cumulative_initial_margin: 'ci',
|
|
25
|
+
max_initial_margin: 'mi',
|
|
26
|
+
leverage: 'l',
|
|
27
|
+
unrealized_pnl: 'up'
|
|
28
|
+
},
|
|
29
|
+
LITE_TO_FULL: {
|
|
30
|
+
sa: 'sub_account_id',
|
|
31
|
+
i: 'instrument',
|
|
32
|
+
ot: 'open_time',
|
|
33
|
+
s: 'status',
|
|
34
|
+
il: 'is_long',
|
|
35
|
+
mt: 'margin_type',
|
|
36
|
+
ct: 'close_time',
|
|
37
|
+
ep: 'entry_price',
|
|
38
|
+
ep1: 'exit_price',
|
|
39
|
+
pc: 'position_close_mark_price',
|
|
40
|
+
rp: 'realized_pnl',
|
|
41
|
+
cf: 'cumulative_fee',
|
|
42
|
+
cr: 'cumulative_realized_funding_payment',
|
|
43
|
+
cv: 'closed_volume_base',
|
|
44
|
+
cv1: 'closed_volume_quote',
|
|
45
|
+
mo: 'max_open_interest_base',
|
|
46
|
+
mo1: 'max_open_interest_quote',
|
|
47
|
+
ci: 'cumulative_initial_margin',
|
|
48
|
+
mi: 'max_initial_margin',
|
|
49
|
+
l: 'leverage',
|
|
50
|
+
up: 'unrealized_pnl'
|
|
51
|
+
}
|
|
52
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_POSITION_HISTORY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_POSITION_HISTORY_REQUEST' struct.
|
|
5
|
+
exports.API_POSITION_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
start_time: 'st',
|
|
9
|
+
end_time: 'et',
|
|
10
|
+
kind: 'k',
|
|
11
|
+
base: 'b',
|
|
12
|
+
quote: 'q',
|
|
13
|
+
limit: 'l',
|
|
14
|
+
cursor: 'c',
|
|
15
|
+
status: 's',
|
|
16
|
+
is_long: 'il',
|
|
17
|
+
is_short: 'is',
|
|
18
|
+
margin_type: 'mt'
|
|
19
|
+
},
|
|
20
|
+
LITE_TO_FULL: {
|
|
21
|
+
sa: 'sub_account_id',
|
|
22
|
+
st: 'start_time',
|
|
23
|
+
et: 'end_time',
|
|
24
|
+
k: 'kind',
|
|
25
|
+
b: 'base',
|
|
26
|
+
q: 'quote',
|
|
27
|
+
l: 'limit',
|
|
28
|
+
c: 'cursor',
|
|
29
|
+
s: 'status',
|
|
30
|
+
il: 'is_long',
|
|
31
|
+
is: 'is_short',
|
|
32
|
+
mt: 'margin_type'
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_POSITION_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_position_history_1 = require("./api_position_history");
|
|
5
|
+
// Schema map for the 'API_POSITION_HISTORY_RESPONSE' struct.
|
|
6
|
+
exports.API_POSITION_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_position_history_1.API_POSITION_HISTORY_MAP.FULL_TO_LITE]],
|
|
9
|
+
next: 'n'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
r: ['result', [api_position_history_1.API_POSITION_HISTORY_MAP.LITE_TO_FULL]],
|
|
13
|
+
n: 'next'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -7,12 +7,14 @@ exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
|
|
|
7
7
|
time_interval: 'ti',
|
|
8
8
|
sub_account_id: 'sa',
|
|
9
9
|
start_time: 'st',
|
|
10
|
-
end_time: 'et'
|
|
10
|
+
end_time: 'et',
|
|
11
|
+
sub_account_i_ds: 'sa1'
|
|
11
12
|
},
|
|
12
13
|
LITE_TO_FULL: {
|
|
13
14
|
ti: 'time_interval',
|
|
14
15
|
sa: 'sub_account_id',
|
|
15
16
|
st: 'start_time',
|
|
16
|
-
et: 'end_time'
|
|
17
|
+
et: 'end_time',
|
|
18
|
+
sa1: 'sub_account_i_ds'
|
|
17
19
|
}
|
|
18
20
|
});
|
|
@@ -6,11 +6,13 @@ exports.API_SNAP_AGGREGATED_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
event_time: 'et',
|
|
8
8
|
start_interval: 'si',
|
|
9
|
-
total_equity: 'te'
|
|
9
|
+
total_equity: 'te',
|
|
10
|
+
total_vault_investments_balance: 'tv'
|
|
10
11
|
},
|
|
11
12
|
LITE_TO_FULL: {
|
|
12
13
|
et: 'event_time',
|
|
13
14
|
si: 'start_interval',
|
|
14
|
-
te: 'total_equity'
|
|
15
|
+
te: 'total_equity',
|
|
16
|
+
tv: 'total_vault_investments_balance'
|
|
15
17
|
}
|
|
16
18
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_UNLOCK_ACCOUNT_MULTIPLIER_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_UNLOCK_ACCOUNT_MULTIPLIER_REQUEST' struct.
|
|
5
|
+
exports.API_UNLOCK_ACCOUNT_MULTIPLIER_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
oc: 'off_chain_account_id'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_UPDATE_ACCOUNT_MULTIPLIER_LOCK_FLAGS_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_UPDATE_ACCOUNT_MULTIPLIER_LOCK_FLAGS_REQUEST' struct.
|
|
5
|
+
exports.API_UPDATE_ACCOUNT_MULTIPLIER_LOCK_FLAGS_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc',
|
|
8
|
+
apply_to_direct_referrals: 'at'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
oc: 'off_chain_account_id',
|
|
12
|
+
at: 'apply_to_direct_referrals'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -8,13 +8,17 @@ exports.CLIENT_TIER_MAP = Object.freeze({
|
|
|
8
8
|
futures_taker_fee: 'ft',
|
|
9
9
|
futures_maker_fee: 'fm',
|
|
10
10
|
options_taker_fee: 'ot',
|
|
11
|
-
options_maker_fee: 'om'
|
|
11
|
+
options_maker_fee: 'om',
|
|
12
|
+
spot_taker_fee: 'st',
|
|
13
|
+
spot_maker_fee: 'sm'
|
|
12
14
|
},
|
|
13
15
|
LITE_TO_FULL: {
|
|
14
16
|
t: 'tier',
|
|
15
17
|
ft: 'futures_taker_fee',
|
|
16
18
|
fm: 'futures_maker_fee',
|
|
17
19
|
ot: 'options_taker_fee',
|
|
18
|
-
om: 'options_maker_fee'
|
|
20
|
+
om: 'options_maker_fee',
|
|
21
|
+
st: 'spot_taker_fee',
|
|
22
|
+
sm: 'spot_maker_fee'
|
|
19
23
|
}
|
|
20
24
|
});
|
|
@@ -30,7 +30,8 @@ exports.FILL_MAP = Object.freeze({
|
|
|
30
30
|
source: 's2',
|
|
31
31
|
builder: 'b1',
|
|
32
32
|
builder_fee_rate: 'bf',
|
|
33
|
-
builder_fee: 'bf1'
|
|
33
|
+
builder_fee: 'bf1',
|
|
34
|
+
fee_currency: 'fc'
|
|
34
35
|
},
|
|
35
36
|
LITE_TO_FULL: {
|
|
36
37
|
et: 'event_time',
|
|
@@ -59,6 +60,7 @@ exports.FILL_MAP = Object.freeze({
|
|
|
59
60
|
s2: 'source',
|
|
60
61
|
b1: 'builder',
|
|
61
62
|
bf: 'builder_fee_rate',
|
|
62
|
-
bf1: 'builder_fee'
|
|
63
|
+
bf1: 'builder_fee',
|
|
64
|
+
fc: 'fee_currency'
|
|
63
65
|
}
|
|
64
66
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FUNDING_ACCOUNT_POSITION_SUMMARY_RESULT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'FUNDING_ACCOUNT_POSITION_SUMMARY_RESULT' struct.
|
|
5
|
+
exports.FUNDING_ACCOUNT_POSITION_SUMMARY_RESULT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
main_account_id: 'ma',
|
|
8
|
+
total_unrealized_pnl: 'tu',
|
|
9
|
+
total_realized_pnl: 'tr'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
ma: 'main_account_id',
|
|
13
|
+
tu: 'total_unrealized_pnl',
|
|
14
|
+
tr: 'total_realized_pnl'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FUTURES_WALLET_ASSETS_MAP = void 0;
|
|
4
|
+
const supported_asset_1 = require("./supported_asset");
|
|
5
|
+
// Schema map for the 'FUTURES_WALLET_ASSETS' struct.
|
|
6
|
+
exports.FUTURES_WALLET_ASSETS_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
mode: 'm',
|
|
9
|
+
supported_assets: ['sa', [supported_asset_1.SUPPORTED_ASSET_MAP.FULL_TO_LITE]]
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
m: 'mode',
|
|
13
|
+
sa: ['supported_assets', [supported_asset_1.SUPPORTED_ASSET_MAP.LITE_TO_FULL]]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -21,7 +21,8 @@ exports.ORDER_MAP = Object.freeze({
|
|
|
21
21
|
is_liquidation: 'il',
|
|
22
22
|
is_derisk: 'id',
|
|
23
23
|
builder: 'b',
|
|
24
|
-
builder_fee: 'bf'
|
|
24
|
+
builder_fee: 'bf',
|
|
25
|
+
is_spot_dedust: 'is'
|
|
25
26
|
},
|
|
26
27
|
LITE_TO_FULL: {
|
|
27
28
|
oi: 'order_id',
|
|
@@ -37,6 +38,7 @@ exports.ORDER_MAP = Object.freeze({
|
|
|
37
38
|
il: 'is_liquidation',
|
|
38
39
|
id: 'is_derisk',
|
|
39
40
|
b: 'builder',
|
|
40
|
-
bf: 'builder_fee'
|
|
41
|
+
bf: 'builder_fee',
|
|
42
|
+
is: 'is_spot_dedust'
|
|
41
43
|
}
|
|
42
44
|
});
|
|
@@ -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
|
+
});
|