@coinbase-sample/prime-sdk-ts 0.9.0 → 0.10.0
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/dist/clients/clientWithServices.js +14 -0
- package/dist/constants.js +1 -1
- package/dist/financing/index.js +73 -0
- package/dist/index.js +3 -1
- package/dist/model/BetaCrossMarginPrimeSpotEquityBreakdown.js +21 -0
- package/dist/model/BetaCrossMarginPrimeXMPosition.js +21 -0
- package/dist/model/BetaCrossMarginRiskParameters.js +21 -0
- package/dist/model/BetaGetCrossMarginPrimeOverviewResponse.js +21 -0
- package/dist/model/BetaGetCrossMarginRiskParametersResponse.js +21 -0
- package/dist/model/BetaGetMarketDataResponse.js +21 -0
- package/dist/model/BetaMarketData.js +21 -0
- package/dist/model/BetaPrimeXMMarginCallThresholds.js +21 -0
- package/dist/model/BetaPrimeXMMarginRequirementBreakdown.js +21 -0
- package/dist/model/BetaPrimeXMMarginThreshold.js +21 -0
- package/dist/model/BetaPrimeXMOffsetCreditBreakdown.js +21 -0
- package/dist/model/BetaSetFundingSettingsResponse.js +21 -0
- package/dist/model/BetaTierPairRateEntry.js +21 -0
- package/dist/model/CrossMarginPrimeDerivativesEquityBreakdown.js +21 -0
- package/dist/model/CrossMarginPrimeMarginSummary.js +21 -0
- package/dist/model/CrossMarginPrimeRiskNettingInfo.js +21 -0
- package/dist/model/CrossMarginPrimeSpotEquityBreakdown.js +21 -0
- package/dist/model/CrossMarginPrimeXMPosition.js +21 -0
- package/dist/model/CrossMarginRiskParameters.js +21 -0
- package/dist/model/GetCrossMarginPrimeOverviewResponse.js +21 -0
- package/dist/model/GetCrossMarginRiskParametersResponse.js +21 -0
- package/dist/model/GetMarketDataResponse.js +21 -0
- package/dist/model/MarketData.js +21 -0
- package/dist/model/PrimeXMMarginCallThresholds.js +21 -0
- package/dist/model/PrimeXMMarginRequirementBreakdown.js +21 -0
- package/dist/model/PrimeXMMarginThreshold.js +21 -0
- package/dist/model/PrimeXMOffsetCreditBreakdown.js +21 -0
- package/dist/model/SetFundingSettingsRequest.js +21 -0
- package/dist/model/SetFundingSettingsResponse.js +21 -0
- package/dist/model/TierPairRateEntry.js +21 -0
- package/dist/model/ValidatorUnstakePreview.js +21 -0
- package/dist/model/enums/BetaPrimeXMControlStatus.js +32 -0
- package/dist/model/enums/BetaPrimeXMHealthStatus.js +36 -0
- package/dist/model/enums/BetaPrimeXMMarginLevel.js +34 -0
- package/dist/model/enums/BetaPrimeXMMarginRequirementType.js +31 -0
- package/dist/model/enums/BetaPrimeXMMarginThresholdType.js +32 -0
- package/dist/model/enums/PrimeXMControlStatus.js +32 -0
- package/dist/model/enums/PrimeXMHealthStatus.js +36 -0
- package/dist/model/enums/PrimeXMMarginLevel.js +34 -0
- package/dist/model/enums/PrimeXMMarginRequirementType.js +31 -0
- package/dist/model/enums/PrimeXMMarginThresholdType.js +32 -0
- package/dist/model/enums/UserRole.js +2 -1
- package/dist/model/enums/XMLiquidationStatus.js +34 -0
- package/dist/model/enums/index.js +34 -2
- package/dist/model/primeBetaSetFundingSettingsRequest.js +21 -0
- package/dist/services.js +3 -1
- package/dist/shared/paginatedResponse.js +2 -0
- package/dist/transactions/index.js +13 -0
- package/dist/types/clients/clientWithServices.d.ts +10 -0
- package/dist/types/clients/clientWithServicesTypes.d.ts +5 -0
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/financing/index.d.ts +9 -1
- package/dist/types/financing/types.d.ts +26 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/model/ActiveLiquidationSummary.d.ts +31 -0
- package/dist/types/model/BetaCrossMarginPrimeDerivativesEquityBreakdown.d.ts +40 -0
- package/dist/types/model/BetaCrossMarginPrimeMarginSummary.d.ts +100 -0
- package/dist/types/model/BetaCrossMarginPrimeRiskNettingInfo.d.ts +51 -0
- package/dist/types/model/{TravelRuleEntry.d.ts → BetaCrossMarginPrimeSpotEquityBreakdown.d.ts} +22 -16
- package/dist/types/model/BetaCrossMarginPrimeXMPosition.d.ts +84 -0
- package/dist/types/model/BetaCrossMarginRiskParameters.d.ts +72 -0
- package/dist/types/model/BetaGetCrossMarginPrimeOverviewResponse.d.ts +31 -0
- package/dist/types/model/BetaGetCrossMarginRiskParametersResponse.d.ts +43 -0
- package/dist/types/model/{DateOfBirth.d.ts → BetaGetMarketDataResponse.d.ts} +8 -4
- package/dist/types/model/BetaMarketData.d.ts +45 -0
- package/dist/types/model/BetaPrimeXMMarginCallThresholds.d.ts +42 -0
- package/dist/types/model/BetaPrimeXMMarginRequirementBreakdown.d.ts +41 -0
- package/dist/types/model/{TravelRuleWalletDetails.d.ts → BetaPrimeXMMarginThreshold.d.ts} +6 -8
- package/dist/types/model/BetaPrimeXMOffsetCreditBreakdown.d.ts +45 -0
- package/dist/types/model/BetaSetFundingSettingsResponse.d.ts +36 -0
- package/dist/types/model/BetaTierPairRateEntry.d.ts +36 -0
- package/dist/types/model/CrossMarginOverview.d.ts +2 -0
- package/dist/types/model/CrossMarginPrimeDerivativesEquityBreakdown.d.ts +40 -0
- package/dist/types/model/CrossMarginPrimeMarginSummary.d.ts +100 -0
- package/dist/types/model/CrossMarginPrimeRiskNettingInfo.d.ts +51 -0
- package/dist/types/model/CrossMarginPrimeSpotEquityBreakdown.d.ts +44 -0
- package/dist/types/model/CrossMarginPrimeXMPosition.d.ts +84 -0
- package/dist/types/model/CrossMarginRiskParameters.d.ts +72 -0
- package/dist/types/model/EntityUser.d.ts +9 -0
- package/dist/types/model/Fill.d.ts +4 -0
- package/dist/types/model/GetCrossMarginPrimeOverviewResponse.d.ts +31 -0
- package/dist/types/model/GetCrossMarginRiskParametersResponse.d.ts +43 -0
- package/dist/types/model/GetFcmRiskLimitsResponse.d.ts +6 -0
- package/dist/types/model/{GetWalletAddressesResponse.d.ts → GetMarketDataResponse.d.ts} +8 -5
- package/dist/types/model/MarketData.d.ts +45 -0
- package/dist/types/model/NetworkDetails.d.ts +12 -0
- package/dist/types/model/Order.d.ts +4 -0
- package/dist/types/model/PortfolioUser.d.ts +9 -0
- package/dist/types/model/PreviewUnstakeResponse.d.ts +17 -0
- package/dist/types/model/PrimeXMMarginCallThresholds.d.ts +42 -0
- package/dist/types/model/PrimeXMMarginRequirementBreakdown.d.ts +41 -0
- package/dist/types/model/{VASP.d.ts → PrimeXMMarginThreshold.d.ts} +6 -7
- package/dist/types/model/PrimeXMOffsetCreditBreakdown.d.ts +45 -0
- package/dist/types/model/Product.d.ts +6 -0
- package/dist/types/model/QuoteResponse.d.ts +4 -0
- package/dist/types/model/RFQ.d.ts +4 -0
- package/dist/types/model/SetFundingSettingsRequest.d.ts +44 -0
- package/dist/types/model/SetFundingSettingsResponse.d.ts +36 -0
- package/dist/types/model/TierPairRateEntry.d.ts +36 -0
- package/dist/types/model/ValidatorUnstakePreview.d.ts +40 -0
- package/dist/types/model/XMRiskNettingInfo.d.ts +2 -2
- package/dist/types/model/enums/BetaPrimeXMControlStatus.d.ts +28 -0
- package/dist/types/model/enums/BetaPrimeXMHealthStatus.d.ts +32 -0
- package/dist/types/model/enums/BetaPrimeXMMarginLevel.d.ts +30 -0
- package/dist/types/model/enums/BetaPrimeXMMarginRequirementType.d.ts +27 -0
- package/dist/types/model/enums/BetaPrimeXMMarginThresholdType.d.ts +28 -0
- package/dist/types/model/enums/PrimeXMControlStatus.d.ts +28 -0
- package/dist/types/model/enums/PrimeXMHealthStatus.d.ts +32 -0
- package/dist/types/model/enums/PrimeXMMarginLevel.d.ts +30 -0
- package/dist/types/model/enums/PrimeXMMarginRequirementType.d.ts +27 -0
- package/dist/types/model/enums/PrimeXMMarginThresholdType.d.ts +28 -0
- package/dist/types/model/enums/UserRole.d.ts +3 -2
- package/dist/types/model/enums/XMLiquidationStatus.d.ts +30 -0
- package/dist/types/model/enums/index.d.ts +16 -0
- package/dist/types/model/googleTypeDate.d.ts +1 -1
- package/dist/types/model/index.d.ts +33 -0
- package/dist/types/model/primeBetaSetFundingSettingsRequest.d.ts +44 -0
- package/dist/types/services.d.ts +1 -0
- package/dist/types/shared/paginatedResponse.d.ts +6 -0
- package/dist/types/transactions/index.d.ts +3 -1
- package/dist/types/transactions/types.d.ts +6 -1
- package/package.json +2 -2
- package/dist/model/CreateAddressGroup.js +0 -21
- package/dist/model/GetWalletAddressesResponse.js +0 -21
- package/dist/model/StakingInputs.js +0 -21
- package/dist/model/enumPrefixes.js +0 -330
- package/dist/shared/dynamicEnumValidation.js +0 -184
- package/dist/shared/dynamicEnumValidation.old.js +0 -746
- package/dist/shared/enumHelpers.js +0 -219
- package/dist/shared/enumRegistry.js +0 -153
- package/dist/shared/enumValidationCore.js +0 -194
- package/dist/shared/enumValidators.js +0 -115
- package/dist/shared/fieldMapping.js +0 -242
- package/dist/shared/serviceContext.js +0 -157
- package/dist/types/model/CreateAddressGroup.d.ts +0 -26
- package/dist/types/model/StakingInputs.d.ts +0 -25
- package/dist/types/model/enumPrefixes.d.ts +0 -206
- package/dist/types/shared/dynamicEnumValidation.d.ts +0 -48
- package/dist/types/shared/dynamicEnumValidation.old.d.ts +0 -143
- package/dist/types/shared/enumHelpers.d.ts +0 -135
- package/dist/types/shared/enumRegistry.d.ts +0 -74
- package/dist/types/shared/enumValidationCore.d.ts +0 -68
- package/dist/types/shared/enumValidators.d.ts +0 -117
- package/dist/types/shared/fieldMapping.d.ts +0 -35
- package/dist/types/shared/serviceContext.d.ts +0 -46
- /package/dist/model/{DateOfBirth.js → ActiveLiquidationSummary.js} +0 -0
- /package/dist/model/{TravelRuleEntry.js → BetaCrossMarginPrimeDerivativesEquityBreakdown.js} +0 -0
- /package/dist/model/{TravelRuleWalletDetails.js → BetaCrossMarginPrimeMarginSummary.js} +0 -0
- /package/dist/model/{VASP.js → BetaCrossMarginPrimeRiskNettingInfo.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.XMParty = exports.XMMarginLevel = exports.XMEntityCallStatus = exports.XMControlStatus = exports.XMCallType = exports.XMCallStatus = exports.WalletVisibility = exports.WalletType = void 0;
|
|
3
|
+
exports.RiskManagementType = exports.RewardSubtype = exports.RateType = exports.ProductType = exports.ProductPermissions = exports.PositionReferenceType = exports.PortfolioBalanceType = exports.PegOffsetType = exports.PaymentMethodType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.NetworkType = exports.NetworkFamily = exports.MarginAddOnType = exports.LoanType = exports.InvoiceType = exports.InvoiceState = exports.HierarchyType = exports.FcmTradingSessionState = exports.FcmTradingSessionClosedReason = exports.FcmPositionSide = exports.FcmMarginHealthState = exports.FcmMarginCallType = exports.FcmMarginCallState = exports.FcmFuturesSweepStatus = exports.ExpiringContractStatus = exports.EstimateType = exports.DestinationType = exports.ContractExpiryType = exports.CandlesGranularity = exports.PrimeXMMarginThresholdType = exports.PrimeXMMarginRequirementType = exports.PrimeXMMarginLevel = exports.PrimeXMHealthStatus = exports.PrimeXMControlStatus = exports.Benchmark = exports.AssetChangeType = exports.AllocationStatus = exports.AllocationSizeType = exports.AdvancedTransferType = exports.AdvancedTransferState = exports.PrimeActivityType = exports.ActivityStatus = exports.ActivitySecondaryType = exports.ActivityLevel = exports.ActivityCategory = exports.Action = exports.AddressBookType = exports.CustodyActivityType = void 0;
|
|
4
|
+
exports.XMParty = exports.XMMarginLevel = exports.XMLiquidationStatus = exports.XMEntityCallStatus = exports.XMControlStatus = exports.XMCallType = exports.XMCallStatus = exports.WalletVisibility = exports.WalletType = exports.WalletDepositInstructionType = exports.VisibilityStatus = exports.ValidatorStatus = exports.UserRole = exports.UnstakeType = exports.TravelRuleWalletType = exports.TravelRuleStatus = exports.TransferLocationType = exports.TransactionType = exports.TransactionStatus = exports.TimeInForceType = exports.StakeType = exports.SortDirection = exports.SigningStatus = exports.SecondaryPermission = void 0;
|
|
5
5
|
var CustodyActivityType_1 = require("./CustodyActivityType");
|
|
6
6
|
Object.defineProperty(exports, "CustodyActivityType", { enumerable: true, get: function () { return CustodyActivityType_1.ActivityType; } });
|
|
7
7
|
var AddressBookType_1 = require("./AddressBookType");
|
|
@@ -18,6 +18,10 @@ var ActivityStatus_1 = require("./ActivityStatus");
|
|
|
18
18
|
Object.defineProperty(exports, "ActivityStatus", { enumerable: true, get: function () { return ActivityStatus_1.ActivityStatus; } });
|
|
19
19
|
var PrimeActivityType_1 = require("./PrimeActivityType");
|
|
20
20
|
Object.defineProperty(exports, "PrimeActivityType", { enumerable: true, get: function () { return PrimeActivityType_1.ActivityType; } });
|
|
21
|
+
var AdvancedTransferState_1 = require("./AdvancedTransferState");
|
|
22
|
+
Object.defineProperty(exports, "AdvancedTransferState", { enumerable: true, get: function () { return AdvancedTransferState_1.AdvancedTransferState; } });
|
|
23
|
+
var AdvancedTransferType_1 = require("./AdvancedTransferType");
|
|
24
|
+
Object.defineProperty(exports, "AdvancedTransferType", { enumerable: true, get: function () { return AdvancedTransferType_1.AdvancedTransferType; } });
|
|
21
25
|
var AllocationSizeType_1 = require("./AllocationSizeType");
|
|
22
26
|
Object.defineProperty(exports, "AllocationSizeType", { enumerable: true, get: function () { return AllocationSizeType_1.AllocationSizeType; } });
|
|
23
27
|
var AllocationStatus_1 = require("./AllocationStatus");
|
|
@@ -26,20 +30,40 @@ var AssetChangeType_1 = require("./AssetChangeType");
|
|
|
26
30
|
Object.defineProperty(exports, "AssetChangeType", { enumerable: true, get: function () { return AssetChangeType_1.AssetChangeType; } });
|
|
27
31
|
var Benchmark_1 = require("./Benchmark");
|
|
28
32
|
Object.defineProperty(exports, "Benchmark", { enumerable: true, get: function () { return Benchmark_1.Benchmark; } });
|
|
33
|
+
var PrimeXMControlStatus_1 = require("./PrimeXMControlStatus");
|
|
34
|
+
Object.defineProperty(exports, "PrimeXMControlStatus", { enumerable: true, get: function () { return PrimeXMControlStatus_1.PrimeXMControlStatus; } });
|
|
35
|
+
var PrimeXMHealthStatus_1 = require("./PrimeXMHealthStatus");
|
|
36
|
+
Object.defineProperty(exports, "PrimeXMHealthStatus", { enumerable: true, get: function () { return PrimeXMHealthStatus_1.PrimeXMHealthStatus; } });
|
|
37
|
+
var PrimeXMMarginLevel_1 = require("./PrimeXMMarginLevel");
|
|
38
|
+
Object.defineProperty(exports, "PrimeXMMarginLevel", { enumerable: true, get: function () { return PrimeXMMarginLevel_1.PrimeXMMarginLevel; } });
|
|
39
|
+
var PrimeXMMarginRequirementType_1 = require("./PrimeXMMarginRequirementType");
|
|
40
|
+
Object.defineProperty(exports, "PrimeXMMarginRequirementType", { enumerable: true, get: function () { return PrimeXMMarginRequirementType_1.PrimeXMMarginRequirementType; } });
|
|
41
|
+
var PrimeXMMarginThresholdType_1 = require("./PrimeXMMarginThresholdType");
|
|
42
|
+
Object.defineProperty(exports, "PrimeXMMarginThresholdType", { enumerable: true, get: function () { return PrimeXMMarginThresholdType_1.PrimeXMMarginThresholdType; } });
|
|
29
43
|
var CandlesGranularity_1 = require("./CandlesGranularity");
|
|
30
44
|
Object.defineProperty(exports, "CandlesGranularity", { enumerable: true, get: function () { return CandlesGranularity_1.CandlesGranularity; } });
|
|
45
|
+
var ContractExpiryType_1 = require("./ContractExpiryType");
|
|
46
|
+
Object.defineProperty(exports, "ContractExpiryType", { enumerable: true, get: function () { return ContractExpiryType_1.ContractExpiryType; } });
|
|
31
47
|
var DestinationType_1 = require("./DestinationType");
|
|
32
48
|
Object.defineProperty(exports, "DestinationType", { enumerable: true, get: function () { return DestinationType_1.DestinationType; } });
|
|
33
49
|
var EstimateType_1 = require("./EstimateType");
|
|
34
50
|
Object.defineProperty(exports, "EstimateType", { enumerable: true, get: function () { return EstimateType_1.EstimateType; } });
|
|
51
|
+
var ExpiringContractStatus_1 = require("./ExpiringContractStatus");
|
|
52
|
+
Object.defineProperty(exports, "ExpiringContractStatus", { enumerable: true, get: function () { return ExpiringContractStatus_1.ExpiringContractStatus; } });
|
|
35
53
|
var FcmFuturesSweepStatus_1 = require("./FcmFuturesSweepStatus");
|
|
36
54
|
Object.defineProperty(exports, "FcmFuturesSweepStatus", { enumerable: true, get: function () { return FcmFuturesSweepStatus_1.FcmFuturesSweepStatus; } });
|
|
37
55
|
var FcmMarginCallState_1 = require("./FcmMarginCallState");
|
|
38
56
|
Object.defineProperty(exports, "FcmMarginCallState", { enumerable: true, get: function () { return FcmMarginCallState_1.FcmMarginCallState; } });
|
|
39
57
|
var FcmMarginCallType_1 = require("./FcmMarginCallType");
|
|
40
58
|
Object.defineProperty(exports, "FcmMarginCallType", { enumerable: true, get: function () { return FcmMarginCallType_1.FcmMarginCallType; } });
|
|
59
|
+
var FcmMarginHealthState_1 = require("./FcmMarginHealthState");
|
|
60
|
+
Object.defineProperty(exports, "FcmMarginHealthState", { enumerable: true, get: function () { return FcmMarginHealthState_1.FcmMarginHealthState; } });
|
|
41
61
|
var FcmPositionSide_1 = require("./FcmPositionSide");
|
|
42
62
|
Object.defineProperty(exports, "FcmPositionSide", { enumerable: true, get: function () { return FcmPositionSide_1.FcmPositionSide; } });
|
|
63
|
+
var FcmTradingSessionClosedReason_1 = require("./FcmTradingSessionClosedReason");
|
|
64
|
+
Object.defineProperty(exports, "FcmTradingSessionClosedReason", { enumerable: true, get: function () { return FcmTradingSessionClosedReason_1.FcmTradingSessionClosedReason; } });
|
|
65
|
+
var FcmTradingSessionState_1 = require("./FcmTradingSessionState");
|
|
66
|
+
Object.defineProperty(exports, "FcmTradingSessionState", { enumerable: true, get: function () { return FcmTradingSessionState_1.FcmTradingSessionState; } });
|
|
43
67
|
var HierarchyType_1 = require("./HierarchyType");
|
|
44
68
|
Object.defineProperty(exports, "HierarchyType", { enumerable: true, get: function () { return HierarchyType_1.HierarchyType; } });
|
|
45
69
|
var InvoiceState_1 = require("./InvoiceState");
|
|
@@ -70,10 +94,16 @@ var PositionReferenceType_1 = require("./PositionReferenceType");
|
|
|
70
94
|
Object.defineProperty(exports, "PositionReferenceType", { enumerable: true, get: function () { return PositionReferenceType_1.PositionReferenceType; } });
|
|
71
95
|
var ProductPermissions_1 = require("./ProductPermissions");
|
|
72
96
|
Object.defineProperty(exports, "ProductPermissions", { enumerable: true, get: function () { return ProductPermissions_1.ProductPermissions; } });
|
|
97
|
+
var ProductType_1 = require("./ProductType");
|
|
98
|
+
Object.defineProperty(exports, "ProductType", { enumerable: true, get: function () { return ProductType_1.ProductType; } });
|
|
73
99
|
var RateType_1 = require("./RateType");
|
|
74
100
|
Object.defineProperty(exports, "RateType", { enumerable: true, get: function () { return RateType_1.RateType; } });
|
|
75
101
|
var RewardSubtype_1 = require("./RewardSubtype");
|
|
76
102
|
Object.defineProperty(exports, "RewardSubtype", { enumerable: true, get: function () { return RewardSubtype_1.RewardSubtype; } });
|
|
103
|
+
var RiskManagementType_1 = require("./RiskManagementType");
|
|
104
|
+
Object.defineProperty(exports, "RiskManagementType", { enumerable: true, get: function () { return RiskManagementType_1.RiskManagementType; } });
|
|
105
|
+
var SecondaryPermission_1 = require("./SecondaryPermission");
|
|
106
|
+
Object.defineProperty(exports, "SecondaryPermission", { enumerable: true, get: function () { return SecondaryPermission_1.SecondaryPermission; } });
|
|
77
107
|
var SigningStatus_1 = require("./SigningStatus");
|
|
78
108
|
Object.defineProperty(exports, "SigningStatus", { enumerable: true, get: function () { return SigningStatus_1.SigningStatus; } });
|
|
79
109
|
var SortDirection_1 = require("./SortDirection");
|
|
@@ -114,6 +144,8 @@ var XMControlStatus_1 = require("./XMControlStatus");
|
|
|
114
144
|
Object.defineProperty(exports, "XMControlStatus", { enumerable: true, get: function () { return XMControlStatus_1.XMControlStatus; } });
|
|
115
145
|
var XMEntityCallStatus_1 = require("./XMEntityCallStatus");
|
|
116
146
|
Object.defineProperty(exports, "XMEntityCallStatus", { enumerable: true, get: function () { return XMEntityCallStatus_1.XMEntityCallStatus; } });
|
|
147
|
+
var XMLiquidationStatus_1 = require("./XMLiquidationStatus");
|
|
148
|
+
Object.defineProperty(exports, "XMLiquidationStatus", { enumerable: true, get: function () { return XMLiquidationStatus_1.XMLiquidationStatus; } });
|
|
117
149
|
var XMMarginLevel_1 = require("./XMMarginLevel");
|
|
118
150
|
Object.defineProperty(exports, "XMMarginLevel", { enumerable: true, get: function () { return XMMarginLevel_1.XMMarginLevel; } });
|
|
119
151
|
var XMParty_1 = require("./XMParty");
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026-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 });
|
package/dist/services.js
CHANGED
|
@@ -29,11 +29,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.StakingService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.FinancingService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = void 0;
|
|
32
|
+
exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.StakingService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.FinancingService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.AdvancedTransfersService = void 0;
|
|
33
33
|
// Services-only entry point - for users who want to import specific services
|
|
34
34
|
// without pulling in client classes. Ideal for custom client implementations
|
|
35
35
|
// or when using dependency injection frameworks.
|
|
36
36
|
// Export all service classes and interfaces
|
|
37
|
+
var advancedTransfers_1 = require("./advancedTransfers");
|
|
38
|
+
Object.defineProperty(exports, "AdvancedTransfersService", { enumerable: true, get: function () { return advancedTransfers_1.AdvancedTransfersService; } });
|
|
37
39
|
var activities_1 = require("./activities");
|
|
38
40
|
Object.defineProperty(exports, "ActivitiesService", { enumerable: true, get: function () { return activities_1.ActivitiesService; } });
|
|
39
41
|
var addressBooks_1 = require("./addressBooks");
|
|
@@ -149,12 +149,14 @@ function createPaginatedResponse(responseData, apiCall, baseRequest, dataExtract
|
|
|
149
149
|
* Common data extractors for typical API responses
|
|
150
150
|
*/
|
|
151
151
|
exports.ResponseExtractors = {
|
|
152
|
+
advancedTransfers: (response) => response.advancedTransfers || [],
|
|
152
153
|
activities: (response) => response.activities || [],
|
|
153
154
|
addresses: (response) => response.addresses || [],
|
|
154
155
|
allocations: (response) => response.allocations || [],
|
|
155
156
|
balances: (response) => response.balances || [],
|
|
156
157
|
fills: (response) => response.fills || [],
|
|
157
158
|
invoices: (response) => response.invoices || [],
|
|
159
|
+
marketData: (response) => response.marketData || [],
|
|
158
160
|
orders: (response) => response.orders || [],
|
|
159
161
|
positions: (response) => response.positions || [],
|
|
160
162
|
products: (response) => response.products || [],
|
|
@@ -191,5 +191,18 @@ class TransactionsService {
|
|
|
191
191
|
return response.data;
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
+
getTransactionTravelRuleData(request, options) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
(0, validation_1.validate)(request)
|
|
197
|
+
.requiredUUID((r) => r.portfolioId)
|
|
198
|
+
.requiredUUID((r) => r.transactionId)
|
|
199
|
+
.check();
|
|
200
|
+
const response = yield this.client.request({
|
|
201
|
+
url: `portfolios/${request.portfolioId}/transactions/${request.transactionId}/travel_rule`,
|
|
202
|
+
callOptions: options,
|
|
203
|
+
});
|
|
204
|
+
return response.data;
|
|
205
|
+
});
|
|
206
|
+
}
|
|
194
207
|
}
|
|
195
208
|
exports.TransactionsService = TransactionsService;
|
|
@@ -17,6 +17,7 @@ import { CoinbaseClient } from '@coinbase-sample/core-ts';
|
|
|
17
17
|
import { CoinbasePrimeCredentials } from '../credentials';
|
|
18
18
|
import type { CoinbasePrimeClientConfig, IPrimeApiClient } from './types';
|
|
19
19
|
import { LazyServiceGetters } from './clientWithServicesTypes';
|
|
20
|
+
import type { IAdvancedTransfersService } from '../advancedTransfers';
|
|
20
21
|
import type { IActivitiesService } from '../activities';
|
|
21
22
|
import type { IAddressBooksService } from '../addressBooks';
|
|
22
23
|
import type { IAllocationService } from '../allocations';
|
|
@@ -42,6 +43,7 @@ import type { IWalletsService } from '../wallets';
|
|
|
42
43
|
* and reducing initial bundle size.
|
|
43
44
|
*/
|
|
44
45
|
export declare class CoinbasePrimeClientWithServices extends CoinbaseClient implements LazyServiceGetters, IPrimeApiClient {
|
|
46
|
+
private _advancedTransfersService?;
|
|
45
47
|
private _activitiesService?;
|
|
46
48
|
private _addressBooksService?;
|
|
47
49
|
private _allocationService?;
|
|
@@ -68,6 +70,14 @@ export declare class CoinbasePrimeClientWithServices extends CoinbaseClient impl
|
|
|
68
70
|
* { "AccessKey": "...", "SecretKey": "...", "Passphrase": "..." }
|
|
69
71
|
*/
|
|
70
72
|
static fromEnv(baseUrl?: string, options?: CoinbasePrimeClientConfig): CoinbasePrimeClientWithServices;
|
|
73
|
+
/**
|
|
74
|
+
* Lazy getter for AdvancedTransfersService
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const transfers = await client.advancedTransfers.listAdvancedTransfers({ portfolioId });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
get advancedTransfers(): IAdvancedTransfersService;
|
|
71
81
|
/**
|
|
72
82
|
* Lazy getter for ActivitiesService
|
|
73
83
|
* @example
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import type { IAdvancedTransfersService } from '../advancedTransfers';
|
|
16
17
|
import type { IActivitiesService } from '../activities';
|
|
17
18
|
import type { IAddressBooksService } from '../addressBooks';
|
|
18
19
|
import type { IAllocationService } from '../allocations';
|
|
@@ -36,6 +37,10 @@ import type { IWalletsService } from '../wallets';
|
|
|
36
37
|
* Interface defining all lazy service getters for the modular client
|
|
37
38
|
*/
|
|
38
39
|
export interface LazyServiceGetters {
|
|
40
|
+
/**
|
|
41
|
+
* Advanced transfers service for managing complex transfer operations such as blind match settlements
|
|
42
|
+
*/
|
|
43
|
+
readonly advancedTransfers: IAdvancedTransfersService;
|
|
39
44
|
/**
|
|
40
45
|
* Activities service for managing portfolio and entity activities
|
|
41
46
|
*/
|
|
@@ -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.
|
|
16
|
+
export declare const VERSION = "0.10.0";
|
|
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, GetCrossMarginOverviewRequest, GetCrossMarginOverviewResponse, ListTFObligationsRequest, ListTFObligationsResponse, ListFinancingEligibleAssetsRequest, ListFinancingEligibleAssetsResponse } 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, ListTFObligationsRequest, ListTFObligationsResponse, ListFinancingEligibleAssetsRequest, ListFinancingEligibleAssetsResponse, GetCrossMarginRiskParametersRequest, GetCrossMarginRiskParametersResponse, GetCrossMarginPrimeOverviewRequest, GetCrossMarginPrimeOverviewResponse, SetFundingSettingsRequest, SetFundingSettingsResponse, ListMarketDataRequest, ListMarketDataResponse } 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>;
|
|
@@ -33,6 +33,10 @@ export interface IFinancingService {
|
|
|
33
33
|
getCrossMarginOverview(request: GetCrossMarginOverviewRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginOverviewResponse>;
|
|
34
34
|
listTFObligations(request: ListTFObligationsRequest, options?: CoinbaseCallOptions): Promise<ListTFObligationsResponse>;
|
|
35
35
|
listFinancingEligibleAssets(request?: ListFinancingEligibleAssetsRequest, options?: CoinbaseCallOptions): Promise<ListFinancingEligibleAssetsResponse>;
|
|
36
|
+
getCrossMarginRiskParameters(request: GetCrossMarginRiskParametersRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginRiskParametersResponse>;
|
|
37
|
+
getCrossMarginPrimeOverview(request: GetCrossMarginPrimeOverviewRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginPrimeOverviewResponse>;
|
|
38
|
+
setFundingSettings(request: SetFundingSettingsRequest, options?: CoinbaseCallOptions): Promise<SetFundingSettingsResponse>;
|
|
39
|
+
listMarketData(request: ListMarketDataRequest, options?: CoinbaseCallOptions): Promise<ListMarketDataResponse>;
|
|
36
40
|
}
|
|
37
41
|
export declare class FinancingService implements IFinancingService {
|
|
38
42
|
private client;
|
|
@@ -54,4 +58,8 @@ export declare class FinancingService implements IFinancingService {
|
|
|
54
58
|
getCrossMarginOverview(request: GetCrossMarginOverviewRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginOverviewResponse>;
|
|
55
59
|
listTFObligations(request: ListTFObligationsRequest, options?: CoinbaseCallOptions): Promise<ListTFObligationsResponse>;
|
|
56
60
|
listFinancingEligibleAssets(request?: ListFinancingEligibleAssetsRequest, options?: CoinbaseCallOptions): Promise<ListFinancingEligibleAssetsResponse>;
|
|
61
|
+
getCrossMarginRiskParameters(request: GetCrossMarginRiskParametersRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginRiskParametersResponse>;
|
|
62
|
+
getCrossMarginPrimeOverview(request: GetCrossMarginPrimeOverviewRequest, options?: CoinbaseCallOptions): Promise<GetCrossMarginPrimeOverviewResponse>;
|
|
63
|
+
setFundingSettings(request: SetFundingSettingsRequest, options?: CoinbaseCallOptions): Promise<SetFundingSettingsResponse>;
|
|
64
|
+
listMarketData(request: ListMarketDataRequest, options?: CoinbaseCallOptions): Promise<ListMarketDataResponse>;
|
|
57
65
|
}
|
|
@@ -14,7 +14,9 @@
|
|
|
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, GetCrossMarginOverviewResponse as internalGetCrossMarginOverviewResponse, ListTFObligationsResponse as internalListTFObligationsResponse, ListFinancingEligibleAssetsResponse as internalListFinancingEligibleAssetsResponse } 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, ListTFObligationsResponse as internalListTFObligationsResponse, ListFinancingEligibleAssetsResponse as internalListFinancingEligibleAssetsResponse, GetCrossMarginRiskParametersResponse as internalGetCrossMarginRiskParametersResponse, GetCrossMarginPrimeOverviewResponse as internalGetCrossMarginPrimeOverviewResponse, SetFundingSettingsResponse as internalSetFundingSettingsResponse, GetMarketDataResponse as internalGetMarketDataResponse, MarketData } from '../model/';
|
|
18
|
+
import { Pagination } from '../shared/pagination';
|
|
19
|
+
import { PaginatedResponseMethods, BasePaginatedRequest } from '../shared/paginatedResponse';
|
|
18
20
|
export type ListExistingLocatesRequest = {
|
|
19
21
|
portfolioId: string;
|
|
20
22
|
locateIds?: string[];
|
|
@@ -101,3 +103,26 @@ export type ListTFObligationsRequest = {
|
|
|
101
103
|
export type ListTFObligationsResponse = Brand<internalListTFObligationsResponse, 'ListTFObligationsResponse'>;
|
|
102
104
|
export type ListFinancingEligibleAssetsRequest = Record<string, never>;
|
|
103
105
|
export type ListFinancingEligibleAssetsResponse = Brand<internalListFinancingEligibleAssetsResponse, 'ListFinancingEligibleAssetsResponse'>;
|
|
106
|
+
export type GetCrossMarginRiskParametersRequest = {
|
|
107
|
+
entityId: string;
|
|
108
|
+
};
|
|
109
|
+
export type GetCrossMarginRiskParametersResponse = Brand<internalGetCrossMarginRiskParametersResponse, 'GetCrossMarginRiskParametersResponse'>;
|
|
110
|
+
export type GetCrossMarginPrimeOverviewRequest = {
|
|
111
|
+
entityId: string;
|
|
112
|
+
};
|
|
113
|
+
export type GetCrossMarginPrimeOverviewResponse = Brand<internalGetCrossMarginPrimeOverviewResponse, 'GetCrossMarginPrimeOverviewResponse'>;
|
|
114
|
+
export type SetFundingSettingsRequest = {
|
|
115
|
+
entityId: string;
|
|
116
|
+
designatedFundingPortfolioId: string;
|
|
117
|
+
automaticConversionEnabled: boolean;
|
|
118
|
+
automaticLoanEnabled: boolean;
|
|
119
|
+
automaticExcessReturnEnabled: boolean;
|
|
120
|
+
excessFundsTargetAmount: string;
|
|
121
|
+
};
|
|
122
|
+
export type SetFundingSettingsResponse = Brand<internalSetFundingSettingsResponse, 'SetFundingSettingsResponse'>;
|
|
123
|
+
export type ListMarketDataRequest = Pagination & {
|
|
124
|
+
entityId: string;
|
|
125
|
+
};
|
|
126
|
+
type BaseListMarketDataResponse = Brand<internalGetMarketDataResponse, 'ListMarketDataResponse'>;
|
|
127
|
+
export type ListMarketDataResponse = BaseListMarketDataResponse & PaginatedResponseMethods<ListMarketDataRequest & BasePaginatedRequest, BaseListMarketDataResponse, MarketData>;
|
|
128
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { createCredentialsFromEnv } from './shared/envUtils';
|
|
|
19
19
|
export { CoinbasePrimeClientException, CoinbasePrimeException } from './errors';
|
|
20
20
|
export { validate, isValidUUID } from './shared/validation';
|
|
21
21
|
export type { ValidationError, PropertyValidator } from './shared/validation';
|
|
22
|
+
export { AdvancedTransfersService, IAdvancedTransfersService, } from './advancedTransfers';
|
|
22
23
|
export { ActivitiesService, IActivitiesService } from './activities';
|
|
23
24
|
export { AddressBooksService, IAddressBooksService } from './addressBooks';
|
|
24
25
|
export { AllocationService, IAllocationService } from './allocations';
|
|
@@ -40,6 +41,7 @@ export { UsersService, IUsersService } from './users';
|
|
|
40
41
|
export { WalletsService, IWalletsService } from './wallets';
|
|
41
42
|
export type * from './model/';
|
|
42
43
|
export * from './model/enums/';
|
|
44
|
+
export type { CancelAdvancedTransferRequest, CancelAdvancedTransferResponse, CreateAdvancedTransferRequest, CreateAdvancedTransferResponse, ListAdvancedTransferTransactionsRequest, ListAdvancedTransferTransactionsResponse, ListAdvancedTransfersRequest, ListAdvancedTransfersResponse, } from './advancedTransfers/types';
|
|
43
45
|
export type { GetActivityRequest, GetActivityResponse, GetPortfolioActivitiesRequest, GetPortfolioActivityResponse, ListEntityActivitiesRequest, ListEntityActivitiesResponse, ListPortfolioActivitiesRequest, ListPortfolioActivitiesResponse, } from './activities/types';
|
|
44
46
|
export type { CreateAddressBookRequest, CreateAddressBookResponse, ListAddressBooksRequest, ListAddressBooksResponse, } from './addressBooks/types';
|
|
45
47
|
export type { CreateAllocationRequest, CreateAllocationResponse, CreateNetAllocationRequest, CreateNetAllocationResponse, ListNetAllocationsRequest, ListNetAllocationsResponse, ListPortfolioAllocationsRequest, ListPortfolioAllocationsResponse, GetAllocationRequest, GetAllocationResponse, } from './allocations/types';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { XMLiquidationStatus } from './enums/XMLiquidationStatus';
|
|
21
|
+
export type ActiveLiquidationSummary = {
|
|
22
|
+
/**
|
|
23
|
+
* Financing liquidation UUID
|
|
24
|
+
*/
|
|
25
|
+
liquidationId?: string;
|
|
26
|
+
status?: XMLiquidationStatus;
|
|
27
|
+
/**
|
|
28
|
+
* USD notional shortfall amount that triggered the liquidation
|
|
29
|
+
*/
|
|
30
|
+
shortfallAmount?: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Breakdown of the components of derivatives equity.
|
|
22
|
+
*/
|
|
23
|
+
export type BetaCrossMarginPrimeDerivativesEquityBreakdown = {
|
|
24
|
+
/**
|
|
25
|
+
* Derivatives cash balance component.
|
|
26
|
+
*/
|
|
27
|
+
cashBalance?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Unrealized PnL component of derivatives equity.
|
|
30
|
+
*/
|
|
31
|
+
unrealizedPnl?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Realized PnL component of derivatives equity.
|
|
34
|
+
*/
|
|
35
|
+
realizedPnl?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Accrued funding PnL component of derivatives equity.
|
|
38
|
+
*/
|
|
39
|
+
accruedFundingPnl?: string;
|
|
40
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { BetaCrossMarginPrimeDerivativesEquityBreakdown } from './BetaCrossMarginPrimeDerivativesEquityBreakdown';
|
|
21
|
+
import { BetaCrossMarginPrimeRiskNettingInfo } from './BetaCrossMarginPrimeRiskNettingInfo';
|
|
22
|
+
import { BetaCrossMarginPrimeSpotEquityBreakdown } from './BetaCrossMarginPrimeSpotEquityBreakdown';
|
|
23
|
+
import { BetaPrimeXMHealthStatus } from './enums/BetaPrimeXMHealthStatus';
|
|
24
|
+
import { BetaPrimeXMMarginCallThresholds } from './BetaPrimeXMMarginCallThresholds';
|
|
25
|
+
import { BetaPrimeXMMarginRequirementType } from './enums/BetaPrimeXMMarginRequirementType';
|
|
26
|
+
/**
|
|
27
|
+
* Cross-margin account summary and nested breakdowns.
|
|
28
|
+
*/
|
|
29
|
+
export type BetaCrossMarginPrimeMarginSummary = {
|
|
30
|
+
/**
|
|
31
|
+
* Cross Margin Margin Requirement (XMMR) notional
|
|
32
|
+
*/
|
|
33
|
+
marginRequirement?: string;
|
|
34
|
+
marginRequirementType?: BetaPrimeXMMarginRequirementType;
|
|
35
|
+
/**
|
|
36
|
+
* Equity notional
|
|
37
|
+
*/
|
|
38
|
+
accountEquity?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Equity - XMMR (margin excess is > 0)
|
|
41
|
+
*/
|
|
42
|
+
marginExcessShortfall?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Credit consumed from Cross Margin Credit Limit (XMCL)
|
|
45
|
+
*/
|
|
46
|
+
consumedCredit?: string;
|
|
47
|
+
/**
|
|
48
|
+
* XM Credit Limit (XMCL) is the maximum notional USD of total fiat and digital asset loans
|
|
49
|
+
*/
|
|
50
|
+
xmCreditLimit?: string;
|
|
51
|
+
/**
|
|
52
|
+
* XM Margin Limit (XMML) is the maximum notional USD deficit
|
|
53
|
+
*/
|
|
54
|
+
xmMarginLimit?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Amount of the XM margin limit consumed by excess deficit.
|
|
57
|
+
*/
|
|
58
|
+
consumedMarginLimit?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Equity attributed by spot
|
|
61
|
+
*/
|
|
62
|
+
spotEquity?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Equity attributed by futures
|
|
65
|
+
*/
|
|
66
|
+
futuresEquity?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Gross market value.
|
|
69
|
+
*/
|
|
70
|
+
grossMarketValue?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Net market value.
|
|
73
|
+
*/
|
|
74
|
+
netMarketValue?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Net exposure.
|
|
77
|
+
*/
|
|
78
|
+
netExposure?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Gross leverage.
|
|
81
|
+
*/
|
|
82
|
+
grossLeverage?: string;
|
|
83
|
+
spotEquityBreakdown?: BetaCrossMarginPrimeSpotEquityBreakdown;
|
|
84
|
+
derivativesEquityBreakdown?: BetaCrossMarginPrimeDerivativesEquityBreakdown;
|
|
85
|
+
riskNettingInfo?: BetaCrossMarginPrimeRiskNettingInfo;
|
|
86
|
+
healthStatus?: BetaPrimeXMHealthStatus;
|
|
87
|
+
/**
|
|
88
|
+
* Equity ratio.
|
|
89
|
+
*/
|
|
90
|
+
equityRatio?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Deficit ratio.
|
|
93
|
+
*/
|
|
94
|
+
deficitRatio?: string;
|
|
95
|
+
marginThresholds?: BetaPrimeXMMarginCallThresholds;
|
|
96
|
+
/**
|
|
97
|
+
* FCM excess available to return.
|
|
98
|
+
*/
|
|
99
|
+
fcmExcessAvailableToReturn?: string;
|
|
100
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { BetaCrossMarginPrimeXMPosition } from './BetaCrossMarginPrimeXMPosition';
|
|
21
|
+
import { BetaPrimeXMMarginRequirementBreakdown } from './BetaPrimeXMMarginRequirementBreakdown';
|
|
22
|
+
import { BetaPrimeXMOffsetCreditBreakdown } from './BetaPrimeXMOffsetCreditBreakdown';
|
|
23
|
+
/**
|
|
24
|
+
* Groups XM margin requirement components, offset credits, and per-asset rows.
|
|
25
|
+
*/
|
|
26
|
+
export type BetaCrossMarginPrimeRiskNettingInfo = {
|
|
27
|
+
/**
|
|
28
|
+
* Derivatives Clearing Organization Margin Requirement (DMR) is the margin requirement for all futures positions, derived from the Derivatives Clearing Organization model
|
|
29
|
+
*/
|
|
30
|
+
dcoMarginRequirement?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Portfolio Margin Requirement (PMR) is the margin requirement for all spot positions, derived from the XM model
|
|
33
|
+
*/
|
|
34
|
+
portfolioMarginRequirement?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Integrated Portfolio Margin Requirement (IPMR) is the margin requirement for all spot positions + futures positions with underlying assets eligible in Portfolio Margin.
|
|
37
|
+
*/
|
|
38
|
+
integratedPortfolioMarginRequirement?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Ineligible Futures Margin Requirement (IFMR) is the margin requirement for IPMR-ineligible futures contracts
|
|
41
|
+
*/
|
|
42
|
+
ineligibleFuturesMarginRequirement?: string;
|
|
43
|
+
pmrBreakdown?: BetaPrimeXMMarginRequirementBreakdown;
|
|
44
|
+
ipmrBreakdown?: BetaPrimeXMMarginRequirementBreakdown;
|
|
45
|
+
portfolioMarginOffsetCreditBreakdown?: BetaPrimeXMOffsetCreditBreakdown;
|
|
46
|
+
integratedPortfolioMarginOffsetCreditBreakdown?: BetaPrimeXMOffsetCreditBreakdown;
|
|
47
|
+
/**
|
|
48
|
+
* Netted positions used in the model calculation.
|
|
49
|
+
*/
|
|
50
|
+
xmPositions?: Array<BetaCrossMarginPrimeXMPosition>;
|
|
51
|
+
};
|
package/dist/types/model/{TravelRuleEntry.d.ts → BetaCrossMarginPrimeSpotEquityBreakdown.d.ts}
RENAMED
|
@@ -17,22 +17,28 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
-
import { BlockchainAddress } from './BlockchainAddress';
|
|
21
|
-
import { TravelRuleParty } from './TravelRuleParty';
|
|
22
|
-
import { TravelRuleWalletDetails } from './TravelRuleWalletDetails';
|
|
23
|
-
import { VASP } from './VASP';
|
|
24
20
|
/**
|
|
25
|
-
*
|
|
21
|
+
* Breakdown of the components of spot equity.
|
|
26
22
|
*/
|
|
27
|
-
export type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
export type BetaCrossMarginPrimeSpotEquityBreakdown = {
|
|
24
|
+
/**
|
|
25
|
+
* PM cash balance component of spot equity.
|
|
26
|
+
*/
|
|
27
|
+
cashBalance?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Long market value component of spot equity.
|
|
30
|
+
*/
|
|
31
|
+
longMarketValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Short market value component of spot equity.
|
|
34
|
+
*/
|
|
35
|
+
shortMarketValue?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Short collateral component of spot equity.
|
|
38
|
+
*/
|
|
39
|
+
shortCollateral?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Pending transfers affecting spot equity.
|
|
42
|
+
*/
|
|
43
|
+
pendingTransfers?: string;
|
|
38
44
|
};
|