@coinbase-sample/prime-sdk-ts 0.4.1 → 0.6.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 (155) hide show
  1. package/README.md +22 -0
  2. package/dist/activities/index.js +40 -4
  3. package/dist/addressBooks/index.js +4 -2
  4. package/dist/allocations/index.js +19 -3
  5. package/dist/balances/index.js +17 -5
  6. package/dist/client.js +7 -2
  7. package/dist/constants.js +5 -2
  8. package/dist/financing/index.js +18 -0
  9. package/dist/index.js +3 -1
  10. package/dist/invoices/index.js +16 -3
  11. package/dist/model/Counterparty.js +21 -0
  12. package/dist/model/CounterpartyDestination.js +21 -0
  13. package/dist/model/CreateNetAllocationRequest.js +21 -0
  14. package/dist/model/CreateWalletDepositAddressRequest.js +21 -0
  15. package/dist/model/FCMMarginCall.js +21 -0
  16. package/dist/model/GetFcmMarginCallDetailsResponse.js +21 -0
  17. package/dist/model/GetFcmRiskLimitsResponse.js +21 -0
  18. package/dist/model/GetOrderEditHistoryResponse.js +21 -0
  19. package/dist/model/GetPortfolioCounterpartyIDResponse.js +21 -0
  20. package/dist/model/LimitOrderEdit.js +21 -0
  21. package/dist/model/ListWalletAddressesResponse.js +21 -0
  22. package/dist/model/OrderEdit.js +21 -0
  23. package/dist/model/PortfolioStakingInitiateRequest.js +21 -0
  24. package/dist/model/PortfolioStakingInitiateResponse.js +21 -0
  25. package/dist/model/PortfolioStakingMetadata.js +21 -0
  26. package/dist/model/PortfolioStakingUnstakeRequest.js +21 -0
  27. package/dist/model/PortfolioStakingUnstakeResponse.js +21 -0
  28. package/dist/model/StakingUnstakeRequest.js +21 -0
  29. package/dist/model/WalletStakeInputs.js +21 -0
  30. package/dist/model/WalletUnstakeInputs.js +21 -0
  31. package/dist/model/enums/AllocationSizeType.js +0 -1
  32. package/dist/model/enums/AssetChangeType.js +0 -1
  33. package/dist/model/enums/CustodyActivityType.js +0 -1
  34. package/dist/model/enums/DestinationType.js +4 -4
  35. package/dist/model/enums/FcmMarginCallState.js +30 -0
  36. package/dist/model/enums/FcmMarginCallType.js +28 -0
  37. package/dist/model/enums/OrderSide.js +0 -1
  38. package/dist/model/enums/OrderStatus.js +0 -1
  39. package/dist/model/enums/OrderType.js +0 -1
  40. package/dist/model/enums/PaymentMethodType.js +3 -4
  41. package/dist/model/enums/PortfolioBalanceType.js +0 -1
  42. package/dist/model/enums/ProductPermissions.js +0 -1
  43. package/dist/model/enums/SigningStatus.js +0 -1
  44. package/dist/model/enums/TimeInForceType.js +0 -1
  45. package/dist/model/enums/TransactionStatus.js +1 -2
  46. package/dist/model/enums/TransactionType.js +0 -1
  47. package/dist/model/enums/TransferLocationType.js +0 -1
  48. package/dist/model/enums/UserRole.js +0 -1
  49. package/dist/model/enums/VisibilityStatus.js +0 -1
  50. package/dist/model/enums/WalletDepositInstructionType.js +0 -1
  51. package/dist/model/enums/WalletType.js +0 -1
  52. package/dist/model/enums/index.js +5 -1
  53. package/dist/orders/index.js +63 -8
  54. package/dist/portfolios/index.js +9 -0
  55. package/dist/portfolios/types.js +15 -0
  56. package/dist/positions/index.js +9 -6
  57. package/dist/products/index.js +4 -2
  58. package/dist/shared/brand.js +15 -0
  59. package/dist/shared/paginatedResponse.js +185 -0
  60. package/dist/shared/pagination.js +15 -0
  61. package/dist/shared/toCamelCase.js +15 -0
  62. package/dist/staking/index.js +24 -0
  63. package/dist/transactions/index.js +17 -2
  64. package/dist/types/activities/types.d.ts +6 -3
  65. package/dist/types/addressBooks/types.d.ts +4 -2
  66. package/dist/types/allocations/types.d.ts +4 -2
  67. package/dist/types/assets/types.d.ts +1 -1
  68. package/dist/types/balances/types.d.ts +6 -3
  69. package/dist/types/client.d.ts +2 -2
  70. package/dist/types/commission/types.d.ts +1 -1
  71. package/dist/types/constants.d.ts +4 -1
  72. package/dist/types/financing/index.d.ts +5 -1
  73. package/dist/types/financing/types.d.ts +10 -2
  74. package/dist/types/futures/types.d.ts +1 -1
  75. package/dist/types/index.d.ts +5 -4
  76. package/dist/types/invoices/index.d.ts +2 -2
  77. package/dist/types/invoices/types.d.ts +9 -3
  78. package/dist/types/model/Commission.d.ts +1 -1
  79. package/dist/types/model/Counterparty.d.ts +25 -0
  80. package/dist/types/model/CounterpartyDestination.d.ts +22 -0
  81. package/dist/types/model/CreateAllocationRequest.d.ts +0 -4
  82. package/dist/types/model/CreateNetAllocationRequest.d.ts +48 -0
  83. package/dist/types/model/CreateOnchainTransactionRequestEvmParams.d.ts +1 -1
  84. package/dist/types/model/CreateOrderRequest.d.ts +6 -2
  85. package/dist/types/model/CreateWalletDepositAddressRequest.d.ts +25 -0
  86. package/dist/types/model/CreateWalletWithdrawalRequest.d.ts +2 -0
  87. package/dist/types/model/CreateWalletWithdrawalResponse.d.ts +2 -0
  88. package/dist/types/model/FCMMarginCall.d.ts +41 -0
  89. package/dist/types/model/Fill.d.ts +9 -1
  90. package/dist/types/model/GetFcmBalanceResponse.d.ts +4 -0
  91. package/dist/types/model/GetFcmMarginCallDetailsResponse.d.ts +26 -0
  92. package/dist/types/model/GetFcmRiskLimitsResponse.d.ts +45 -0
  93. package/dist/types/model/GetOrderEditHistoryResponse.d.ts +35 -0
  94. package/dist/types/model/GetPortfolioCounterpartyIDResponse.d.ts +23 -0
  95. package/dist/types/model/LimitOrderEdit.d.ts +29 -0
  96. package/dist/types/model/ListWalletAddressesResponse.d.ts +25 -0
  97. package/dist/types/model/Order.d.ts +31 -1
  98. package/dist/types/model/OrderEdit.d.ts +30 -0
  99. package/dist/types/model/OrderPreviewRequest.d.ts +11 -2
  100. package/dist/types/model/PortfolioStakingInitiateRequest.d.ts +35 -0
  101. package/dist/types/model/PortfolioStakingInitiateResponse.d.ts +29 -0
  102. package/dist/types/model/PortfolioStakingMetadata.d.ts +25 -0
  103. package/dist/types/model/PortfolioStakingUnstakeRequest.d.ts +35 -0
  104. package/dist/types/model/PortfolioStakingUnstakeResponse.d.ts +29 -0
  105. package/dist/types/model/PostOrderPreviewResponse.d.ts +20 -0
  106. package/dist/types/model/RFQProductDetails.d.ts +4 -0
  107. package/dist/types/model/StakingInitiateRequest.d.ts +5 -2
  108. package/dist/types/model/StakingInitiateResponse.d.ts +3 -0
  109. package/dist/types/model/StakingUnstakeRequest.d.ts +30 -0
  110. package/dist/types/model/StakingUnstakeResponse.d.ts +3 -0
  111. package/dist/types/model/TransferLocation.d.ts +8 -0
  112. package/dist/types/model/WalletStakeInputs.d.ts +32 -0
  113. package/dist/types/model/WalletUnstakeInputs.d.ts +28 -0
  114. package/dist/types/model/enums/AllocationSizeType.d.ts +0 -1
  115. package/dist/types/model/enums/AssetChangeType.d.ts +0 -1
  116. package/dist/types/model/enums/CustodyActivityType.d.ts +0 -1
  117. package/dist/types/model/enums/DestinationType.d.ts +4 -4
  118. package/dist/types/model/enums/FcmMarginCallState.d.ts +26 -0
  119. package/dist/types/model/enums/FcmMarginCallType.d.ts +24 -0
  120. package/dist/types/model/enums/OrderSide.d.ts +0 -1
  121. package/dist/types/model/enums/OrderStatus.d.ts +0 -1
  122. package/dist/types/model/enums/OrderType.d.ts +0 -1
  123. package/dist/types/model/enums/PaymentMethodType.d.ts +3 -4
  124. package/dist/types/model/enums/PortfolioBalanceType.d.ts +0 -1
  125. package/dist/types/model/enums/ProductPermissions.d.ts +0 -1
  126. package/dist/types/model/enums/SigningStatus.d.ts +0 -1
  127. package/dist/types/model/enums/TimeInForceType.d.ts +0 -1
  128. package/dist/types/model/enums/TransactionStatus.d.ts +1 -2
  129. package/dist/types/model/enums/TransactionType.d.ts +0 -1
  130. package/dist/types/model/enums/TransferLocationType.d.ts +0 -1
  131. package/dist/types/model/enums/UserRole.d.ts +0 -1
  132. package/dist/types/model/enums/VisibilityStatus.d.ts +0 -1
  133. package/dist/types/model/enums/WalletDepositInstructionType.d.ts +0 -1
  134. package/dist/types/model/enums/WalletType.d.ts +0 -1
  135. package/dist/types/model/enums/index.d.ts +2 -0
  136. package/dist/types/model/index.d.ts +20 -0
  137. package/dist/types/onchainAddressBook/types.d.ts +1 -1
  138. package/dist/types/orders/index.d.ts +3 -1
  139. package/dist/types/orders/types.d.ts +17 -7
  140. package/dist/types/paymentMethods/types.d.ts +1 -1
  141. package/dist/types/portfolios/index.d.ts +3 -1
  142. package/dist/types/portfolios/types.d.ts +6 -2
  143. package/dist/types/positions/types.d.ts +9 -9
  144. package/dist/types/products/types.d.ts +4 -2
  145. package/dist/types/shared/brand.d.ts +15 -0
  146. package/dist/types/shared/paginatedResponse.d.ts +120 -0
  147. package/dist/types/shared/toCamelCase.d.ts +15 -0
  148. package/dist/types/staking/index.d.ts +5 -1
  149. package/dist/types/staking/types.d.ts +10 -2
  150. package/dist/types/transactions/types.d.ts +7 -3
  151. package/dist/types/users/types.d.ts +9 -5
  152. package/dist/types/wallets/types.d.ts +7 -5
  153. package/dist/users/index.js +11 -2
  154. package/dist/wallets/index.js +17 -21
  155. package/package.json +12 -11
@@ -19,7 +19,7 @@
19
19
  */
20
20
  export type Commission = {
21
21
  /**
22
- * Hardcode type to all_in. When we support cost+, we will have cost_plus type
22
+ * Fee model (all_in or cost_plus)
23
23
  */
24
24
  type?: string;
25
25
  /**
@@ -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 Counterparty = {
21
+ /**
22
+ * The unique counterparty ID for the portfolio
23
+ */
24
+ counterpartyId?: string;
25
+ };
@@ -0,0 +1,22 @@
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 CounterpartyDestination = {
21
+ counterpartyId?: string;
22
+ };
@@ -45,8 +45,4 @@ export type CreateAllocationRequest = {
45
45
  * The portfolio where to allocate the remainder of the size
46
46
  */
47
47
  remainderDestinationPortfolio?: string;
48
- /**
49
- * The ID to identify an in-flight net allocation.
50
- */
51
- nettingId?: string;
52
48
  };
@@ -0,0 +1,48 @@
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 { AllocationLeg } from './AllocationLeg';
21
+ import { AllocationSizeType } from './enums/AllocationSizeType';
22
+ export type CreateNetAllocationRequest = {
23
+ /**
24
+ * The source portfolio id for the allocation
25
+ */
26
+ sourcePortfolioId?: string;
27
+ /**
28
+ * The product for the allocation
29
+ */
30
+ productId?: string;
31
+ /**
32
+ * The list of order ids in the allocation
33
+ */
34
+ orderIds?: Array<string>;
35
+ /**
36
+ * The list of allocation_legs for the allocation
37
+ */
38
+ allocationLegs?: Array<AllocationLeg>;
39
+ sizeType?: AllocationSizeType;
40
+ /**
41
+ * The portfolio where to allocate the remainder of the size
42
+ */
43
+ remainderDestinationPortfolio?: string;
44
+ /**
45
+ * The ID to identify an in-flight net allocation.
46
+ */
47
+ nettingId?: string;
48
+ };
@@ -27,7 +27,7 @@ export type CreateOnchainTransactionRequestEvmParams = {
27
27
  */
28
28
  disableDynamicNonce?: boolean;
29
29
  /**
30
- * Transaction ID to replace (for speed-up/cancel operations). Common use cases: 1) Gas Price Adjustments: When a transaction is stuck due to low gas price, a new transaction with the same nonce but higher gas price can be submitted to replace it. 2) Transaction Cancellation: A user might want to cancel a pending transaction by replacing it with a new transaction (often a 0-value transfer to themselves with higher gas price). Note: When using this field, the disable_dynamic_nonce option must be set to false because the nonce will be automatically managed by the system.
30
+ * Transaction ID to replace (for speed-up/cancel operations). Common use cases: 1) Gas Price Adjustments: When a transaction is stuck due to low gas price, a new transaction with the same nonce but higher gas price can be submitted to replace it. 2) Transaction Cancellation: A user might want to cancel a pending transaction by replacing it with a new transaction (often a 0-value transfer to themselves with higher gas price). Note: When using this field, the disable_dynamic_nonce option must be set to false because the nonce would be automatically managed by the system.
31
31
  */
32
32
  replacedTransactionId?: string;
33
33
  /**
@@ -32,13 +32,17 @@ export type CreateOrderRequest = {
32
32
  expiryTime?: Date;
33
33
  timeInForce?: TimeInForceType;
34
34
  stpId?: string;
35
+ /**
36
+ * Optionally specify a display size. This is the maximum order size that will show up on venue order books. Specifying a value here effectively makes a LIMIT order into an \"iceberg\" style order. This property only applies to LIMIT orders and will be ignored for other order types.
37
+ */
35
38
  displayQuoteSize?: string;
36
39
  displayBaseSize?: string;
37
40
  isRaiseExact?: boolean;
38
41
  historicalPov?: string;
39
42
  stopPrice?: string;
43
+ settlCurrency?: string;
40
44
  /**
41
- * next: 19
45
+ * Post-only flag - when true, the order will only be posted to the order book and not immediately matched. Only applicable to LIMIT orders with GTC or GTD time in force. next: 20
42
46
  */
43
- settlCurrency?: string;
47
+ postOnly?: boolean;
44
48
  };
@@ -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 CreateWalletDepositAddressRequest = {
21
+ /**
22
+ * The network name and type
23
+ */
24
+ networkId: string;
25
+ };
@@ -18,6 +18,7 @@
18
18
  * Do not edit the class manually.
19
19
  */
20
20
  import { BlockchainAddress } from './BlockchainAddress';
21
+ import { CounterpartyDestination } from './CounterpartyDestination';
21
22
  import { DestinationType } from './enums/DestinationType';
22
23
  import { PaymentMethodDestination } from './PaymentMethodDestination';
23
24
  export type CreateWalletWithdrawalRequest = {
@@ -36,4 +37,5 @@ export type CreateWalletWithdrawalRequest = {
36
37
  currencySymbol: string;
37
38
  paymentMethod?: PaymentMethodDestination;
38
39
  blockchainAddress?: BlockchainAddress;
40
+ counterparty?: CounterpartyDestination;
39
41
  };
@@ -18,6 +18,7 @@
18
18
  * Do not edit the class manually.
19
19
  */
20
20
  import { BlockchainAddress } from './BlockchainAddress';
21
+ import { CounterpartyDestination } from './CounterpartyDestination';
21
22
  export type CreateWalletWithdrawalResponse = {
22
23
  /**
23
24
  * The activity ID associated with the withdrawal
@@ -48,6 +49,7 @@ export type CreateWalletWithdrawalResponse = {
48
49
  */
49
50
  sourceType?: string;
50
51
  blockchainDestination?: BlockchainAddress;
52
+ counterpartyDestination?: CounterpartyDestination;
51
53
  blockchainSource?: BlockchainAddress;
52
54
  /**
53
55
  * The id of the just created transaction
@@ -0,0 +1,41 @@
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 { FcmMarginCallState } from './enums/FcmMarginCallState';
21
+ import { FcmMarginCallType } from './enums/FcmMarginCallType';
22
+ export type FCMMarginCall = {
23
+ type?: FcmMarginCallType;
24
+ state?: FcmMarginCallState;
25
+ /**
26
+ * Initial margin call amount to settle
27
+ */
28
+ initialAmount?: string;
29
+ /**
30
+ * Remaining margin call amount to settle
31
+ */
32
+ remainingAmount?: string;
33
+ /**
34
+ * Business date when the margin call was opened
35
+ */
36
+ businessDate?: Date;
37
+ /**
38
+ * The deadline by which the margin call must be satisfied
39
+ */
40
+ cureDeadline?: Date;
41
+ };
@@ -32,7 +32,7 @@ export type Fill = {
32
32
  */
33
33
  productId?: string;
34
34
  /**
35
- * The client product ID of the fill indicating the settlement currency
35
+ * The client product ID of the fill indictating the settlment currency
36
36
  */
37
37
  clientProductId?: string;
38
38
  side?: OrderSide;
@@ -60,4 +60,12 @@ export type Fill = {
60
60
  * The name of the venue
61
61
  */
62
62
  venue?: string;
63
+ /**
64
+ * The venue fees incurred for the fill
65
+ */
66
+ venueFees?: string;
67
+ /**
68
+ * The CES commission incurred for the fill
69
+ */
70
+ cesCommission?: string;
63
71
  };
@@ -54,4 +54,8 @@ export type GetFcmBalanceResponse = {
54
54
  * Clearing account ID
55
55
  */
56
56
  clearingAccountId?: string;
57
+ /**
58
+ * Unsettled accrued funding PNL from the last settlement
59
+ */
60
+ cfmUnsettledAccruedFundingPnl?: string;
57
61
  };
@@ -0,0 +1,26 @@
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 { FCMMarginCall } from './FCMMarginCall';
21
+ export type GetFcmMarginCallDetailsResponse = {
22
+ /**
23
+ * List of margin calls
24
+ */
25
+ marginCalls?: Array<FCMMarginCall>;
26
+ };
@@ -0,0 +1,45 @@
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 GetFcmRiskLimitsResponse = {
21
+ /**
22
+ * Risk Limit set for a client
23
+ */
24
+ cfmRiskLimit?: string;
25
+ /**
26
+ * Limit utilization calculated based on total margin and PnLs
27
+ */
28
+ cfmRiskLimitUtilization?: string;
29
+ /**
30
+ * The total margin required for both positions and open orders
31
+ */
32
+ cfmTotalMargin?: string;
33
+ /**
34
+ * Open Trade Equity accrued during the current trading session
35
+ */
36
+ cfmDeltaOte?: string;
37
+ /**
38
+ * Unsettled realized PNL for positions closed intraday
39
+ */
40
+ cfmUnsettledRealizedPnl?: string;
41
+ /**
42
+ * Unsettled accrued funding PNL from the last settlement
43
+ */
44
+ cfmUnsettledAccruedFundingPnl?: string;
45
+ };
@@ -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 { LimitOrderEdit } from './LimitOrderEdit';
21
+ import { OrderEdit } from './OrderEdit';
22
+ export type GetOrderEditHistoryResponse = {
23
+ /**
24
+ * The order ID
25
+ */
26
+ orderId: string;
27
+ /**
28
+ * The history of order edits (deprecated: use edit_history instead)
29
+ */
30
+ orderEditHistory?: Array<LimitOrderEdit>;
31
+ /**
32
+ * The history of order edits
33
+ */
34
+ editHistory: Array<OrderEdit>;
35
+ };
@@ -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 { Counterparty } from './Counterparty';
21
+ export type GetPortfolioCounterpartyIDResponse = {
22
+ counterparty?: Counterparty;
23
+ };
@@ -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
+ export type LimitOrderEdit = {
21
+ price?: string;
22
+ size?: string;
23
+ displaySize?: string;
24
+ stopPrice?: string;
25
+ stopLimitPrice?: string;
26
+ endTime?: Date;
27
+ acceptTime?: Date;
28
+ clientOrderId?: string;
29
+ };
@@ -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
+ import { BlockchainAddress } from './BlockchainAddress';
21
+ import { PaginatedResponse } from './PaginatedResponse';
22
+ export type ListWalletAddressesResponse = {
23
+ addresses: Array<BlockchainAddress>;
24
+ pagination: PaginatedResponse;
25
+ };
@@ -17,6 +17,8 @@
17
17
  *
18
18
  * Do not edit the class manually.
19
19
  */
20
+ import { LimitOrderEdit } from './LimitOrderEdit';
21
+ import { OrderEdit } from './OrderEdit';
20
22
  import { OrderSide } from './enums/OrderSide';
21
23
  import { OrderStatus } from './enums/OrderStatus';
22
24
  import { OrderType } from './enums/OrderType';
@@ -107,7 +109,35 @@ export type Order = {
107
109
  */
108
110
  userContext?: string;
109
111
  /**
110
- * The client product ID of the fill indicating the settlement currency
112
+ * The client product ID of the fill indictating the settlment currency
111
113
  */
112
114
  clientProductId?: string;
115
+ /**
116
+ * Post-only flag - indicates whether the order was placed as post-only
117
+ */
118
+ postOnly?: boolean;
119
+ /**
120
+ * The history of order edits (deprecated: use edit_history instead)
121
+ */
122
+ orderEditHistory?: Array<LimitOrderEdit>;
123
+ /**
124
+ * Indicates if this was a raise exact order (size inclusive of fees for sell orders in quote)
125
+ */
126
+ isRaiseExact?: boolean;
127
+ /**
128
+ * Display size for the order
129
+ */
130
+ displaySize?: string;
131
+ /**
132
+ * The history of order edits
133
+ */
134
+ editHistory?: Array<OrderEdit>;
135
+ /**
136
+ * The maximum order size that will show up on venue order books (in quote currency).
137
+ */
138
+ displayQuoteSize?: string;
139
+ /**
140
+ * The maximum order size that will show up on venue order books (in base currency).
141
+ */
142
+ displayBaseSize?: string;
113
143
  };
@@ -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 type OrderEdit = {
21
+ price?: string;
22
+ baseQuantity?: string;
23
+ quoteValue?: string;
24
+ displayBaseSize?: string;
25
+ displayQuoteSize?: string;
26
+ stopPrice?: string;
27
+ expiryTime?: Date;
28
+ acceptTime?: Date;
29
+ clientOrderId?: string;
30
+ };
@@ -33,8 +33,17 @@ export type OrderPreviewRequest = {
33
33
  isRaiseExact?: boolean;
34
34
  historicalPov?: string;
35
35
  stopPrice?: string;
36
+ settlCurrency?: string;
36
37
  /**
37
- * next: 15
38
+ * Specifies whether the order is treated as a post only order.
38
39
  */
39
- settlCurrency?: string;
40
+ postOnly?: boolean;
41
+ /**
42
+ * The maximum order size that will show up on venue order books (in quote currency).
43
+ */
44
+ displayQuoteSize?: string;
45
+ /**
46
+ * The maximum order size that will show up on venue order books (in base currency).
47
+ */
48
+ displayBaseSize?: string;
40
49
  };
@@ -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 { PortfolioStakingMetadata } from './PortfolioStakingMetadata';
21
+ export type PortfolioStakingInitiateRequest = {
22
+ /**
23
+ * The client generated idempotency key (uuid required) for requested execution. Subsequent requests using the same key will not create new transactions.
24
+ */
25
+ idempotencyKey: string;
26
+ /**
27
+ * The currency symbol to stake
28
+ */
29
+ currencySymbol: string;
30
+ /**
31
+ * The quantity of the chosen currency to stake
32
+ */
33
+ amount: string;
34
+ metadata?: PortfolioStakingMetadata;
35
+ };
@@ -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
+ export type PortfolioStakingInitiateResponse = {
21
+ /**
22
+ * The ID for the created activity
23
+ */
24
+ activityId?: string;
25
+ /**
26
+ * The ID for the created transaction
27
+ */
28
+ transactionId?: string;
29
+ };
@@ -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 PortfolioStakingMetadata = {
21
+ /**
22
+ * An optional custom identifier (up to 255 characters) to attach to the transaction. This is not a searchable transaction field.
23
+ */
24
+ externalId?: string;
25
+ };