@coinbase-sample/prime-sdk-ts 0.1.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.
- package/LICENSE +0 -0
- package/README.md +98 -0
- package/dist/activities/index.d.ts +33 -0
- package/dist/activities/index.js +73 -0
- package/dist/activities/service.d.ts +18 -0
- package/dist/activities/service.js +54 -0
- package/dist/activities/types.d.ts +47 -0
- package/dist/activities/types.js +2 -0
- package/dist/addressBooks/index.d.ts +29 -0
- package/dist/addressBooks/index.js +57 -0
- package/dist/addressBooks/service.d.ts +11 -0
- package/dist/addressBooks/service.js +38 -0
- package/dist/addressBooks/types.d.ts +29 -0
- package/dist/addressBooks/types.js +2 -0
- package/dist/allocations/index.d.ts +35 -0
- package/dist/allocations/index.js +83 -0
- package/dist/allocations/service.d.ts +14 -0
- package/dist/allocations/service.js +65 -0
- package/dist/allocations/types.d.ts +46 -0
- package/dist/allocations/types.js +2 -0
- package/dist/assets/index.d.ts +27 -0
- package/dist/assets/index.js +27 -0
- package/dist/assets/service.d.ts +10 -0
- package/dist/assets/service.js +27 -0
- package/dist/assets/types.d.ts +20 -0
- package/dist/assets/types.js +2 -0
- package/dist/balances/index.d.ts +31 -0
- package/dist/balances/index.js +49 -0
- package/dist/balances/types.d.ts +39 -0
- package/dist/balances/types.js +2 -0
- package/dist/client.d.ts +20 -0
- package/dist/client.js +31 -0
- package/dist/commission/index.d.ts +27 -0
- package/dist/commission/index.js +27 -0
- package/dist/commission/types.d.ts +20 -0
- package/dist/commission/types.js +2 -0
- package/dist/constants.d.ts +22 -0
- package/dist/constants.js +25 -0
- package/dist/credentials/index.d.ts +7 -0
- package/dist/credentials/index.js +81 -0
- package/dist/errors/index.d.ts +22 -0
- package/dist/errors/index.js +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +50 -0
- package/dist/invoices/index.d.ts +27 -0
- package/dist/invoices/index.js +27 -0
- package/dist/invoices/service.d.ts +10 -0
- package/dist/invoices/service.js +27 -0
- package/dist/invoices/types.d.ts +20 -0
- package/dist/invoices/types.js +2 -0
- package/dist/model/Activity.d.ts +73 -0
- package/dist/model/Activity.js +21 -0
- package/dist/model/ActivityMetadataAccount.d.ts +23 -0
- package/dist/model/ActivityMetadataAccount.js +21 -0
- package/dist/model/ActivityMetadataConsensus.d.ts +29 -0
- package/dist/model/ActivityMetadataConsensus.js +21 -0
- package/dist/model/ActivityMetadataTransactions.d.ts +23 -0
- package/dist/model/ActivityMetadataTransactions.js +21 -0
- package/dist/model/AddressBookEntry.d.ts +69 -0
- package/dist/model/AddressBookEntry.js +21 -0
- package/dist/model/AggregatedFiatBalance.d.ts +23 -0
- package/dist/model/AggregatedFiatBalance.js +21 -0
- package/dist/model/Allocation.d.ts +78 -0
- package/dist/model/Allocation.js +21 -0
- package/dist/model/AllocationLeg.d.ts +33 -0
- package/dist/model/AllocationLeg.js +21 -0
- package/dist/model/AmountDue.d.ts +33 -0
- package/dist/model/AmountDue.js +21 -0
- package/dist/model/Asset.d.ts +41 -0
- package/dist/model/Asset.js +21 -0
- package/dist/model/AssetChange.d.ts +35 -0
- package/dist/model/AssetChange.js +21 -0
- package/dist/model/Balance.d.ts +69 -0
- package/dist/model/Balance.js +21 -0
- package/dist/model/BlockchainAddress.d.ts +23 -0
- package/dist/model/BlockchainAddress.js +21 -0
- package/dist/model/CancelOrderResponse.d.ts +25 -0
- package/dist/model/CancelOrderResponse.js +21 -0
- package/dist/model/Commission.d.ts +33 -0
- package/dist/model/Commission.js +21 -0
- package/dist/model/CreateAllocationRequest.d.ts +52 -0
- package/dist/model/CreateAllocationRequest.js +21 -0
- package/dist/model/CreateAllocationResponse.d.ts +23 -0
- package/dist/model/CreateAllocationResponse.js +21 -0
- package/dist/model/CreateAllocationResponseBody.d.ts +33 -0
- package/dist/model/CreateAllocationResponseBody.js +21 -0
- package/dist/model/CreateConversionRequest.d.ts +41 -0
- package/dist/model/CreateConversionRequest.js +21 -0
- package/dist/model/CreateConversionResponse.d.ts +49 -0
- package/dist/model/CreateConversionResponse.js +21 -0
- package/dist/model/CreateNetAllocationResponse.d.ts +23 -0
- package/dist/model/CreateNetAllocationResponse.js +21 -0
- package/dist/model/CreateNetAllocationResponseBody.d.ts +41 -0
- package/dist/model/CreateNetAllocationResponseBody.js +21 -0
- package/dist/model/CreateOrderRequest.d.ts +40 -0
- package/dist/model/CreateOrderRequest.js +21 -0
- package/dist/model/CreateOrderResponse.d.ts +25 -0
- package/dist/model/CreateOrderResponse.js +21 -0
- package/dist/model/CreatePortfolioAddressBookEntryRequest.d.ts +37 -0
- package/dist/model/CreatePortfolioAddressBookEntryRequest.js +21 -0
- package/dist/model/CreatePortfolioAddressBookEntryResponse.d.ts +25 -0
- package/dist/model/CreatePortfolioAddressBookEntryResponse.js +21 -0
- package/dist/model/CreateWalletRequest.d.ts +26 -0
- package/dist/model/CreateWalletRequest.js +21 -0
- package/dist/model/CreateWalletResponse.d.ts +26 -0
- package/dist/model/CreateWalletResponse.js +21 -0
- package/dist/model/CreateWalletTransferResponse.d.ts +61 -0
- package/dist/model/CreateWalletTransferResponse.js +21 -0
- package/dist/model/CreateWalletWithdrawalRequest.d.ts +39 -0
- package/dist/model/CreateWalletWithdrawalRequest.js +21 -0
- package/dist/model/CreateWalletWithdrawalResponse.d.ts +56 -0
- package/dist/model/CreateWalletWithdrawalResponse.js +21 -0
- package/dist/model/DefiBalance.d.ts +24 -0
- package/dist/model/DefiBalance.js +21 -0
- package/dist/model/DestinationAlloc.d.ts +41 -0
- package/dist/model/DestinationAlloc.js +21 -0
- package/dist/model/DisplayUser.d.ts +33 -0
- package/dist/model/DisplayUser.js +21 -0
- package/dist/model/EntityUser.d.ts +39 -0
- package/dist/model/EntityUser.js +21 -0
- package/dist/model/EstimatedNetworkFees.d.ts +29 -0
- package/dist/model/EstimatedNetworkFees.js +21 -0
- package/dist/model/Fill.d.ts +59 -0
- package/dist/model/Fill.js +21 -0
- package/dist/model/GetActivityResponse.d.ts +23 -0
- package/dist/model/GetActivityResponse.js +21 -0
- package/dist/model/GetAllocationResponse.d.ts +23 -0
- package/dist/model/GetAllocationResponse.js +21 -0
- package/dist/model/GetAllocationsByClientNettingIdResponse.d.ts +23 -0
- package/dist/model/GetAllocationsByClientNettingIdResponse.js +21 -0
- package/dist/model/GetEntityActivitiesResponse.d.ts +25 -0
- package/dist/model/GetEntityActivitiesResponse.js +21 -0
- package/dist/model/GetEntityAssetsResponse.d.ts +23 -0
- package/dist/model/GetEntityAssetsResponse.js +21 -0
- package/dist/model/GetEntityPaymentMethodDetailsResponse.d.ts +23 -0
- package/dist/model/GetEntityPaymentMethodDetailsResponse.js +21 -0
- package/dist/model/GetEntityPaymentMethodsResponse.d.ts +23 -0
- package/dist/model/GetEntityPaymentMethodsResponse.js +21 -0
- package/dist/model/GetEntityUsersResponse.d.ts +28 -0
- package/dist/model/GetEntityUsersResponse.js +21 -0
- package/dist/model/GetInvoicesResponse.d.ts +23 -0
- package/dist/model/GetInvoicesResponse.js +21 -0
- package/dist/model/GetOpenOrdersResponse.d.ts +25 -0
- package/dist/model/GetOpenOrdersResponse.js +21 -0
- package/dist/model/GetOrderFillsResponse.d.ts +25 -0
- package/dist/model/GetOrderFillsResponse.js +21 -0
- package/dist/model/GetOrderResponse.d.ts +23 -0
- package/dist/model/GetOrderResponse.js +21 -0
- package/dist/model/GetOrdersResponse.d.ts +25 -0
- package/dist/model/GetOrdersResponse.js +21 -0
- package/dist/model/GetPortfolioActivitiesResponse.d.ts +25 -0
- package/dist/model/GetPortfolioActivitiesResponse.js +21 -0
- package/dist/model/GetPortfolioActivityResponse.d.ts +23 -0
- package/dist/model/GetPortfolioActivityResponse.js +21 -0
- package/dist/model/GetPortfolioAddressBookResponse.d.ts +28 -0
- package/dist/model/GetPortfolioAddressBookResponse.js +21 -0
- package/dist/model/GetPortfolioAllocationsResponse.d.ts +28 -0
- package/dist/model/GetPortfolioAllocationsResponse.js +21 -0
- package/dist/model/GetPortfolioBalancesResponse.d.ts +31 -0
- package/dist/model/GetPortfolioBalancesResponse.js +21 -0
- package/dist/model/GetPortfolioCommissionResponse.d.ts +23 -0
- package/dist/model/GetPortfolioCommissionResponse.js +21 -0
- package/dist/model/GetPortfolioFillsResponse.d.ts +25 -0
- package/dist/model/GetPortfolioFillsResponse.js +21 -0
- package/dist/model/GetPortfolioProductsResponse.d.ts +25 -0
- package/dist/model/GetPortfolioProductsResponse.js +21 -0
- package/dist/model/GetPortfolioResponse.d.ts +23 -0
- package/dist/model/GetPortfolioResponse.js +21 -0
- package/dist/model/GetPortfolioTransactionsResponse.d.ts +25 -0
- package/dist/model/GetPortfolioTransactionsResponse.js +21 -0
- package/dist/model/GetPortfolioUsersResponse.d.ts +28 -0
- package/dist/model/GetPortfolioUsersResponse.js +21 -0
- package/dist/model/GetPortfoliosResponse.d.ts +26 -0
- package/dist/model/GetPortfoliosResponse.js +21 -0
- package/dist/model/GetPostTradeCreditResponse.d.ts +23 -0
- package/dist/model/GetPostTradeCreditResponse.js +21 -0
- package/dist/model/GetTransactionResponse.d.ts +23 -0
- package/dist/model/GetTransactionResponse.js +21 -0
- package/dist/model/GetWalletBalanceResponse.d.ts +23 -0
- package/dist/model/GetWalletBalanceResponse.js +21 -0
- package/dist/model/GetWalletDepositInstructionsResponse.d.ts +25 -0
- package/dist/model/GetWalletDepositInstructionsResponse.js +21 -0
- package/dist/model/GetWalletResponse.d.ts +23 -0
- package/dist/model/GetWalletResponse.js +21 -0
- package/dist/model/GetWalletTransactionsResponse.d.ts +25 -0
- package/dist/model/GetWalletTransactionsResponse.js +21 -0
- package/dist/model/GetWalletsResponse.d.ts +25 -0
- package/dist/model/GetWalletsResponse.js +21 -0
- package/dist/model/Invoice.d.ts +32 -0
- package/dist/model/Invoice.js +21 -0
- package/dist/model/InvoiceItem.d.ts +30 -0
- package/dist/model/InvoiceItem.js +21 -0
- package/dist/model/ListWeb3WalletBalancesResponse.d.ts +30 -0
- package/dist/model/ListWeb3WalletBalancesResponse.js +21 -0
- package/dist/model/MatchMetadata.d.ts +29 -0
- package/dist/model/MatchMetadata.js +21 -0
- package/dist/model/NFTCollection.d.ts +25 -0
- package/dist/model/NFTCollection.js +21 -0
- package/dist/model/NFTItem.d.ts +25 -0
- package/dist/model/NFTItem.js +21 -0
- package/dist/model/Order.d.ts +105 -0
- package/dist/model/Order.js +21 -0
- package/dist/model/OrderPreviewRequest.d.ts +36 -0
- package/dist/model/OrderPreviewRequest.js +21 -0
- package/dist/model/PaginatedResponse.d.ts +31 -0
- package/dist/model/PaginatedResponse.js +21 -0
- package/dist/model/PaymentMethodDestination.d.ts +22 -0
- package/dist/model/PaymentMethodDestination.js +21 -0
- package/dist/model/PaymentMethodDetails.d.ts +28 -0
- package/dist/model/PaymentMethodDetails.js +21 -0
- package/dist/model/PaymentMethodSummary.d.ts +28 -0
- package/dist/model/PaymentMethodSummary.js +21 -0
- package/dist/model/PortfolioUser.d.ts +43 -0
- package/dist/model/PortfolioUser.js +21 -0
- package/dist/model/PostOrderPreviewResponse.d.ts +83 -0
- package/dist/model/PostOrderPreviewResponse.js +21 -0
- package/dist/model/PostTradeCreditInformation.d.ts +63 -0
- package/dist/model/PostTradeCreditInformation.js +21 -0
- package/dist/model/Product.d.ts +58 -0
- package/dist/model/Product.js +21 -0
- package/dist/model/Transaction.d.ts +97 -0
- package/dist/model/Transaction.js +21 -0
- package/dist/model/TransactionMetadata.d.ts +23 -0
- package/dist/model/TransactionMetadata.js +21 -0
- package/dist/model/TransferLocation.d.ts +27 -0
- package/dist/model/TransferLocation.js +21 -0
- package/dist/model/UserAction.d.ts +31 -0
- package/dist/model/UserAction.js +21 -0
- package/dist/model/Wallet.d.ts +28 -0
- package/dist/model/Wallet.js +21 -0
- package/dist/model/WalletCryptoDepositInstructions.d.ts +43 -0
- package/dist/model/WalletCryptoDepositInstructions.js +21 -0
- package/dist/model/WalletFiatDepositInstructions.d.ts +28 -0
- package/dist/model/WalletFiatDepositInstructions.js +21 -0
- package/dist/model/Web3Asset.d.ts +38 -0
- package/dist/model/Web3Asset.js +21 -0
- package/dist/model/Web3Balance.d.ts +29 -0
- package/dist/model/Web3Balance.js +21 -0
- package/dist/model/assets.d.ts +13 -0
- package/dist/model/assets.js +2 -0
- package/dist/model/createATransferBetweenTwoWallets.d.ts +37 -0
- package/dist/model/createATransferBetweenTwoWallets.js +21 -0
- package/dist/model/enums/Action.d.ts +26 -0
- package/dist/model/enums/Action.js +30 -0
- package/dist/model/enums/ActivityCategory.d.ts +28 -0
- package/dist/model/enums/ActivityCategory.js +32 -0
- package/dist/model/enums/ActivityLevel.d.ts +24 -0
- package/dist/model/enums/ActivityLevel.js +28 -0
- package/dist/model/enums/ActivitySecondaryType.d.ts +28 -0
- package/dist/model/enums/ActivitySecondaryType.js +32 -0
- package/dist/model/enums/ActivityStatus.d.ts +28 -0
- package/dist/model/enums/ActivityStatus.js +32 -0
- package/dist/model/enums/ActivityType.d.ts +63 -0
- package/dist/model/enums/ActivityType.js +67 -0
- package/dist/model/enums/AddressBookType.d.ts +24 -0
- package/dist/model/enums/AddressBookType.js +28 -0
- package/dist/model/enums/AllocationSizeType.d.ts +25 -0
- package/dist/model/enums/AllocationSizeType.js +29 -0
- package/dist/model/enums/AllocationStatus.d.ts +26 -0
- package/dist/model/enums/AllocationStatus.js +30 -0
- package/dist/model/enums/AssetChangeType.d.ts +27 -0
- package/dist/model/enums/AssetChangeType.js +31 -0
- package/dist/model/enums/DestinationType.d.ts +25 -0
- package/dist/model/enums/DestinationType.js +29 -0
- package/dist/model/enums/HierarchyType.d.ts +24 -0
- package/dist/model/enums/HierarchyType.js +28 -0
- package/dist/model/enums/InvoiceState.d.ts +26 -0
- package/dist/model/enums/InvoiceState.js +30 -0
- package/dist/model/enums/InvoiceType.d.ts +27 -0
- package/dist/model/enums/InvoiceType.js +31 -0
- package/dist/model/enums/OrderSide.d.ts +27 -0
- package/dist/model/enums/OrderSide.js +31 -0
- package/dist/model/enums/OrderStatus.d.ts +31 -0
- package/dist/model/enums/OrderStatus.js +35 -0
- package/dist/model/enums/OrderType.d.ts +31 -0
- package/dist/model/enums/OrderType.js +35 -0
- package/dist/model/enums/PaymentMethodType.d.ts +28 -0
- package/dist/model/enums/PaymentMethodType.js +32 -0
- package/dist/model/enums/PortfolioBalanceType.d.ts +25 -0
- package/dist/model/enums/PortfolioBalanceType.js +29 -0
- package/dist/model/enums/ProductPermissions.d.ts +25 -0
- package/dist/model/enums/ProductPermissions.js +29 -0
- package/dist/model/enums/SortDirection.d.ts +23 -0
- package/dist/model/enums/SortDirection.js +27 -0
- package/dist/model/enums/TimeInForceType.d.ts +29 -0
- package/dist/model/enums/TimeInForceType.js +33 -0
- package/dist/model/enums/TransactionStatus.d.ts +46 -0
- package/dist/model/enums/TransactionStatus.js +50 -0
- package/dist/model/enums/TransactionType.d.ts +57 -0
- package/dist/model/enums/TransactionType.js +61 -0
- package/dist/model/enums/TransferLocationType.d.ts +28 -0
- package/dist/model/enums/TransferLocationType.js +32 -0
- package/dist/model/enums/UserRole.d.ts +34 -0
- package/dist/model/enums/UserRole.js +38 -0
- package/dist/model/enums/VisibilityStatus.d.ts +25 -0
- package/dist/model/enums/VisibilityStatus.js +29 -0
- package/dist/model/enums/WalletDepositInstructionType.d.ts +29 -0
- package/dist/model/enums/WalletDepositInstructionType.js +33 -0
- package/dist/model/enums/WalletType.d.ts +30 -0
- package/dist/model/enums/WalletType.js +34 -0
- package/dist/model/portfolio.d.ts +41 -0
- package/dist/model/portfolio.js +21 -0
- package/dist/model/services/activitityService.d.ts +33 -0
- package/dist/model/services/activitityService.js +2 -0
- package/dist/model/services/addressBookService.d.ts +14 -0
- package/dist/model/services/addressBookService.js +2 -0
- package/dist/model/services/allocationService.d.ts +24 -0
- package/dist/model/services/allocationService.js +2 -0
- package/dist/model/services/assetService.d.ts +5 -0
- package/dist/model/services/assetService.js +2 -0
- package/dist/model/services/balanceService.d.ts +24 -0
- package/dist/model/services/balanceService.js +2 -0
- package/dist/model/services/commissionService.d.ts +5 -0
- package/dist/model/services/commissionService.js +2 -0
- package/dist/model/services/invoiceService.d.ts +5 -0
- package/dist/model/services/invoiceService.js +2 -0
- package/dist/model/services/orderService.d.ts +62 -0
- package/dist/model/services/orderService.js +2 -0
- package/dist/model/services/pagination.d.ts +9 -0
- package/dist/model/services/pagination.js +2 -0
- package/dist/model/services/paymentMethodsService.d.ts +10 -0
- package/dist/model/services/paymentMethodsService.js +2 -0
- package/dist/model/services/portfolioService.d.ts +15 -0
- package/dist/model/services/portfolioService.js +2 -0
- package/dist/model/services/productService.d.ts +6 -0
- package/dist/model/services/productService.js +2 -0
- package/dist/model/services/shared.d.ts +6 -0
- package/dist/model/services/shared.js +2 -0
- package/dist/model/services/transactionService.d.ts +47 -0
- package/dist/model/services/transactionService.js +2 -0
- package/dist/model/services/usersService.d.ts +9 -0
- package/dist/model/services/usersService.js +2 -0
- package/dist/model/services/walletService.d.ts +27 -0
- package/dist/model/services/walletService.js +2 -0
- package/dist/orders/index.d.ts +41 -0
- package/dist/orders/index.js +119 -0
- package/dist/orders/types.d.ts +77 -0
- package/dist/orders/types.js +2 -0
- package/dist/paymentMethods/index.d.ts +29 -0
- package/dist/paymentMethods/index.js +36 -0
- package/dist/paymentMethods/service.d.ts +11 -0
- package/dist/paymentMethods/service.js +36 -0
- package/dist/paymentMethods/types.d.ts +25 -0
- package/dist/paymentMethods/types.js +2 -0
- package/dist/portfolio/service.d.ts +12 -0
- package/dist/portfolio/service.js +42 -0
- package/dist/portfolios/index.d.ts +31 -0
- package/dist/portfolios/index.js +45 -0
- package/dist/portfolios/types.d.ts +30 -0
- package/dist/portfolios/types.js +2 -0
- package/dist/products/index.d.ts +27 -0
- package/dist/products/index.js +27 -0
- package/dist/products/types.d.ts +21 -0
- package/dist/products/types.js +2 -0
- package/dist/shared/pagination.d.ts +24 -0
- package/dist/shared/pagination.js +2 -0
- package/dist/shared/toCamelCase.d.ts +1 -0
- package/dist/shared/toCamelCase.js +23 -0
- package/dist/transactions/index.d.ts +37 -0
- package/dist/transactions/index.js +101 -0
- package/dist/transactions/types.d.ts +62 -0
- package/dist/transactions/types.js +2 -0
- package/dist/users/index.d.ts +29 -0
- package/dist/users/index.js +36 -0
- package/dist/users/service.d.ts +11 -0
- package/dist/users/service.js +36 -0
- package/dist/users/types.d.ts +24 -0
- package/dist/users/types.js +2 -0
- package/dist/wallets/index.d.ts +33 -0
- package/dist/wallets/index.js +73 -0
- package/dist/wallets/types.d.ts +42 -0
- package/dist/wallets/types.js +2 -0
- package/package.json +38 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 { AllocationStatus } from './enums/AllocationStatus';
|
|
21
|
+
import { DestinationAlloc } from './DestinationAlloc';
|
|
22
|
+
import { OrderSide } from './enums/OrderSide';
|
|
23
|
+
export type Allocation = {
|
|
24
|
+
/**
|
|
25
|
+
* The ID that ties together an allocation and all of its legs.
|
|
26
|
+
*/
|
|
27
|
+
rootId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the allocation if this allocation is a reversal. In this case, the root_id would be the original allocation ID.
|
|
30
|
+
*/
|
|
31
|
+
reversalId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Time the final leg of the root allocation was completed.
|
|
34
|
+
*/
|
|
35
|
+
allocationCompletedAt?: Date;
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the user that created the allocation.
|
|
38
|
+
*/
|
|
39
|
+
userId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the product of the orders allocated.
|
|
42
|
+
*/
|
|
43
|
+
productId?: string;
|
|
44
|
+
side?: OrderSide;
|
|
45
|
+
/**
|
|
46
|
+
* Price the allocation was done at.
|
|
47
|
+
*/
|
|
48
|
+
avgPrice?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Amount allocated in base asset units.
|
|
51
|
+
*/
|
|
52
|
+
baseQuantity?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Amount allocated in quote asset units.
|
|
55
|
+
*/
|
|
56
|
+
quoteValue?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Fees from original trade execution allocated in quote asset units.
|
|
59
|
+
*/
|
|
60
|
+
feesAllocated?: string;
|
|
61
|
+
status?: AllocationStatus;
|
|
62
|
+
/**
|
|
63
|
+
* Portfolio ID of the source portfolio.
|
|
64
|
+
*/
|
|
65
|
+
source?: string;
|
|
66
|
+
/**
|
|
67
|
+
* All order IDs that were aggregated to calculate the avg_price, quantity to allocate in each leg. Each order_id should tie back to the single allocation root_id.
|
|
68
|
+
*/
|
|
69
|
+
orderIds?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Array of objects, each containing the leg ID, destination portfolio ID and amount in chosen units allocated to each portfolio: [{leg_id, portfolio_id, allocation_base, allocation_quote}, {leg_id, portfolio_id, allocation_base, allocation_quote}...]
|
|
72
|
+
*/
|
|
73
|
+
destinations?: Array<DestinationAlloc>;
|
|
74
|
+
/**
|
|
75
|
+
* The netting ID of the allocation, not empty if the allocation was submitted as part of a net allocation
|
|
76
|
+
*/
|
|
77
|
+
nettingId?: string;
|
|
78
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 AllocationLeg = {
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the portfolio of the allocation leg
|
|
23
|
+
*/
|
|
24
|
+
allocationLegId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the destination portfolio of the allocation leg
|
|
27
|
+
*/
|
|
28
|
+
destinationPortfolioId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The amount size for the allocation leg
|
|
31
|
+
*/
|
|
32
|
+
amount: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 AmountDue = {
|
|
21
|
+
/**
|
|
22
|
+
* The currency this loan is due in
|
|
23
|
+
*/
|
|
24
|
+
currency?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The amount due
|
|
27
|
+
*/
|
|
28
|
+
amount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The date this settlement is due, expressed in UTC
|
|
31
|
+
*/
|
|
32
|
+
dueDate?: Date;
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 Asset = {
|
|
21
|
+
/**
|
|
22
|
+
* The name of the asset
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The mutable series of letters used to identify the asset
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The number of decimals supported for the asset
|
|
31
|
+
*/
|
|
32
|
+
decimalPrecision?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates whether this asset can be traded
|
|
35
|
+
*/
|
|
36
|
+
tradingSupported?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Base URL to our recommended block explorer (crypto only)
|
|
39
|
+
*/
|
|
40
|
+
explorerUrl?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 { AssetChangeType } from './enums/AssetChangeType';
|
|
21
|
+
import { NFTCollection } from './NFTCollection';
|
|
22
|
+
import { NFTItem } from './NFTItem';
|
|
23
|
+
export type AssetChange = {
|
|
24
|
+
type?: AssetChangeType;
|
|
25
|
+
/**
|
|
26
|
+
* The currency symbol associated with the balance operation
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The amount in whole units being transferred or approved
|
|
31
|
+
*/
|
|
32
|
+
amount?: string;
|
|
33
|
+
collection?: NFTCollection;
|
|
34
|
+
item?: NFTItem;
|
|
35
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 Balance = {
|
|
21
|
+
/**
|
|
22
|
+
* The display symbol for the asset
|
|
23
|
+
*/
|
|
24
|
+
symbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The total amount in whole units with full precision. Includes the `holds` amount.
|
|
27
|
+
*/
|
|
28
|
+
amount?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Amount that is currently held in obligation to an open order\'s position or a pending withdrawal
|
|
31
|
+
*/
|
|
32
|
+
holds?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Amount that is currently locked due to bonding/staking, potentially subject to an unbonding period, in whole units
|
|
35
|
+
*/
|
|
36
|
+
bondedAmount?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Amount that must remain in the wallet due to the protocol, in whole units
|
|
39
|
+
*/
|
|
40
|
+
reservedAmount?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Amount that is in the process of unbonding, in whole units
|
|
43
|
+
*/
|
|
44
|
+
unbondingAmount?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Unrealized amount subject to a vesting schedule, in whole units
|
|
47
|
+
*/
|
|
48
|
+
unvestedAmount?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Pending bonding/staking rewards that have not yet been realized, in whole units
|
|
51
|
+
*/
|
|
52
|
+
pendingRewardsAmount?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Previously realized bonding/staking rewards, in whole units
|
|
55
|
+
*/
|
|
56
|
+
pastRewardsAmount?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Amount available for bonding/staking, in whole units
|
|
59
|
+
*/
|
|
60
|
+
bondableAmount?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Amount available to withdraw, in whole units
|
|
63
|
+
*/
|
|
64
|
+
withdrawableAmount?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The total amount in fiat unit
|
|
67
|
+
*/
|
|
68
|
+
fiatAmount?: string;
|
|
69
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 BlockchainAddress = {
|
|
21
|
+
address?: string;
|
|
22
|
+
accountIdentifier?: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 CancelOrderResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique UUID for the order
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 Commission = {
|
|
21
|
+
/**
|
|
22
|
+
* Hardcode type to all_in. When we support cost+, we will have cost_plus type
|
|
23
|
+
*/
|
|
24
|
+
type?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Commission rate (in whole percentage. Commission of 15bps is \"0.0015\")
|
|
27
|
+
*/
|
|
28
|
+
rate?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Average 30 days over past 3 months (e.g. 90 days divided by 3)
|
|
31
|
+
*/
|
|
32
|
+
tradingVolume?: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 CreateAllocationRequest = {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the allocation
|
|
25
|
+
*/
|
|
26
|
+
allocationId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The source portfolio id for the allocation
|
|
29
|
+
*/
|
|
30
|
+
sourcePortfolioId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The product for the allocation
|
|
33
|
+
*/
|
|
34
|
+
productId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The list of order ids in the allocation
|
|
37
|
+
*/
|
|
38
|
+
orderIds?: Array<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The list of allocation_legs for the allocation
|
|
41
|
+
*/
|
|
42
|
+
allocationLegs?: Array<AllocationLeg>;
|
|
43
|
+
sizeType?: AllocationSizeType;
|
|
44
|
+
/**
|
|
45
|
+
* The portfolio where to allocate the remainder of the size
|
|
46
|
+
*/
|
|
47
|
+
remainderDestinationPortfolio?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The ID to identify an in-flight net allocation.
|
|
50
|
+
*/
|
|
51
|
+
nettingId?: string;
|
|
52
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
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 });
|