@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
|
@@ -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,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
|
+
};
|
|
@@ -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,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
|
+
}
|
|
@@ -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
|
+
* - HEALTHY_THRESHOLD: Margin level is healthy. - WARNING_THRESHOLD: Margin level is breaching the warning threshold (WT) which will result in the issuance of a Margin Call if this is still the case by the scheduled next Margin Call (as defined in the margin methodology). WT is differentiated from DT in that it means margin health is approaching the UMCT. - URGENT_MARGIN_CALL_THRESHOLD: Urgent margin call threshold (UMCT): breaching UMCT per margin methodology. - LIQUIDATION_THRESHOLD: Liquidation threshold (LT): breaching LT; SESSION_LOCKED may apply and liquidation may commence per margin methodology. - DEFICIT_THRESHOLD: Margin level is breaching the deficit threshold (DT) which will result in the issuance of a Margin Call if this is still the case by the scheduled next Margin Call time (as defined in the margin methodology).
|
|
22
|
+
*/
|
|
23
|
+
export declare enum BetaPrimeXMMarginLevel {
|
|
24
|
+
XmMarginLevelUnspecified = "XM_MARGIN_LEVEL_UNSPECIFIED",
|
|
25
|
+
HealthyThreshold = "HEALTHY_THRESHOLD",
|
|
26
|
+
WarningThreshold = "WARNING_THRESHOLD",
|
|
27
|
+
UrgentMarginCallThreshold = "URGENT_MARGIN_CALL_THRESHOLD",
|
|
28
|
+
LiquidationThreshold = "LIQUIDATION_THRESHOLD",
|
|
29
|
+
DeficitThreshold = "DEFICIT_THRESHOLD"
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* - MARGIN_REQUIREMENT_TYPE_DMR_PLUS_PMR: Integrated (netted) cross-margin requirement for spot assets and all derivatives contracts. - MARGIN_REQUIREMENT_TYPE_IPMR_PLUS_IFMR: Combined cross-margin requirement: Integrated Portfolio Margin (IPMR) plus Ineligible Futures Margin (IFMR).
|
|
22
|
+
*/
|
|
23
|
+
export declare enum BetaPrimeXMMarginRequirementType {
|
|
24
|
+
MarginRequirementTypeUnspecified = "MARGIN_REQUIREMENT_TYPE_UNSPECIFIED",
|
|
25
|
+
MarginRequirementTypeDmrPlusPmr = "MARGIN_REQUIREMENT_TYPE_DMR_PLUS_PMR",
|
|
26
|
+
MarginRequirementTypeIpmrPlusIfmr = "MARGIN_REQUIREMENT_TYPE_IPMR_PLUS_IFMR"
|
|
27
|
+
}
|
|
@@ -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
|
+
* - MARGIN_THRESHOLD_EQUITY_RATIO: Threshold based on equity ratio EQ / MR; triggers when EQ / MR >= threshold_value. - MARGIN_THRESHOLD_DEFICIT_RATIO: Threshold based on deficit ratio (MR - EQ) / XMML; triggers when (MR - EQ) / XMML > threshold_value.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum BetaPrimeXMMarginThresholdType {
|
|
24
|
+
MarginThresholdTypeUnspecified = "MARGIN_THRESHOLD_TYPE_UNSPECIFIED",
|
|
25
|
+
MarginThresholdEquityRatio = "MARGIN_THRESHOLD_EQUITY_RATIO",
|
|
26
|
+
MarginThresholdDeficitRatio = "MARGIN_THRESHOLD_DEFICIT_RATIO",
|
|
27
|
+
MarginThresholdNone = "MARGIN_THRESHOLD_NONE"
|
|
28
|
+
}
|
|
@@ -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 PrimeXMControlStatus {
|
|
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 PrimeXMHealthStatus {
|
|
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
|
+
}
|
|
@@ -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
|
+
* - HEALTHY_THRESHOLD: Margin level is healthy. - WARNING_THRESHOLD: Margin level is breaching the warning threshold (WT) which will result in the issuance of a Margin Call if this is still the case by the scheduled next Margin Call (as defined in the margin methodology). WT is differentiated from DT in that it means margin health is approaching the UMCT. - URGENT_MARGIN_CALL_THRESHOLD: Urgent margin call threshold (UMCT): breaching UMCT per margin methodology. - LIQUIDATION_THRESHOLD: Liquidation threshold (LT): breaching LT; SESSION_LOCKED may apply and liquidation may commence per margin methodology. - DEFICIT_THRESHOLD: Margin level is breaching the deficit threshold (DT) which will result in the issuance of a Margin Call if this is still the case by the scheduled next Margin Call time (as defined in the margin methodology).
|
|
22
|
+
*/
|
|
23
|
+
export declare enum PrimeXMMarginLevel {
|
|
24
|
+
XmMarginLevelUnspecified = "XM_MARGIN_LEVEL_UNSPECIFIED",
|
|
25
|
+
HealthyThreshold = "HEALTHY_THRESHOLD",
|
|
26
|
+
WarningThreshold = "WARNING_THRESHOLD",
|
|
27
|
+
UrgentMarginCallThreshold = "URGENT_MARGIN_CALL_THRESHOLD",
|
|
28
|
+
LiquidationThreshold = "LIQUIDATION_THRESHOLD",
|
|
29
|
+
DeficitThreshold = "DEFICIT_THRESHOLD"
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* - MARGIN_REQUIREMENT_TYPE_DMR_PLUS_PMR: Integrated (netted) cross-margin requirement for spot assets and all derivatives contracts. - MARGIN_REQUIREMENT_TYPE_IPMR_PLUS_IFMR: Combined cross-margin requirement: Integrated Portfolio Margin (IPMR) plus Ineligible Futures Margin (IFMR).
|
|
22
|
+
*/
|
|
23
|
+
export declare enum PrimeXMMarginRequirementType {
|
|
24
|
+
MarginRequirementTypeUnspecified = "MARGIN_REQUIREMENT_TYPE_UNSPECIFIED",
|
|
25
|
+
MarginRequirementTypeDmrPlusPmr = "MARGIN_REQUIREMENT_TYPE_DMR_PLUS_PMR",
|
|
26
|
+
MarginRequirementTypeIpmrPlusIfmr = "MARGIN_REQUIREMENT_TYPE_IPMR_PLUS_IFMR"
|
|
27
|
+
}
|
|
@@ -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
|
+
* - MARGIN_THRESHOLD_EQUITY_RATIO: Threshold based on equity ratio EQ / MR; triggers when EQ / MR >= threshold_value. - MARGIN_THRESHOLD_DEFICIT_RATIO: Threshold based on deficit ratio (MR - EQ) / XMML; triggers when (MR - EQ) / XMML > threshold_value.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum PrimeXMMarginThresholdType {
|
|
24
|
+
MarginThresholdTypeUnspecified = "MARGIN_THRESHOLD_TYPE_UNSPECIFIED",
|
|
25
|
+
MarginThresholdEquityRatio = "MARGIN_THRESHOLD_EQUITY_RATIO",
|
|
26
|
+
MarginThresholdDeficitRatio = "MARGIN_THRESHOLD_DEFICIT_RATIO",
|
|
27
|
+
MarginThresholdNone = "MARGIN_THRESHOLD_NONE"
|
|
28
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
/**
|
|
21
|
-
* - USER_ROLE_UNKNOWN: nil value - AUDITOR: An auditor - SIGNATORY: A signatory - ADMIN: An admin - INITIATOR: An initiator - REVIEWER: A reviewer - TRADER: A trader - FULL_TRADER: A trader with full permissions - TEAM_MANAGER: A team manager - APPROVER: An approver - TAX_MANAGER: A tax manager
|
|
21
|
+
* - USER_ROLE_UNKNOWN: nil value - AUDITOR: An auditor - SIGNATORY: A signatory - ADMIN: An admin - INITIATOR: An initiator - REVIEWER: A reviewer - TRADER: A trader - FULL_TRADER: A trader with full permissions - TEAM_MANAGER: A team manager - APPROVER: An approver - TAX_MANAGER: A tax manager - BUSINESS_MANAGER: A business manager
|
|
22
22
|
*/
|
|
23
23
|
export declare enum UserRole {
|
|
24
24
|
Auditor = "AUDITOR",
|
|
@@ -30,5 +30,6 @@ export declare enum UserRole {
|
|
|
30
30
|
FullTrader = "FULL_TRADER",
|
|
31
31
|
TeamManager = "TEAM_MANAGER",
|
|
32
32
|
Approver = "APPROVER",
|
|
33
|
-
TaxManager = "TAX_MANAGER"
|
|
33
|
+
TaxManager = "TAX_MANAGER",
|
|
34
|
+
BusinessManager = "BUSINESS_MANAGER"
|
|
34
35
|
}
|
|
@@ -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
|
+
* - XM_LIQUIDATION_STATUS_PRE_LIQUIDATION: Liquidation is in the pre-liquidation phase - XM_LIQUIDATION_STATUS_LIQUIDATING: Liquidation is actively in progress - XM_LIQUIDATION_STATUS_LIQUIDATED: Liquidation has completed successfully - XM_LIQUIDATION_STATUS_CANCELED: Liquidation was canceled - XM_LIQUIDATION_STATUS_FAILED: Liquidation failed
|
|
22
|
+
*/
|
|
23
|
+
export declare enum XMLiquidationStatus {
|
|
24
|
+
XmLiquidationStatusUnset = "XM_LIQUIDATION_STATUS_UNSET",
|
|
25
|
+
XmLiquidationStatusPreLiquidation = "XM_LIQUIDATION_STATUS_PRE_LIQUIDATION",
|
|
26
|
+
XmLiquidationStatusLiquidating = "XM_LIQUIDATION_STATUS_LIQUIDATING",
|
|
27
|
+
XmLiquidationStatusLiquidated = "XM_LIQUIDATION_STATUS_LIQUIDATED",
|
|
28
|
+
XmLiquidationStatusCanceled = "XM_LIQUIDATION_STATUS_CANCELED",
|
|
29
|
+
XmLiquidationStatusFailed = "XM_LIQUIDATION_STATUS_FAILED"
|
|
30
|
+
}
|