@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,84 @@
|
|
|
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
|
+
* CrossMarginPrimeXMPosition is a single per-asset XM row (proto-backed fields from XMPositionDetails).
|
|
22
|
+
*/
|
|
23
|
+
export type BetaCrossMarginPrimeXMPosition = {
|
|
24
|
+
/**
|
|
25
|
+
* Position currency
|
|
26
|
+
*/
|
|
27
|
+
currency?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Current market price
|
|
30
|
+
*/
|
|
31
|
+
marketPrice?: string;
|
|
32
|
+
/**
|
|
33
|
+
* XM spot balance nominal
|
|
34
|
+
*/
|
|
35
|
+
spotBalance?: string;
|
|
36
|
+
/**
|
|
37
|
+
* XM spot balance notional
|
|
38
|
+
*/
|
|
39
|
+
spotBalanceNotional?: string;
|
|
40
|
+
/**
|
|
41
|
+
* XM futures balance nominal
|
|
42
|
+
*/
|
|
43
|
+
futuresBalance?: string;
|
|
44
|
+
/**
|
|
45
|
+
* XM futures balance notional
|
|
46
|
+
*/
|
|
47
|
+
futuresBalanceNotional?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Base margin requirement notional
|
|
50
|
+
*/
|
|
51
|
+
baseRequirement?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Total margin required
|
|
54
|
+
*/
|
|
55
|
+
totalPositionMargin?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Basis offset credit applied to this asset row.
|
|
58
|
+
*/
|
|
59
|
+
basisCredit?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Post-netting USD notional for futures on this asset
|
|
62
|
+
*/
|
|
63
|
+
futuresNettedNotional?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Margin attributed to futures netting for this asset row.
|
|
66
|
+
*/
|
|
67
|
+
futuresNettingMargin?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Per-asset long amount from position_summary.
|
|
70
|
+
*/
|
|
71
|
+
longAmount?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Per-asset short amount from position_summary.
|
|
74
|
+
*/
|
|
75
|
+
shortAmount?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Volatility margin add-on for this asset.
|
|
78
|
+
*/
|
|
79
|
+
volatilityAddon?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Liquidity margin add-on for this asset.
|
|
82
|
+
*/
|
|
83
|
+
liquidityAddon?: string;
|
|
84
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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 2.0 risk parameters for an asset tier
|
|
22
|
+
*/
|
|
23
|
+
export type BetaCrossMarginRiskParameters = {
|
|
24
|
+
/**
|
|
25
|
+
* Asset tier identifier
|
|
26
|
+
*/
|
|
27
|
+
assetTier?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Base ratio for long positions
|
|
30
|
+
*/
|
|
31
|
+
baseRatioLong?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Base ratio for short positions
|
|
34
|
+
*/
|
|
35
|
+
baseRatioShort?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Volatility rate for long positions
|
|
38
|
+
*/
|
|
39
|
+
volatilityRateLong?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Volatility rate for short positions
|
|
42
|
+
*/
|
|
43
|
+
volatilityRateShort?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Volatility low threshold
|
|
46
|
+
*/
|
|
47
|
+
volatilityLowThreshold?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Volatility high threshold
|
|
50
|
+
*/
|
|
51
|
+
volatilityHighThreshold?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Liquidity A for long positions
|
|
54
|
+
*/
|
|
55
|
+
liquidityALong?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Liquidity A for short positions
|
|
58
|
+
*/
|
|
59
|
+
liquidityAShort?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Liquidity B for short positions
|
|
62
|
+
*/
|
|
63
|
+
liquidityBShort?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Liquidity threshold
|
|
66
|
+
*/
|
|
67
|
+
liquidityThreshold?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Basis offset credit rate
|
|
70
|
+
*/
|
|
71
|
+
basisOffsetCreditRate?: string;
|
|
72
|
+
};
|
|
@@ -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 { BetaCrossMarginPrimeMarginSummary } from './BetaCrossMarginPrimeMarginSummary';
|
|
21
|
+
import { BetaPrimeXMControlStatus } from './enums/BetaPrimeXMControlStatus';
|
|
22
|
+
import { BetaPrimeXMMarginLevel } from './enums/BetaPrimeXMMarginLevel';
|
|
23
|
+
export type BetaGetCrossMarginPrimeOverviewResponse = {
|
|
24
|
+
controlStatus?: BetaPrimeXMControlStatus;
|
|
25
|
+
marginLevel?: BetaPrimeXMMarginLevel;
|
|
26
|
+
/**
|
|
27
|
+
* When margin metrics were evaluated.
|
|
28
|
+
*/
|
|
29
|
+
evaluatedAt?: Date;
|
|
30
|
+
marginSummary?: BetaCrossMarginPrimeMarginSummary;
|
|
31
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { BetaCrossMarginRiskParameters } from './BetaCrossMarginRiskParameters';
|
|
21
|
+
import { BetaTierPairRateEntry } from './BetaTierPairRateEntry';
|
|
22
|
+
export type BetaGetCrossMarginRiskParametersResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* Current XM tier risk parameters for the entity\'s client tier
|
|
25
|
+
*/
|
|
26
|
+
riskParameters?: Array<BetaCrossMarginRiskParameters>;
|
|
27
|
+
/**
|
|
28
|
+
* Offset credit rate matrix for long/short tier pairs
|
|
29
|
+
*/
|
|
30
|
+
offsetCreditMatrixLongShort?: Array<BetaTierPairRateEntry>;
|
|
31
|
+
/**
|
|
32
|
+
* Offset credit rate matrix for long/long tier pairs
|
|
33
|
+
*/
|
|
34
|
+
offsetCreditMatrixLongLong?: Array<BetaTierPairRateEntry>;
|
|
35
|
+
/**
|
|
36
|
+
* Offset credit rate matrix for short/short tier pairs
|
|
37
|
+
*/
|
|
38
|
+
offsetCreditMatrixShortShort?: Array<BetaTierPairRateEntry>;
|
|
39
|
+
/**
|
|
40
|
+
* Margin period of risk (number of days)
|
|
41
|
+
*/
|
|
42
|
+
marginPeriodOfRisk?: number;
|
|
43
|
+
};
|
|
@@ -17,8 +17,12 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
import { BetaMarketData } from './BetaMarketData';
|
|
21
|
+
import { PaginatedResponse } from './PaginatedResponse';
|
|
22
|
+
export type BetaGetMarketDataResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* List of market data entries
|
|
25
|
+
*/
|
|
26
|
+
marketData?: Array<BetaMarketData>;
|
|
27
|
+
pagination?: PaginatedResponse;
|
|
24
28
|
};
|
|
@@ -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 BetaMarketData = {
|
|
21
|
+
/**
|
|
22
|
+
* Base asset symbol (e.g., BTC, ETH, SOL)
|
|
23
|
+
*/
|
|
24
|
+
symbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Daily historical volatility over trailing 5 days (decimal, e.g., 0.65 = 65%)
|
|
27
|
+
*/
|
|
28
|
+
vol5d?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Daily historical volatility over trailing 30 days (decimal, e.g., 0.65 = 65%)
|
|
31
|
+
*/
|
|
32
|
+
vol30d?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Daily historical volatility over trailing 90 days (decimal, e.g., 0.65 = 65%)
|
|
35
|
+
*/
|
|
36
|
+
vol90d?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Average daily trading volume over trailing 30 days (USD)
|
|
39
|
+
*/
|
|
40
|
+
adv30d?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Weighted blend of the most recent vol_5d and the max vol_5d over last 30 days into a single volatility measure (decimal).
|
|
43
|
+
*/
|
|
44
|
+
weightedVol?: string;
|
|
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 { BetaPrimeXMMarginThreshold } from './BetaPrimeXMMarginThreshold';
|
|
21
|
+
export type BetaPrimeXMMarginCallThresholds = {
|
|
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<BetaPrimeXMMarginThreshold>;
|
|
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 BetaPrimeXMMarginRequirementBreakdown = {
|
|
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
|
+
};
|
|
@@ -17,12 +17,10 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
walletType?: TravelRuleWalletType;
|
|
27
|
-
walletAddress?: BlockchainAddress;
|
|
20
|
+
import { BetaPrimeXMMarginLevel } from './enums/BetaPrimeXMMarginLevel';
|
|
21
|
+
import { BetaPrimeXMMarginThresholdType } from './enums/BetaPrimeXMMarginThresholdType';
|
|
22
|
+
export type BetaPrimeXMMarginThreshold = {
|
|
23
|
+
marginLevel?: BetaPrimeXMMarginLevel;
|
|
24
|
+
thresholdType?: BetaPrimeXMMarginThresholdType;
|
|
25
|
+
thresholdValue?: string;
|
|
28
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 BetaPrimeXMOffsetCreditBreakdown = {
|
|
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
|
+
};
|
|
@@ -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 BetaSetFundingSettingsResponse = {
|
|
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 BetaTierPairRateEntry = {
|
|
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
|
+
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { ActiveLiquidationSummary } from './ActiveLiquidationSummary';
|
|
20
21
|
import { XMControlStatus } from './enums/XMControlStatus';
|
|
21
22
|
import { XMEntityCallStatus } from './enums/XMEntityCallStatus';
|
|
22
23
|
import { XMLoan } from './XMLoan';
|
|
@@ -36,4 +37,5 @@ export type CrossMarginOverview = {
|
|
|
36
37
|
* List of active XM loans
|
|
37
38
|
*/
|
|
38
39
|
activeLoans?: Array<XMLoan>;
|
|
40
|
+
activeLiquidation?: ActiveLiquidationSummary;
|
|
39
41
|
};
|
|
@@ -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 CrossMarginPrimeDerivativesEquityBreakdown = {
|
|
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 { CrossMarginPrimeDerivativesEquityBreakdown } from './CrossMarginPrimeDerivativesEquityBreakdown';
|
|
21
|
+
import { CrossMarginPrimeRiskNettingInfo } from './CrossMarginPrimeRiskNettingInfo';
|
|
22
|
+
import { CrossMarginPrimeSpotEquityBreakdown } from './CrossMarginPrimeSpotEquityBreakdown';
|
|
23
|
+
import { PrimeXMHealthStatus } from './enums/PrimeXMHealthStatus';
|
|
24
|
+
import { PrimeXMMarginCallThresholds } from './PrimeXMMarginCallThresholds';
|
|
25
|
+
import { PrimeXMMarginRequirementType } from './enums/PrimeXMMarginRequirementType';
|
|
26
|
+
/**
|
|
27
|
+
* Cross-margin account summary and nested breakdowns.
|
|
28
|
+
*/
|
|
29
|
+
export type CrossMarginPrimeMarginSummary = {
|
|
30
|
+
/**
|
|
31
|
+
* Cross Margin Margin Requirement (XMMR) notional
|
|
32
|
+
*/
|
|
33
|
+
marginRequirement?: string;
|
|
34
|
+
marginRequirementType?: PrimeXMMarginRequirementType;
|
|
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?: CrossMarginPrimeSpotEquityBreakdown;
|
|
84
|
+
derivativesEquityBreakdown?: CrossMarginPrimeDerivativesEquityBreakdown;
|
|
85
|
+
riskNettingInfo?: CrossMarginPrimeRiskNettingInfo;
|
|
86
|
+
healthStatus?: PrimeXMHealthStatus;
|
|
87
|
+
/**
|
|
88
|
+
* Equity ratio.
|
|
89
|
+
*/
|
|
90
|
+
equityRatio?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Deficit ratio.
|
|
93
|
+
*/
|
|
94
|
+
deficitRatio?: string;
|
|
95
|
+
marginThresholds?: PrimeXMMarginCallThresholds;
|
|
96
|
+
/**
|
|
97
|
+
* FCM excess available to return.
|
|
98
|
+
*/
|
|
99
|
+
fcmExcessAvailableToReturn?: string;
|
|
100
|
+
};
|