@coinbase-sample/prime-sdk-ts 0.6.4 → 0.7.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.
Files changed (101) hide show
  1. package/dist/constants.js +1 -1
  2. package/dist/financing/index.js +9 -0
  3. package/dist/futures/index.js +18 -0
  4. package/dist/model/CrossMarginOverview.js +21 -0
  5. package/dist/model/EditOrderRequest.js +21 -0
  6. package/dist/model/EditOrderResponse.js +21 -0
  7. package/dist/model/GetCrossMarginOverviewResponse.js +21 -0
  8. package/dist/model/ListTransactionValidatorsRequest.js +21 -0
  9. package/dist/model/ListTransactionValidatorsResponse.js +21 -0
  10. package/dist/model/StakingClaimRewardsRequest.js +21 -0
  11. package/dist/model/StakingClaimRewardsResponse.js +21 -0
  12. package/dist/model/TransactionValidator.js +21 -0
  13. package/dist/model/WalletClaimRewardsInputs.js +21 -0
  14. package/dist/model/XMLoan.js +21 -0
  15. package/dist/model/XMMarginCall.js +21 -0
  16. package/dist/model/XMPosition.js +21 -0
  17. package/dist/model/XMRiskNettingInfo.js +21 -0
  18. package/dist/model/XMSummary.js +21 -0
  19. package/dist/model/enums/ActivityCategory.js +0 -1
  20. package/dist/model/enums/ActivityLevel.js +3 -3
  21. package/dist/model/enums/AddressBookType.js +3 -3
  22. package/dist/model/enums/AllocationStatus.js +5 -5
  23. package/dist/model/enums/CustodyActivityType.js +29 -29
  24. package/dist/model/enums/DestinationType.js +4 -4
  25. package/dist/model/enums/FcmFuturesSweepStatus.js +5 -5
  26. package/dist/model/enums/FcmMarginCallState.js +5 -5
  27. package/dist/model/enums/FcmMarginCallType.js +3 -3
  28. package/dist/model/enums/HierarchyType.js +3 -3
  29. package/dist/model/enums/InvoiceState.js +5 -5
  30. package/dist/model/enums/InvoiceType.js +6 -6
  31. package/dist/model/enums/LoanType.js +1 -0
  32. package/dist/model/enums/NetworkFamily.js +3 -3
  33. package/dist/model/enums/NetworkType.js +3 -3
  34. package/dist/model/enums/PaymentMethodType.js +3 -3
  35. package/dist/model/enums/ProductPermissions.js +3 -3
  36. package/dist/model/enums/ValidatorStatus.js +31 -0
  37. package/dist/model/enums/WalletVisibility.js +3 -3
  38. package/dist/model/enums/XMCallStatus.js +33 -0
  39. package/dist/model/enums/XMCallType.js +31 -0
  40. package/dist/model/enums/XMControlStatus.js +32 -0
  41. package/dist/model/enums/XMEntityCallStatus.js +33 -0
  42. package/dist/model/enums/XMMarginLevel.js +34 -0
  43. package/dist/model/enums/XMParty.js +31 -0
  44. package/dist/model/enums/index.js +15 -1
  45. package/dist/orders/index.js +12 -0
  46. package/dist/staking/index.js +37 -0
  47. package/dist/types/constants.d.ts +1 -1
  48. package/dist/types/financing/index.d.ts +3 -1
  49. package/dist/types/financing/types.d.ts +5 -1
  50. package/dist/types/futures/index.d.ts +6 -1
  51. package/dist/types/futures/types.d.ts +9 -1
  52. package/dist/types/index.d.ts +3 -3
  53. package/dist/types/model/CrossMarginOverview.d.ts +39 -0
  54. package/dist/types/model/EditOrderRequest.d.ts +61 -0
  55. package/dist/types/model/EditOrderResponse.d.ts +25 -0
  56. package/dist/types/model/GetCrossMarginOverviewResponse.d.ts +23 -0
  57. package/dist/types/model/ListTransactionValidatorsRequest.d.ts +35 -0
  58. package/dist/types/model/ListTransactionValidatorsResponse.d.ts +28 -0
  59. package/dist/types/model/RFQProductDetails.d.ts +21 -0
  60. package/dist/types/model/StakingClaimRewardsRequest.d.ts +27 -0
  61. package/dist/types/model/StakingClaimRewardsResponse.d.ts +33 -0
  62. package/dist/types/model/TransactionValidator.d.ts +31 -0
  63. package/dist/types/model/WalletClaimRewardsInputs.d.ts +28 -0
  64. package/dist/types/model/XMLoan.d.ts +51 -0
  65. package/dist/types/model/XMMarginCall.d.ts +57 -0
  66. package/dist/types/model/XMPosition.d.ts +121 -0
  67. package/dist/types/model/XMRiskNettingInfo.d.ts +76 -0
  68. package/dist/types/model/XMSummary.d.ts +55 -0
  69. package/dist/types/model/enums/ActivityCategory.d.ts +0 -1
  70. package/dist/types/model/enums/ActivityLevel.d.ts +3 -3
  71. package/dist/types/model/enums/AddressBookType.d.ts +3 -3
  72. package/dist/types/model/enums/AllocationStatus.d.ts +5 -5
  73. package/dist/types/model/enums/CustodyActivityType.d.ts +29 -29
  74. package/dist/types/model/enums/DestinationType.d.ts +4 -4
  75. package/dist/types/model/enums/FcmFuturesSweepStatus.d.ts +5 -5
  76. package/dist/types/model/enums/FcmMarginCallState.d.ts +5 -5
  77. package/dist/types/model/enums/FcmMarginCallType.d.ts +3 -3
  78. package/dist/types/model/enums/HierarchyType.d.ts +3 -3
  79. package/dist/types/model/enums/InvoiceState.d.ts +5 -5
  80. package/dist/types/model/enums/InvoiceType.d.ts +6 -6
  81. package/dist/types/model/enums/LoanType.d.ts +2 -1
  82. package/dist/types/model/enums/NetworkFamily.d.ts +3 -3
  83. package/dist/types/model/enums/NetworkType.d.ts +3 -3
  84. package/dist/types/model/enums/PaymentMethodType.d.ts +3 -3
  85. package/dist/types/model/enums/ProductPermissions.d.ts +3 -3
  86. package/dist/types/model/enums/ValidatorStatus.d.ts +27 -0
  87. package/dist/types/model/enums/WalletVisibility.d.ts +3 -3
  88. package/dist/types/model/enums/XMCallStatus.d.ts +29 -0
  89. package/dist/types/model/enums/XMCallType.d.ts +27 -0
  90. package/dist/types/model/enums/XMControlStatus.d.ts +28 -0
  91. package/dist/types/model/enums/XMEntityCallStatus.d.ts +29 -0
  92. package/dist/types/model/enums/XMMarginLevel.d.ts +30 -0
  93. package/dist/types/model/enums/XMParty.d.ts +27 -0
  94. package/dist/types/model/enums/index.d.ts +7 -0
  95. package/dist/types/model/index.d.ts +15 -3
  96. package/dist/types/orders/index.d.ts +3 -1
  97. package/dist/types/orders/types.d.ts +6 -1
  98. package/dist/types/staking/index.d.ts +5 -1
  99. package/dist/types/staking/types.d.ts +13 -1
  100. package/dist/types/wallets/types.d.ts +1 -1
  101. package/package.json +4 -3
@@ -0,0 +1,25 @@
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 EditOrderResponse = {
21
+ /**
22
+ * The ID of the order being edited
23
+ */
24
+ orderId?: string;
25
+ };
@@ -0,0 +1,23 @@
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 { CrossMarginOverview } from './CrossMarginOverview';
21
+ export type GetCrossMarginOverviewResponse = {
22
+ overview?: CrossMarginOverview;
23
+ };
@@ -0,0 +1,35 @@
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 { SortDirection } from './enums/SortDirection';
21
+ export type ListTransactionValidatorsRequest = {
22
+ /**
23
+ * List of transaction IDs to filter validators by. Maximum of 100 transaction IDs allowed per request.
24
+ */
25
+ transactionIds: Array<string>;
26
+ /**
27
+ * Cursor for pagination
28
+ */
29
+ cursor?: string;
30
+ /**
31
+ * Maximum number of transaction-validator associations to return per page. Default is 100, maximum is 1000.
32
+ */
33
+ limit?: number;
34
+ sortDirection?: SortDirection;
35
+ };
@@ -0,0 +1,28 @@
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 { PaginatedResponse } from './PaginatedResponse';
21
+ import { TransactionValidator } from './TransactionValidator';
22
+ export type ListTransactionValidatorsResponse = {
23
+ /**
24
+ * List of transaction-to-validator associations. Each entry represents one transaction staking to one validator.
25
+ */
26
+ transactionValidators: Array<TransactionValidator>;
27
+ pagination: PaginatedResponse;
28
+ };
@@ -18,11 +18,32 @@
18
18
  * Do not edit the class manually.
19
19
  */
20
20
  export type RFQProductDetails = {
21
+ /**
22
+ * Whether the product is tradable via RFQ
23
+ */
21
24
  tradable?: boolean;
25
+ /**
26
+ * Deprecated: Value will be an empty string
27
+ */
22
28
  minNotionalSize?: string;
29
+ /**
30
+ * Deprecated: Value will be an empty string
31
+ */
23
32
  maxNotionalSize?: string;
33
+ /**
34
+ * Minimum base size for RFQ
35
+ */
24
36
  minBaseSize?: string;
37
+ /**
38
+ * Maximum base size for RFQ
39
+ */
25
40
  maxBaseSize?: string;
41
+ /**
42
+ * Minimum quote size for RFQ
43
+ */
26
44
  minQuoteSize?: string;
45
+ /**
46
+ * Maximum quote size for RFQ
47
+ */
27
48
  maxQuoteSize?: string;
28
49
  };
@@ -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
+ import { WalletClaimRewardsInputs } from './WalletClaimRewardsInputs';
21
+ export type StakingClaimRewardsRequest = {
22
+ /**
23
+ * The client generated idempotency key for requested execution. Any subsequent requests with the same key will return the original response
24
+ */
25
+ idempotencyKey: string;
26
+ inputs?: WalletClaimRewardsInputs;
27
+ };
@@ -0,0 +1,33 @@
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 StakingClaimRewardsResponse = {
21
+ /**
22
+ * The wallet ID
23
+ */
24
+ walletId: string;
25
+ /**
26
+ * ID of the newly created transaction, can be used to fetch details of the current state of execution
27
+ */
28
+ transactionId: string;
29
+ /**
30
+ * The ID for the activity generated for this request
31
+ */
32
+ activityId: string;
33
+ };
@@ -0,0 +1,31 @@
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 { ValidatorStatus } from './enums/ValidatorStatus';
21
+ export type TransactionValidator = {
22
+ /**
23
+ * The ID of the transaction which staked to this validator
24
+ */
25
+ transactionId: string;
26
+ /**
27
+ * The address (public key) of the validator
28
+ */
29
+ validatorAddress: string;
30
+ validatorStatus: ValidatorStatus;
31
+ };
@@ -0,0 +1,28 @@
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
+ * WalletClaimRewardsInputs contains the custom inputs for claim rewards operations on a wallet. Requirements and supported fields vary by asset type.
22
+ */
23
+ export type WalletClaimRewardsInputs = {
24
+ /**
25
+ * Optional amount to claim rewards (ETH only). If omitted, the wallet will claim the maximum amount available
26
+ */
27
+ amount?: string;
28
+ };
@@ -0,0 +1,51 @@
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 { XMParty } from './enums/XMParty';
21
+ export type XMLoan = {
22
+ /**
23
+ * Financing loan UUID
24
+ */
25
+ loanId?: string;
26
+ loanParty?: XMParty;
27
+ /**
28
+ * Loan principal currency
29
+ */
30
+ principalCurrency?: string;
31
+ /**
32
+ * Loan principal currency market price
33
+ */
34
+ principalCurrencyMarketPrice?: string;
35
+ /**
36
+ * Principal amount (nominal) as of loan initiation
37
+ */
38
+ initialPrincipalAmount?: string;
39
+ /**
40
+ * Current outstanding amount (nominal)
41
+ */
42
+ outstandingPrincipalAmount?: string;
43
+ /**
44
+ * Timestamp when the loan was created / initiated
45
+ */
46
+ createdAt?: Date;
47
+ /**
48
+ * Timestamp when the loan was last updated
49
+ */
50
+ updatedAt?: Date;
51
+ };
@@ -0,0 +1,57 @@
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 { XMCallStatus } from './enums/XMCallStatus';
21
+ import { XMCallType } from './enums/XMCallType';
22
+ import { XMMarginLevel } from './enums/XMMarginLevel';
23
+ import { XMSummary } from './XMSummary';
24
+ export type XMMarginCall = {
25
+ /**
26
+ * Financing margin call UUID
27
+ */
28
+ marginCallId?: string;
29
+ /**
30
+ * Margin call currency
31
+ */
32
+ currency?: string;
33
+ /**
34
+ * Call amount (notional) as of the margin call creation
35
+ */
36
+ initialNotionalAmount?: string;
37
+ /**
38
+ * Current outstanding call amount (notional)
39
+ */
40
+ outstandingNotionalAmount?: string;
41
+ marginCallType?: XMCallType;
42
+ marginCallStatus?: XMCallStatus;
43
+ calledWithMarginLevel?: XMMarginLevel;
44
+ calledWithMarginSummary?: XMSummary;
45
+ /**
46
+ * Timestamp when the margin call settlement is due
47
+ */
48
+ dueAt?: Date;
49
+ /**
50
+ * Timestamp when the margin call was created
51
+ */
52
+ createdAt?: Date;
53
+ /**
54
+ * Timestamp when the margin call was last updated
55
+ */
56
+ updatedAt?: Date;
57
+ };
@@ -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
- All = "ACTIVITY_LEVEL_ALL",
22
- Portfolio = "ACTIVITY_LEVEL_PORTFOLIO",
23
- Entity = "ACTIVITY_LEVEL_ENTITY"
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
- Unspecified = "ADDRESS_BOOK_TYPE_UNSPECIFIED",
22
- Address = "ADDRESS_BOOK_TYPE_ADDRESS",
23
- CounterpartyId = "ADDRESS_BOOK_TYPE_COUNTERPARTY_ID"
21
+ AddressBookTypeUnspecified = "ADDRESS_BOOK_TYPE_UNSPECIFIED",
22
+ AddressBookTypeAddress = "ADDRESS_BOOK_TYPE_ADDRESS",
23
+ AddressBookTypeCounterpartyId = "ADDRESS_BOOK_TYPE_COUNTERPARTY_ID"
24
24
  }