@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,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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const SPOT_SUB_ACCOUNT_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const SUB_ACCOUNT_POSITION_SUMMARY_RESULT_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const SUPPORTED_ASSET_MAP: SchemaPairMap;
@@ -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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.27",
3
+ "version": "1.6.29",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",