@coinbase-sample/prime-sdk-ts 0.6.4 → 0.7.1
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/constants.js +1 -1
- package/dist/financing/index.js +9 -0
- package/dist/futures/index.js +18 -0
- package/dist/model/Candle.js +21 -0
- package/dist/model/CrossMarginOverview.js +21 -0
- package/dist/model/EditOrderRequest.js +21 -0
- package/dist/model/EditOrderResponse.js +21 -0
- package/dist/model/GetCandlesResponse.js +21 -0
- package/dist/model/GetCrossMarginOverviewResponse.js +21 -0
- package/dist/model/ListTransactionValidatorsRequest.js +21 -0
- package/dist/model/ListTransactionValidatorsResponse.js +21 -0
- package/dist/model/StakingClaimRewardsRequest.js +21 -0
- package/dist/model/StakingClaimRewardsResponse.js +21 -0
- package/dist/model/TransactionValidator.js +21 -0
- package/dist/model/WalletClaimRewardsInputs.js +21 -0
- package/dist/model/XMLoan.js +21 -0
- package/dist/model/XMMarginCall.js +21 -0
- package/dist/model/XMPosition.js +21 -0
- package/dist/model/XMRiskNettingInfo.js +21 -0
- package/dist/model/XMSummary.js +21 -0
- package/dist/model/enums/ActivityCategory.js +0 -1
- package/dist/model/enums/ActivityLevel.js +3 -3
- package/dist/model/enums/AddressBookType.js +3 -3
- package/dist/model/enums/AllocationStatus.js +5 -5
- package/dist/model/enums/CandlesGranularity.js +34 -0
- package/dist/model/enums/CustodyActivityType.js +29 -29
- package/dist/model/enums/DestinationType.js +4 -4
- package/dist/model/enums/FcmFuturesSweepStatus.js +5 -5
- package/dist/model/enums/FcmMarginCallState.js +5 -5
- package/dist/model/enums/FcmMarginCallType.js +3 -3
- package/dist/model/enums/HierarchyType.js +3 -3
- package/dist/model/enums/InvoiceState.js +5 -5
- package/dist/model/enums/InvoiceType.js +6 -6
- package/dist/model/enums/LoanType.js +1 -0
- package/dist/model/enums/NetworkFamily.js +3 -3
- package/dist/model/enums/NetworkType.js +3 -3
- package/dist/model/enums/PaymentMethodType.js +3 -3
- package/dist/model/enums/ProductPermissions.js +3 -3
- package/dist/model/enums/ValidatorStatus.js +31 -0
- package/dist/model/enums/WalletVisibility.js +3 -3
- package/dist/model/enums/XMCallStatus.js +33 -0
- package/dist/model/enums/XMCallType.js +31 -0
- package/dist/model/enums/XMControlStatus.js +32 -0
- package/dist/model/enums/XMEntityCallStatus.js +33 -0
- package/dist/model/enums/XMMarginLevel.js +34 -0
- package/dist/model/enums/XMParty.js +31 -0
- package/dist/model/enums/index.js +18 -1
- package/dist/orders/index.js +12 -0
- package/dist/products/index.js +16 -0
- package/dist/staking/index.js +37 -0
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/financing/index.d.ts +3 -1
- package/dist/types/financing/types.d.ts +5 -1
- package/dist/types/futures/index.d.ts +6 -1
- package/dist/types/futures/types.d.ts +9 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/model/Candle.d.ts +42 -0
- package/dist/types/model/CrossMarginOverview.d.ts +39 -0
- package/dist/types/model/EditOrderRequest.d.ts +61 -0
- package/dist/types/model/EditOrderResponse.d.ts +25 -0
- package/dist/types/model/GetCandlesResponse.d.ts +23 -0
- package/dist/types/model/GetCrossMarginOverviewResponse.d.ts +23 -0
- package/dist/types/model/ListTransactionValidatorsRequest.d.ts +35 -0
- package/dist/types/model/ListTransactionValidatorsResponse.d.ts +28 -0
- package/dist/types/model/RFQProductDetails.d.ts +21 -0
- package/dist/types/model/StakingClaimRewardsRequest.d.ts +27 -0
- package/dist/types/model/StakingClaimRewardsResponse.d.ts +33 -0
- package/dist/types/model/TransactionValidator.d.ts +31 -0
- package/dist/types/model/WalletClaimRewardsInputs.d.ts +28 -0
- package/dist/types/model/XMLoan.d.ts +51 -0
- package/dist/types/model/XMMarginCall.d.ts +57 -0
- package/dist/types/model/XMPosition.d.ts +121 -0
- package/dist/types/model/XMRiskNettingInfo.d.ts +76 -0
- package/dist/types/model/XMSummary.d.ts +55 -0
- package/dist/types/model/enums/ActivityCategory.d.ts +0 -1
- package/dist/types/model/enums/ActivityLevel.d.ts +3 -3
- package/dist/types/model/enums/AddressBookType.d.ts +3 -3
- package/dist/types/model/enums/AllocationStatus.d.ts +5 -5
- package/dist/types/model/enums/CandlesGranularity.d.ts +30 -0
- package/dist/types/model/enums/CustodyActivityType.d.ts +29 -29
- package/dist/types/model/enums/DestinationType.d.ts +4 -4
- package/dist/types/model/enums/FcmFuturesSweepStatus.d.ts +5 -5
- package/dist/types/model/enums/FcmMarginCallState.d.ts +5 -5
- package/dist/types/model/enums/FcmMarginCallType.d.ts +3 -3
- package/dist/types/model/enums/HierarchyType.d.ts +3 -3
- package/dist/types/model/enums/InvoiceState.d.ts +5 -5
- package/dist/types/model/enums/InvoiceType.d.ts +6 -6
- package/dist/types/model/enums/LoanType.d.ts +2 -1
- package/dist/types/model/enums/NetworkFamily.d.ts +3 -3
- package/dist/types/model/enums/NetworkType.d.ts +3 -3
- package/dist/types/model/enums/PaymentMethodType.d.ts +3 -3
- package/dist/types/model/enums/ProductPermissions.d.ts +3 -3
- package/dist/types/model/enums/ValidatorStatus.d.ts +27 -0
- package/dist/types/model/enums/WalletVisibility.d.ts +3 -3
- package/dist/types/model/enums/XMCallStatus.d.ts +29 -0
- package/dist/types/model/enums/XMCallType.d.ts +27 -0
- package/dist/types/model/enums/XMControlStatus.d.ts +28 -0
- package/dist/types/model/enums/XMEntityCallStatus.d.ts +29 -0
- package/dist/types/model/enums/XMMarginLevel.d.ts +30 -0
- package/dist/types/model/enums/XMParty.d.ts +27 -0
- package/dist/types/model/enums/index.d.ts +8 -0
- package/dist/types/model/index.d.ts +17 -3
- package/dist/types/orders/index.d.ts +3 -1
- package/dist/types/orders/types.d.ts +6 -1
- package/dist/types/products/index.d.ts +3 -1
- package/dist/types/products/types.d.ts +10 -1
- package/dist/types/staking/index.d.ts +5 -1
- package/dist/types/staking/types.d.ts +13 -1
- package/dist/types/wallets/types.d.ts +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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 XMPosition = {
|
|
21
|
+
/**
|
|
22
|
+
* Position currency
|
|
23
|
+
*/
|
|
24
|
+
currency?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current market price
|
|
27
|
+
*/
|
|
28
|
+
marketPrice?: string;
|
|
29
|
+
/**
|
|
30
|
+
* True if margin eligible, false otherwise
|
|
31
|
+
*/
|
|
32
|
+
marginEligible?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Total market capitalization
|
|
35
|
+
*/
|
|
36
|
+
marketCap?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Average daily volume calculated over a 30-day period
|
|
39
|
+
*/
|
|
40
|
+
adv30Days?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Historic volatility calculated over a 5-day period
|
|
43
|
+
*/
|
|
44
|
+
hist5dVol?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Historic volatility calculated over a 30-day period
|
|
47
|
+
*/
|
|
48
|
+
hist30dVol?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Historic volatility calculated over a 90-day period
|
|
51
|
+
*/
|
|
52
|
+
hist90dVol?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Base margin requirement for the specific asset
|
|
55
|
+
*/
|
|
56
|
+
marginRequirement?: string;
|
|
57
|
+
/**
|
|
58
|
+
* XM spot balance nominal
|
|
59
|
+
*/
|
|
60
|
+
spotBalance?: string;
|
|
61
|
+
/**
|
|
62
|
+
* XM spot balance notional
|
|
63
|
+
*/
|
|
64
|
+
spotBalanceNotional?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Pre-netted spot total position margin
|
|
67
|
+
*/
|
|
68
|
+
spotTotalPositionMargin?: string;
|
|
69
|
+
/**
|
|
70
|
+
* XM futures balance nominal
|
|
71
|
+
*/
|
|
72
|
+
futuresBalance?: string;
|
|
73
|
+
/**
|
|
74
|
+
* XM futures balance notional
|
|
75
|
+
*/
|
|
76
|
+
futuresBalanceNotional?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Pre-netted futures total position margin
|
|
79
|
+
*/
|
|
80
|
+
futuresTotalPositionMargin?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Basis GMV = |futures| + |spot| - |unnetted position|
|
|
83
|
+
*/
|
|
84
|
+
gmvBasis?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Base margin requirement notional
|
|
87
|
+
*/
|
|
88
|
+
baseRequirement?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Effective liquidity add-on for the short positions
|
|
91
|
+
*/
|
|
92
|
+
liqShortsAddOn?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Effective liquidity add-on for the long positions
|
|
95
|
+
*/
|
|
96
|
+
liqLongsAddOn?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Effective volatility add-on for the short positions
|
|
99
|
+
*/
|
|
100
|
+
volShortsAddOn?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Effective volatility add-on for the long positions
|
|
103
|
+
*/
|
|
104
|
+
volLongsAddOn?: string;
|
|
105
|
+
/**
|
|
106
|
+
* 5-day volatility add-on
|
|
107
|
+
*/
|
|
108
|
+
vol5daysAddOn?: string;
|
|
109
|
+
/**
|
|
110
|
+
* 30-day volatility add-on
|
|
111
|
+
*/
|
|
112
|
+
vol30daysAddOn?: string;
|
|
113
|
+
/**
|
|
114
|
+
* 90-day volatility add-on
|
|
115
|
+
*/
|
|
116
|
+
vol90daysAddOn?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Total margin required
|
|
119
|
+
*/
|
|
120
|
+
totalPositionMargin?: string;
|
|
121
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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 { MarginAddOn } from './MarginAddOn';
|
|
21
|
+
import { XMPosition } from './XMPosition';
|
|
22
|
+
export type XMRiskNettingInfo = {
|
|
23
|
+
/**
|
|
24
|
+
* Nodal Margin Requirement (NMR) is the margin requirement for all futures positions, derived from the Nodal model
|
|
25
|
+
*/
|
|
26
|
+
nodalMarginRequirement?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Portfolio Margin Requirement (PMR) is the margin requirement for all spot positions, derived from the XM model
|
|
29
|
+
*/
|
|
30
|
+
portfolioMarginRequirement?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Integrated Portfolio Margin Requirement (IPMR) is the margin requirement for all spot positions + futures positions with underlying assets eligible in Portfolio Margin, via the XM model with one-leg netting
|
|
33
|
+
*/
|
|
34
|
+
integratedPortfolioMarginRequirement?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Ineligible Futures Margin Requirement (IFMR) is the margin requirement for IPMR-ineligible futures contracts
|
|
37
|
+
*/
|
|
38
|
+
ineligibleFuturesMarginRequirement?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Position margin requirement for all spot positions
|
|
41
|
+
*/
|
|
42
|
+
positionMarginRequirement?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Portfolio margin addon for all spot positions
|
|
45
|
+
*/
|
|
46
|
+
portfolioMarginAddon?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Position margin requirement for spot + futures positions
|
|
49
|
+
*/
|
|
50
|
+
integratedPositionMarginRequirement?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Portfolio margin addon for spot + futures positions
|
|
53
|
+
*/
|
|
54
|
+
integratedPortfolioMarginAddon?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Post-netting USD notional for all futures positions
|
|
57
|
+
*/
|
|
58
|
+
nettedFuturesNotional?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Total basis gross market value of all XM-eligible positions (i.e. crypto underliers)
|
|
61
|
+
*/
|
|
62
|
+
totalGmvBasis?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Integrated Portfolio Margin cash balance
|
|
65
|
+
*/
|
|
66
|
+
ipmCashBalance?: string;
|
|
67
|
+
integratedScenarioAddon?: MarginAddOn;
|
|
68
|
+
/**
|
|
69
|
+
* All integrated scenario add-ons
|
|
70
|
+
*/
|
|
71
|
+
allIntegratedScenarioAddons?: Array<MarginAddOn>;
|
|
72
|
+
/**
|
|
73
|
+
* Netted positions used in the model calculation
|
|
74
|
+
*/
|
|
75
|
+
xmPositions?: Array<XMPosition>;
|
|
76
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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 { XMRiskNettingInfo } from './XMRiskNettingInfo';
|
|
21
|
+
export type XMSummary = {
|
|
22
|
+
/**
|
|
23
|
+
* Cross Margin Margin Requirement (XMMR) notional
|
|
24
|
+
*/
|
|
25
|
+
marginRequirement?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Equity notional
|
|
28
|
+
*/
|
|
29
|
+
accountEquity?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Equity - XMMR (margin excess is > 0)
|
|
32
|
+
*/
|
|
33
|
+
marginExcessShortfall?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Credit consumed from Cross Margin Credit Limit (XMCL)
|
|
36
|
+
*/
|
|
37
|
+
consumedCredit?: string;
|
|
38
|
+
/**
|
|
39
|
+
* XM Credit Limit (XMCL) is the maximum notional USD of total fiat and digital asset loans
|
|
40
|
+
*/
|
|
41
|
+
xmCreditLimit?: string;
|
|
42
|
+
/**
|
|
43
|
+
* XM Margin Limit (XMML) is the maximum notional USD deficit
|
|
44
|
+
*/
|
|
45
|
+
xmMarginLimit?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Equity attributed by spot
|
|
48
|
+
*/
|
|
49
|
+
spotEquity?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Equity attributed by futures
|
|
52
|
+
*/
|
|
53
|
+
futuresEquity?: string;
|
|
54
|
+
riskNettingInfo?: XMRiskNettingInfo;
|
|
55
|
+
};
|
|
@@ -22,7 +22,6 @@ export declare enum ActivityCategory {
|
|
|
22
22
|
ActivityCategoryOrder = "ACTIVITY_CATEGORY_ORDER",
|
|
23
23
|
ActivityCategoryTransaction = "ACTIVITY_CATEGORY_TRANSACTION",
|
|
24
24
|
ActivityCategoryAccount = "ACTIVITY_CATEGORY_ACCOUNT",
|
|
25
|
-
ActivityCategoryAdmin = "ACTIVITY_CATEGORY_ADMIN",
|
|
26
25
|
ActivityCategoryAllocation = "ACTIVITY_CATEGORY_ALLOCATION",
|
|
27
26
|
ActivityCategoryLending = "ACTIVITY_CATEGORY_LENDING"
|
|
28
27
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum ActivityLevel {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ActivityLevelAll = "ACTIVITY_LEVEL_ALL",
|
|
22
|
+
ActivityLevelPortfolio = "ACTIVITY_LEVEL_PORTFOLIO",
|
|
23
|
+
ActivityLevelEntity = "ACTIVITY_LEVEL_ENTITY"
|
|
24
24
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum AddressBookType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
AddressBookTypeUnspecified = "ADDRESS_BOOK_TYPE_UNSPECIFIED",
|
|
22
|
+
AddressBookTypeAddress = "ADDRESS_BOOK_TYPE_ADDRESS",
|
|
23
|
+
AddressBookTypeCounterpartyId = "ADDRESS_BOOK_TYPE_COUNTERPARTY_ID"
|
|
24
24
|
}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum AllocationStatus {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
AllocationStatusUnspecified = "ALLOCATION_STATUS_UNSPECIFIED",
|
|
22
|
+
AllocationStatusAllocationPending = "ALLOCATION_STATUS_ALLOCATION_PENDING",
|
|
23
|
+
AllocationStatusAllocationAccepted = "ALLOCATION_STATUS_ALLOCATION_ACCEPTED",
|
|
24
|
+
AllocationStatusAllocationAllocated = "ALLOCATION_STATUS_ALLOCATION_ALLOCATED",
|
|
25
|
+
AllocationStatusAllocationRejected = "ALLOCATION_STATUS_ALLOCATION_REJECTED"
|
|
26
26
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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 declare enum CandlesGranularity {
|
|
21
|
+
OneMinute = "ONE_MINUTE",
|
|
22
|
+
FiveMinutes = "FIVE_MINUTES",
|
|
23
|
+
FifteenMinutes = "FIFTEEN_MINUTES",
|
|
24
|
+
OneHour = "ONE_HOUR",
|
|
25
|
+
SixHours = "SIX_HOURS",
|
|
26
|
+
OneDay = "ONE_DAY",
|
|
27
|
+
ThirtyMinute = "THIRTY_MINUTE",
|
|
28
|
+
TwoHour = "TWO_HOUR",
|
|
29
|
+
FourHour = "FOUR_HOUR"
|
|
30
|
+
}
|
|
@@ -18,33 +18,33 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum ActivityType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
21
|
+
ActivityTypeGovernanceVote = "ACTIVITY_TYPE_GOVERNANCE_VOTE",
|
|
22
|
+
ActivityTypeInvitation = "ACTIVITY_TYPE_INVITATION",
|
|
23
|
+
ActivityTypeWalletChange = "ACTIVITY_TYPE_WALLET_CHANGE",
|
|
24
|
+
ActivityTypeApiKeyChange = "ACTIVITY_TYPE_API_KEY_CHANGE",
|
|
25
|
+
ActivityTypeSettingsChange = "ACTIVITY_TYPE_SETTINGS_CHANGE",
|
|
26
|
+
ActivityTypeBillingPreferenceChange = "ACTIVITY_TYPE_BILLING_PREFERENCE_CHANGE",
|
|
27
|
+
ActivityTypePaymentMethodChange = "ACTIVITY_TYPE_PAYMENT_METHOD_CHANGE",
|
|
28
|
+
ActivityTypeWithdrawal = "ACTIVITY_TYPE_WITHDRAWAL",
|
|
29
|
+
ActivityTypeDeposit = "ACTIVITY_TYPE_DEPOSIT",
|
|
30
|
+
ActivityTypeCreateWallet = "ACTIVITY_TYPE_CREATE_WALLET",
|
|
31
|
+
ActivityTypeRemoveWallet = "ACTIVITY_TYPE_REMOVE_WALLET",
|
|
32
|
+
ActivityTypeUpdateWallet = "ACTIVITY_TYPE_UPDATE_WALLET",
|
|
33
|
+
ActivityTypeCastVote = "ACTIVITY_TYPE_CAST_VOTE",
|
|
34
|
+
ActivityTypeEnableVoting = "ACTIVITY_TYPE_ENABLE_VOTING",
|
|
35
|
+
ActivityTypeStake = "ACTIVITY_TYPE_STAKE",
|
|
36
|
+
ActivityTypeUnstake = "ACTIVITY_TYPE_UNSTAKE",
|
|
37
|
+
ActivityTypeChangeValidator = "ACTIVITY_TYPE_CHANGE_VALIDATOR",
|
|
38
|
+
ActivityTypeRestake = "ACTIVITY_TYPE_RESTAKE",
|
|
39
|
+
ActivityTypeAddressBook = "ACTIVITY_TYPE_ADDRESS_BOOK",
|
|
40
|
+
ActivityTypeTeamMembers = "ACTIVITY_TYPE_TEAM_MEMBERS",
|
|
41
|
+
ActivityTypeBilling = "ACTIVITY_TYPE_BILLING",
|
|
42
|
+
ActivityTypeSecurity = "ACTIVITY_TYPE_SECURITY",
|
|
43
|
+
ActivityTypeApi = "ACTIVITY_TYPE_API",
|
|
44
|
+
ActivityTypeSettings = "ACTIVITY_TYPE_SETTINGS",
|
|
45
|
+
ActivityTypeSmartContract = "ACTIVITY_TYPE_SMART_CONTRACT",
|
|
46
|
+
ActivityTypeUserChangeRequestNoPas = "ACTIVITY_TYPE_USER_CHANGE_REQUEST_NO_PAS",
|
|
47
|
+
ActivityTypeWeb3Transaction = "ACTIVITY_TYPE_WEB3_TRANSACTION",
|
|
48
|
+
ActivityTypeWeb3Message = "ACTIVITY_TYPE_WEB3_MESSAGE",
|
|
49
|
+
ActivityTypeClaimRewards = "ACTIVITY_TYPE_CLAIM_REWARDS"
|
|
50
50
|
}
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum DestinationType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
DestinationPaymentMethod = "DESTINATION_PAYMENT_METHOD",
|
|
22
|
+
DestinationBlockchain = "DESTINATION_BLOCKCHAIN",
|
|
23
|
+
DestinationWallet = "DESTINATION_WALLET",
|
|
24
|
+
DestinationCounterparty = "DESTINATION_COUNTERPARTY"
|
|
25
25
|
}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum FcmFuturesSweepStatus {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
FcmFuturesSweepStatusUnspecified = "FCM_FUTURES_SWEEP_STATUS_UNSPECIFIED",
|
|
22
|
+
FcmFuturesSweepStatusPending = "FCM_FUTURES_SWEEP_STATUS_PENDING",
|
|
23
|
+
FcmFuturesSweepStatusClosed = "FCM_FUTURES_SWEEP_STATUS_CLOSED",
|
|
24
|
+
FcmFuturesSweepStatusCanceled = "FCM_FUTURES_SWEEP_STATUS_CANCELED",
|
|
25
|
+
FcmFuturesSweepStatusProcessing = "FCM_FUTURES_SWEEP_STATUS_PROCESSING"
|
|
26
26
|
}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum FcmMarginCallState {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
FcmMarginCallStateUnspecified = "FCM_MARGIN_CALL_STATE_UNSPECIFIED",
|
|
22
|
+
FcmMarginCallStateClosed = "FCM_MARGIN_CALL_STATE_CLOSED",
|
|
23
|
+
FcmMarginCallStateRolledOver = "FCM_MARGIN_CALL_STATE_ROLLED_OVER",
|
|
24
|
+
FcmMarginCallStateDefault = "FCM_MARGIN_CALL_STATE_DEFAULT",
|
|
25
|
+
FcmMarginCallStateOfficial = "FCM_MARGIN_CALL_STATE_OFFICIAL"
|
|
26
26
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum FcmMarginCallType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
FcmMarginCallTypeUnspecified = "FCM_MARGIN_CALL_TYPE_UNSPECIFIED",
|
|
22
|
+
FcmMarginCallTypeUrgent = "FCM_MARGIN_CALL_TYPE_URGENT",
|
|
23
|
+
FcmMarginCallTypeRegular = "FCM_MARGIN_CALL_TYPE_REGULAR"
|
|
24
24
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum HierarchyType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
HierarchyTypeUnspecified = "HIERARCHY_TYPE_UNSPECIFIED",
|
|
22
|
+
HierarchyTypePortfolio = "HIERARCHY_TYPE_PORTFOLIO",
|
|
23
|
+
HierarchyTypeEntity = "HIERARCHY_TYPE_ENTITY"
|
|
24
24
|
}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum InvoiceState {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
InvoiceStateUnspecified = "INVOICE_STATE_UNSPECIFIED",
|
|
22
|
+
InvoiceStateImported = "INVOICE_STATE_IMPORTED",
|
|
23
|
+
InvoiceStateBilled = "INVOICE_STATE_BILLED",
|
|
24
|
+
InvoiceStatePartiallyPaid = "INVOICE_STATE_PARTIALLY_PAID",
|
|
25
|
+
InvoiceStatePaid = "INVOICE_STATE_PAID"
|
|
26
26
|
}
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum InvoiceType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
InvoiceTypeUnspecified = "INVOICE_TYPE_UNSPECIFIED",
|
|
22
|
+
InvoiceTypeAucFee = "INVOICE_TYPE_AUC_FEE",
|
|
23
|
+
InvoiceTypeMinimumFee = "INVOICE_TYPE_MINIMUM_FEE",
|
|
24
|
+
InvoiceTypeWithdrawalFee = "INVOICE_TYPE_WITHDRAWAL_FEE",
|
|
25
|
+
InvoiceTypeNewWalletFee = "INVOICE_TYPE_NEW_WALLET_FEE",
|
|
26
|
+
InvoiceTypeStakingFee = "INVOICE_TYPE_STAKING_FEE"
|
|
27
27
|
}
|
|
@@ -23,5 +23,6 @@ export declare enum LoanType {
|
|
|
23
23
|
TradeFinance = "TRADE_FINANCE",
|
|
24
24
|
PortfolioMargin = "PORTFOLIO_MARGIN",
|
|
25
25
|
ShortCollateralLoan = "SHORT_COLLATERAL_LOAN",
|
|
26
|
-
ShortCollateral = "SHORT_COLLATERAL"
|
|
26
|
+
ShortCollateral = "SHORT_COLLATERAL",
|
|
27
|
+
CrossMargin = "CROSS_MARGIN"
|
|
27
28
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum NetworkFamily {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
NetworkFamilyUnspecified = "NETWORK_FAMILY_UNSPECIFIED",
|
|
22
|
+
NetworkFamilyEvm = "NETWORK_FAMILY_EVM",
|
|
23
|
+
NetworkFamilySolana = "NETWORK_FAMILY_SOLANA"
|
|
24
24
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum NetworkType {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
NetworkTypeUnspecified = "NETWORK_TYPE_UNSPECIFIED",
|
|
22
|
+
NetworkTypeEvm = "NETWORK_TYPE_EVM",
|
|
23
|
+
NetworkTypeSolana = "NETWORK_TYPE_SOLANA"
|
|
24
24
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* - UNKNOWN_PAYMENT_METHOD_TYPE: nil value - METHOD_WIRE: Wire transfer - METHOD_SEN: Silvergate exchange network - METHOD_SWIFT: Swift
|
|
22
22
|
*/
|
|
23
23
|
export declare enum PaymentMethodType {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
MethodWire = "METHOD_WIRE",
|
|
25
|
+
MethodSen = "METHOD_SEN",
|
|
26
|
+
MethodSwift = "METHOD_SWIFT"
|
|
27
27
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum ProductPermissions {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ProductPermissionRead = "PRODUCT_PERMISSION_READ",
|
|
22
|
+
ProductPermissionTrade = "PRODUCT_PERMISSION_TRADE",
|
|
23
|
+
ProductPermissionLending = "PRODUCT_PERMISSION_LENDING"
|
|
24
24
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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 declare enum ValidatorStatus {
|
|
21
|
+
ValidatorStatusUnspecified = "VALIDATOR_STATUS_UNSPECIFIED",
|
|
22
|
+
ValidatorStatusPending = "VALIDATOR_STATUS_PENDING",
|
|
23
|
+
ValidatorStatusActive = "VALIDATOR_STATUS_ACTIVE",
|
|
24
|
+
ValidatorStatusExiting = "VALIDATOR_STATUS_EXITING",
|
|
25
|
+
ValidatorStatusExited = "VALIDATOR_STATUS_EXITED",
|
|
26
|
+
ValidatorStatusWithdrawn = "VALIDATOR_STATUS_WITHDRAWN"
|
|
27
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
export declare enum WalletVisibility {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
WalletVisibilityUnspecified = "WALLET_VISIBILITY_UNSPECIFIED",
|
|
22
|
+
WalletVisibilityVisible = "WALLET_VISIBILITY_VISIBLE",
|
|
23
|
+
WalletVisibilityHidden = "WALLET_VISIBILITY_HIDDEN"
|
|
24
24
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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
|
+
* - CALL_STATUS_OPEN: Margin call is open and not expired - CALL_STATUS_AGED: Margin call is open and it is expired - CALL_STATUS_SETTLED: Margin call is fully settled - CALL_STATUS_CANCELED: Margin call was canceled by Credit Risk
|
|
22
|
+
*/
|
|
23
|
+
export declare enum XMCallStatus {
|
|
24
|
+
XmCallStatusUnspecified = "XM_CALL_STATUS_UNSPECIFIED",
|
|
25
|
+
CallStatusOpen = "CALL_STATUS_OPEN",
|
|
26
|
+
CallStatusAged = "CALL_STATUS_AGED",
|
|
27
|
+
CallStatusSettled = "CALL_STATUS_SETTLED",
|
|
28
|
+
CallStatusCanceled = "CALL_STATUS_CANCELED"
|
|
29
|
+
}
|