@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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { CrossMarginPrimeXMPosition } from './CrossMarginPrimeXMPosition';
|
|
21
|
+
import { PrimeXMMarginRequirementBreakdown } from './PrimeXMMarginRequirementBreakdown';
|
|
22
|
+
import { PrimeXMOffsetCreditBreakdown } from './PrimeXMOffsetCreditBreakdown';
|
|
23
|
+
/**
|
|
24
|
+
* Groups XM margin requirement components, offset credits, and per-asset rows.
|
|
25
|
+
*/
|
|
26
|
+
export type CrossMarginPrimeRiskNettingInfo = {
|
|
27
|
+
/**
|
|
28
|
+
* Derivatives Clearing Organization Margin Requirement (DMR) is the margin requirement for all futures positions, derived from the Derivatives Clearing Organization model
|
|
29
|
+
*/
|
|
30
|
+
dcoMarginRequirement?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Portfolio Margin Requirement (PMR) is the margin requirement for all spot positions, derived from the XM model
|
|
33
|
+
*/
|
|
34
|
+
portfolioMarginRequirement?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Integrated Portfolio Margin Requirement (IPMR) is the margin requirement for all spot positions + futures positions with underlying assets eligible in Portfolio Margin.
|
|
37
|
+
*/
|
|
38
|
+
integratedPortfolioMarginRequirement?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Ineligible Futures Margin Requirement (IFMR) is the margin requirement for IPMR-ineligible futures contracts
|
|
41
|
+
*/
|
|
42
|
+
ineligibleFuturesMarginRequirement?: string;
|
|
43
|
+
pmrBreakdown?: PrimeXMMarginRequirementBreakdown;
|
|
44
|
+
ipmrBreakdown?: PrimeXMMarginRequirementBreakdown;
|
|
45
|
+
portfolioMarginOffsetCreditBreakdown?: PrimeXMOffsetCreditBreakdown;
|
|
46
|
+
integratedPortfolioMarginOffsetCreditBreakdown?: PrimeXMOffsetCreditBreakdown;
|
|
47
|
+
/**
|
|
48
|
+
* Netted positions used in the model calculation.
|
|
49
|
+
*/
|
|
50
|
+
xmPositions?: Array<CrossMarginPrimeXMPosition>;
|
|
51
|
+
};
|
|
@@ -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
|
+
* Breakdown of the components of spot equity.
|
|
22
|
+
*/
|
|
23
|
+
export type CrossMarginPrimeSpotEquityBreakdown = {
|
|
24
|
+
/**
|
|
25
|
+
* PM cash balance component of spot equity.
|
|
26
|
+
*/
|
|
27
|
+
cashBalance?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Long market value component of spot equity.
|
|
30
|
+
*/
|
|
31
|
+
longMarketValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Short market value component of spot equity.
|
|
34
|
+
*/
|
|
35
|
+
shortMarketValue?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Short collateral component of spot equity.
|
|
38
|
+
*/
|
|
39
|
+
shortCollateral?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Pending transfers affecting spot equity.
|
|
42
|
+
*/
|
|
43
|
+
pendingTransfers?: string;
|
|
44
|
+
};
|
|
@@ -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 CrossMarginPrimeXMPosition = {
|
|
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 CrossMarginRiskParameters = {
|
|
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
|
+
};
|
|
@@ -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 EntityUser = {
|
|
22
23
|
/**
|
|
@@ -36,4 +37,12 @@ export type EntityUser = {
|
|
|
36
37
|
*/
|
|
37
38
|
entityId?: string;
|
|
38
39
|
role?: UserRole;
|
|
40
|
+
/**
|
|
41
|
+
* All primary roles assigned to the user.
|
|
42
|
+
*/
|
|
43
|
+
roles?: Array<UserRole>;
|
|
44
|
+
/**
|
|
45
|
+
* All secondary permissions assigned to the user.
|
|
46
|
+
*/
|
|
47
|
+
secondaryPermissions?: Array<SecondaryPermission>;
|
|
39
48
|
};
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { CommissionDetailTotal } from './CommissionDetailTotal';
|
|
20
21
|
import { OrderSide } from './enums/OrderSide';
|
|
22
|
+
import { ProductType } from './enums/ProductType';
|
|
21
23
|
export type Fill = {
|
|
22
24
|
/**
|
|
23
25
|
* The unique ID of the fill
|
|
@@ -68,4 +70,6 @@ export type Fill = {
|
|
|
68
70
|
* The CES commission incurred for the fill
|
|
69
71
|
*/
|
|
70
72
|
cesCommission?: string;
|
|
73
|
+
productType?: ProductType;
|
|
74
|
+
commissionDetailTotal?: CommissionDetailTotal;
|
|
71
75
|
};
|
|
@@ -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 { CrossMarginPrimeMarginSummary } from './CrossMarginPrimeMarginSummary';
|
|
21
|
+
import { PrimeXMControlStatus } from './enums/PrimeXMControlStatus';
|
|
22
|
+
import { PrimeXMMarginLevel } from './enums/PrimeXMMarginLevel';
|
|
23
|
+
export type GetCrossMarginPrimeOverviewResponse = {
|
|
24
|
+
controlStatus?: PrimeXMControlStatus;
|
|
25
|
+
marginLevel?: PrimeXMMarginLevel;
|
|
26
|
+
/**
|
|
27
|
+
* When margin metrics were evaluated.
|
|
28
|
+
*/
|
|
29
|
+
evaluatedAt?: Date;
|
|
30
|
+
marginSummary?: CrossMarginPrimeMarginSummary;
|
|
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 { CrossMarginRiskParameters } from './CrossMarginRiskParameters';
|
|
21
|
+
import { TierPairRateEntry } from './TierPairRateEntry';
|
|
22
|
+
export type GetCrossMarginRiskParametersResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* Current XM tier risk parameters for the entity\'s client tier
|
|
25
|
+
*/
|
|
26
|
+
riskParameters?: Array<CrossMarginRiskParameters>;
|
|
27
|
+
/**
|
|
28
|
+
* Offset credit rate matrix for long/short tier pairs
|
|
29
|
+
*/
|
|
30
|
+
offsetCreditMatrixLongShort?: Array<TierPairRateEntry>;
|
|
31
|
+
/**
|
|
32
|
+
* Offset credit rate matrix for long/long tier pairs
|
|
33
|
+
*/
|
|
34
|
+
offsetCreditMatrixLongLong?: Array<TierPairRateEntry>;
|
|
35
|
+
/**
|
|
36
|
+
* Offset credit rate matrix for short/short tier pairs
|
|
37
|
+
*/
|
|
38
|
+
offsetCreditMatrixShortShort?: Array<TierPairRateEntry>;
|
|
39
|
+
/**
|
|
40
|
+
* Margin period of risk (number of days)
|
|
41
|
+
*/
|
|
42
|
+
marginPeriodOfRisk?: number;
|
|
43
|
+
};
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
+
import { FcmMarginHealthState } from './enums/FcmMarginHealthState';
|
|
20
21
|
export type GetFcmRiskLimitsResponse = {
|
|
21
22
|
/**
|
|
22
23
|
* Risk Limit set for a client
|
|
@@ -42,4 +43,9 @@ export type GetFcmRiskLimitsResponse = {
|
|
|
42
43
|
* Unsettled accrued funding PNL from the last settlement
|
|
43
44
|
*/
|
|
44
45
|
cfmUnsettledAccruedFundingPnl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Margin utilization as a decimal percentage between 0 and 1 (e.g. 0.5 means 50%)
|
|
48
|
+
*/
|
|
49
|
+
marginUtilizationPercent?: string;
|
|
50
|
+
marginHealthState?: FcmMarginHealthState;
|
|
45
51
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026-present Coinbase Global, Inc.
|
|
3
3
|
*
|
|
4
4
|
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
5
|
*
|
|
@@ -17,9 +17,12 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
-
import {
|
|
20
|
+
import { MarketData } from './MarketData';
|
|
21
21
|
import { PaginatedResponse } from './PaginatedResponse';
|
|
22
|
-
export type
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
export type GetMarketDataResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* List of market data entries
|
|
25
|
+
*/
|
|
26
|
+
marketData?: Array<MarketData>;
|
|
27
|
+
pagination?: PaginatedResponse;
|
|
25
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 MarketData = {
|
|
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
|
+
};
|
|
@@ -56,4 +56,16 @@ export type NetworkDetails = {
|
|
|
56
56
|
* Indicates the symbol that can be used to query other endpoints, related to transactions, wallets, and activities, to get information particularly for this asset on the network
|
|
57
57
|
*/
|
|
58
58
|
networkScopedSymbol?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The minimum withdrawal amount for this network. Applies to trading, prime custody, and vault wallets.
|
|
61
|
+
*/
|
|
62
|
+
minWithdrawalAmount?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The platform maximum withdrawal amount for this network. Applies to trading, prime custody, and vault wallets. Note that Prime Transfer policies may override this value.
|
|
65
|
+
*/
|
|
66
|
+
maxWithdrawalAmount?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The minimum deposit amount for this network. Applies to trading, prime custody, and vault wallets.
|
|
69
|
+
*/
|
|
70
|
+
minDepositAmount?: string;
|
|
59
71
|
};
|
|
@@ -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
|
};
|
|
@@ -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
|
+
};
|
|
@@ -17,11 +17,10 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
leiNumber?: string;
|
|
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;
|
|
27
26
|
};
|