@coinbase-sample/prime-sdk-ts 0.6.4 → 0.7.1

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 (110) hide show
  1. package/dist/constants.js +1 -1
  2. package/dist/financing/index.js +9 -0
  3. package/dist/futures/index.js +18 -0
  4. package/dist/model/Candle.js +21 -0
  5. package/dist/model/CrossMarginOverview.js +21 -0
  6. package/dist/model/EditOrderRequest.js +21 -0
  7. package/dist/model/EditOrderResponse.js +21 -0
  8. package/dist/model/GetCandlesResponse.js +21 -0
  9. package/dist/model/GetCrossMarginOverviewResponse.js +21 -0
  10. package/dist/model/ListTransactionValidatorsRequest.js +21 -0
  11. package/dist/model/ListTransactionValidatorsResponse.js +21 -0
  12. package/dist/model/StakingClaimRewardsRequest.js +21 -0
  13. package/dist/model/StakingClaimRewardsResponse.js +21 -0
  14. package/dist/model/TransactionValidator.js +21 -0
  15. package/dist/model/WalletClaimRewardsInputs.js +21 -0
  16. package/dist/model/XMLoan.js +21 -0
  17. package/dist/model/XMMarginCall.js +21 -0
  18. package/dist/model/XMPosition.js +21 -0
  19. package/dist/model/XMRiskNettingInfo.js +21 -0
  20. package/dist/model/XMSummary.js +21 -0
  21. package/dist/model/enums/ActivityCategory.js +0 -1
  22. package/dist/model/enums/ActivityLevel.js +3 -3
  23. package/dist/model/enums/AddressBookType.js +3 -3
  24. package/dist/model/enums/AllocationStatus.js +5 -5
  25. package/dist/model/enums/CandlesGranularity.js +34 -0
  26. package/dist/model/enums/CustodyActivityType.js +29 -29
  27. package/dist/model/enums/DestinationType.js +4 -4
  28. package/dist/model/enums/FcmFuturesSweepStatus.js +5 -5
  29. package/dist/model/enums/FcmMarginCallState.js +5 -5
  30. package/dist/model/enums/FcmMarginCallType.js +3 -3
  31. package/dist/model/enums/HierarchyType.js +3 -3
  32. package/dist/model/enums/InvoiceState.js +5 -5
  33. package/dist/model/enums/InvoiceType.js +6 -6
  34. package/dist/model/enums/LoanType.js +1 -0
  35. package/dist/model/enums/NetworkFamily.js +3 -3
  36. package/dist/model/enums/NetworkType.js +3 -3
  37. package/dist/model/enums/PaymentMethodType.js +3 -3
  38. package/dist/model/enums/ProductPermissions.js +3 -3
  39. package/dist/model/enums/ValidatorStatus.js +31 -0
  40. package/dist/model/enums/WalletVisibility.js +3 -3
  41. package/dist/model/enums/XMCallStatus.js +33 -0
  42. package/dist/model/enums/XMCallType.js +31 -0
  43. package/dist/model/enums/XMControlStatus.js +32 -0
  44. package/dist/model/enums/XMEntityCallStatus.js +33 -0
  45. package/dist/model/enums/XMMarginLevel.js +34 -0
  46. package/dist/model/enums/XMParty.js +31 -0
  47. package/dist/model/enums/index.js +18 -1
  48. package/dist/orders/index.js +12 -0
  49. package/dist/products/index.js +16 -0
  50. package/dist/staking/index.js +37 -0
  51. package/dist/types/constants.d.ts +1 -1
  52. package/dist/types/financing/index.d.ts +3 -1
  53. package/dist/types/financing/types.d.ts +5 -1
  54. package/dist/types/futures/index.d.ts +6 -1
  55. package/dist/types/futures/types.d.ts +9 -1
  56. package/dist/types/index.d.ts +4 -4
  57. package/dist/types/model/Candle.d.ts +42 -0
  58. package/dist/types/model/CrossMarginOverview.d.ts +39 -0
  59. package/dist/types/model/EditOrderRequest.d.ts +61 -0
  60. package/dist/types/model/EditOrderResponse.d.ts +25 -0
  61. package/dist/types/model/GetCandlesResponse.d.ts +23 -0
  62. package/dist/types/model/GetCrossMarginOverviewResponse.d.ts +23 -0
  63. package/dist/types/model/ListTransactionValidatorsRequest.d.ts +35 -0
  64. package/dist/types/model/ListTransactionValidatorsResponse.d.ts +28 -0
  65. package/dist/types/model/RFQProductDetails.d.ts +21 -0
  66. package/dist/types/model/StakingClaimRewardsRequest.d.ts +27 -0
  67. package/dist/types/model/StakingClaimRewardsResponse.d.ts +33 -0
  68. package/dist/types/model/TransactionValidator.d.ts +31 -0
  69. package/dist/types/model/WalletClaimRewardsInputs.d.ts +28 -0
  70. package/dist/types/model/XMLoan.d.ts +51 -0
  71. package/dist/types/model/XMMarginCall.d.ts +57 -0
  72. package/dist/types/model/XMPosition.d.ts +121 -0
  73. package/dist/types/model/XMRiskNettingInfo.d.ts +76 -0
  74. package/dist/types/model/XMSummary.d.ts +55 -0
  75. package/dist/types/model/enums/ActivityCategory.d.ts +0 -1
  76. package/dist/types/model/enums/ActivityLevel.d.ts +3 -3
  77. package/dist/types/model/enums/AddressBookType.d.ts +3 -3
  78. package/dist/types/model/enums/AllocationStatus.d.ts +5 -5
  79. package/dist/types/model/enums/CandlesGranularity.d.ts +30 -0
  80. package/dist/types/model/enums/CustodyActivityType.d.ts +29 -29
  81. package/dist/types/model/enums/DestinationType.d.ts +4 -4
  82. package/dist/types/model/enums/FcmFuturesSweepStatus.d.ts +5 -5
  83. package/dist/types/model/enums/FcmMarginCallState.d.ts +5 -5
  84. package/dist/types/model/enums/FcmMarginCallType.d.ts +3 -3
  85. package/dist/types/model/enums/HierarchyType.d.ts +3 -3
  86. package/dist/types/model/enums/InvoiceState.d.ts +5 -5
  87. package/dist/types/model/enums/InvoiceType.d.ts +6 -6
  88. package/dist/types/model/enums/LoanType.d.ts +2 -1
  89. package/dist/types/model/enums/NetworkFamily.d.ts +3 -3
  90. package/dist/types/model/enums/NetworkType.d.ts +3 -3
  91. package/dist/types/model/enums/PaymentMethodType.d.ts +3 -3
  92. package/dist/types/model/enums/ProductPermissions.d.ts +3 -3
  93. package/dist/types/model/enums/ValidatorStatus.d.ts +27 -0
  94. package/dist/types/model/enums/WalletVisibility.d.ts +3 -3
  95. package/dist/types/model/enums/XMCallStatus.d.ts +29 -0
  96. package/dist/types/model/enums/XMCallType.d.ts +27 -0
  97. package/dist/types/model/enums/XMControlStatus.d.ts +28 -0
  98. package/dist/types/model/enums/XMEntityCallStatus.d.ts +29 -0
  99. package/dist/types/model/enums/XMMarginLevel.d.ts +30 -0
  100. package/dist/types/model/enums/XMParty.d.ts +27 -0
  101. package/dist/types/model/enums/index.d.ts +8 -0
  102. package/dist/types/model/index.d.ts +17 -3
  103. package/dist/types/orders/index.d.ts +3 -1
  104. package/dist/types/orders/types.d.ts +6 -1
  105. package/dist/types/products/index.d.ts +3 -1
  106. package/dist/types/products/types.d.ts +10 -1
  107. package/dist/types/staking/index.d.ts +5 -1
  108. package/dist/types/staking/types.d.ts +13 -1
  109. package/dist/types/wallets/types.d.ts +1 -1
  110. package/package.json +4 -3
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.FcmMarginCallType = void 0;
23
23
  var FcmMarginCallType;
24
24
  (function (FcmMarginCallType) {
25
- FcmMarginCallType["Unspecified"] = "FCM_MARGIN_CALL_TYPE_UNSPECIFIED";
26
- FcmMarginCallType["Urgent"] = "FCM_MARGIN_CALL_TYPE_URGENT";
27
- FcmMarginCallType["Regular"] = "FCM_MARGIN_CALL_TYPE_REGULAR";
25
+ FcmMarginCallType["FcmMarginCallTypeUnspecified"] = "FCM_MARGIN_CALL_TYPE_UNSPECIFIED";
26
+ FcmMarginCallType["FcmMarginCallTypeUrgent"] = "FCM_MARGIN_CALL_TYPE_URGENT";
27
+ FcmMarginCallType["FcmMarginCallTypeRegular"] = "FCM_MARGIN_CALL_TYPE_REGULAR";
28
28
  })(FcmMarginCallType || (exports.FcmMarginCallType = FcmMarginCallType = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.HierarchyType = void 0;
23
23
  var HierarchyType;
24
24
  (function (HierarchyType) {
25
- HierarchyType["Unspecified"] = "HIERARCHY_TYPE_UNSPECIFIED";
26
- HierarchyType["Portfolio"] = "HIERARCHY_TYPE_PORTFOLIO";
27
- HierarchyType["Entity"] = "HIERARCHY_TYPE_ENTITY";
25
+ HierarchyType["HierarchyTypeUnspecified"] = "HIERARCHY_TYPE_UNSPECIFIED";
26
+ HierarchyType["HierarchyTypePortfolio"] = "HIERARCHY_TYPE_PORTFOLIO";
27
+ HierarchyType["HierarchyTypeEntity"] = "HIERARCHY_TYPE_ENTITY";
28
28
  })(HierarchyType || (exports.HierarchyType = HierarchyType = {}));
@@ -22,9 +22,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.InvoiceState = void 0;
23
23
  var InvoiceState;
24
24
  (function (InvoiceState) {
25
- InvoiceState["Unspecified"] = "INVOICE_STATE_UNSPECIFIED";
26
- InvoiceState["Imported"] = "INVOICE_STATE_IMPORTED";
27
- InvoiceState["Billed"] = "INVOICE_STATE_BILLED";
28
- InvoiceState["PartiallyPaid"] = "INVOICE_STATE_PARTIALLY_PAID";
29
- InvoiceState["Paid"] = "INVOICE_STATE_PAID";
25
+ InvoiceState["InvoiceStateUnspecified"] = "INVOICE_STATE_UNSPECIFIED";
26
+ InvoiceState["InvoiceStateImported"] = "INVOICE_STATE_IMPORTED";
27
+ InvoiceState["InvoiceStateBilled"] = "INVOICE_STATE_BILLED";
28
+ InvoiceState["InvoiceStatePartiallyPaid"] = "INVOICE_STATE_PARTIALLY_PAID";
29
+ InvoiceState["InvoiceStatePaid"] = "INVOICE_STATE_PAID";
30
30
  })(InvoiceState || (exports.InvoiceState = InvoiceState = {}));
@@ -22,10 +22,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.InvoiceType = void 0;
23
23
  var InvoiceType;
24
24
  (function (InvoiceType) {
25
- InvoiceType["Unspecified"] = "INVOICE_TYPE_UNSPECIFIED";
26
- InvoiceType["AucFee"] = "INVOICE_TYPE_AUC_FEE";
27
- InvoiceType["MinimumFee"] = "INVOICE_TYPE_MINIMUM_FEE";
28
- InvoiceType["WithdrawalFee"] = "INVOICE_TYPE_WITHDRAWAL_FEE";
29
- InvoiceType["NewWalletFee"] = "INVOICE_TYPE_NEW_WALLET_FEE";
30
- InvoiceType["StakingFee"] = "INVOICE_TYPE_STAKING_FEE";
25
+ InvoiceType["InvoiceTypeUnspecified"] = "INVOICE_TYPE_UNSPECIFIED";
26
+ InvoiceType["InvoiceTypeAucFee"] = "INVOICE_TYPE_AUC_FEE";
27
+ InvoiceType["InvoiceTypeMinimumFee"] = "INVOICE_TYPE_MINIMUM_FEE";
28
+ InvoiceType["InvoiceTypeWithdrawalFee"] = "INVOICE_TYPE_WITHDRAWAL_FEE";
29
+ InvoiceType["InvoiceTypeNewWalletFee"] = "INVOICE_TYPE_NEW_WALLET_FEE";
30
+ InvoiceType["InvoiceTypeStakingFee"] = "INVOICE_TYPE_STAKING_FEE";
31
31
  })(InvoiceType || (exports.InvoiceType = InvoiceType = {}));
@@ -28,4 +28,5 @@ var LoanType;
28
28
  LoanType["PortfolioMargin"] = "PORTFOLIO_MARGIN";
29
29
  LoanType["ShortCollateralLoan"] = "SHORT_COLLATERAL_LOAN";
30
30
  LoanType["ShortCollateral"] = "SHORT_COLLATERAL";
31
+ LoanType["CrossMargin"] = "CROSS_MARGIN";
31
32
  })(LoanType || (exports.LoanType = LoanType = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.NetworkFamily = void 0;
23
23
  var NetworkFamily;
24
24
  (function (NetworkFamily) {
25
- NetworkFamily["Unspecified"] = "NETWORK_FAMILY_UNSPECIFIED";
26
- NetworkFamily["Evm"] = "NETWORK_FAMILY_EVM";
27
- NetworkFamily["Solana"] = "NETWORK_FAMILY_SOLANA";
25
+ NetworkFamily["NetworkFamilyUnspecified"] = "NETWORK_FAMILY_UNSPECIFIED";
26
+ NetworkFamily["NetworkFamilyEvm"] = "NETWORK_FAMILY_EVM";
27
+ NetworkFamily["NetworkFamilySolana"] = "NETWORK_FAMILY_SOLANA";
28
28
  })(NetworkFamily || (exports.NetworkFamily = NetworkFamily = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.NetworkType = void 0;
23
23
  var NetworkType;
24
24
  (function (NetworkType) {
25
- NetworkType["Unspecified"] = "NETWORK_TYPE_UNSPECIFIED";
26
- NetworkType["Evm"] = "NETWORK_TYPE_EVM";
27
- NetworkType["Solana"] = "NETWORK_TYPE_SOLANA";
25
+ NetworkType["NetworkTypeUnspecified"] = "NETWORK_TYPE_UNSPECIFIED";
26
+ NetworkType["NetworkTypeEvm"] = "NETWORK_TYPE_EVM";
27
+ NetworkType["NetworkTypeSolana"] = "NETWORK_TYPE_SOLANA";
28
28
  })(NetworkType || (exports.NetworkType = NetworkType = {}));
@@ -25,7 +25,7 @@ exports.PaymentMethodType = void 0;
25
25
  */
26
26
  var PaymentMethodType;
27
27
  (function (PaymentMethodType) {
28
- PaymentMethodType["Wire"] = "METHOD_WIRE";
29
- PaymentMethodType["Sen"] = "METHOD_SEN";
30
- PaymentMethodType["Swift"] = "METHOD_SWIFT";
28
+ PaymentMethodType["MethodWire"] = "METHOD_WIRE";
29
+ PaymentMethodType["MethodSen"] = "METHOD_SEN";
30
+ PaymentMethodType["MethodSwift"] = "METHOD_SWIFT";
31
31
  })(PaymentMethodType || (exports.PaymentMethodType = PaymentMethodType = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.ProductPermissions = void 0;
23
23
  var ProductPermissions;
24
24
  (function (ProductPermissions) {
25
- ProductPermissions["Read"] = "PRODUCT_PERMISSION_READ";
26
- ProductPermissions["Trade"] = "PRODUCT_PERMISSION_TRADE";
27
- ProductPermissions["Lending"] = "PRODUCT_PERMISSION_LENDING";
25
+ ProductPermissions["ProductPermissionRead"] = "PRODUCT_PERMISSION_READ";
26
+ ProductPermissions["ProductPermissionTrade"] = "PRODUCT_PERMISSION_TRADE";
27
+ ProductPermissions["ProductPermissionLending"] = "PRODUCT_PERMISSION_LENDING";
28
28
  })(ProductPermissions || (exports.ProductPermissions = ProductPermissions = {}));
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ValidatorStatus = void 0;
23
+ var ValidatorStatus;
24
+ (function (ValidatorStatus) {
25
+ ValidatorStatus["ValidatorStatusUnspecified"] = "VALIDATOR_STATUS_UNSPECIFIED";
26
+ ValidatorStatus["ValidatorStatusPending"] = "VALIDATOR_STATUS_PENDING";
27
+ ValidatorStatus["ValidatorStatusActive"] = "VALIDATOR_STATUS_ACTIVE";
28
+ ValidatorStatus["ValidatorStatusExiting"] = "VALIDATOR_STATUS_EXITING";
29
+ ValidatorStatus["ValidatorStatusExited"] = "VALIDATOR_STATUS_EXITED";
30
+ ValidatorStatus["ValidatorStatusWithdrawn"] = "VALIDATOR_STATUS_WITHDRAWN";
31
+ })(ValidatorStatus || (exports.ValidatorStatus = ValidatorStatus = {}));
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.WalletVisibility = void 0;
23
23
  var WalletVisibility;
24
24
  (function (WalletVisibility) {
25
- WalletVisibility["Unspecified"] = "WALLET_VISIBILITY_UNSPECIFIED";
26
- WalletVisibility["Visible"] = "WALLET_VISIBILITY_VISIBLE";
27
- WalletVisibility["Hidden"] = "WALLET_VISIBILITY_HIDDEN";
25
+ WalletVisibility["WalletVisibilityUnspecified"] = "WALLET_VISIBILITY_UNSPECIFIED";
26
+ WalletVisibility["WalletVisibilityVisible"] = "WALLET_VISIBILITY_VISIBLE";
27
+ WalletVisibility["WalletVisibilityHidden"] = "WALLET_VISIBILITY_HIDDEN";
28
28
  })(WalletVisibility || (exports.WalletVisibility = WalletVisibility = {}));
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.XMCallStatus = void 0;
23
+ /**
24
+ * - CALL_STATUS_OPEN: Margin call is open and not expired - CALL_STATUS_AGED: Margin call is open and it is expired - CALL_STATUS_SETTLED: Margin call is fully settled - CALL_STATUS_CANCELED: Margin call was canceled by Credit Risk
25
+ */
26
+ var XMCallStatus;
27
+ (function (XMCallStatus) {
28
+ XMCallStatus["XmCallStatusUnspecified"] = "XM_CALL_STATUS_UNSPECIFIED";
29
+ XMCallStatus["CallStatusOpen"] = "CALL_STATUS_OPEN";
30
+ XMCallStatus["CallStatusAged"] = "CALL_STATUS_AGED";
31
+ XMCallStatus["CallStatusSettled"] = "CALL_STATUS_SETTLED";
32
+ XMCallStatus["CallStatusCanceled"] = "CALL_STATUS_CANCELED";
33
+ })(XMCallStatus || (exports.XMCallStatus = XMCallStatus = {}));
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.XMCallType = void 0;
23
+ /**
24
+ * - CALL_TYPE_STANDARD: Evaluated at standard margin call evaluation time - CALL_TYPE_URGENT: Evaluated in realtime
25
+ */
26
+ var XMCallType;
27
+ (function (XMCallType) {
28
+ XMCallType["XmCallTypeUnspecified"] = "XM_CALL_TYPE_UNSPECIFIED";
29
+ XMCallType["CallTypeStandard"] = "CALL_TYPE_STANDARD";
30
+ XMCallType["CallTypeUrgent"] = "CALL_TYPE_URGENT";
31
+ })(XMCallType || (exports.XMCallType = XMCallType = {}));
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.XMControlStatus = void 0;
23
+ /**
24
+ * - TRADES_AND_WITHDRAWALS: Allowed to trade and withdraw. See XM Margin Methodology for full description of when trading and withdrawals are enabled or disabled. - TRADES_ONLY: Allowed to trade but not withdraw. See XM Margin Methodology for full description of when trading and withdrawals are enabled or disabled. - SESSION_LOCKED: Not allowed to trade or withdraw. See XM Margin Methodology for full description of when trading and withdrawals are enabled or disabled.
25
+ */
26
+ var XMControlStatus;
27
+ (function (XMControlStatus) {
28
+ XMControlStatus["XmControlStatusUnspecified"] = "XM_CONTROL_STATUS_UNSPECIFIED";
29
+ XMControlStatus["TradesAndWithdrawals"] = "TRADES_AND_WITHDRAWALS";
30
+ XMControlStatus["TradesOnly"] = "TRADES_ONLY";
31
+ XMControlStatus["SessionLocked"] = "SESSION_LOCKED";
32
+ })(XMControlStatus || (exports.XMControlStatus = XMControlStatus = {}));
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.XMEntityCallStatus = void 0;
23
+ /**
24
+ * - ENTITY_NO_CALL: There are no margin calls - ENTITY_OPEN_STANDARD_CALL: There is a standard margin call. There are no urgent margin calls, and no expired margin calls. - ENTITY_OPEN_URGENT_CALL: There is an urgent margin call. It is possible that there could also be a standard margin call, but there are no expired margin calls. - ENTITY_AGED_CALL: At least one open margin call is aged (standard or urgent). This may trigger the SESSION_LOCKED control status.
25
+ */
26
+ var XMEntityCallStatus;
27
+ (function (XMEntityCallStatus) {
28
+ XMEntityCallStatus["XmEntityCallStatusUnspecified"] = "XM_ENTITY_CALL_STATUS_UNSPECIFIED";
29
+ XMEntityCallStatus["EntityNoCall"] = "ENTITY_NO_CALL";
30
+ XMEntityCallStatus["EntityOpenStandardCall"] = "ENTITY_OPEN_STANDARD_CALL";
31
+ XMEntityCallStatus["EntityOpenUrgentCall"] = "ENTITY_OPEN_URGENT_CALL";
32
+ XMEntityCallStatus["EntityAgedCall"] = "ENTITY_AGED_CALL";
33
+ })(XMEntityCallStatus || (exports.XMEntityCallStatus = XMEntityCallStatus = {}));
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.XMMarginLevel = void 0;
23
+ /**
24
+ * - HEALTHY_THRESHOLD: Margin level is healthy - DEFICIT_THRESHOLD: Margin level is breaching the deficit threshold (DT) which will result in the issuance of a Margin Call if this is still the case by the scheduled next Margin Call time (as defined in the margin methodology) - WARNING_THRESHOLD: Margin level is breaching the warning threshold (WT) which will result in the issuance of a Margin Call if this is still the case by the scheduled next Margin Call (as defined in the margin methodology). WT is differentiated from DT in that it means margin health is approaching the UMCT - URGENT_MARGIN_CALL_THRESHOLD: Margin level is breaching the UMCT and, as defined in the margin methodology, this will trigger an urgent margin call - LIQUIDATION_THRESHOLD: Margin level is breaching the liquidation threshold (LT) and, as defined in the margin methodology, this will trigger the SESSION_LOCKED control status and liquidation may commence.
25
+ */
26
+ var XMMarginLevel;
27
+ (function (XMMarginLevel) {
28
+ XMMarginLevel["XmMarginLevelUnspecified"] = "XM_MARGIN_LEVEL_UNSPECIFIED";
29
+ XMMarginLevel["HealthyThreshold"] = "HEALTHY_THRESHOLD";
30
+ XMMarginLevel["DeficitThreshold"] = "DEFICIT_THRESHOLD";
31
+ XMMarginLevel["WarningThreshold"] = "WARNING_THRESHOLD";
32
+ XMMarginLevel["UrgentMarginCallThreshold"] = "URGENT_MARGIN_CALL_THRESHOLD";
33
+ XMMarginLevel["LiquidationThreshold"] = "LIQUIDATION_THRESHOLD";
34
+ })(XMMarginLevel || (exports.XMMarginLevel = XMMarginLevel = {}));
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.XMParty = void 0;
23
+ /**
24
+ * - CBE: Coinbase Exchange, trading venue that can receive the XM loan - FCM: Coinbase’s Futures Commission Merchant, trading venue that can receive the XM loan
25
+ */
26
+ var XMParty;
27
+ (function (XMParty) {
28
+ XMParty["XmPartyUnspecified"] = "XM_PARTY_UNSPECIFIED";
29
+ XMParty["Cbe"] = "CBE";
30
+ XMParty["Fcm"] = "FCM";
31
+ })(XMParty || (exports.XMParty = XMParty = {}));
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WalletVisibility = exports.WalletType = exports.WalletDepositInstructionType = exports.VisibilityStatus = exports.UserRole = exports.TransferLocationType = exports.TransactionType = exports.TransactionStatus = exports.TimeInForceType = exports.SortDirection = exports.SigningStatus = exports.RateType = exports.ProductPermissions = exports.PositionReferenceType = exports.PortfolioBalanceType = exports.PaymentMethodType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.NetworkType = exports.NetworkFamily = exports.MarginAddOnType = exports.LoanType = exports.InvoiceType = exports.InvoiceState = exports.HierarchyType = exports.FcmPositionSide = exports.FcmMarginCallType = exports.FcmMarginCallState = exports.FcmFuturesSweepStatus = exports.DestinationType = exports.Benchmark = exports.AssetChangeType = exports.AllocationStatus = exports.AllocationSizeType = exports.PrimeActivityType = exports.ActivityStatus = exports.ActivitySecondaryType = exports.ActivityLevel = exports.ActivityCategory = exports.Action = exports.AddressBookType = exports.CustodyActivityType = void 0;
3
+ exports.XMMarginLevel = exports.XMEntityCallStatus = exports.XMControlStatus = exports.XMCallType = exports.XMCallStatus = exports.WalletVisibility = exports.WalletType = exports.WalletDepositInstructionType = exports.VisibilityStatus = exports.ValidatorStatus = exports.UserRole = exports.TransferLocationType = exports.TransactionType = exports.TransactionStatus = exports.TimeInForceType = exports.SortDirection = exports.SigningStatus = exports.RateType = exports.ProductPermissions = exports.PositionReferenceType = exports.PortfolioBalanceType = exports.PaymentMethodType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.NetworkType = exports.NetworkFamily = exports.MarginAddOnType = exports.LoanType = exports.InvoiceType = exports.InvoiceState = exports.HierarchyType = exports.FcmPositionSide = exports.FcmMarginCallType = exports.FcmMarginCallState = exports.FcmFuturesSweepStatus = exports.DestinationType = exports.CandlesGranularity = exports.Benchmark = exports.AssetChangeType = exports.AllocationStatus = exports.AllocationSizeType = exports.PrimeActivityType = exports.ActivityStatus = exports.ActivitySecondaryType = exports.ActivityLevel = exports.ActivityCategory = exports.Action = exports.AddressBookType = exports.CustodyActivityType = void 0;
4
+ exports.XMParty = void 0;
4
5
  var CustodyActivityType_1 = require("./CustodyActivityType");
5
6
  Object.defineProperty(exports, "CustodyActivityType", { enumerable: true, get: function () { return CustodyActivityType_1.ActivityType; } });
6
7
  var AddressBookType_1 = require("./AddressBookType");
@@ -25,6 +26,8 @@ var AssetChangeType_1 = require("./AssetChangeType");
25
26
  Object.defineProperty(exports, "AssetChangeType", { enumerable: true, get: function () { return AssetChangeType_1.AssetChangeType; } });
26
27
  var Benchmark_1 = require("./Benchmark");
27
28
  Object.defineProperty(exports, "Benchmark", { enumerable: true, get: function () { return Benchmark_1.Benchmark; } });
29
+ var CandlesGranularity_1 = require("./CandlesGranularity");
30
+ Object.defineProperty(exports, "CandlesGranularity", { enumerable: true, get: function () { return CandlesGranularity_1.CandlesGranularity; } });
28
31
  var DestinationType_1 = require("./DestinationType");
29
32
  Object.defineProperty(exports, "DestinationType", { enumerable: true, get: function () { return DestinationType_1.DestinationType; } });
30
33
  var FcmFuturesSweepStatus_1 = require("./FcmFuturesSweepStatus");
@@ -79,6 +82,8 @@ var TransferLocationType_1 = require("./TransferLocationType");
79
82
  Object.defineProperty(exports, "TransferLocationType", { enumerable: true, get: function () { return TransferLocationType_1.TransferLocationType; } });
80
83
  var UserRole_1 = require("./UserRole");
81
84
  Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return UserRole_1.UserRole; } });
85
+ var ValidatorStatus_1 = require("./ValidatorStatus");
86
+ Object.defineProperty(exports, "ValidatorStatus", { enumerable: true, get: function () { return ValidatorStatus_1.ValidatorStatus; } });
82
87
  var VisibilityStatus_1 = require("./VisibilityStatus");
83
88
  Object.defineProperty(exports, "VisibilityStatus", { enumerable: true, get: function () { return VisibilityStatus_1.VisibilityStatus; } });
84
89
  var WalletDepositInstructionType_1 = require("./WalletDepositInstructionType");
@@ -87,3 +92,15 @@ var WalletType_1 = require("./WalletType");
87
92
  Object.defineProperty(exports, "WalletType", { enumerable: true, get: function () { return WalletType_1.WalletType; } });
88
93
  var WalletVisibility_1 = require("./WalletVisibility");
89
94
  Object.defineProperty(exports, "WalletVisibility", { enumerable: true, get: function () { return WalletVisibility_1.WalletVisibility; } });
95
+ var XMCallStatus_1 = require("./XMCallStatus");
96
+ Object.defineProperty(exports, "XMCallStatus", { enumerable: true, get: function () { return XMCallStatus_1.XMCallStatus; } });
97
+ var XMCallType_1 = require("./XMCallType");
98
+ Object.defineProperty(exports, "XMCallType", { enumerable: true, get: function () { return XMCallType_1.XMCallType; } });
99
+ var XMControlStatus_1 = require("./XMControlStatus");
100
+ Object.defineProperty(exports, "XMControlStatus", { enumerable: true, get: function () { return XMControlStatus_1.XMControlStatus; } });
101
+ var XMEntityCallStatus_1 = require("./XMEntityCallStatus");
102
+ Object.defineProperty(exports, "XMEntityCallStatus", { enumerable: true, get: function () { return XMEntityCallStatus_1.XMEntityCallStatus; } });
103
+ var XMMarginLevel_1 = require("./XMMarginLevel");
104
+ Object.defineProperty(exports, "XMMarginLevel", { enumerable: true, get: function () { return XMMarginLevel_1.XMMarginLevel; } });
105
+ var XMParty_1 = require("./XMParty");
106
+ Object.defineProperty(exports, "XMParty", { enumerable: true, get: function () { return XMParty_1.XMParty; } });
@@ -172,5 +172,17 @@ class OrdersService {
172
172
  return response.data;
173
173
  });
174
174
  }
175
+ editOrder(request, options) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ const { portfolioId, orderId } = request, bodyParams = __rest(request, ["portfolioId", "orderId"]);
178
+ const response = yield this.client.request({
179
+ url: `portfolios/${portfolioId}/orders/${orderId}/edit`,
180
+ method: clients_1.Method.PUT,
181
+ bodyParams,
182
+ callOptions: options,
183
+ });
184
+ return response.data;
185
+ });
186
+ }
175
187
  }
176
188
  exports.OrdersService = OrdersService;
@@ -40,5 +40,21 @@ class ProductsService {
40
40
  return (0, paginatedResponse_1.createPaginatedResponse)(response.data, this.listProducts.bind(this), request, paginatedResponse_1.ResponseExtractors.products, paginationOptions);
41
41
  });
42
42
  }
43
+ listProductCandles(request, options) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ const { portfolioId, productId, startTime, endTime, granularity } = request;
46
+ const response = yield this.client.request({
47
+ url: `portfolios/${portfolioId}/candles`,
48
+ queryParams: {
49
+ product_id: productId,
50
+ start_time: startTime,
51
+ end_time: endTime,
52
+ granularity: granularity,
53
+ },
54
+ callOptions: options,
55
+ });
56
+ return response.data;
57
+ });
58
+ }
43
59
  }
44
60
  exports.ProductsService = ProductsService;
@@ -26,6 +26,7 @@ exports.StakingService = void 0;
26
26
  * limitations under the License.
27
27
  */
28
28
  const clients_1 = require("../clients");
29
+ const paginatedResponse_1 = require("../shared/paginatedResponse");
29
30
  class StakingService {
30
31
  constructor(client) {
31
32
  this.client = client;
@@ -78,5 +79,41 @@ class StakingService {
78
79
  return response.data;
79
80
  });
80
81
  }
82
+ queryTransactionValidators(request, options) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const paginationOptions = (0, paginatedResponse_1.getDefaultPaginationOptions)(this.client, options);
85
+ const { transactionIds, cursor, limit, sortDirection } = request;
86
+ const bodyParams = {
87
+ transactionIds,
88
+ cursor,
89
+ limit,
90
+ sortDirection,
91
+ };
92
+ const response = yield this.client.request({
93
+ url: `portfolios/${request.portfolioId}/staking/transaction-validators/query`,
94
+ method: clients_1.Method.POST,
95
+ bodyParams,
96
+ callOptions: options,
97
+ });
98
+ const responseData = response.data;
99
+ return (0, paginatedResponse_1.createPaginatedResponse)(responseData, this.queryTransactionValidators.bind(this), request, (r) => r.transactionValidators || [], paginationOptions);
100
+ });
101
+ }
102
+ claimRewards(request, options) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const { idempotencyKey, inputs, portfolioId, walletId } = request;
105
+ const bodyParams = {
106
+ idempotencyKey,
107
+ inputs,
108
+ };
109
+ const response = yield this.client.request({
110
+ url: `portfolios/${portfolioId}/wallets/${walletId}/staking/claim_rewards`,
111
+ method: clients_1.Method.POST,
112
+ bodyParams,
113
+ callOptions: options,
114
+ });
115
+ return response.data;
116
+ });
117
+ }
81
118
  }
82
119
  exports.StakingService = StakingService;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const VERSION = "0.6.4";
16
+ export declare const VERSION = "0.7.1";
17
17
  export declare const API_BASE_PATH = "https://api.prime.coinbase.com/v1/";
18
18
  export declare const USER_AGENT: string;
19
19
  export declare const CB_ACCESS_KEY_HEADER = "X-CB-ACCESS-KEY";
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { IPrimeApiClient, CoinbaseCallOptions } from '../clients';
17
- import { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, GetFcmMarginCallDetailsRequest, GetFcmMarginCallDetailsResponse, GetFcmRiskLimitsRequest, GetFcmRiskLimitsResponse, CreateNewLocatesRequest, CreateNewLocatesResponse } from './types';
17
+ import { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, GetFcmMarginCallDetailsRequest, GetFcmMarginCallDetailsResponse, GetFcmRiskLimitsRequest, GetFcmRiskLimitsResponse, CreateNewLocatesRequest, CreateNewLocatesResponse, GetCrossMarginOverviewRequest, GetCrossMarginOverviewResponse } from './types';
18
18
  export interface IFinancingService {
19
19
  listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse>;
20
20
  listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse>;
@@ -30,6 +30,7 @@ export interface IFinancingService {
30
30
  getFcmMarginCallDetails(request: GetFcmMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetFcmMarginCallDetailsResponse>;
31
31
  getFcmRiskLimits(request: GetFcmRiskLimitsRequest, options?: CoinbaseCallOptions): Promise<GetFcmRiskLimitsResponse>;
32
32
  createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse>;
33
+ getCrossMarginOverview(request: GetCrossMarginOverviewRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginOverviewResponse>;
33
34
  }
34
35
  export declare class FinancingService implements IFinancingService {
35
36
  private client;
@@ -48,4 +49,5 @@ export declare class FinancingService implements IFinancingService {
48
49
  getFcmMarginCallDetails(request: GetFcmMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetFcmMarginCallDetailsResponse>;
49
50
  getFcmRiskLimits(request: GetFcmRiskLimitsRequest, options?: CoinbaseCallOptions): Promise<GetFcmRiskLimitsResponse>;
50
51
  createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse>;
52
+ getCrossMarginOverview(request: GetCrossMarginOverviewRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginOverviewResponse>;
51
53
  }
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Brand } from '../shared/brand';
17
- import { GetExistingLocatesResponse, GetInterestAccrualsResponse, GetLocateAvailabilitiesResponse, GetMarginConversionsResponse, GetMarginSummariesResponse, GetMarginInformationResponse as internalGetMarginInformationResponse, GetBuyingPowerResponse, GetPostTradeCreditResponse, GetTFTieredPricingFeesResponse, GetWithdrawalPowerResponse, GetFcmMarginCallDetailsResponse as internalGetFcmMarginCallDetailsResponse, GetFcmRiskLimitsResponse as internalGetFcmRiskLimitsResponse, CreateNewLocatesResponse as internalCreateNewLocatesResponse } from '../model/';
17
+ import { GetExistingLocatesResponse, GetInterestAccrualsResponse, GetLocateAvailabilitiesResponse, GetMarginConversionsResponse, GetMarginSummariesResponse, GetMarginInformationResponse as internalGetMarginInformationResponse, GetBuyingPowerResponse, GetPostTradeCreditResponse, GetTFTieredPricingFeesResponse, GetWithdrawalPowerResponse, GetFcmMarginCallDetailsResponse as internalGetFcmMarginCallDetailsResponse, GetFcmRiskLimitsResponse as internalGetFcmRiskLimitsResponse, CreateNewLocatesResponse as internalCreateNewLocatesResponse, GetCrossMarginOverviewResponse as internalGetCrossMarginOverviewResponse } from '../model/';
18
18
  export type ListExistingLocatesRequest = {
19
19
  portfolioId: string;
20
20
  locateIds?: string[];
@@ -91,3 +91,7 @@ export type GetFcmRiskLimitsRequest = {
91
91
  entityId: string;
92
92
  };
93
93
  export type GetFcmRiskLimitsResponse = Brand<internalGetFcmRiskLimitsResponse, 'GetFcmRiskLimitsResponse'>;
94
+ export type GetCrossMarginOverviewRequest = {
95
+ entityId: string;
96
+ };
97
+ export type GetCrossMarginOverviewResponse = Brand<internalGetCrossMarginOverviewResponse, 'GetCrossMarginOverviewResponse'>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { CoinbaseCallOptions, IPrimeApiClient } from '../clients';
17
- import { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse } from './types';
17
+ import { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesRiskLimitsRequest, GetEntityFuturesRiskLimitsResponse, GetEntityFuturesMarginCallDetailsRequest, GetEntityFuturesMarginCallDetailsResponse } from './types';
18
18
  export interface IFuturesService {
19
19
  listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse>;
20
20
  getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse>;
@@ -22,6 +22,8 @@ export interface IFuturesService {
22
22
  scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse>;
23
23
  updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse>;
24
24
  cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse>;
25
+ getRiskLimits(request: GetEntityFuturesRiskLimitsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesRiskLimitsResponse>;
26
+ getMarginCallDetails(request: GetEntityFuturesMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesMarginCallDetailsResponse>;
25
27
  }
26
28
  export declare class FuturesService implements IFuturesService {
27
29
  private client;
@@ -32,4 +34,7 @@ export declare class FuturesService implements IFuturesService {
32
34
  scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse>;
33
35
  updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse>;
34
36
  cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse>;
37
+ getRiskLimits(request: GetEntityFuturesRiskLimitsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesRiskLimitsResponse>;
38
+ getMarginCallDetails(request: GetEntityFuturesMarginCallDetailsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesMarginCallDetailsResponse>;
35
39
  }
40
+ export type { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesRiskLimitsRequest, GetEntityFuturesRiskLimitsResponse, GetEntityFuturesMarginCallDetailsRequest, GetEntityFuturesMarginCallDetailsResponse, } from './types';
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Brand } from '../shared/brand';
17
- import { GetFcmBalanceResponse, GetFuturesSweepsResponse, GetPositionsResponse, SetAutoSweepResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesSweepResponse } from '../model/';
17
+ import { GetFcmBalanceResponse, GetFuturesSweepsResponse, GetPositionsResponse, SetAutoSweepResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesSweepResponse, GetFcmRiskLimitsResponse, GetFcmMarginCallDetailsResponse } from '../model/';
18
18
  export type ListEntityFuturesSweepsRequest = {
19
19
  entityId: string;
20
20
  };
@@ -41,3 +41,11 @@ export type CancelEntitySweepRequest = {
41
41
  entityId: string;
42
42
  };
43
43
  export type CancelEntitySweepResponse = Brand<CancelFuturesSweepResponse, 'CancelEntitySweepResponse'>;
44
+ export type GetEntityFuturesRiskLimitsRequest = {
45
+ entityId: string;
46
+ };
47
+ export type GetEntityFuturesRiskLimitsResponse = Brand<GetFcmRiskLimitsResponse, 'GetEntityFuturesRiskLimitsResponse'>;
48
+ export type GetEntityFuturesMarginCallDetailsRequest = {
49
+ entityId: string;
50
+ };
51
+ export type GetEntityFuturesMarginCallDetailsResponse = Brand<GetFcmMarginCallDetailsResponse, 'GetEntityFuturesMarginCallDetailsResponse'>;