@coinbase-sample/prime-sdk-ts 0.8.2 → 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/advancedTransfers/index.js +103 -0
- package/dist/advancedTransfers/types.js +2 -0
- package/dist/clients/clientWithServices.js +14 -0
- package/dist/constants.js +1 -1
- package/dist/financing/index.js +73 -0
- package/dist/futures/index.js +12 -0
- package/dist/index.js +3 -1
- package/dist/model/{CreateAddressGroup.js → ActiveLiquidationSummary.js} +1 -1
- package/dist/model/{DateOfBirth.js → AdvancedTransfer.js} +1 -1
- package/dist/model/{GetWalletAddressesResponse.js → BetaCrossMarginPrimeDerivativesEquityBreakdown.js} +1 -1
- package/dist/model/{StakingInputs.js → BetaCrossMarginPrimeMarginSummary.js} +1 -1
- package/dist/model/BetaCrossMarginPrimeRiskNettingInfo.js +21 -0
- 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/BlindMatchMetadata.js +21 -0
- package/dist/model/CancelAdvancedTransferResponse.js +21 -0
- package/dist/model/CommissionDetailTotal.js +21 -0
- package/dist/model/CreateAdvancedTransferRequest.js +21 -0
- package/dist/model/CreateAdvancedTransferResponse.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/FcmScheduledMaintenance.js +21 -0
- package/dist/model/FcmTradingSessionDetails.js +21 -0
- package/dist/model/FundMovement.js +21 -0
- package/dist/model/FutureProductDetails.js +21 -0
- package/dist/model/GetCrossMarginPrimeOverviewResponse.js +21 -0
- package/dist/model/GetCrossMarginRiskParametersResponse.js +21 -0
- package/dist/model/GetFcmEquityResponse.js +21 -0
- package/dist/model/GetMarketDataResponse.js +21 -0
- package/dist/model/GetTransactionTravelRuleDataResponse.js +21 -0
- package/dist/model/ListAdvancedTransferTransactionsResponse.js +21 -0
- package/dist/model/ListAdvancedTransfersResponse.js +21 -0
- package/dist/model/MarketData.js +21 -0
- package/dist/model/PerpetualProductDetails.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/ValidatorAllocation.js +21 -0
- package/dist/model/ValidatorUnstakePreview.js +21 -0
- package/dist/model/enums/AdvancedTransferState.js +34 -0
- package/dist/model/enums/AdvancedTransferType.js +29 -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/ContractExpiryType.js +31 -0
- package/dist/model/enums/ExpiringContractStatus.js +31 -0
- package/dist/model/enums/FcmMarginHealthState.js +33 -0
- package/dist/model/enums/FcmTradingSessionClosedReason.js +32 -0
- package/dist/model/enums/FcmTradingSessionState.js +34 -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/ProductType.js +30 -0
- package/dist/model/enums/RewardSubtype.js +2 -1
- package/dist/model/enums/RiskManagementType.js +31 -0
- package/dist/model/enums/SecondaryPermission.js +31 -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/advancedTransfers/index.d.ts +31 -0
- package/dist/types/advancedTransfers/types.d.ts +46 -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/futures/index.d.ts +4 -2
- package/dist/types/futures/types.d.ts +5 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/model/ActiveLiquidationSummary.d.ts +31 -0
- package/dist/types/model/{TravelRuleEntry.d.ts → AdvancedTransfer.d.ts} +11 -16
- 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/BetaCrossMarginPrimeSpotEquityBreakdown.d.ts +44 -0
- 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/BetaGetMarketDataResponse.d.ts +28 -0
- 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/BetaPrimeXMMarginThreshold.d.ts +26 -0
- 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/BlindMatchMetadata.d.ts +37 -0
- package/dist/types/model/CancelAdvancedTransferResponse.d.ts +28 -0
- package/dist/types/model/CommissionDetailTotal.d.ts +40 -0
- package/dist/types/model/{CreateAddressGroup.d.ts → CreateAdvancedTransferRequest.d.ts} +7 -7
- package/dist/types/model/{DateOfBirth.d.ts → CreateAdvancedTransferResponse.d.ts} +7 -5
- 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/{StakingInputs.d.ts → FcmScheduledMaintenance.d.ts} +8 -4
- package/dist/types/model/FcmTradingSessionDetails.d.ts +51 -0
- package/dist/types/model/Fill.d.ts +4 -0
- package/dist/types/model/FundMovement.d.ts +30 -0
- package/dist/types/model/FutureProductDetails.d.ts +59 -0
- package/dist/types/model/GetCrossMarginPrimeOverviewResponse.d.ts +31 -0
- package/dist/types/model/GetCrossMarginRiskParametersResponse.d.ts +43 -0
- package/dist/types/model/GetFcmEquityResponse.d.ts +37 -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/GetTransactionTravelRuleDataResponse.d.ts +31 -0
- package/dist/types/model/ListAdvancedTransferTransactionsResponse.d.ts +29 -0
- package/dist/types/model/ListAdvancedTransfersResponse.d.ts +28 -0
- 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/PerpetualProductDetails.d.ts +41 -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/PrimeXMMarginThreshold.d.ts +26 -0
- 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/ValidatorAllocation.d.ts +32 -0
- package/dist/types/model/ValidatorUnstakePreview.d.ts +40 -0
- package/dist/types/model/WalletUnstakeInputs.d.ts +5 -0
- package/dist/types/model/XMRiskNettingInfo.d.ts +2 -2
- package/dist/types/model/enums/AdvancedTransferState.d.ts +30 -0
- package/dist/types/model/enums/AdvancedTransferType.d.ts +25 -0
- 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/ContractExpiryType.d.ts +27 -0
- package/dist/types/model/enums/ExpiringContractStatus.d.ts +27 -0
- package/dist/types/model/enums/FcmMarginHealthState.d.ts +29 -0
- package/dist/types/model/enums/FcmTradingSessionClosedReason.d.ts +28 -0
- package/dist/types/model/enums/FcmTradingSessionState.d.ts +30 -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/{VASP.d.ts → enums/ProductType.d.ts} +6 -7
- package/dist/types/model/enums/RewardSubtype.d.ts +3 -2
- package/dist/types/model/enums/RiskManagementType.d.ts +27 -0
- package/dist/types/model/{TravelRuleWalletDetails.d.ts → enums/SecondaryPermission.d.ts} +7 -8
- 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 +35 -4
- 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/TravelRuleEntry.js +0 -21
- package/dist/model/TravelRuleWalletDetails.js +0 -21
- package/dist/model/VASP.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/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
|
@@ -18,10 +18,12 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
import { LimitOrderEdit } from './LimitOrderEdit';
|
|
21
|
+
import { CommissionDetailTotal } from './CommissionDetailTotal';
|
|
21
22
|
import { OrderEdit } from './OrderEdit';
|
|
22
23
|
import { OrderSide } from './enums/OrderSide';
|
|
23
24
|
import { OrderStatus } from './enums/OrderStatus';
|
|
24
25
|
import { OrderType } from './enums/OrderType';
|
|
26
|
+
import { ProductType } from './enums/ProductType';
|
|
25
27
|
import { TimeInForceType } from './enums/TimeInForceType';
|
|
26
28
|
export type Order = {
|
|
27
29
|
/**
|
|
@@ -152,4 +154,6 @@ export type Order = {
|
|
|
152
154
|
* The wig (would if good) level for PEG orders - best price opposite to limit_price
|
|
153
155
|
*/
|
|
154
156
|
wigLevel?: string;
|
|
157
|
+
productType?: ProductType;
|
|
158
|
+
commissionDetailTotal?: CommissionDetailTotal;
|
|
155
159
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export type PerpetualProductDetails = {
|
|
21
|
+
/**
|
|
22
|
+
* Open interest
|
|
23
|
+
*/
|
|
24
|
+
openInterest?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current funding rate
|
|
27
|
+
*/
|
|
28
|
+
fundingRate?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Next funding time
|
|
31
|
+
*/
|
|
32
|
+
fundingTime?: Date;
|
|
33
|
+
/**
|
|
34
|
+
* Maximum leverage allowed
|
|
35
|
+
*/
|
|
36
|
+
maxLeverage?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The type of underlying for the perpetual product
|
|
39
|
+
*/
|
|
40
|
+
underlyingType?: string;
|
|
41
|
+
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { SecondaryPermission } from './enums/SecondaryPermission';
|
|
20
21
|
import { UserRole } from './enums/UserRole';
|
|
21
22
|
export type PortfolioUser = {
|
|
22
23
|
/**
|
|
@@ -40,4 +41,12 @@ export type PortfolioUser = {
|
|
|
40
41
|
*/
|
|
41
42
|
entityId?: string;
|
|
42
43
|
role?: UserRole;
|
|
44
|
+
/**
|
|
45
|
+
* All primary roles assigned to the user.
|
|
46
|
+
*/
|
|
47
|
+
roles?: Array<UserRole>;
|
|
48
|
+
/**
|
|
49
|
+
* All secondary permissions assigned to the user.
|
|
50
|
+
*/
|
|
51
|
+
secondaryPermissions?: Array<SecondaryPermission>;
|
|
43
52
|
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { ValidatorUnstakePreview } from './ValidatorUnstakePreview';
|
|
20
21
|
/**
|
|
21
22
|
* PreviewUnstakeResponse contains the response data from previewing an unstaking operation.
|
|
22
23
|
*/
|
|
@@ -25,4 +26,20 @@ export type PreviewUnstakeResponse = {
|
|
|
25
26
|
* Estimated amount that would be unstaked
|
|
26
27
|
*/
|
|
27
28
|
estimatedAmount: string;
|
|
29
|
+
/**
|
|
30
|
+
* The wallet ID
|
|
31
|
+
*/
|
|
32
|
+
walletId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The blockchain address of the wallet
|
|
35
|
+
*/
|
|
36
|
+
walletAddress?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Timestamp at which this preview was generated (ISO 8601)
|
|
39
|
+
*/
|
|
40
|
+
currentTimestamp?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Per-validator breakdown of the unstake simulation
|
|
43
|
+
*/
|
|
44
|
+
validators?: Array<ValidatorUnstakePreview>;
|
|
28
45
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { PrimeXMMarginThreshold } from './PrimeXMMarginThreshold';
|
|
21
|
+
export type PrimeXMMarginCallThresholds = {
|
|
22
|
+
/**
|
|
23
|
+
* Deficit threshold (DT).
|
|
24
|
+
*/
|
|
25
|
+
deficitThreshold?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Warning threshold (WT).
|
|
28
|
+
*/
|
|
29
|
+
warningThreshold?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Urgent margin call threshold (UMCT).
|
|
32
|
+
*/
|
|
33
|
+
criticalThreshold?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Liquidation threshold (LT).
|
|
36
|
+
*/
|
|
37
|
+
liquidationThreshold?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Structured margin thresholds by margin level.
|
|
40
|
+
*/
|
|
41
|
+
marginThresholds?: Array<PrimeXMMarginThreshold>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export type PrimeXMMarginRequirementBreakdown = {
|
|
21
|
+
/**
|
|
22
|
+
* Base margin requirement component.
|
|
23
|
+
*/
|
|
24
|
+
baseMargin?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Volatility add-on component.
|
|
27
|
+
*/
|
|
28
|
+
volatilityAddon?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Liquidity add-on component.
|
|
31
|
+
*/
|
|
32
|
+
liquidityAddon?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Credits that offset margin charges due to portfolio composition.
|
|
35
|
+
*/
|
|
36
|
+
offsetCredit?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Futures margin charge applied for any futures trades of the opposing direction but of the same underlying.
|
|
39
|
+
*/
|
|
40
|
+
futuresMargin?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { PrimeXMMarginLevel } from './enums/PrimeXMMarginLevel';
|
|
21
|
+
import { PrimeXMMarginThresholdType } from './enums/PrimeXMMarginThresholdType';
|
|
22
|
+
export type PrimeXMMarginThreshold = {
|
|
23
|
+
marginLevel?: PrimeXMMarginLevel;
|
|
24
|
+
thresholdType?: PrimeXMMarginThresholdType;
|
|
25
|
+
thresholdValue?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
export type PrimeXMOffsetCreditBreakdown = {
|
|
21
|
+
/**
|
|
22
|
+
* Basis offset credit component.
|
|
23
|
+
*/
|
|
24
|
+
basisCredit?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Long/short tier-pair offset credit.
|
|
27
|
+
*/
|
|
28
|
+
longShortCredit?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Long/long tier-pair offset credit.
|
|
31
|
+
*/
|
|
32
|
+
longLongCredit?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Short/short tier-pair offset credit.
|
|
35
|
+
*/
|
|
36
|
+
shortShortCredit?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Same-tier offset credit.
|
|
39
|
+
*/
|
|
40
|
+
sameTierCredit?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Total offset credit.
|
|
43
|
+
*/
|
|
44
|
+
totalCredit?: string;
|
|
45
|
+
};
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { FcmTradingSessionDetails } from './FcmTradingSessionDetails';
|
|
21
|
+
import { FutureProductDetails } from './FutureProductDetails';
|
|
20
22
|
import { ProductPermissions } from './enums/ProductPermissions';
|
|
23
|
+
import { ProductType } from './enums/ProductType';
|
|
21
24
|
import { RFQProductDetails } from './RFQProductDetails';
|
|
22
25
|
export type Product = {
|
|
23
26
|
/**
|
|
@@ -57,4 +60,7 @@ export type Product = {
|
|
|
57
60
|
*/
|
|
58
61
|
priceIncrement?: string;
|
|
59
62
|
rfqProductDetails?: RFQProductDetails;
|
|
63
|
+
productType?: ProductType;
|
|
64
|
+
fcmTradingSessionDetails?: FcmTradingSessionDetails;
|
|
65
|
+
futureProductDetails?: FutureProductDetails;
|
|
60
66
|
};
|
|
@@ -23,4 +23,8 @@ export type QuoteResponse = {
|
|
|
23
23
|
bestPrice?: string;
|
|
24
24
|
orderTotal?: string;
|
|
25
25
|
priceInclusiveOfFees?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Echo of the quote_duration_ms supplied in the request. 0 if the client did not supply a value, in which case the server applies the default of 3000 ms (3 seconds).
|
|
28
|
+
*/
|
|
29
|
+
quoteDurationMs?: string;
|
|
26
30
|
};
|
|
@@ -32,4 +32,8 @@ export type RFQ = {
|
|
|
32
32
|
quoteValue?: string;
|
|
33
33
|
limitPrice: string;
|
|
34
34
|
settlCurrency?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional quote timeout in milliseconds. Defaults to 3000 ms (3 seconds) if not specified. Maximum allowed value is 30000 ms (30 seconds); requests with a larger value are rejected. Mirrors FIX tag 8090 (QuoteRequestGoodForMs).
|
|
37
|
+
*/
|
|
38
|
+
quoteDurationMs?: string;
|
|
35
39
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* SetFundingSettingsRequest sets FCM funding configuration for an entity (creates a PCS proposal). entity_id is also bound from the URL path.
|
|
22
|
+
*/
|
|
23
|
+
export type SetFundingSettingsRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* Set the Derivatives Funding Portfolio that will be used to fund FCM margin calls and receive excess margin sweeps. Only one portfolio per entity.
|
|
26
|
+
*/
|
|
27
|
+
designatedFundingPortfolioId: string;
|
|
28
|
+
/**
|
|
29
|
+
* When true, USDC in your Derivatives Funding Portfolio will be converted to USD to meet FCM margin calls (Auto-Convert USDC).
|
|
30
|
+
*/
|
|
31
|
+
automaticConversionEnabled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* When true, Coinbase affiliates may initiate loans on your behalf to meet FCM margin calls, per your Lending agreement. Available to Portfolio Margin or Cross Margin clients only. (Auto-Initiate Loans)
|
|
34
|
+
*/
|
|
35
|
+
automaticLoanEnabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* When true, any FCM account balance above your margin requirements will be automatically swept back to your Derivatives funding portfolio. (Auto-Return Excess Margin)
|
|
38
|
+
*/
|
|
39
|
+
automaticExcessReturnEnabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Weekend Buying Power: Setting a target amount to maintain in your Futures account above margin requirements. You can only withdraw funds in excess of this amount.
|
|
42
|
+
*/
|
|
43
|
+
excessFundsTargetAmount: string;
|
|
44
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* SetFundingSettingsResponse returns PCS activity metadata after the proposal is created.
|
|
22
|
+
*/
|
|
23
|
+
export type SetFundingSettingsResponse = {
|
|
24
|
+
/**
|
|
25
|
+
* Identifier for the created activity / proposal
|
|
26
|
+
*/
|
|
27
|
+
activityId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Type of the activity (e.g. PCS proposal type)
|
|
30
|
+
*/
|
|
31
|
+
activityType?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Number of approvals still required before the change applies
|
|
34
|
+
*/
|
|
35
|
+
numApprovalsRemaining?: number;
|
|
36
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* TierPairRateEntry represents a single (tier_a, tier_b) -> rate entry in an offset credit matrix.
|
|
22
|
+
*/
|
|
23
|
+
export type TierPairRateEntry = {
|
|
24
|
+
/**
|
|
25
|
+
* First tier in the pair
|
|
26
|
+
*/
|
|
27
|
+
tierA?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Second tier in the pair
|
|
30
|
+
*/
|
|
31
|
+
tierB?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Credit rate for this tier pair
|
|
34
|
+
*/
|
|
35
|
+
rate?: string;
|
|
36
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* ValidatorAllocation specifies the validator and amount for staking or unstaking. Used for granular ETH V2 validator-level staking or unstaking operations.
|
|
22
|
+
*/
|
|
23
|
+
export type ValidatorAllocation = {
|
|
24
|
+
/**
|
|
25
|
+
* The validator address for performing staking operations
|
|
26
|
+
*/
|
|
27
|
+
validatorAddress: string;
|
|
28
|
+
/**
|
|
29
|
+
* Amount for performing staking operations with this validator
|
|
30
|
+
*/
|
|
31
|
+
amount: string;
|
|
32
|
+
};
|
|
@@ -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
|
+
* ValidatorUnstakePreview contains the per-validator breakdown for an unstake preview.
|
|
22
|
+
*/
|
|
23
|
+
export type ValidatorUnstakePreview = {
|
|
24
|
+
/**
|
|
25
|
+
* Public address of the validator being unstaked from
|
|
26
|
+
*/
|
|
27
|
+
validatorAddress?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Estimated amount that would be unstaked from this validator (in ETH)
|
|
30
|
+
*/
|
|
31
|
+
estimatedUnstakingAmount?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Estimated time until this validator\'s unstake completes, in hours
|
|
34
|
+
*/
|
|
35
|
+
unstakeTimeEstimateInHours?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Estimated date when this validator\'s unstake will complete (ISO 8601)
|
|
38
|
+
*/
|
|
39
|
+
estimatedUnstakeDate?: string;
|
|
40
|
+
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { ValidatorAllocation } from './ValidatorAllocation';
|
|
20
21
|
/**
|
|
21
22
|
* WalletUnstakeInputs contains the custom inputs for unstaking operations on a wallet. Requirements and supported fields vary by asset type.
|
|
22
23
|
*/
|
|
@@ -25,4 +26,8 @@ export type WalletUnstakeInputs = {
|
|
|
25
26
|
* Optional amount to unstake (ETH only). If omitted, the wallet will unstake the maximum amount available
|
|
26
27
|
*/
|
|
27
28
|
amount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* (Alpha) Optional validator-level allocations for ETH V2 unstaking. Allows specifying which validators to unstake from and how much. This feature is in alpha. Please reach out to your Coinbase Prime account manager for more information
|
|
31
|
+
*/
|
|
32
|
+
validatorAllocations?: Array<ValidatorAllocation>;
|
|
28
33
|
};
|
|
@@ -21,9 +21,9 @@ import { MarginAddOn } from './MarginAddOn';
|
|
|
21
21
|
import { XMPosition } from './XMPosition';
|
|
22
22
|
export type XMRiskNettingInfo = {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Derivatives Clearing Organization Margin Requirement (DMR) is the margin requirement for all futures positions, derived from the Derivatives Clearing Organization model
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
dcoMarginRequirement?: string;
|
|
27
27
|
/**
|
|
28
28
|
* Portfolio Margin Requirement (PMR) is the margin requirement for all spot positions, derived from the XM model
|
|
29
29
|
*/
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* AdvancedTransferState represents the lifecycle state of an advanced transfer.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum AdvancedTransferState {
|
|
24
|
+
AdvancedTransferStateCreated = "ADVANCED_TRANSFER_STATE_CREATED",
|
|
25
|
+
AdvancedTransferStateProcessing = "ADVANCED_TRANSFER_STATE_PROCESSING",
|
|
26
|
+
AdvancedTransferStateDone = "ADVANCED_TRANSFER_STATE_DONE",
|
|
27
|
+
AdvancedTransferStateCancelled = "ADVANCED_TRANSFER_STATE_CANCELLED",
|
|
28
|
+
AdvancedTransferStateFailed = "ADVANCED_TRANSFER_STATE_FAILED",
|
|
29
|
+
AdvancedTransferStateExpired = "ADVANCED_TRANSFER_STATE_EXPIRED"
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* AdvancedTransferType specifies the type of advanced transfer.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum AdvancedTransferType {
|
|
24
|
+
AdvancedTransferTypeBlindMatch = "ADVANCED_TRANSFER_TYPE_BLIND_MATCH"
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* - 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.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum BetaPrimeXMControlStatus {
|
|
24
|
+
XmControlStatusUnspecified = "XM_CONTROL_STATUS_UNSPECIFIED",
|
|
25
|
+
TradesAndWithdrawals = "TRADES_AND_WITHDRAWALS",
|
|
26
|
+
TradesOnly = "TRADES_ONLY",
|
|
27
|
+
SessionLocked = "SESSION_LOCKED"
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* - HEALTH_STATUS_HEALTHY: Margin level is healthy. - HEALTH_STATUS_WARNING: 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. - HEALTH_STATUS_CRITICAL: Margin level is breaching the UMCT and, as defined in the margin methodology, this will trigger an urgent margin call. - HEALTH_STATUS_SUSPENDED: Trading and withdrawals are suspended per XM margin methodology. - HEALTH_STATUS_RESTRICTED: Account is in a restricted state per XM margin methodology. - HEALTH_STATUS_PRE_LIQUIDATION: 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. - HEALTH_STATUS_LIQUIDATING: Liquidation has commenced. - HEALTH_STATUS_IN_DEFICIT: 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).
|
|
22
|
+
*/
|
|
23
|
+
export declare enum BetaPrimeXMHealthStatus {
|
|
24
|
+
HealthStatusHealthy = "HEALTH_STATUS_HEALTHY",
|
|
25
|
+
HealthStatusWarning = "HEALTH_STATUS_WARNING",
|
|
26
|
+
HealthStatusCritical = "HEALTH_STATUS_CRITICAL",
|
|
27
|
+
HealthStatusSuspended = "HEALTH_STATUS_SUSPENDED",
|
|
28
|
+
HealthStatusRestricted = "HEALTH_STATUS_RESTRICTED",
|
|
29
|
+
HealthStatusPreLiquidation = "HEALTH_STATUS_PRE_LIQUIDATION",
|
|
30
|
+
HealthStatusLiquidating = "HEALTH_STATUS_LIQUIDATING",
|
|
31
|
+
HealthStatusInDeficit = "HEALTH_STATUS_IN_DEFICIT"
|
|
32
|
+
}
|