@coinbase-sample/prime-sdk-ts 0.8.1 → 0.9.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 (103) hide show
  1. package/dist/advancedTransfers/index.js +103 -0
  2. package/dist/advancedTransfers/types.js +2 -0
  3. package/dist/constants.js +1 -1
  4. package/dist/futures/index.js +12 -0
  5. package/dist/model/AdvancedTransfer.js +21 -0
  6. package/dist/model/BlindMatchMetadata.js +21 -0
  7. package/dist/model/CancelAdvancedTransferResponse.js +21 -0
  8. package/dist/model/CommissionDetailTotal.js +21 -0
  9. package/dist/model/CreateAdvancedTransferRequest.js +21 -0
  10. package/dist/model/CreateAdvancedTransferResponse.js +21 -0
  11. package/dist/model/DateOfBirth.js +1 -1
  12. package/dist/model/FcmScheduledMaintenance.js +21 -0
  13. package/dist/model/FcmTradingSessionDetails.js +21 -0
  14. package/dist/model/FundMovement.js +21 -0
  15. package/dist/model/FutureProductDetails.js +21 -0
  16. package/dist/model/GetFcmEquityResponse.js +21 -0
  17. package/dist/model/GetStakingStatusResponse.js +21 -0
  18. package/dist/model/GetTransactionTravelRuleDataResponse.js +21 -0
  19. package/dist/model/ListAdvancedTransferTransactionsResponse.js +21 -0
  20. package/dist/model/ListAdvancedTransfersResponse.js +21 -0
  21. package/dist/model/PerpetualProductDetails.js +21 -0
  22. package/dist/model/StakingStatus.js +21 -0
  23. package/dist/model/SubmitDepositTravelRuleDataResponse.js +21 -0
  24. package/dist/model/TravelRuleData.js +21 -0
  25. package/dist/model/TravelRuleEntry.js +1 -1
  26. package/dist/model/TravelRuleWalletDetails.js +1 -1
  27. package/dist/model/VASP.js +1 -1
  28. package/dist/model/ValidatorAllocation.js +21 -0
  29. package/dist/model/ValidatorStakingInfo.js +21 -0
  30. package/dist/model/enums/AdvancedTransferState.js +34 -0
  31. package/dist/model/enums/AdvancedTransferType.js +29 -0
  32. package/dist/model/enums/ContractExpiryType.js +31 -0
  33. package/dist/model/enums/ExpiringContractStatus.js +31 -0
  34. package/dist/model/enums/FcmMarginHealthState.js +33 -0
  35. package/dist/model/enums/FcmTradingSessionClosedReason.js +32 -0
  36. package/dist/model/enums/FcmTradingSessionState.js +34 -0
  37. package/dist/model/enums/ProductType.js +30 -0
  38. package/dist/model/enums/RewardSubtype.js +2 -1
  39. package/dist/model/enums/RiskManagementType.js +31 -0
  40. package/dist/model/enums/SecondaryPermission.js +31 -0
  41. package/dist/model/enums/StakeType.js +28 -0
  42. package/dist/model/enums/index.js +4 -2
  43. package/dist/model/googleTypeDate.js +21 -0
  44. package/dist/model/requestToSubmitTravelRuleDataForAnExistingDepositTransaction.js +21 -0
  45. package/dist/staking/index.js +14 -0
  46. package/dist/transactions/index.js +16 -0
  47. package/dist/types/advancedTransfers/index.d.ts +31 -0
  48. package/dist/types/advancedTransfers/types.d.ts +46 -0
  49. package/dist/types/constants.d.ts +1 -1
  50. package/dist/types/futures/index.d.ts +4 -2
  51. package/dist/types/futures/types.d.ts +5 -1
  52. package/dist/types/index.d.ts +1 -1
  53. package/dist/types/model/AdvancedTransfer.d.ts +33 -0
  54. package/dist/types/model/Balance.d.ts +4 -0
  55. package/dist/types/model/BlindMatchMetadata.d.ts +37 -0
  56. package/dist/types/model/CancelAdvancedTransferResponse.d.ts +28 -0
  57. package/dist/types/model/CommissionDetailTotal.d.ts +40 -0
  58. package/dist/types/model/CreateAdvancedTransferRequest.d.ts +26 -0
  59. package/dist/types/model/CreateAdvancedTransferResponse.d.ts +26 -0
  60. package/dist/types/model/CreatePortfolioAddressBookEntryRequest.d.ts +0 -2
  61. package/dist/types/model/CreateWalletWithdrawalRequest.d.ts +2 -0
  62. package/dist/types/model/DateOfBirth.d.ts +1 -1
  63. package/dist/types/model/FcmScheduledMaintenance.d.ts +29 -0
  64. package/dist/types/model/FcmTradingSessionDetails.d.ts +51 -0
  65. package/dist/types/model/FundMovement.d.ts +30 -0
  66. package/dist/types/model/FutureProductDetails.d.ts +59 -0
  67. package/dist/types/model/GetFcmEquityResponse.d.ts +37 -0
  68. package/dist/types/model/GetStakingStatusResponse.d.ts +42 -0
  69. package/dist/types/model/GetTransactionTravelRuleDataResponse.d.ts +31 -0
  70. package/dist/types/model/ListAdvancedTransferTransactionsResponse.d.ts +29 -0
  71. package/dist/types/model/ListAdvancedTransfersResponse.d.ts +28 -0
  72. package/dist/types/model/PerpetualProductDetails.d.ts +41 -0
  73. package/dist/types/model/StakingStatus.d.ts +39 -0
  74. package/dist/types/model/SubmitDepositTravelRuleDataResponse.d.ts +22 -0
  75. package/dist/types/model/TravelRuleData.d.ts +37 -0
  76. package/dist/types/model/TravelRuleEntry.d.ts +1 -1
  77. package/dist/types/model/TravelRuleParty.d.ts +19 -4
  78. package/dist/types/model/TravelRuleWalletDetails.d.ts +1 -1
  79. package/dist/types/model/VASP.d.ts +1 -1
  80. package/dist/types/model/ValidatorAllocation.d.ts +32 -0
  81. package/dist/types/model/ValidatorStakingInfo.d.ts +30 -0
  82. package/dist/types/model/WalletUnstakeInputs.d.ts +5 -0
  83. package/dist/types/model/enums/AdvancedTransferState.d.ts +30 -0
  84. package/dist/types/model/enums/AdvancedTransferType.d.ts +25 -0
  85. package/dist/types/model/enums/ContractExpiryType.d.ts +27 -0
  86. package/dist/types/model/enums/ExpiringContractStatus.d.ts +27 -0
  87. package/dist/types/model/enums/FcmMarginHealthState.d.ts +29 -0
  88. package/dist/types/model/enums/FcmTradingSessionClosedReason.d.ts +28 -0
  89. package/dist/types/model/enums/FcmTradingSessionState.d.ts +30 -0
  90. package/dist/types/model/enums/ProductType.d.ts +26 -0
  91. package/dist/types/model/enums/RewardSubtype.d.ts +3 -2
  92. package/dist/types/model/enums/RiskManagementType.d.ts +27 -0
  93. package/dist/types/model/enums/SecondaryPermission.d.ts +27 -0
  94. package/dist/types/model/enums/StakeType.d.ts +24 -0
  95. package/dist/types/model/enums/index.d.ts +1 -0
  96. package/dist/types/model/googleTypeDate.d.ts +36 -0
  97. package/dist/types/model/index.d.ts +9 -4
  98. package/dist/types/model/requestToSubmitTravelRuleDataForAnExistingDepositTransaction.d.ts +26 -0
  99. package/dist/types/staking/index.d.ts +3 -1
  100. package/dist/types/staking/types.d.ts +6 -1
  101. package/dist/types/transactions/index.d.ts +3 -1
  102. package/dist/types/transactions/types.d.ts +6 -1
  103. package/package.json +1 -1
@@ -0,0 +1,39 @@
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 { StakeType } from './enums/StakeType';
21
+ export type StakingStatus = {
22
+ /**
23
+ * Amount being staked (whole amount, e.g., 16 ETH)
24
+ */
25
+ amount: string;
26
+ stakeType: StakeType;
27
+ /**
28
+ * Estimated date when staking will complete (ISO 8601 format)
29
+ */
30
+ estimatedStakeDate: Date;
31
+ /**
32
+ * Estimated hours until this staking request completes
33
+ */
34
+ estimatedHoursToStake: number;
35
+ /**
36
+ * Timestamp when the stake request was originally created
37
+ */
38
+ requestedAt?: Date;
39
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ export type SubmitDepositTravelRuleDataResponse = {
21
+ ownershipVerificationRequired: boolean;
22
+ };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ import { TravelRuleParty } from './TravelRuleParty';
21
+ /**
22
+ * Data object used for withdrawals.
23
+ */
24
+ export type TravelRuleData = {
25
+ beneficiary?: TravelRuleParty;
26
+ originator?: TravelRuleParty;
27
+ isSelf?: boolean;
28
+ /**
29
+ * True if Coinbase is being used as an intermediary for a customer transfer.
30
+ */
31
+ isIntermediary?: boolean;
32
+ optOutOfOwnershipVerification?: boolean;
33
+ /**
34
+ * Whether the originating VASP attests to verified wallet ownership. When true with is_intermediary, enables automatic VASP data enrichment from the legal entity.
35
+ */
36
+ attestVerifiedWalletOwnership?: boolean;
37
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2025-present Coinbase Global, Inc.
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
3
  *
4
4
  * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
5
  *
@@ -17,16 +17,31 @@
17
17
  *
18
18
  * Do not edit the class manually.
19
19
  */
20
- import { DateOfBirth } from './DateOfBirth';
21
20
  import { DetailedAddress } from './DetailedAddress';
22
21
  import { NaturalPersonName } from './NaturalPersonName';
22
+ import { TravelRuleWalletType } from './enums/TravelRuleWalletType';
23
+ import { GoogleTypeDate } from './googleTypeDate';
23
24
  /**
24
- * Represents one of the Transmittal Parties involved in a Travel Rule transfer, either originator or beneficiary.
25
+ * Represents a party in a travel rule transfer (originator or beneficiary).
25
26
  */
26
27
  export type TravelRuleParty = {
27
28
  name?: string;
28
- detailedAddress?: DetailedAddress;
29
29
  naturalPersonName?: NaturalPersonName;
30
- dateOfBirth?: DateOfBirth;
30
+ address?: DetailedAddress;
31
+ walletType?: TravelRuleWalletType;
32
+ vaspId?: string;
33
+ vaspName?: string;
34
+ /**
35
+ * Personal identifier for travel rule compliance. For individuals: passport number, national ID, driver\'s license. For institutions: LEI (Legal Entity Identifier).
36
+ */
37
+ personalId?: string;
38
+ dateOfBirth?: GoogleTypeDate;
39
+ /**
40
+ * Telephone number for contact purposes.
41
+ */
31
42
  telephoneNumber?: string;
43
+ /**
44
+ * Account identifier for travel rule compliance. If not provided, defaults to portfolio ID.
45
+ */
46
+ accountId?: string;
32
47
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2025-present Coinbase Global, Inc.
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
3
  *
4
4
  * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2025-present Coinbase Global, Inc.
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
3
  *
4
4
  * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
5
  *
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * ValidatorAllocation specifies the validator and amount for staking or unstaking. Used for granular ETH V2 validator-level staking or unstaking operations.
22
+ */
23
+ export type ValidatorAllocation = {
24
+ /**
25
+ * The validator address for performing staking operations
26
+ */
27
+ validatorAddress: string;
28
+ /**
29
+ * Amount for performing staking operations with this validator
30
+ */
31
+ amount: string;
32
+ };
@@ -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
+ import { StakingStatus } from './StakingStatus';
21
+ export type ValidatorStakingInfo = {
22
+ /**
23
+ * The validator address (public key)
24
+ */
25
+ validatorAddress: string;
26
+ /**
27
+ * List of active staking requests for this validator
28
+ */
29
+ statuses: Array<StakingStatus>;
30
+ };
@@ -17,6 +17,7 @@
17
17
  *
18
18
  * Do not edit the class manually.
19
19
  */
20
+ import { ValidatorAllocation } from './ValidatorAllocation';
20
21
  /**
21
22
  * WalletUnstakeInputs contains the custom inputs for unstaking operations on a wallet. Requirements and supported fields vary by asset type.
22
23
  */
@@ -25,4 +26,8 @@ export type WalletUnstakeInputs = {
25
26
  * Optional amount to unstake (ETH only). If omitted, the wallet will unstake the maximum amount available
26
27
  */
27
28
  amount?: string;
29
+ /**
30
+ * (Alpha) Optional validator-level allocations for ETH V2 unstaking. Allows specifying which validators to unstake from and how much. This feature is in alpha. Please reach out to your Coinbase Prime account manager for more information
31
+ */
32
+ validatorAllocations?: Array<ValidatorAllocation>;
28
33
  };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * AdvancedTransferState represents the lifecycle state of an advanced transfer.
22
+ */
23
+ export declare enum AdvancedTransferState {
24
+ AdvancedTransferStateCreated = "ADVANCED_TRANSFER_STATE_CREATED",
25
+ AdvancedTransferStateProcessing = "ADVANCED_TRANSFER_STATE_PROCESSING",
26
+ AdvancedTransferStateDone = "ADVANCED_TRANSFER_STATE_DONE",
27
+ AdvancedTransferStateCancelled = "ADVANCED_TRANSFER_STATE_CANCELLED",
28
+ AdvancedTransferStateFailed = "ADVANCED_TRANSFER_STATE_FAILED",
29
+ AdvancedTransferStateExpired = "ADVANCED_TRANSFER_STATE_EXPIRED"
30
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * AdvancedTransferType specifies the type of advanced transfer.
22
+ */
23
+ export declare enum AdvancedTransferType {
24
+ AdvancedTransferTypeBlindMatch = "ADVANCED_TRANSFER_TYPE_BLIND_MATCH"
25
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - CONTRACT_EXPIRY_TYPE_UNSPECIFIED: Unspecified contract expiry type - CONTRACT_EXPIRY_TYPE_EXPIRING: Expiring futures contract - CONTRACT_EXPIRY_TYPE_PERPETUAL: Perpetual futures contract (no expiry)
22
+ */
23
+ export declare enum ContractExpiryType {
24
+ ContractExpiryTypeUnspecified = "CONTRACT_EXPIRY_TYPE_UNSPECIFIED",
25
+ ContractExpiryTypeExpiring = "CONTRACT_EXPIRY_TYPE_EXPIRING",
26
+ ContractExpiryTypePerpetual = "CONTRACT_EXPIRY_TYPE_PERPETUAL"
27
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - EXPIRING_CONTRACT_STATUS_UNKNOWN: Unknown/unset — returns all expiring contracts (backward compatible default) - EXPIRING_CONTRACT_STATUS_UNEXPIRED: Only unexpired contracts (contract_expiry is in the future) - EXPIRING_CONTRACT_STATUS_EXPIRED: Only expired contracts (contract_expiry is in the past) - EXPIRING_CONTRACT_STATUS_ALL: All contracts regardless of expiry status
22
+ */
23
+ export declare enum ExpiringContractStatus {
24
+ ExpiringContractStatusUnexpired = "EXPIRING_CONTRACT_STATUS_UNEXPIRED",
25
+ ExpiringContractStatusExpired = "EXPIRING_CONTRACT_STATUS_EXPIRED",
26
+ ExpiringContractStatusAll = "EXPIRING_CONTRACT_STATUS_ALL"
27
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * The margin health state of an FCM account. - FCM_MARGIN_HEALTH_STATE_UNSPECIFIED: Unspecified margin health state. - FCM_MARGIN_HEALTH_STATE_HEALTHY: Account margin is healthy. - FCM_MARGIN_HEALTH_STATE_RESTRICTED: Account margin is restricted. - FCM_MARGIN_HEALTH_STATE_PRE_LIQUIDATION: Account is approaching liquidation. - FCM_MARGIN_HEALTH_STATE_LIQUIDATION: Account is in liquidation.
22
+ */
23
+ export declare enum FcmMarginHealthState {
24
+ FcmMarginHealthStateUnspecified = "FCM_MARGIN_HEALTH_STATE_UNSPECIFIED",
25
+ FcmMarginHealthStateHealthy = "FCM_MARGIN_HEALTH_STATE_HEALTHY",
26
+ FcmMarginHealthStateRestricted = "FCM_MARGIN_HEALTH_STATE_RESTRICTED",
27
+ FcmMarginHealthStatePreLiquidation = "FCM_MARGIN_HEALTH_STATE_PRE_LIQUIDATION",
28
+ FcmMarginHealthStateLiquidation = "FCM_MARGIN_HEALTH_STATE_LIQUIDATION"
29
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - FCM_TRADING_SESSION_CLOSED_REASON_UNDEFINED: Undefined closed reason - FCM_TRADING_SESSION_CLOSED_REASON_REGULAR_MARKET_CLOSE: Regular market close - FCM_TRADING_SESSION_CLOSED_REASON_EXCHANGE_MAINTENANCE: Exchange maintenance - FCM_TRADING_SESSION_CLOSED_REASON_VENDOR_MAINTENANCE: Vendor maintenance
22
+ */
23
+ export declare enum FcmTradingSessionClosedReason {
24
+ FcmTradingSessionClosedReasonUndefined = "FCM_TRADING_SESSION_CLOSED_REASON_UNDEFINED",
25
+ FcmTradingSessionClosedReasonRegularMarketClose = "FCM_TRADING_SESSION_CLOSED_REASON_REGULAR_MARKET_CLOSE",
26
+ FcmTradingSessionClosedReasonExchangeMaintenance = "FCM_TRADING_SESSION_CLOSED_REASON_EXCHANGE_MAINTENANCE",
27
+ FcmTradingSessionClosedReasonVendorMaintenance = "FCM_TRADING_SESSION_CLOSED_REASON_VENDOR_MAINTENANCE"
28
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - FCM_TRADING_SESSION_STATE_UNDEFINED: Undefined session state - FCM_TRADING_SESSION_STATE_PRE_OPEN: Pre-open state, orders can be placed and cancelled - FCM_TRADING_SESSION_STATE_PRE_OPEN_NO_CANCEL: Pre-open state, orders cannot be cancelled - FCM_TRADING_SESSION_STATE_OPEN: Trading session is open - FCM_TRADING_SESSION_STATE_CLOSE: Trading session is closed - FCM_TRADING_SESSION_STATE_HALTED: Trading session is halted
22
+ */
23
+ export declare enum FcmTradingSessionState {
24
+ FcmTradingSessionStateUndefined = "FCM_TRADING_SESSION_STATE_UNDEFINED",
25
+ FcmTradingSessionStatePreOpen = "FCM_TRADING_SESSION_STATE_PRE_OPEN",
26
+ FcmTradingSessionStatePreOpenNoCancel = "FCM_TRADING_SESSION_STATE_PRE_OPEN_NO_CANCEL",
27
+ FcmTradingSessionStateOpen = "FCM_TRADING_SESSION_STATE_OPEN",
28
+ FcmTradingSessionStateClose = "FCM_TRADING_SESSION_STATE_CLOSE",
29
+ FcmTradingSessionStateHalted = "FCM_TRADING_SESSION_STATE_HALTED"
30
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - UNKNOWN_PRODUCT_TYPE: Unknown product type - SPOT: Spot product - FUTURE: Future product
22
+ */
23
+ export declare enum ProductType {
24
+ Spot = "SPOT",
25
+ Future = "FUTURE"
26
+ }
@@ -18,7 +18,7 @@
18
18
  * Do not edit the class manually.
19
19
  */
20
20
  /**
21
- * - REWARD_SUBTYPE_UNKNOWN: An unknown reward subtype, reward subtype may not be supported in the API response yet - MEV_REWARD: A maximal extractable value reward i.e. sol mev rewards - INFLATION_REWARD: An inflationary reward i.e. solana inflationary rewards - BLOCK_REWARD: A block reward i.e. solana block rewards - VALIDATOR_REWARD: A validator reward i.e. ethereum validator (consensus layer) rewards - TRANSACTION_REWARD: A transaction reward i.e. ethereum transaction (execution layer) rewards - STAKING_FEE_REBATE_REWARD: A staking fee rebate reward i.e. coinbase pays rebates for staking fees to eligible delegators
21
+ * - REWARD_SUBTYPE_UNKNOWN: An unknown reward subtype, reward subtype may not be supported in the API response yet - MEV_REWARD: A maximal extractable value reward i.e. sol mev rewards - INFLATION_REWARD: An inflationary reward i.e. solana inflationary rewards - BLOCK_REWARD: A block reward i.e. solana block rewards - VALIDATOR_REWARD: A validator reward i.e. ethereum validator (consensus layer) rewards - TRANSACTION_REWARD: A transaction reward i.e. ethereum transaction (execution layer) rewards - STAKING_FEE_REBATE_REWARD: A staking fee rebate reward i.e. coinbase pays rebates for staking fees to eligible delegators - BUIDL_DIVIDEND: A BUIDL dividend reward i.e. dividends from BUIDL fund holdings
22
22
  */
23
23
  export declare enum RewardSubtype {
24
24
  MevReward = "MEV_REWARD",
@@ -26,5 +26,6 @@ export declare enum RewardSubtype {
26
26
  BlockReward = "BLOCK_REWARD",
27
27
  ValidatorReward = "VALIDATOR_REWARD",
28
28
  TransactionReward = "TRANSACTION_REWARD",
29
- StakingFeeRebateReward = "STAKING_FEE_REBATE_REWARD"
29
+ StakingFeeRebateReward = "STAKING_FEE_REBATE_REWARD",
30
+ BuidlDividend = "BUIDL_DIVIDEND"
30
31
  }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - RISK_MANAGEMENT_TYPE_UNSPECIFIED: Unspecified risk management type - RISK_MANAGEMENT_TYPE_MANAGED_BY_FCM: Risk is managed by FCM (Futures Commission Merchant) - RISK_MANAGEMENT_TYPE_MANAGED_BY_VENUE: Risk is managed by the venue
22
+ */
23
+ export declare enum RiskManagementType {
24
+ RiskManagementTypeUnspecified = "RISK_MANAGEMENT_TYPE_UNSPECIFIED",
25
+ RiskManagementTypeManagedByFcm = "RISK_MANAGEMENT_TYPE_MANAGED_BY_FCM",
26
+ RiskManagementTypeManagedByVenue = "RISK_MANAGEMENT_TYPE_MANAGED_BY_VENUE"
27
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2026-present Coinbase Global, Inc.
3
+ *
4
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ * Do not edit the class manually.
19
+ */
20
+ /**
21
+ * - SECONDARY_PERMISSION_UNKNOWN: nil value - VIDEO_APPROVER: A video approver - TEAM_APPROVER: A team approver - WEB3_SIGNER: A web3 signer
22
+ */
23
+ export declare enum SecondaryPermission {
24
+ VideoApprover = "VIDEO_APPROVER",
25
+ TeamApprover = "TEAM_APPROVER",
26
+ Web3Signer = "WEB3_SIGNER"
27
+ }
@@ -0,0 +1,24 @@
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 StakeType {
21
+ StakeTypeUnspecified = "STAKE_TYPE_UNSPECIFIED",
22
+ StakeTypeInitialDeposit = "STAKE_TYPE_INITIAL_DEPOSIT",
23
+ StakeTypeTopUp = "STAKE_TYPE_TOP_UP"
24
+ }
@@ -36,6 +36,7 @@ export { RateType } from './RateType';
36
36
  export { RewardSubtype } from './RewardSubtype';
37
37
  export { SigningStatus } from './SigningStatus';
38
38
  export { SortDirection } from './SortDirection';
39
+ export { StakeType } from './StakeType';
39
40
  export { TimeInForceType } from './TimeInForceType';
40
41
  export { TransactionStatus } from './TransactionStatus';
41
42
  export { TransactionType } from './TransactionType';
@@ -0,0 +1,36 @@
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
+ * * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`.
22
+ */
23
+ export type GoogleTypeDate = {
24
+ /**
25
+ * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
26
+ */
27
+ year?: number;
28
+ /**
29
+ * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
30
+ */
31
+ month?: number;
32
+ /**
33
+ * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn\'t significant.
34
+ */
35
+ day?: number;
36
+ };