@coinbase-sample/prime-sdk-ts 0.5.0 → 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 (111) hide show
  1. package/dist/constants.js +1 -1
  2. package/dist/financing/index.js +18 -0
  3. package/dist/index.js +3 -1
  4. package/dist/model/Counterparty.js +21 -0
  5. package/dist/model/CounterpartyDestination.js +21 -0
  6. package/dist/model/CreateNetAllocationRequest.js +21 -0
  7. package/dist/model/FCMMarginCall.js +21 -0
  8. package/dist/model/GetFcmMarginCallDetailsResponse.js +21 -0
  9. package/dist/model/GetFcmRiskLimitsResponse.js +21 -0
  10. package/dist/model/GetOrderEditHistoryResponse.js +21 -0
  11. package/dist/model/GetPortfolioCounterpartyIDResponse.js +21 -0
  12. package/dist/model/LimitOrderEdit.js +21 -0
  13. package/dist/model/OrderEdit.js +21 -0
  14. package/dist/model/PortfolioStakingInitiateRequest.js +21 -0
  15. package/dist/model/PortfolioStakingInitiateResponse.js +21 -0
  16. package/dist/model/PortfolioStakingMetadata.js +21 -0
  17. package/dist/model/PortfolioStakingUnstakeRequest.js +21 -0
  18. package/dist/model/PortfolioStakingUnstakeResponse.js +21 -0
  19. package/dist/model/StakingUnstakeRequest.js +21 -0
  20. package/dist/model/WalletStakeInputs.js +21 -0
  21. package/dist/model/WalletUnstakeInputs.js +21 -0
  22. package/dist/model/enums/AllocationSizeType.js +0 -1
  23. package/dist/model/enums/AssetChangeType.js +0 -1
  24. package/dist/model/enums/CustodyActivityType.js +0 -1
  25. package/dist/model/enums/DestinationType.js +4 -4
  26. package/dist/model/enums/FcmMarginCallState.js +30 -0
  27. package/dist/model/enums/FcmMarginCallType.js +28 -0
  28. package/dist/model/enums/OrderSide.js +0 -1
  29. package/dist/model/enums/OrderStatus.js +0 -1
  30. package/dist/model/enums/OrderType.js +0 -1
  31. package/dist/model/enums/PaymentMethodType.js +3 -4
  32. package/dist/model/enums/PortfolioBalanceType.js +0 -1
  33. package/dist/model/enums/ProductPermissions.js +0 -1
  34. package/dist/model/enums/SigningStatus.js +0 -1
  35. package/dist/model/enums/TimeInForceType.js +0 -1
  36. package/dist/model/enums/TransactionStatus.js +0 -1
  37. package/dist/model/enums/TransactionType.js +0 -1
  38. package/dist/model/enums/TransferLocationType.js +0 -1
  39. package/dist/model/enums/UserRole.js +0 -1
  40. package/dist/model/enums/VisibilityStatus.js +0 -1
  41. package/dist/model/enums/WalletDepositInstructionType.js +0 -1
  42. package/dist/model/enums/WalletType.js +0 -1
  43. package/dist/model/enums/index.js +5 -1
  44. package/dist/orders/index.js +11 -0
  45. package/dist/portfolios/index.js +9 -0
  46. package/dist/staking/index.js +24 -0
  47. package/dist/types/constants.d.ts +1 -1
  48. package/dist/types/financing/index.d.ts +5 -1
  49. package/dist/types/financing/types.d.ts +9 -1
  50. package/dist/types/index.d.ts +5 -4
  51. package/dist/types/model/Counterparty.d.ts +25 -0
  52. package/dist/types/model/CounterpartyDestination.d.ts +22 -0
  53. package/dist/types/model/CreateAllocationRequest.d.ts +0 -4
  54. package/dist/types/model/CreateNetAllocationRequest.d.ts +48 -0
  55. package/dist/types/model/CreateOrderRequest.d.ts +6 -2
  56. package/dist/types/model/CreateWalletWithdrawalRequest.d.ts +2 -0
  57. package/dist/types/model/CreateWalletWithdrawalResponse.d.ts +2 -0
  58. package/dist/types/model/FCMMarginCall.d.ts +41 -0
  59. package/dist/types/model/Fill.d.ts +8 -0
  60. package/dist/types/model/GetFcmBalanceResponse.d.ts +4 -0
  61. package/dist/types/model/GetFcmMarginCallDetailsResponse.d.ts +26 -0
  62. package/dist/types/model/GetFcmRiskLimitsResponse.d.ts +45 -0
  63. package/dist/types/model/GetOrderEditHistoryResponse.d.ts +35 -0
  64. package/dist/types/model/GetPortfolioCounterpartyIDResponse.d.ts +23 -0
  65. package/dist/types/model/LimitOrderEdit.d.ts +29 -0
  66. package/dist/types/model/Order.d.ts +30 -0
  67. package/dist/types/model/OrderEdit.d.ts +30 -0
  68. package/dist/types/model/OrderPreviewRequest.d.ts +11 -2
  69. package/dist/types/model/PortfolioStakingInitiateRequest.d.ts +35 -0
  70. package/dist/types/model/PortfolioStakingInitiateResponse.d.ts +29 -0
  71. package/dist/types/model/PortfolioStakingMetadata.d.ts +25 -0
  72. package/dist/types/model/PortfolioStakingUnstakeRequest.d.ts +35 -0
  73. package/dist/types/model/PortfolioStakingUnstakeResponse.d.ts +29 -0
  74. package/dist/types/model/PostOrderPreviewResponse.d.ts +20 -0
  75. package/dist/types/model/RFQProductDetails.d.ts +4 -0
  76. package/dist/types/model/StakingInitiateRequest.d.ts +5 -2
  77. package/dist/types/model/StakingInitiateResponse.d.ts +3 -0
  78. package/dist/types/model/StakingUnstakeRequest.d.ts +30 -0
  79. package/dist/types/model/StakingUnstakeResponse.d.ts +3 -0
  80. package/dist/types/model/WalletStakeInputs.d.ts +32 -0
  81. package/dist/types/model/WalletUnstakeInputs.d.ts +28 -0
  82. package/dist/types/model/enums/AllocationSizeType.d.ts +0 -1
  83. package/dist/types/model/enums/AssetChangeType.d.ts +0 -1
  84. package/dist/types/model/enums/CustodyActivityType.d.ts +0 -1
  85. package/dist/types/model/enums/DestinationType.d.ts +4 -4
  86. package/dist/types/model/enums/FcmMarginCallState.d.ts +26 -0
  87. package/dist/types/model/enums/FcmMarginCallType.d.ts +24 -0
  88. package/dist/types/model/enums/OrderSide.d.ts +0 -1
  89. package/dist/types/model/enums/OrderStatus.d.ts +0 -1
  90. package/dist/types/model/enums/OrderType.d.ts +0 -1
  91. package/dist/types/model/enums/PaymentMethodType.d.ts +3 -4
  92. package/dist/types/model/enums/PortfolioBalanceType.d.ts +0 -1
  93. package/dist/types/model/enums/ProductPermissions.d.ts +0 -1
  94. package/dist/types/model/enums/SigningStatus.d.ts +0 -1
  95. package/dist/types/model/enums/TimeInForceType.d.ts +0 -1
  96. package/dist/types/model/enums/TransactionStatus.d.ts +0 -1
  97. package/dist/types/model/enums/TransactionType.d.ts +0 -1
  98. package/dist/types/model/enums/TransferLocationType.d.ts +0 -1
  99. package/dist/types/model/enums/UserRole.d.ts +0 -1
  100. package/dist/types/model/enums/VisibilityStatus.d.ts +0 -1
  101. package/dist/types/model/enums/WalletDepositInstructionType.d.ts +0 -1
  102. package/dist/types/model/enums/WalletType.d.ts +0 -1
  103. package/dist/types/model/enums/index.d.ts +2 -0
  104. package/dist/types/model/index.d.ts +18 -0
  105. package/dist/types/orders/index.d.ts +3 -1
  106. package/dist/types/orders/types.d.ts +6 -1
  107. package/dist/types/portfolios/index.d.ts +3 -1
  108. package/dist/types/portfolios/types.d.ts +5 -1
  109. package/dist/types/staking/index.d.ts +5 -1
  110. package/dist/types/staking/types.d.ts +9 -1
  111. package/package.json +11 -10
package/dist/constants.js CHANGED
@@ -16,7 +16,7 @@ exports.DEFAULT_MAX_ITEMS = exports.DEFAULT_MAX_PAGES = exports.DEFAULT_PAGINATI
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- exports.VERSION = '0.1.0';
19
+ exports.VERSION = '0.6.0';
20
20
  exports.API_BASE_PATH = 'https://api.prime.coinbase.com/v1/';
21
21
  exports.USER_AGENT = 'coinbase-prime-ts/' + exports.VERSION;
22
22
  exports.CB_ACCESS_KEY_HEADER = 'X-CB-ACCESS-KEY';
@@ -129,6 +129,24 @@ class FinancingService {
129
129
  return response.data;
130
130
  });
131
131
  }
132
+ getFcmMarginCallDetails(request, options) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const response = yield this.client.request({
135
+ url: `entities/${request.entityId}/futures/margin_call_details`,
136
+ callOptions: options,
137
+ });
138
+ return response.data;
139
+ });
140
+ }
141
+ getFcmRiskLimits(request, options) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const response = yield this.client.request({
144
+ url: `entities/${request.entityId}/futures/risk_limits`,
145
+ callOptions: options,
146
+ });
147
+ return response.data;
148
+ });
149
+ }
132
150
  createNewLocates(request, options) {
133
151
  return __awaiter(this, void 0, void 0, function* () {
134
152
  const bodyParams = Object.assign(Object.assign({}, request), { portfolioId: undefined });
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.StakingService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
17
+ exports.WalletsService = exports.UsersService = exports.TransactionsService = exports.StakingService = exports.ProductsService = exports.PositionsService = exports.PortfoliosService = exports.PaymentMethodsService = exports.OrdersService = exports.OnchainAddressBookService = exports.InvoicesService = exports.FuturesService = exports.FinancingService = exports.CommissionService = exports.BalancesService = exports.AssetsService = exports.AllocationService = exports.AddressBooksService = exports.ActivitiesService = exports.CoinbasePrimeCredentials = exports.CoinbasePrimeClient = void 0;
18
18
  /**
19
19
  * Copyright 2024-present Coinbase Global, Inc.
20
20
  *
@@ -46,6 +46,8 @@ var balances_1 = require("./balances");
46
46
  Object.defineProperty(exports, "BalancesService", { enumerable: true, get: function () { return balances_1.BalancesService; } });
47
47
  var commission_1 = require("./commission");
48
48
  Object.defineProperty(exports, "CommissionService", { enumerable: true, get: function () { return commission_1.CommissionService; } });
49
+ var financing_1 = require("./financing");
50
+ Object.defineProperty(exports, "FinancingService", { enumerable: true, get: function () { return financing_1.FinancingService; } });
49
51
  var futures_1 = require("./futures");
50
52
  Object.defineProperty(exports, "FuturesService", { enumerable: true, get: function () { return futures_1.FuturesService; } });
51
53
  var invoices_1 = require("./invoices");
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.AllocationSizeType = void 0;
23
23
  var AllocationSizeType;
24
24
  (function (AllocationSizeType) {
25
- AllocationSizeType["AllocationSizeTypeUnknown"] = "ALLOCATION_SIZE_TYPE_UNKNOWN";
26
25
  AllocationSizeType["Base"] = "BASE";
27
26
  AllocationSizeType["Quote"] = "QUOTE";
28
27
  AllocationSizeType["Percent"] = "PERCENT";
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.AssetChangeType = void 0;
23
23
  var AssetChangeType;
24
24
  (function (AssetChangeType) {
25
- AssetChangeType["AssetChangeTypeUnknown"] = "ASSET_CHANGE_TYPE_UNKNOWN";
26
25
  AssetChangeType["BalanceTransfer"] = "BALANCE_TRANSFER";
27
26
  AssetChangeType["BalanceApproval"] = "BALANCE_APPROVAL";
28
27
  AssetChangeType["ItemTransfer"] = "ITEM_TRANSFER";
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.ActivityType = void 0;
23
23
  var ActivityType;
24
24
  (function (ActivityType) {
25
- ActivityType["Unknown"] = "ACTIVITY_TYPE_UNKNOWN";
26
25
  ActivityType["GovernanceVote"] = "ACTIVITY_TYPE_GOVERNANCE_VOTE";
27
26
  ActivityType["Invitation"] = "ACTIVITY_TYPE_INVITATION";
28
27
  ActivityType["WalletChange"] = "ACTIVITY_TYPE_WALLET_CHANGE";
@@ -22,8 +22,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.DestinationType = void 0;
23
23
  var DestinationType;
24
24
  (function (DestinationType) {
25
- DestinationType["UnknownDestination"] = "UNKNOWN_DESTINATION";
26
- DestinationType["DestinationPaymentMethod"] = "DESTINATION_PAYMENT_METHOD";
27
- DestinationType["DestinationBlockchain"] = "DESTINATION_BLOCKCHAIN";
28
- DestinationType["DestinationWallet"] = "DESTINATION_WALLET";
25
+ DestinationType["PaymentMethod"] = "DESTINATION_PAYMENT_METHOD";
26
+ DestinationType["Blockchain"] = "DESTINATION_BLOCKCHAIN";
27
+ DestinationType["Wallet"] = "DESTINATION_WALLET";
28
+ DestinationType["Counterparty"] = "DESTINATION_COUNTERPARTY";
29
29
  })(DestinationType || (exports.DestinationType = DestinationType = {}));
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.FcmMarginCallState = void 0;
23
+ var FcmMarginCallState;
24
+ (function (FcmMarginCallState) {
25
+ FcmMarginCallState["Unspecified"] = "FCM_MARGIN_CALL_STATE_UNSPECIFIED";
26
+ FcmMarginCallState["Closed"] = "FCM_MARGIN_CALL_STATE_CLOSED";
27
+ FcmMarginCallState["RolledOver"] = "FCM_MARGIN_CALL_STATE_ROLLED_OVER";
28
+ FcmMarginCallState["Default"] = "FCM_MARGIN_CALL_STATE_DEFAULT";
29
+ FcmMarginCallState["Official"] = "FCM_MARGIN_CALL_STATE_OFFICIAL";
30
+ })(FcmMarginCallState || (exports.FcmMarginCallState = FcmMarginCallState = {}));
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2025-present Coinbase Global, Inc.
4
+ *
5
+ * This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ * Do not edit the class manually.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.FcmMarginCallType = void 0;
23
+ var FcmMarginCallType;
24
+ (function (FcmMarginCallType) {
25
+ FcmMarginCallType["Unspecified"] = "FCM_MARGIN_CALL_TYPE_UNSPECIFIED";
26
+ FcmMarginCallType["Urgent"] = "FCM_MARGIN_CALL_TYPE_URGENT";
27
+ FcmMarginCallType["Regular"] = "FCM_MARGIN_CALL_TYPE_REGULAR";
28
+ })(FcmMarginCallType || (exports.FcmMarginCallType = FcmMarginCallType = {}));
@@ -25,7 +25,6 @@ exports.OrderSide = void 0;
25
25
  */
26
26
  var OrderSide;
27
27
  (function (OrderSide) {
28
- OrderSide["UnknownOrderSide"] = "UNKNOWN_ORDER_SIDE";
29
28
  OrderSide["Buy"] = "BUY";
30
29
  OrderSide["Sell"] = "SELL";
31
30
  })(OrderSide || (exports.OrderSide = OrderSide = {}));
@@ -25,7 +25,6 @@ exports.OrderStatus = void 0;
25
25
  */
26
26
  var OrderStatus;
27
27
  (function (OrderStatus) {
28
- OrderStatus["UnknownOrderStatus"] = "UNKNOWN_ORDER_STATUS";
29
28
  OrderStatus["Open"] = "OPEN";
30
29
  OrderStatus["Filled"] = "FILLED";
31
30
  OrderStatus["Cancelled"] = "CANCELLED";
@@ -25,7 +25,6 @@ exports.OrderType = void 0;
25
25
  */
26
26
  var OrderType;
27
27
  (function (OrderType) {
28
- OrderType["UnknownOrderType"] = "UNKNOWN_ORDER_TYPE";
29
28
  OrderType["Market"] = "MARKET";
30
29
  OrderType["Limit"] = "LIMIT";
31
30
  OrderType["Twap"] = "TWAP";
@@ -25,8 +25,7 @@ exports.PaymentMethodType = void 0;
25
25
  */
26
26
  var PaymentMethodType;
27
27
  (function (PaymentMethodType) {
28
- PaymentMethodType["UnknownPaymentMethodType"] = "UNKNOWN_PAYMENT_METHOD_TYPE";
29
- PaymentMethodType["MethodWire"] = "METHOD_WIRE";
30
- PaymentMethodType["MethodSen"] = "METHOD_SEN";
31
- PaymentMethodType["MethodSwift"] = "METHOD_SWIFT";
28
+ PaymentMethodType["Wire"] = "METHOD_WIRE";
29
+ PaymentMethodType["Sen"] = "METHOD_SEN";
30
+ PaymentMethodType["Swift"] = "METHOD_SWIFT";
32
31
  })(PaymentMethodType || (exports.PaymentMethodType = PaymentMethodType = {}));
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.PortfolioBalanceType = void 0;
23
23
  var PortfolioBalanceType;
24
24
  (function (PortfolioBalanceType) {
25
- PortfolioBalanceType["UnknownBalanceType"] = "UNKNOWN_BALANCE_TYPE";
26
25
  PortfolioBalanceType["TradingBalances"] = "TRADING_BALANCES";
27
26
  PortfolioBalanceType["VaultBalances"] = "VAULT_BALANCES";
28
27
  PortfolioBalanceType["TotalBalances"] = "TOTAL_BALANCES";
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.ProductPermissions = void 0;
23
23
  var ProductPermissions;
24
24
  (function (ProductPermissions) {
25
- ProductPermissions["Unknown"] = "PRODUCT_PERMISSION_UNKNOWN";
26
25
  ProductPermissions["Read"] = "PRODUCT_PERMISSION_READ";
27
26
  ProductPermissions["Trade"] = "PRODUCT_PERMISSION_TRADE";
28
27
  ProductPermissions["Lending"] = "PRODUCT_PERMISSION_LENDING";
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.SigningStatus = void 0;
23
23
  var SigningStatus;
24
24
  (function (SigningStatus) {
25
- SigningStatus["SigningStatusUnknown"] = "SIGNING_STATUS_UNKNOWN";
26
25
  SigningStatus["Signed"] = "SIGNED";
27
26
  SigningStatus["Unsigned"] = "UNSIGNED";
28
27
  })(SigningStatus || (exports.SigningStatus = SigningStatus = {}));
@@ -25,7 +25,6 @@ exports.TimeInForceType = void 0;
25
25
  */
26
26
  var TimeInForceType;
27
27
  (function (TimeInForceType) {
28
- TimeInForceType["UnknownTimeInForce"] = "UNKNOWN_TIME_IN_FORCE";
29
28
  TimeInForceType["GoodUntilDateTime"] = "GOOD_UNTIL_DATE_TIME";
30
29
  TimeInForceType["GoodUntilCancelled"] = "GOOD_UNTIL_CANCELLED";
31
30
  TimeInForceType["ImmediateOrCancel"] = "IMMEDIATE_OR_CANCEL";