@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.
Files changed (80) hide show
  1. package/MDG/index.d.ts +2 -1
  2. package/MDG/index.js +6 -0
  3. package/TDG/index.d.ts +2 -1
  4. package/TDG/index.js +7 -0
  5. package/interfaces/codegen/data.interface.d.ts +160 -0
  6. package/interfaces/codegen/enums/account-multiplier-metadata-type.d.ts +2 -1
  7. package/interfaces/codegen/enums/account-multiplier-metadata-type.js +4 -1
  8. package/interfaces/codegen/enums/cluster-config-type.d.ts +4 -1
  9. package/interfaces/codegen/enums/cluster-config-type.js +10 -1
  10. package/interfaces/codegen/enums/kind.d.ts +2 -1
  11. package/interfaces/codegen/enums/kind.js +4 -1
  12. package/interfaces/codegen/enums/order-reject-reason.d.ts +6 -1
  13. package/interfaces/codegen/enums/order-reject-reason.js +16 -1
  14. package/interfaces/codegen/enums/position-close-status.d.ts +7 -0
  15. package/interfaces/codegen/enums/position-close-status.js +20 -0
  16. package/interfaces/codegen/enums/sub-account-mode.d.ts +4 -0
  17. package/interfaces/codegen/enums/sub-account-mode.js +11 -0
  18. package/interfaces/codegen/enums/wallet-type.d.ts +6 -0
  19. package/interfaces/codegen/enums/wallet-type.js +17 -0
  20. package/interfaces/codegen/hex-string-map.js +1 -0
  21. package/interfaces/codegen/schema-maps/account_multiplier_metric_point.d.ts +2 -0
  22. package/interfaces/codegen/schema-maps/account_multiplier_metric_point.js +14 -0
  23. package/interfaces/codegen/schema-maps/account_multiplier_override_entry.d.ts +2 -0
  24. package/interfaces/codegen/schema-maps/account_multiplier_override_entry.js +27 -0
  25. package/interfaces/codegen/schema-maps/account_with_overridden_multiplier_info.d.ts +2 -0
  26. package/interfaces/codegen/schema-maps/account_with_overridden_multiplier_info.js +22 -0
  27. package/interfaces/codegen/schema-maps/api_create_account_multiplier_request.js +4 -2
  28. package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_request.d.ts +2 -0
  29. package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_request.js +12 -0
  30. package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_response.d.ts +2 -0
  31. package/interfaces/codegen/schema-maps/api_get_all_positions_by_asset_response.js +13 -0
  32. package/interfaces/codegen/schema-maps/api_get_default_account_multiplier_values_response.d.ts +2 -0
  33. package/interfaces/codegen/schema-maps/api_get_default_account_multiplier_values_response.js +13 -0
  34. package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_request.d.ts +2 -0
  35. package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_request.js +14 -0
  36. package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_response.d.ts +2 -0
  37. package/interfaces/codegen/schema-maps/api_get_funding_account_position_summary_response.js +13 -0
  38. package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_request.d.ts +2 -0
  39. package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_request.js +14 -0
  40. package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_response.d.ts +2 -0
  41. package/interfaces/codegen/schema-maps/api_get_sub_account_position_summary_response.js +13 -0
  42. package/interfaces/codegen/schema-maps/api_get_supported_assets_response.d.ts +2 -0
  43. package/interfaces/codegen/schema-maps/api_get_supported_assets_response.js +18 -0
  44. package/interfaces/codegen/schema-maps/api_list_account_multiplier_with_override_response.d.ts +2 -0
  45. package/interfaces/codegen/schema-maps/api_list_account_multiplier_with_override_response.js +13 -0
  46. package/interfaces/codegen/schema-maps/api_lock_account_multiplier_request.d.ts +2 -0
  47. package/interfaces/codegen/schema-maps/api_lock_account_multiplier_request.js +14 -0
  48. package/interfaces/codegen/schema-maps/api_position_history.d.ts +2 -0
  49. package/interfaces/codegen/schema-maps/api_position_history.js +52 -0
  50. package/interfaces/codegen/schema-maps/api_position_history_request.d.ts +2 -0
  51. package/interfaces/codegen/schema-maps/api_position_history_request.js +34 -0
  52. package/interfaces/codegen/schema-maps/api_position_history_response.d.ts +2 -0
  53. package/interfaces/codegen/schema-maps/api_position_history_response.js +15 -0
  54. package/interfaces/codegen/schema-maps/api_query_list_sub_account_summary_request.js +4 -2
  55. package/interfaces/codegen/schema-maps/api_spot_balance.js +10 -2
  56. package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_request.d.ts +2 -0
  57. package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_request.js +12 -0
  58. package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_response.d.ts +2 -0
  59. package/interfaces/codegen/schema-maps/api_spot_sub_account_summary_response.js +13 -0
  60. package/interfaces/codegen/schema-maps/api_transfer_request.js +6 -2
  61. package/interfaces/codegen/schema-maps/api_unlock_account_multiplier_request.d.ts +2 -0
  62. package/interfaces/codegen/schema-maps/api_unlock_account_multiplier_request.js +12 -0
  63. package/interfaces/codegen/schema-maps/api_update_account_multiplier_lock_flags_request.d.ts +2 -0
  64. package/interfaces/codegen/schema-maps/api_update_account_multiplier_lock_flags_request.js +14 -0
  65. package/interfaces/codegen/schema-maps/client_tier.js +6 -2
  66. package/interfaces/codegen/schema-maps/flat_private_trade.js +4 -2
  67. package/interfaces/codegen/schema-maps/funding_account_position_summary_result.d.ts +2 -0
  68. package/interfaces/codegen/schema-maps/funding_account_position_summary_result.js +16 -0
  69. package/interfaces/codegen/schema-maps/futures_wallet_assets.d.ts +2 -0
  70. package/interfaces/codegen/schema-maps/futures_wallet_assets.js +15 -0
  71. package/interfaces/codegen/schema-maps/mini_position.d.ts +2 -0
  72. package/interfaces/codegen/schema-maps/mini_position.js +26 -0
  73. package/interfaces/codegen/schema-maps/snap_spot_sub_account.d.ts +2 -0
  74. package/interfaces/codegen/schema-maps/snap_spot_sub_account.js +19 -0
  75. package/interfaces/codegen/schema-maps/snap_sub_account.js +4 -2
  76. package/interfaces/codegen/schema-maps/sub_account_position_summary_result.d.ts +2 -0
  77. package/interfaces/codegen/schema-maps/sub_account_position_summary_result.js +16 -0
  78. package/interfaces/codegen/schema-maps/supported_asset.d.ts +2 -0
  79. package/interfaces/codegen/schema-maps/supported_asset.js +16 -0
  80. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_MULTIPLIER_OVERRIDE_ENTRY_MAP = void 0;
4
+ const reward_account_multiplier_metadata_1 = require("./reward_account_multiplier_metadata");
5
+ // Schema map for the 'ACCOUNT_MULTIPLIER_OVERRIDE_ENTRY' struct.
6
+ exports.ACCOUNT_MULTIPLIER_OVERRIDE_ENTRY_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ id: 'i',
9
+ metric: 'm',
10
+ multiplier: 'm1',
11
+ metadata: ['m2', reward_account_multiplier_metadata_1.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP.FULL_TO_LITE],
12
+ created_by_id: 'cb',
13
+ effective_epoch_end: 'ee',
14
+ create_time: 'ct',
15
+ reserve_multiplier: 'rm'
16
+ },
17
+ LITE_TO_FULL: {
18
+ i: 'id',
19
+ m: 'metric',
20
+ m1: 'multiplier',
21
+ m2: ['metadata', reward_account_multiplier_metadata_1.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP.LITE_TO_FULL],
22
+ cb: 'created_by_id',
23
+ ee: 'effective_epoch_end',
24
+ ct: 'create_time',
25
+ rm: 'reserve_multiplier'
26
+ }
27
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const ACCOUNT_WITH_OVERRIDDEN_MULTIPLIER_INFO_MAP: SchemaPairMap;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_WITH_OVERRIDDEN_MULTIPLIER_INFO_MAP = void 0;
4
+ const account_multiplier_metric_point_1 = require("./account_multiplier_metric_point");
5
+ const account_multiplier_override_entry_1 = require("./account_multiplier_override_entry");
6
+ // Schema map for the 'ACCOUNT_WITH_OVERRIDDEN_MULTIPLIER_INFO' struct.
7
+ exports.ACCOUNT_WITH_OVERRIDDEN_MULTIPLIER_INFO_MAP = Object.freeze({
8
+ FULL_TO_LITE: {
9
+ off_chain_account_id: 'oc',
10
+ is_locked: 'il',
11
+ total_point: 'tp',
12
+ metric_points: ['mp', [account_multiplier_metric_point_1.ACCOUNT_MULTIPLIER_METRIC_POINT_MAP.FULL_TO_LITE]],
13
+ overrides: ['o', [account_multiplier_override_entry_1.ACCOUNT_MULTIPLIER_OVERRIDE_ENTRY_MAP.FULL_TO_LITE]]
14
+ },
15
+ LITE_TO_FULL: {
16
+ oc: 'off_chain_account_id',
17
+ il: 'is_locked',
18
+ tp: 'total_point',
19
+ mp: ['metric_points', [account_multiplier_metric_point_1.ACCOUNT_MULTIPLIER_METRIC_POINT_MAP.LITE_TO_FULL]],
20
+ o: ['overrides', [account_multiplier_override_entry_1.ACCOUNT_MULTIPLIER_OVERRIDE_ENTRY_MAP.LITE_TO_FULL]]
21
+ }
22
+ });
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_ALL_POSITIONS_BY_ASSET_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_GET_ALL_POSITIONS_BY_ASSET_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_GET_ALL_POSITIONS_BY_ASSET_REQUEST' struct.
5
+ exports.API_GET_ALL_POSITIONS_BY_ASSET_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ instrument: 'i'
8
+ },
9
+ LITE_TO_FULL: {
10
+ i: 'instrument'
11
+ }
12
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_ALL_POSITIONS_BY_ASSET_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_GET_ALL_POSITIONS_BY_ASSET_RESPONSE_MAP = void 0;
4
+ const mini_position_1 = require("./mini_position");
5
+ // Schema map for the 'API_GET_ALL_POSITIONS_BY_ASSET_RESPONSE' struct.
6
+ exports.API_GET_ALL_POSITIONS_BY_ASSET_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', [mini_position_1.MINI_POSITION_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', [mini_position_1.MINI_POSITION_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_DEFAULT_ACCOUNT_MULTIPLIER_VALUES_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_FUNDING_ACCOUNT_POSITION_SUMMARY_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_SUB_ACCOUNT_POSITION_SUMMARY_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_SUB_ACCOUNT_POSITION_SUMMARY_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_SUPPORTED_ASSETS_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_LIST_ACCOUNT_MULTIPLIER_WITH_OVERRIDE_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_LOCK_ACCOUNT_MULTIPLIER_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_POSITION_HISTORY_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_POSITION_HISTORY_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_POSITION_HISTORY_RESPONSE_MAP: SchemaPairMap;
@@ -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,19 @@ exports.SPOT_BALANCE_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  currency: 'c',
8
8
  balance: 'b',
9
- index_price: 'ip'
9
+ index_price: 'ip',
10
+ entry_price: 'ep',
11
+ realized_pnl: 'rp',
12
+ unrealized_pnl: 'up',
13
+ available_to_transfer: 'at'
10
14
  },
11
15
  LITE_TO_FULL: {
12
16
  c: 'currency',
13
17
  b: 'balance',
14
- ip: 'index_price'
18
+ ip: 'index_price',
19
+ ep: 'entry_price',
20
+ rp: 'realized_pnl',
21
+ up: 'unrealized_pnl',
22
+ at: 'available_to_transfer'
15
23
  }
16
24
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_SPOT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_SPOT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_SPOT_SUB_ACCOUNT_SUMMARY_REQUEST' struct.
5
+ exports.API_SPOT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ sub_account_id: 'sa'
8
+ },
9
+ LITE_TO_FULL: {
10
+ sa: 'sub_account_id'
11
+ }
12
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_SPOT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_SPOT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = void 0;
4
+ const snap_spot_sub_account_1 = require("./snap_spot_sub_account");
5
+ // Schema map for the 'API_SPOT_SUB_ACCOUNT_SUMMARY_RESPONSE' struct.
6
+ exports.API_SPOT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', snap_spot_sub_account_1.SPOT_SUB_ACCOUNT_MAP.FULL_TO_LITE]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', snap_spot_sub_account_1.SPOT_SUB_ACCOUNT_MAP.LITE_TO_FULL]
12
+ }
13
+ });
@@ -13,7 +13,9 @@ exports.API_TRANSFER_REQUEST_MAP = Object.freeze({
13
13
  num_tokens: 'nt',
14
14
  signature: ['s', signature_1.SIGNATURE_MAP.FULL_TO_LITE],
15
15
  transfer_type: 'tt',
16
- transfer_metadata: 'tm'
16
+ transfer_metadata: 'tm',
17
+ from_wallet_type: 'fw',
18
+ to_wallet_type: 'tw'
17
19
  },
18
20
  LITE_TO_FULL: {
19
21
  fa: 'from_account_id',
@@ -24,6 +26,8 @@ exports.API_TRANSFER_REQUEST_MAP = Object.freeze({
24
26
  nt: 'num_tokens',
25
27
  s: ['signature', signature_1.SIGNATURE_MAP.LITE_TO_FULL],
26
28
  tt: 'transfer_type',
27
- tm: 'transfer_metadata'
29
+ tm: 'transfer_metadata',
30
+ fw: 'from_wallet_type',
31
+ tw: 'to_wallet_type'
28
32
  }
29
33
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_UNLOCK_ACCOUNT_MULTIPLIER_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_UPDATE_ACCOUNT_MULTIPLIER_LOCK_FLAGS_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const FUNDING_ACCOUNT_POSITION_SUMMARY_RESULT_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const FUTURES_WALLET_ASSETS_MAP: SchemaPairMap;
@@ -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
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const MINI_POSITION_MAP: SchemaPairMap;