@coinbase-sample/prime-sdk-ts 0.2.1 → 0.3.1
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/dist/balances/index.js +12 -1
- package/dist/client.js +2 -2
- package/dist/financing/index.js +144 -0
- package/dist/index.js +5 -1
- package/dist/model/BuyingPower.js +21 -0
- package/dist/model/Conversion.js +21 -0
- package/dist/model/ConversionDetail.js +21 -0
- package/dist/model/CreateNewLocatesRequest.js +21 -0
- package/dist/model/CreateNewLocatesResponse.js +21 -0
- package/dist/model/EntityBalance.js +21 -0
- package/dist/model/ExistingLocate.js +21 -0
- package/dist/model/GetBuyingPowerResponse.js +21 -0
- package/dist/model/GetExistingLocatesResponse.js +21 -0
- package/dist/model/GetInterestAccrualsResponse.js +21 -0
- package/dist/model/GetLocateAvailabilitiesResponse.js +21 -0
- package/dist/model/GetMarginConversionsResponse.js +21 -0
- package/dist/model/GetMarginInformationResponse.js +21 -0
- package/dist/model/GetMarginSummariesResponse.js +21 -0
- package/dist/model/GetPortfolioInterestAccrualsResponse.js +21 -0
- package/dist/model/GetTFTieredPricingFeesResponse.js +21 -0
- package/dist/model/GetWithdrawalPowerResponse.js +21 -0
- package/dist/model/ListAggregateEntityPositionsResponse.js +21 -0
- package/dist/model/ListEntityBalancesResponse.js +21 -0
- package/dist/model/ListEntityPositionsResponse.js +21 -0
- package/dist/model/LoanInfo.js +21 -0
- package/dist/model/Locate.js +21 -0
- package/dist/model/MarginAddOn.js +21 -0
- package/dist/model/MarginCallRecord.js +21 -0
- package/dist/model/MarginInformation.js +21 -0
- package/dist/model/MarginSummary.js +21 -0
- package/dist/model/MarginSummaryHistorical.js +21 -0
- package/dist/model/MarketRate.js +21 -0
- package/dist/model/PMAssetInfo.js +21 -0
- package/dist/model/Portfolio.js +21 -0
- package/dist/model/Position.js +21 -0
- package/dist/model/PositionReference.js +21 -0
- package/dist/model/RFQProductDetails.js +21 -0
- package/dist/model/ShortCollateral.js +21 -0
- package/dist/model/StakingInitiateRequest.js +21 -0
- package/dist/model/StakingInitiateResponse.js +21 -0
- package/dist/model/StakingInputs.js +21 -0
- package/dist/model/StakingUnstakeResponse.js +21 -0
- package/dist/model/TieredPricingFee.js +21 -0
- package/dist/model/WithdrawalPower.js +21 -0
- package/dist/model/enums/Benchmark.js +30 -0
- package/dist/model/enums/LoanType.js +31 -0
- package/dist/model/enums/MarginAddOnType.js +30 -0
- package/dist/model/enums/NetworkType.js +1 -0
- package/dist/model/enums/PortfolioBalanceType.js +1 -0
- package/dist/model/enums/PositionReferenceType.js +28 -0
- package/dist/model/enums/RateType.js +30 -0
- package/dist/portfolios/index.js +1 -1
- package/dist/{paymentMethods/service.js → positions/index.js} +11 -7
- package/dist/{addressBooks/service.js → staking/index.js} +11 -9
- package/dist/{balances → types/balances}/index.d.ts +3 -1
- package/dist/{balances → types/balances}/types.d.ts +9 -0
- package/dist/{client.d.ts → types/client.d.ts} +1 -1
- package/dist/types/financing/index.d.ts +49 -0
- package/dist/types/financing/types.d.ts +94 -0
- package/dist/{futures → types/futures}/index.d.ts +5 -5
- package/dist/{futures → types/futures}/types.d.ts +2 -2
- package/dist/types/index.d.ts +54 -0
- package/dist/{model → types/model}/AcceptQuoteRequest.d.ts +1 -0
- package/dist/types/model/Accrual.d.ts +83 -0
- package/dist/types/model/AddressEntry.d.ts +24 -0
- package/dist/{model → types/model}/AddressGroup.d.ts +1 -0
- package/dist/types/model/AssetBalance.d.ts +41 -0
- package/dist/{model → types/model}/Balance.d.ts +4 -0
- package/dist/types/model/BuyingPower.d.ts +41 -0
- package/dist/types/model/Conversion.d.ts +36 -0
- package/dist/types/model/ConversionDetail.d.ts +49 -0
- package/dist/types/model/CreateNewLocatesRequest.d.ts +37 -0
- package/dist/types/model/CreateNewLocatesResponse.d.ts +22 -0
- package/dist/{model → types/model}/CreateOnchainTransactionRequestEvmParams.d.ts +9 -1
- package/dist/{model → types/model}/CreateOrderRequest.d.ts +4 -0
- package/dist/types/model/EntityBalance.d.ts +41 -0
- package/dist/types/model/ExistingLocate.d.ts +65 -0
- package/dist/{model → types/model}/Fill.d.ts +4 -0
- package/dist/types/model/GetBuyingPowerResponse.d.ts +23 -0
- package/dist/types/model/GetExistingLocatesResponse.d.ts +23 -0
- package/dist/types/model/GetInterestAccrualsResponse.d.ts +24 -0
- package/dist/types/model/GetLocateAvailabilitiesResponse.d.ts +23 -0
- package/dist/types/model/GetMarginConversionsResponse.d.ts +23 -0
- package/dist/types/model/GetMarginInformationResponse.d.ts +23 -0
- package/dist/types/model/GetMarginSummariesResponse.d.ts +23 -0
- package/dist/types/model/GetPortfolioInterestAccrualsResponse.d.ts +24 -0
- package/dist/types/model/GetTFTieredPricingFeesResponse.d.ts +23 -0
- package/dist/types/model/GetWithdrawalPowerResponse.d.ts +23 -0
- package/dist/types/model/ListAggregateEntityPositionsResponse.d.ts +25 -0
- package/dist/types/model/ListEntityBalancesResponse.d.ts +25 -0
- package/dist/types/model/ListEntityPositionsResponse.d.ts +25 -0
- package/dist/types/model/LoanInfo.d.ts +41 -0
- package/dist/types/model/Locate.d.ts +33 -0
- package/dist/types/model/MarginAddOn.d.ts +27 -0
- package/dist/types/model/MarginCallRecord.d.ts +41 -0
- package/dist/{model/AddressEntry.d.ts → types/model/MarginInformation.d.ts} +6 -5
- package/dist/types/model/MarginSummary.d.ts +151 -0
- package/dist/types/model/MarginSummaryHistorical.d.ts +31 -0
- package/dist/types/model/MarketRate.d.ts +29 -0
- package/dist/{model → types/model}/Order.d.ts +4 -0
- package/dist/{model → types/model}/OrderPreviewRequest.d.ts +4 -0
- package/dist/types/model/PMAssetInfo.d.ts +89 -0
- package/dist/types/model/Position.d.ts +35 -0
- package/dist/types/model/PositionReference.d.ts +27 -0
- package/dist/{model → types/model}/Product.d.ts +2 -0
- package/dist/{model → types/model}/RFQ.d.ts +1 -0
- package/dist/types/model/RFQProductDetails.d.ts +24 -0
- package/dist/{model → types/model}/RpcConfig.d.ts +1 -1
- package/dist/types/model/ShortCollateral.d.ts +37 -0
- package/dist/types/model/StakingInitiateRequest.d.ts +27 -0
- package/dist/types/model/StakingInitiateResponse.d.ts +33 -0
- package/dist/types/model/StakingInputs.d.ts +25 -0
- package/dist/types/model/StakingUnstakeResponse.d.ts +33 -0
- package/dist/types/model/TieredPricingFee.d.ts +29 -0
- package/dist/types/model/WithdrawalPower.d.ts +29 -0
- package/dist/types/model/enums/Benchmark.d.ts +26 -0
- package/dist/types/model/enums/LoanType.d.ts +27 -0
- package/dist/types/model/enums/MarginAddOnType.d.ts +26 -0
- package/dist/{model → types/model}/enums/NetworkType.d.ts +1 -0
- package/dist/{model → types/model}/enums/PortfolioBalanceType.d.ts +2 -1
- package/dist/types/model/enums/PositionReferenceType.d.ts +24 -0
- package/dist/types/model/enums/RateType.d.ts +26 -0
- package/dist/{portfolios → types/portfolios}/index.d.ts +3 -3
- package/dist/{portfolios → types/portfolios}/types.d.ts +1 -0
- package/dist/types/positions/index.d.ts +29 -0
- package/dist/types/positions/types.d.ts +14 -0
- package/dist/types/staking/index.d.ts +29 -0
- package/dist/types/staking/types.d.ts +28 -0
- package/dist/{wallets → types/wallets}/index.d.ts +5 -1
- package/dist/{wallets → types/wallets}/types.d.ts +22 -0
- package/dist/wallets/index.js +51 -0
- package/package.json +14 -12
- package/dist/activities/service.d.ts +0 -18
- package/dist/activities/service.js +0 -54
- package/dist/addressBooks/service.d.ts +0 -11
- package/dist/allocations/service.d.ts +0 -14
- package/dist/allocations/service.js +0 -65
- package/dist/assets/service.d.ts +0 -10
- package/dist/assets/service.js +0 -27
- package/dist/index.d.ts +0 -33
- package/dist/invoices/service.d.ts +0 -10
- package/dist/invoices/service.js +0 -27
- package/dist/model/assets.d.ts +0 -13
- package/dist/model/assets.js +0 -2
- package/dist/model/changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.d.ts +0 -23
- package/dist/model/enums/ActivityType.d.ts +0 -63
- package/dist/model/enums/ActivityType.js +0 -67
- package/dist/model/services/activitityService.d.ts +0 -33
- package/dist/model/services/addressBookService.d.ts +0 -14
- package/dist/model/services/allocationService.d.ts +0 -24
- package/dist/model/services/allocationService.js +0 -2
- package/dist/model/services/assetService.d.ts +0 -5
- package/dist/model/services/assetService.js +0 -2
- package/dist/model/services/balanceService.d.ts +0 -24
- package/dist/model/services/balanceService.js +0 -2
- package/dist/model/services/commissionService.d.ts +0 -5
- package/dist/model/services/commissionService.js +0 -2
- package/dist/model/services/invoiceService.d.ts +0 -5
- package/dist/model/services/invoiceService.js +0 -2
- package/dist/model/services/orderService.d.ts +0 -62
- package/dist/model/services/orderService.js +0 -2
- package/dist/model/services/pagination.d.ts +0 -9
- package/dist/model/services/pagination.js +0 -2
- package/dist/model/services/paymentMethodsService.d.ts +0 -10
- package/dist/model/services/paymentMethodsService.js +0 -2
- package/dist/model/services/portfolioService.d.ts +0 -15
- package/dist/model/services/portfolioService.js +0 -2
- package/dist/model/services/productService.d.ts +0 -6
- package/dist/model/services/productService.js +0 -2
- package/dist/model/services/shared.d.ts +0 -6
- package/dist/model/services/shared.js +0 -2
- package/dist/model/services/transactionService.d.ts +0 -47
- package/dist/model/services/transactionService.js +0 -2
- package/dist/model/services/usersService.d.ts +0 -9
- package/dist/model/services/usersService.js +0 -2
- package/dist/model/services/walletService.d.ts +0 -27
- package/dist/model/services/walletService.js +0 -2
- package/dist/onchainAddressGroups/index.d.ts +0 -27
- package/dist/onchainAddressGroups/index.js +0 -27
- package/dist/onchainAddressGroups/types.d.ts +0 -20
- package/dist/paymentMethods/service.d.ts +0 -11
- package/dist/portfolio/service.d.ts +0 -12
- package/dist/portfolio/service.js +0 -42
- package/dist/users/service.d.ts +0 -11
- package/dist/users/service.js +0 -36
- /package/dist/{onchainAddressGroups → financing}/types.js +0 -0
- /package/dist/model/{changeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup.js → Accrual.js} +0 -0
- /package/dist/model/{portfolio.js → AssetBalance.js} +0 -0
- /package/dist/{model/services/activitityService.js → positions/types.js} +0 -0
- /package/dist/{model/services/addressBookService.js → staking/types.js} +0 -0
- /package/dist/{activities → types/activities}/index.d.ts +0 -0
- /package/dist/{activities → types/activities}/types.d.ts +0 -0
- /package/dist/{addressBooks → types/addressBooks}/index.d.ts +0 -0
- /package/dist/{addressBooks → types/addressBooks}/types.d.ts +0 -0
- /package/dist/{allocations → types/allocations}/index.d.ts +0 -0
- /package/dist/{allocations → types/allocations}/types.d.ts +0 -0
- /package/dist/{assets → types/assets}/index.d.ts +0 -0
- /package/dist/{assets → types/assets}/types.d.ts +0 -0
- /package/dist/{commission → types/commission}/index.d.ts +0 -0
- /package/dist/{commission → types/commission}/types.d.ts +0 -0
- /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
- /package/dist/{credentials → types/credentials}/index.d.ts +0 -0
- /package/dist/{errors → types/errors}/index.d.ts +0 -0
- /package/dist/{invoices → types/invoices}/index.d.ts +0 -0
- /package/dist/{invoices → types/invoices}/types.d.ts +0 -0
- /package/dist/{model → types/model}/AcceptQuoteResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Activity.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityCreationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataAccount.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataConsensus.d.ts +0 -0
- /package/dist/{model → types/model}/ActivityMetadataTransactions.d.ts +0 -0
- /package/dist/{model → types/model}/AddressBookEntry.d.ts +0 -0
- /package/dist/{model → types/model}/AggregatedFiatBalance.d.ts +0 -0
- /package/dist/{model → types/model}/Allocation.d.ts +0 -0
- /package/dist/{model → types/model}/AllocationLeg.d.ts +0 -0
- /package/dist/{model → types/model}/AmountDue.d.ts +0 -0
- /package/dist/{model → types/model}/Asset.d.ts +0 -0
- /package/dist/{model → types/model}/AssetChange.d.ts +0 -0
- /package/dist/{model → types/model}/BlockchainAddress.d.ts +0 -0
- /package/dist/{model → types/model}/CancelFuturesSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CancelOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Commission.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAddressGroup.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateAllocationResponseBody.d.ts +0 -0
- /package/dist/{model → types/model}/CreateConversionRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateConversionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNetAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateNetAllocationResponseBody.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOnchainTransactionRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOnchainTransactionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreatePortfolioAddressBookEntryResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletTransferResponse.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletWithdrawalRequest.d.ts +0 -0
- /package/dist/{model → types/model}/CreateWalletWithdrawalResponse.d.ts +0 -0
- /package/dist/{model → types/model}/DefiBalance.d.ts +0 -0
- /package/dist/{model → types/model}/DestinationAlloc.d.ts +0 -0
- /package/dist/{model → types/model}/DisplayUser.d.ts +0 -0
- /package/dist/{model → types/model}/EntityUser.d.ts +0 -0
- /package/dist/{model → types/model}/EstimatedNetworkFees.d.ts +0 -0
- /package/dist/{model → types/model}/FcmFuturesSweep.d.ts +0 -0
- /package/dist/{model → types/model}/FcmFuturesSweepRequestAmount.d.ts +0 -0
- /package/dist/{model → types/model}/FcmPosition.d.ts +0 -0
- /package/dist/{model → types/model}/GetActivityResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetAllocationResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetAllocationsByClientNettingIdResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityActivitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityAssetsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityPaymentMethodDetailsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityPaymentMethodsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetEntityUsersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetFcmBalanceResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetFuturesSweepsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetInvoicesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOpenOrdersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrderFillsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrderResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetOrdersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioActivitiesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioActivityResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioAddressBookResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioAllocationsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioCommissionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioFillsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioProductsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioTransactionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfolioUsersResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPortfoliosResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPositionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetPostTradeCreditResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetTransactionResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletAddressesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletBalanceResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletDepositInstructionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletTransactionsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/GetWalletsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Invoice.d.ts +0 -0
- /package/dist/{model → types/model}/InvoiceItem.d.ts +0 -0
- /package/dist/{model → types/model}/ListOnchainAddressGroupsResponse.d.ts +0 -0
- /package/dist/{model → types/model}/ListWeb3WalletBalancesResponse.d.ts +0 -0
- /package/dist/{model → types/model}/MatchMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/NFTCollection.d.ts +0 -0
- /package/dist/{model → types/model}/NFTItem.d.ts +0 -0
- /package/dist/{model → types/model}/Network.d.ts +0 -0
- /package/dist/{model → types/model}/NetworkDetails.d.ts +0 -0
- /package/dist/{model → types/model}/OnchainTransactionDetails.d.ts +0 -0
- /package/dist/{model → types/model}/PaginatedResponse.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodDestination.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodDetails.d.ts +0 -0
- /package/dist/{model → types/model}/PaymentMethodSummary.d.ts +0 -0
- /package/dist/{model/portfolio.d.ts → types/model/Portfolio.d.ts} +0 -0
- /package/dist/{model → types/model}/PortfolioUser.d.ts +0 -0
- /package/dist/{model → types/model}/PostOrderPreviewResponse.d.ts +0 -0
- /package/dist/{model → types/model}/PostTradeCreditInformation.d.ts +0 -0
- /package/dist/{model → types/model}/QuoteResponse.d.ts +0 -0
- /package/dist/{model → types/model}/RiskAssessment.d.ts +0 -0
- /package/dist/{model → types/model}/ScheduleFuturesSweepRequest.d.ts +0 -0
- /package/dist/{model → types/model}/ScheduleFuturesSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/SetAutoSweepRequest.d.ts +0 -0
- /package/dist/{model → types/model}/SetAutoSweepResponse.d.ts +0 -0
- /package/dist/{model → types/model}/Transaction.d.ts +0 -0
- /package/dist/{model → types/model}/TransactionMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/TransferLocation.d.ts +0 -0
- /package/dist/{model → types/model}/UserAction.d.ts +0 -0
- /package/dist/{model → types/model}/Wallet.d.ts +0 -0
- /package/dist/{model → types/model}/WalletCryptoDepositInstructions.d.ts +0 -0
- /package/dist/{model → types/model}/WalletFiatDepositInstructions.d.ts +0 -0
- /package/dist/{model → types/model}/Web3Asset.d.ts +0 -0
- /package/dist/{model → types/model}/Web3Balance.d.ts +0 -0
- /package/dist/{model → types/model}/Web3TransactionMetadata.d.ts +0 -0
- /package/dist/{model → types/model}/createATransferBetweenTwoWallets.d.ts +0 -0
- /package/dist/{model → types/model}/enums/Action.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityCategory.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityLevel.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivitySecondaryType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ActivityStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AddressBookType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AllocationSizeType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AllocationStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/AssetChangeType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/CustodyActivityType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/DestinationType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/FcmFuturesSweepStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/FcmPositionSide.d.ts +0 -0
- /package/dist/{model → types/model}/enums/HierarchyType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/InvoiceState.d.ts +0 -0
- /package/dist/{model → types/model}/enums/InvoiceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/NetworkFamily.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderSide.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/OrderType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PaymentMethodType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/PrimeActivityType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/ProductPermissions.d.ts +0 -0
- /package/dist/{model → types/model}/enums/SigningStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/SortDirection.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TimeInForceType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransactionStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransactionType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/TransferLocationType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/UserRole.d.ts +0 -0
- /package/dist/{model → types/model}/enums/VisibilityStatus.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletDepositInstructionType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletType.d.ts +0 -0
- /package/dist/{model → types/model}/enums/WalletVisibility.d.ts +0 -0
- /package/dist/{onchainAddressBook → types/onchainAddressBook}/index.d.ts +0 -0
- /package/dist/{onchainAddressBook → types/onchainAddressBook}/types.d.ts +0 -0
- /package/dist/{orders → types/orders}/index.d.ts +0 -0
- /package/dist/{orders → types/orders}/types.d.ts +0 -0
- /package/dist/{paymentMethods → types/paymentMethods}/index.d.ts +0 -0
- /package/dist/{paymentMethods → types/paymentMethods}/types.d.ts +0 -0
- /package/dist/{products → types/products}/index.d.ts +0 -0
- /package/dist/{products → types/products}/types.d.ts +0 -0
- /package/dist/{shared → types/shared}/pagination.d.ts +0 -0
- /package/dist/{shared → types/shared}/toCamelCase.d.ts +0 -0
- /package/dist/{transactions → types/transactions}/index.d.ts +0 -0
- /package/dist/{transactions → types/transactions}/types.d.ts +0 -0
- /package/dist/{users → types/users}/index.d.ts +0 -0
- /package/dist/{users → types/users}/types.d.ts +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CoinbasePrimeClient } from '../client';
|
|
2
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
3
|
-
import { ListAddressBooksRequest, ListAddressBooksResponse, CreateAddressBookRequest, CreateAddressBookResponse } from '../model/services/addressBookService';
|
|
4
|
-
export interface AssetService {
|
|
5
|
-
listAddressBooks(request: ListAddressBooksRequest): Promise<ListAddressBooksResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
6
|
-
createAddressBook(request: CreateAddressBookRequest): Promise<CreateAddressBookResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
7
|
-
}
|
|
8
|
-
export declare class AssetService implements AssetService {
|
|
9
|
-
private client;
|
|
10
|
-
constructor(client: CoinbasePrimeClient);
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CoinbasePrimeClient } from '../client';
|
|
2
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
3
|
-
import { CreateAllocationRequest, CreateAllocationResponse, CreateNetAllocationRequest, CreateNetAllocationResponse, ListPortfolioAllocationsRequest, ListPortfolioAllocationsResponse, ListNetAllocationsResponse, GetAllocationRequest, GetAllocationResponse } from '../model/services/allocationService';
|
|
4
|
-
export interface AssetService {
|
|
5
|
-
createAllocation(request: CreateAllocationRequest): Promise<CreateAllocationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
6
|
-
createNetAllocation(request: CreateNetAllocationRequest): Promise<CreateNetAllocationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
7
|
-
listPortfolioAllocations(request: ListPortfolioAllocationsRequest): Promise<ListPortfolioAllocationsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
8
|
-
listNetAllocations(request: CreateNetAllocationRequest): Promise<ListNetAllocationsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
9
|
-
getAllocation(request: GetAllocationRequest): Promise<GetAllocationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
10
|
-
}
|
|
11
|
-
export declare class AssetService implements AssetService {
|
|
12
|
-
private client;
|
|
13
|
-
constructor(client: CoinbasePrimeClient);
|
|
14
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AssetService = void 0;
|
|
13
|
-
class AssetService {
|
|
14
|
-
constructor(client) {
|
|
15
|
-
this.client = client;
|
|
16
|
-
}
|
|
17
|
-
createAllocation(request, options) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const response = yield this.client.request({
|
|
20
|
-
url: `allocations`,
|
|
21
|
-
bodyParams: request,
|
|
22
|
-
callOptions: options,
|
|
23
|
-
});
|
|
24
|
-
return response.data;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
createNetAllocation(request, options) {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
const response = yield this.client.request({
|
|
30
|
-
url: `allocations/net`,
|
|
31
|
-
bodyParams: request,
|
|
32
|
-
callOptions: options,
|
|
33
|
-
});
|
|
34
|
-
return response.data;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
listPortfolioAllocations(request, options) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const response = yield this.client.request({
|
|
40
|
-
url: `portfolios/${request.portfolioId}/allocations`,
|
|
41
|
-
callOptions: options,
|
|
42
|
-
});
|
|
43
|
-
return response.data;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
listNetAllocations(request, options) {
|
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
const response = yield this.client.request({
|
|
49
|
-
url: `portfolios/${request.portfolioId}/allocations/net/${request.nettingId}`,
|
|
50
|
-
callOptions: options,
|
|
51
|
-
});
|
|
52
|
-
return response.data;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
getAllocation(request, options) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const response = yield this.client.request({
|
|
58
|
-
url: `portfolios/${request.portfolioId}/allocations/${request.allocationId}`,
|
|
59
|
-
callOptions: options,
|
|
60
|
-
});
|
|
61
|
-
return response.data;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.AssetService = AssetService;
|
package/dist/assets/service.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CoinbasePrimeClient } from '../client';
|
|
2
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
3
|
-
import { ListAssetsRequest, ListAssetsResponse } from '../model/services/assetService';
|
|
4
|
-
export interface AssetService {
|
|
5
|
-
listAssets(request: ListAssetsRequest): Promise<ListAssetsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
6
|
-
}
|
|
7
|
-
export declare class AssetService implements AssetService {
|
|
8
|
-
private client;
|
|
9
|
-
constructor(client: CoinbasePrimeClient);
|
|
10
|
-
}
|
package/dist/assets/service.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AssetService = void 0;
|
|
13
|
-
class AssetService {
|
|
14
|
-
constructor(client) {
|
|
15
|
-
this.client = client;
|
|
16
|
-
}
|
|
17
|
-
listAssets(request, options) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const response = yield this.client.request({
|
|
20
|
-
url: `entities/${request.entityId}/assets`,
|
|
21
|
-
callOptions: options,
|
|
22
|
-
});
|
|
23
|
-
return response.data;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.AssetService = AssetService;
|
package/dist/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export { CoinbasePrimeClient } from './client';
|
|
17
|
-
export { CoinbasePrimeCredentials } from './credentials';
|
|
18
|
-
export { ActivitiesService, IActivitiesService } from './activities';
|
|
19
|
-
export { AddressBooksService, IAddressBooksService } from './addressBooks';
|
|
20
|
-
export { AllocationService, IAllocationService } from './allocations';
|
|
21
|
-
export { AssetsService, IAssetsService } from './assets';
|
|
22
|
-
export { BalancesService, IBalancesService } from './balances';
|
|
23
|
-
export { CommissionService, ICommissionService } from './commission';
|
|
24
|
-
export { FuturesService, IFuturesService } from './futures';
|
|
25
|
-
export { InvoicesService, IInvoicesService } from './invoices';
|
|
26
|
-
export { OnchainAddressBookService } from './onchainAddressBook';
|
|
27
|
-
export { OrdersService, IOrdersService } from './orders';
|
|
28
|
-
export { PaymentMethodsService, IPaymentMethodsService, } from './paymentMethods';
|
|
29
|
-
export { PortfoliosService, IPortfoliosService } from './portfolios';
|
|
30
|
-
export { ProductsService, IProductsService } from './products';
|
|
31
|
-
export { TransactionsService, ITransactionsService } from './transactions';
|
|
32
|
-
export { UsersService, IUsersService } from './users';
|
|
33
|
-
export { WalletsService, IWalletsService } from './wallets';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CoinbasePrimeClient } from '../client';
|
|
2
|
-
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
3
|
-
import { ListInvoicesRequest, ListInvoicesResponse } from '../model/services/invoiceService';
|
|
4
|
-
export interface InvoicesService {
|
|
5
|
-
listInvoicess(request: ListInvoicesRequest): Promise<ListInvoicesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
6
|
-
}
|
|
7
|
-
export declare class InvoicesService implements InvoicesService {
|
|
8
|
-
private client;
|
|
9
|
-
constructor(client: CoinbasePrimeClient);
|
|
10
|
-
}
|
package/dist/invoices/service.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InvoicesService = void 0;
|
|
13
|
-
class InvoicesService {
|
|
14
|
-
constructor(client) {
|
|
15
|
-
this.client = client;
|
|
16
|
-
}
|
|
17
|
-
listInvoicess(request, options) {
|
|
18
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const response = yield this.client.request({
|
|
20
|
-
url: `entities/${request.entityId}/Invoicess`,
|
|
21
|
-
callOptions: options,
|
|
22
|
-
});
|
|
23
|
-
return response.data;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.InvoicesService = InvoicesService;
|
package/dist/model/assets.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type ListAssetsRequest = {
|
|
2
|
-
entityId: string;
|
|
3
|
-
};
|
|
4
|
-
export type ListAssetsResponse = {
|
|
5
|
-
assets: Asset[];
|
|
6
|
-
};
|
|
7
|
-
export type Asset = {
|
|
8
|
-
name: string;
|
|
9
|
-
symbol: string;
|
|
10
|
-
decimalPrecision: string;
|
|
11
|
-
trading_supported: boolean;
|
|
12
|
-
explorerUrl: string;
|
|
13
|
-
};
|
package/dist/model/assets.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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 { AddressGroup } from './AddressGroup';
|
|
21
|
-
export type ChangeOnchainAddressGroupRequestIsARequestToCreateOrUpdateANewOnchainAddressGroup = {
|
|
22
|
-
addressGroup: AddressGroup;
|
|
23
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
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 ActivityType {
|
|
21
|
-
OtherActivityType = "OTHER_ACTIVITY_TYPE",
|
|
22
|
-
ActivityTypeLimitOrder = "ACTIVITY_TYPE_LIMIT_ORDER",
|
|
23
|
-
ActivityTypeMarketOrder = "ACTIVITY_TYPE_MARKET_ORDER",
|
|
24
|
-
ActivityTypeTwapOrder = "ACTIVITY_TYPE_TWAP_ORDER",
|
|
25
|
-
ActivityTypeBlockTrade = "ACTIVITY_TYPE_BLOCK_TRADE",
|
|
26
|
-
ActivityTypeVwapOrder = "ACTIVITY_TYPE_VWAP_ORDER",
|
|
27
|
-
ActivityTypeStopLimitOrder = "ACTIVITY_TYPE_STOP_LIMIT_ORDER",
|
|
28
|
-
ActivityTypeDeposit = "ACTIVITY_TYPE_DEPOSIT",
|
|
29
|
-
ActivityTypeWithdrawal = "ACTIVITY_TYPE_WITHDRAWAL",
|
|
30
|
-
ActivityTypeInternalTransfer = "ACTIVITY_TYPE_INTERNAL_TRANSFER",
|
|
31
|
-
ActivityTypeCreateWallet = "ACTIVITY_TYPE_CREATE_WALLET",
|
|
32
|
-
ActivityTypeRemoveWallet = "ACTIVITY_TYPE_REMOVE_WALLET",
|
|
33
|
-
ActivityTypeUpdateWallet = "ACTIVITY_TYPE_UPDATE_WALLET",
|
|
34
|
-
ActivityTypeCastVote = "ACTIVITY_TYPE_CAST_VOTE",
|
|
35
|
-
ActivityTypeEnableVoting = "ACTIVITY_TYPE_ENABLE_VOTING",
|
|
36
|
-
ActivityTypeStake = "ACTIVITY_TYPE_STAKE",
|
|
37
|
-
ActivityTypeUnstake = "ACTIVITY_TYPE_UNSTAKE",
|
|
38
|
-
ActivityTypeChangeValidator = "ACTIVITY_TYPE_CHANGE_VALIDATOR",
|
|
39
|
-
ActivityTypeRestake = "ACTIVITY_TYPE_RESTAKE",
|
|
40
|
-
ActivityTypeAddressBook = "ACTIVITY_TYPE_ADDRESS_BOOK",
|
|
41
|
-
ActivityTypeTeamMembers = "ACTIVITY_TYPE_TEAM_MEMBERS",
|
|
42
|
-
ActivityTypeBilling = "ACTIVITY_TYPE_BILLING",
|
|
43
|
-
ActivityTypeSecurity = "ACTIVITY_TYPE_SECURITY",
|
|
44
|
-
ActivityTypeApi = "ACTIVITY_TYPE_API",
|
|
45
|
-
ActivityTypeSettings = "ACTIVITY_TYPE_SETTINGS",
|
|
46
|
-
ActivityTypeSmartContract = "ACTIVITY_TYPE_SMART_CONTRACT",
|
|
47
|
-
ActivityTypeAllocationIn = "ACTIVITY_TYPE_ALLOCATION_IN",
|
|
48
|
-
ActivityTypeAllocationOut = "ACTIVITY_TYPE_ALLOCATION_OUT",
|
|
49
|
-
ActivityTypeAllocationInReversal = "ACTIVITY_TYPE_ALLOCATION_IN_REVERSAL",
|
|
50
|
-
ActivityTypeAllocationOutReversal = "ACTIVITY_TYPE_ALLOCATION_OUT_REVERSAL",
|
|
51
|
-
ActivityTypeConversion = "ACTIVITY_TYPE_CONVERSION",
|
|
52
|
-
ActivityTypePrincipalOut = "ACTIVITY_TYPE_PRINCIPAL_OUT",
|
|
53
|
-
ActivityTypePrincipalIn = "ACTIVITY_TYPE_PRINCIPAL_IN",
|
|
54
|
-
ActivityTypeCollateralOut = "ACTIVITY_TYPE_COLLATERAL_OUT",
|
|
55
|
-
ActivityTypeCollateralIn = "ACTIVITY_TYPE_COLLATERAL_IN",
|
|
56
|
-
ActivityTypeInterestOut = "ACTIVITY_TYPE_INTEREST_OUT",
|
|
57
|
-
ActivityTypeInterestIn = "ACTIVITY_TYPE_INTEREST_IN",
|
|
58
|
-
ActivityTypeWeb3Message = "ACTIVITY_TYPE_WEB3_MESSAGE",
|
|
59
|
-
ActivityTypeWeb3Transaction = "ACTIVITY_TYPE_WEB3_TRANSACTION",
|
|
60
|
-
ActivityTypeWeb3DeviceRecovery = "ACTIVITY_TYPE_WEB3_DEVICE_RECOVERY",
|
|
61
|
-
ActivityTypeWeb3RecreateBackup = "ACTIVITY_TYPE_WEB3_RECREATE_BACKUP",
|
|
62
|
-
ActivityTypeWeb3Onboarding = "ACTIVITY_TYPE_WEB3_ONBOARDING"
|
|
63
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
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.ActivityType = void 0;
|
|
23
|
-
var ActivityType;
|
|
24
|
-
(function (ActivityType) {
|
|
25
|
-
ActivityType["OtherActivityType"] = "OTHER_ACTIVITY_TYPE";
|
|
26
|
-
ActivityType["ActivityTypeLimitOrder"] = "ACTIVITY_TYPE_LIMIT_ORDER";
|
|
27
|
-
ActivityType["ActivityTypeMarketOrder"] = "ACTIVITY_TYPE_MARKET_ORDER";
|
|
28
|
-
ActivityType["ActivityTypeTwapOrder"] = "ACTIVITY_TYPE_TWAP_ORDER";
|
|
29
|
-
ActivityType["ActivityTypeBlockTrade"] = "ACTIVITY_TYPE_BLOCK_TRADE";
|
|
30
|
-
ActivityType["ActivityTypeVwapOrder"] = "ACTIVITY_TYPE_VWAP_ORDER";
|
|
31
|
-
ActivityType["ActivityTypeStopLimitOrder"] = "ACTIVITY_TYPE_STOP_LIMIT_ORDER";
|
|
32
|
-
ActivityType["ActivityTypeDeposit"] = "ACTIVITY_TYPE_DEPOSIT";
|
|
33
|
-
ActivityType["ActivityTypeWithdrawal"] = "ACTIVITY_TYPE_WITHDRAWAL";
|
|
34
|
-
ActivityType["ActivityTypeInternalTransfer"] = "ACTIVITY_TYPE_INTERNAL_TRANSFER";
|
|
35
|
-
ActivityType["ActivityTypeCreateWallet"] = "ACTIVITY_TYPE_CREATE_WALLET";
|
|
36
|
-
ActivityType["ActivityTypeRemoveWallet"] = "ACTIVITY_TYPE_REMOVE_WALLET";
|
|
37
|
-
ActivityType["ActivityTypeUpdateWallet"] = "ACTIVITY_TYPE_UPDATE_WALLET";
|
|
38
|
-
ActivityType["ActivityTypeCastVote"] = "ACTIVITY_TYPE_CAST_VOTE";
|
|
39
|
-
ActivityType["ActivityTypeEnableVoting"] = "ACTIVITY_TYPE_ENABLE_VOTING";
|
|
40
|
-
ActivityType["ActivityTypeStake"] = "ACTIVITY_TYPE_STAKE";
|
|
41
|
-
ActivityType["ActivityTypeUnstake"] = "ACTIVITY_TYPE_UNSTAKE";
|
|
42
|
-
ActivityType["ActivityTypeChangeValidator"] = "ACTIVITY_TYPE_CHANGE_VALIDATOR";
|
|
43
|
-
ActivityType["ActivityTypeRestake"] = "ACTIVITY_TYPE_RESTAKE";
|
|
44
|
-
ActivityType["ActivityTypeAddressBook"] = "ACTIVITY_TYPE_ADDRESS_BOOK";
|
|
45
|
-
ActivityType["ActivityTypeTeamMembers"] = "ACTIVITY_TYPE_TEAM_MEMBERS";
|
|
46
|
-
ActivityType["ActivityTypeBilling"] = "ACTIVITY_TYPE_BILLING";
|
|
47
|
-
ActivityType["ActivityTypeSecurity"] = "ACTIVITY_TYPE_SECURITY";
|
|
48
|
-
ActivityType["ActivityTypeApi"] = "ACTIVITY_TYPE_API";
|
|
49
|
-
ActivityType["ActivityTypeSettings"] = "ACTIVITY_TYPE_SETTINGS";
|
|
50
|
-
ActivityType["ActivityTypeSmartContract"] = "ACTIVITY_TYPE_SMART_CONTRACT";
|
|
51
|
-
ActivityType["ActivityTypeAllocationIn"] = "ACTIVITY_TYPE_ALLOCATION_IN";
|
|
52
|
-
ActivityType["ActivityTypeAllocationOut"] = "ACTIVITY_TYPE_ALLOCATION_OUT";
|
|
53
|
-
ActivityType["ActivityTypeAllocationInReversal"] = "ACTIVITY_TYPE_ALLOCATION_IN_REVERSAL";
|
|
54
|
-
ActivityType["ActivityTypeAllocationOutReversal"] = "ACTIVITY_TYPE_ALLOCATION_OUT_REVERSAL";
|
|
55
|
-
ActivityType["ActivityTypeConversion"] = "ACTIVITY_TYPE_CONVERSION";
|
|
56
|
-
ActivityType["ActivityTypePrincipalOut"] = "ACTIVITY_TYPE_PRINCIPAL_OUT";
|
|
57
|
-
ActivityType["ActivityTypePrincipalIn"] = "ACTIVITY_TYPE_PRINCIPAL_IN";
|
|
58
|
-
ActivityType["ActivityTypeCollateralOut"] = "ACTIVITY_TYPE_COLLATERAL_OUT";
|
|
59
|
-
ActivityType["ActivityTypeCollateralIn"] = "ACTIVITY_TYPE_COLLATERAL_IN";
|
|
60
|
-
ActivityType["ActivityTypeInterestOut"] = "ACTIVITY_TYPE_INTEREST_OUT";
|
|
61
|
-
ActivityType["ActivityTypeInterestIn"] = "ACTIVITY_TYPE_INTEREST_IN";
|
|
62
|
-
ActivityType["ActivityTypeWeb3Message"] = "ACTIVITY_TYPE_WEB3_MESSAGE";
|
|
63
|
-
ActivityType["ActivityTypeWeb3Transaction"] = "ACTIVITY_TYPE_WEB3_TRANSACTION";
|
|
64
|
-
ActivityType["ActivityTypeWeb3DeviceRecovery"] = "ACTIVITY_TYPE_WEB3_DEVICE_RECOVERY";
|
|
65
|
-
ActivityType["ActivityTypeWeb3RecreateBackup"] = "ACTIVITY_TYPE_WEB3_RECREATE_BACKUP";
|
|
66
|
-
ActivityType["ActivityTypeWeb3Onboarding"] = "ACTIVITY_TYPE_WEB3_ONBOARDING";
|
|
67
|
-
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PaginatedResponse } from '../PaginatedResponse';
|
|
2
|
-
import { ActivityCategory } from '../enums/ActivityCategory';
|
|
3
|
-
import { ActivityStatus } from '../enums/ActivityStatus';
|
|
4
|
-
import { GetActivityResponse as internalGet } from '../GetActivityResponse';
|
|
5
|
-
import { GetEntityActivitiesResponse } from '../GetEntityActivitiesResponse';
|
|
6
|
-
import { GetPortfolioActivitiesResponse } from '../GetPortfolioActivitiesResponse';
|
|
7
|
-
import { GetPortfolioActivityResponse as internalGetPortAct } from '../GetPortfolioActivityResponse';
|
|
8
|
-
export type ActivityFilters = PaginatedResponse & {
|
|
9
|
-
symbols?: string[];
|
|
10
|
-
categories?: ActivityCategory[];
|
|
11
|
-
statuses?: ActivityStatus[];
|
|
12
|
-
startTime: string;
|
|
13
|
-
endTime?: string;
|
|
14
|
-
};
|
|
15
|
-
export type GetActivityRequest = {
|
|
16
|
-
activityId: string;
|
|
17
|
-
};
|
|
18
|
-
export type GetActivityResponse = internalGet;
|
|
19
|
-
export type ListEntityActivitiesRequest = PaginatedResponse & ActivityFilters & {
|
|
20
|
-
entityId: string;
|
|
21
|
-
activityLevel?: string;
|
|
22
|
-
};
|
|
23
|
-
export type ListEntityActivitiesResponse = GetEntityActivitiesResponse;
|
|
24
|
-
export type ListPortfolioActivitiesRequest = PaginatedResponse & ActivityFilters & {
|
|
25
|
-
portfolioId: string;
|
|
26
|
-
activityId: string;
|
|
27
|
-
};
|
|
28
|
-
export type ListPortfolioActivitiesResponse = GetPortfolioActivitiesResponse;
|
|
29
|
-
export type GetPortfolioActivitiesRequest = {
|
|
30
|
-
portfolioId: string;
|
|
31
|
-
activityId: string;
|
|
32
|
-
};
|
|
33
|
-
export type GetPortfolioActivityResponse = internalGetPortAct;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { GetPortfolioAddressBookResponse } from '../GetPortfolioAddressBookResponse';
|
|
2
|
-
import { CreatePortfolioAddressBookEntryRequest } from '../CreatePortfolioAddressBookEntryRequest';
|
|
3
|
-
import { CreatePortfolioAddressBookEntryResponse } from '../CreatePortfolioAddressBookEntryResponse';
|
|
4
|
-
import { PaginatedResponse } from '../PaginatedResponse';
|
|
5
|
-
export type ListAddressBooksRequest = PaginatedResponse & {
|
|
6
|
-
portfolioId: string;
|
|
7
|
-
currencySymbol?: string;
|
|
8
|
-
search?: string;
|
|
9
|
-
};
|
|
10
|
-
export type ListAddressBooksResponse = GetPortfolioAddressBookResponse;
|
|
11
|
-
export type CreateAddressBookRequest = CreatePortfolioAddressBookEntryRequest & {
|
|
12
|
-
portfolioId: string;
|
|
13
|
-
};
|
|
14
|
-
export type CreateAddressBookResponse = CreatePortfolioAddressBookEntryResponse;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CreateAllocationRequest as internalCreate } from '../CreateAllocationRequest';
|
|
2
|
-
import { CreateAllocationResponse as internalResponse } from '../CreateAllocationResponse';
|
|
3
|
-
import { CreateNetAllocationResponse as internalNetCreate } from '../CreateNetAllocationResponse';
|
|
4
|
-
import { GetPortfolioAllocationsResponse } from '../GetPortfolioAllocationsResponse';
|
|
5
|
-
import { GetAllocationResponse as internalGet } from '../GetAllocationResponse';
|
|
6
|
-
import { GetAllocationsByClientNettingIdResponse } from '../GetAllocationsByClientNettingIdResponse';
|
|
7
|
-
export type CreateAllocationRequest = internalCreate;
|
|
8
|
-
export type CreateAllocationResponse = internalResponse;
|
|
9
|
-
export type CreateNetAllocationRequest = internalCreate;
|
|
10
|
-
export type CreateNetAllocationResponse = internalNetCreate;
|
|
11
|
-
export type ListPortfolioAllocationsRequest = {
|
|
12
|
-
portfolioId: string;
|
|
13
|
-
};
|
|
14
|
-
export type ListPortfolioAllocationsResponse = GetPortfolioAllocationsResponse;
|
|
15
|
-
export type ListNetAllocationsRequest = {
|
|
16
|
-
portfolioId: string;
|
|
17
|
-
nettingId: string;
|
|
18
|
-
};
|
|
19
|
-
export type ListNetAllocationsResponse = GetAllocationsByClientNettingIdResponse;
|
|
20
|
-
export type GetAllocationRequest = {
|
|
21
|
-
portfolioId: string;
|
|
22
|
-
allocationId: string;
|
|
23
|
-
};
|
|
24
|
-
export type GetAllocationResponse = internalGet;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PortfolioBalanceType } from '../enums/PortfolioBalanceType';
|
|
2
|
-
import { VisibilityStatus } from '../enums/VisibilityStatus';
|
|
3
|
-
import { GetPortfolioBalancesResponse } from '../GetPortfolioBalancesResponse';
|
|
4
|
-
import { GetWalletBalanceResponse } from '../GetWalletBalanceResponse';
|
|
5
|
-
import { ListWeb3WalletBalancesResponse } from '../ListWeb3WalletBalancesResponse';
|
|
6
|
-
export type ListPortfolioBalancesRequest = {
|
|
7
|
-
portfolioId: string;
|
|
8
|
-
symbol: string;
|
|
9
|
-
balanceType: PortfolioBalanceType;
|
|
10
|
-
};
|
|
11
|
-
export type ListPortfolioBalancesResponse = GetPortfolioBalancesResponse;
|
|
12
|
-
export type GetBalanceRequest = {
|
|
13
|
-
portfolioId: string;
|
|
14
|
-
walletId: string;
|
|
15
|
-
};
|
|
16
|
-
export type GetBalanceResponse = GetWalletBalanceResponse;
|
|
17
|
-
export type ListOnchainWalletBalancesRequest = {
|
|
18
|
-
portfolioId: string;
|
|
19
|
-
walletId: string;
|
|
20
|
-
visibilityStatuses?: VisibilityStatus[];
|
|
21
|
-
cursor?: string;
|
|
22
|
-
limit?: number;
|
|
23
|
-
};
|
|
24
|
-
export type ListOnchainWalletBalancesResponse = ListWeb3WalletBalancesResponse;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { OrderSide } from '../enums/OrderSide';
|
|
2
|
-
import { OrderStatus } from '../enums/OrderStatus';
|
|
3
|
-
import { OrderType } from '../enums/OrderType';
|
|
4
|
-
import { GetOpenOrdersResponse } from '../GetOpenOrdersResponse';
|
|
5
|
-
import { GetOrderFillsResponse } from '../GetOrderFillsResponse';
|
|
6
|
-
import { GetOrderResponse as internalGet } from '../GetOrderResponse';
|
|
7
|
-
import { GetOrdersResponse } from '../GetOrdersResponse';
|
|
8
|
-
import { GetPortfolioFillsResponse } from '../GetPortfolioFillsResponse';
|
|
9
|
-
import { OrderPreviewRequest } from '../OrderPreviewRequest';
|
|
10
|
-
import { PostOrderPreviewResponse } from '../PostOrderPreviewResponse';
|
|
11
|
-
import { CancelOrderResponse as internalCancel } from '../CancelOrderResponse';
|
|
12
|
-
import { CreateOrderResponse as internalCreateResp } from '../CreateOrderResponse';
|
|
13
|
-
import { CreateOrderRequest as internalCreate } from '../CreateOrderRequest';
|
|
14
|
-
import { Pagination } from './pagination';
|
|
15
|
-
export type GetOrderRequest = {
|
|
16
|
-
portfolioId: string;
|
|
17
|
-
orderId: string;
|
|
18
|
-
};
|
|
19
|
-
export type GetOrderResponse = internalGet;
|
|
20
|
-
export type ListPortfolioFillsRequest = Pagination & {
|
|
21
|
-
portfolioId: string;
|
|
22
|
-
startDate?: string;
|
|
23
|
-
endDate?: string;
|
|
24
|
-
};
|
|
25
|
-
export type ListPortfolioFillsResponse = GetPortfolioFillsResponse;
|
|
26
|
-
export type ListPortfolioOrdersRequest = Pagination & {
|
|
27
|
-
portfolioId: string;
|
|
28
|
-
orderStatuses: OrderStatus[];
|
|
29
|
-
productIds: string[];
|
|
30
|
-
orderTypes: OrderType;
|
|
31
|
-
orderSider: OrderSide;
|
|
32
|
-
startDate?: string;
|
|
33
|
-
endDate?: string;
|
|
34
|
-
};
|
|
35
|
-
export type ListPortfolioOrdersResponse = GetOrdersResponse;
|
|
36
|
-
export type ListOrderFillsRequest = Pagination & {
|
|
37
|
-
portfolioId: string;
|
|
38
|
-
orderId: string;
|
|
39
|
-
};
|
|
40
|
-
export type ListOrderFillsResponse = GetOrderFillsResponse;
|
|
41
|
-
export type ListOpenOrdersRequest = Pagination & {
|
|
42
|
-
portfolioId: string;
|
|
43
|
-
productIds?: string[];
|
|
44
|
-
orderType?: OrderType;
|
|
45
|
-
orderSide?: OrderSide;
|
|
46
|
-
startDate?: string;
|
|
47
|
-
endDate: string;
|
|
48
|
-
};
|
|
49
|
-
export type ListOpenOrdersResponse = GetOpenOrdersResponse;
|
|
50
|
-
export type CreateOrderPreviewRequest = OrderPreviewRequest & {
|
|
51
|
-
portfolioId: string;
|
|
52
|
-
};
|
|
53
|
-
export type CreateOrderPreviewResponse = PostOrderPreviewResponse;
|
|
54
|
-
export type CancelOrderRequest = {
|
|
55
|
-
portfolioId: string;
|
|
56
|
-
orderId: string;
|
|
57
|
-
};
|
|
58
|
-
export type CancelOrderResponse = internalCancel;
|
|
59
|
-
export type CreateOrderRequest = internalCreate & {
|
|
60
|
-
portfolioId: string;
|
|
61
|
-
};
|
|
62
|
-
export type CreateOrderResponse = internalCreateResp;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GetEntityPaymentMethodsResponse } from '../GetEntityPaymentMethodsResponse';
|
|
2
|
-
import { GetEntityPaymentMethodDetailsResponse } from '../GetEntityPaymentMethodDetailsResponse';
|
|
3
|
-
export type ListEntityPaymentMethodsRequest = {
|
|
4
|
-
entityId: string;
|
|
5
|
-
};
|
|
6
|
-
export type ListEntityPaymentMethodsResponse = GetEntityPaymentMethodsResponse;
|
|
7
|
-
export type GetPaymentMethodRequest = {
|
|
8
|
-
entityId: string;
|
|
9
|
-
};
|
|
10
|
-
export type GetPaymentMethodResponse = GetEntityPaymentMethodDetailsResponse;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GetPortfolioResponse as internalGet } from '../GetPortfolioResponse';
|
|
2
|
-
import { GetPortfoliosResponse } from '../GetPortfoliosResponse';
|
|
3
|
-
import { GetPostTradeCreditResponse } from '../GetPostTradeCreditResponse';
|
|
4
|
-
export type GetPortfolioRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* The portfolio ID.
|
|
7
|
-
*/
|
|
8
|
-
portfolioId: string;
|
|
9
|
-
};
|
|
10
|
-
export type GetPortfolioResponse = internalGet;
|
|
11
|
-
export type ListPortfoliosResponse = GetPortfoliosResponse;
|
|
12
|
-
export type GetPortfolioCreditRequest = {
|
|
13
|
-
portfolioId: string;
|
|
14
|
-
};
|
|
15
|
-
export type GetPortfolioCreditResponse = GetPostTradeCreditResponse;
|