@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
|
@@ -9,28 +9,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
class
|
|
12
|
+
exports.PositionsService = void 0;
|
|
13
|
+
class PositionsService {
|
|
14
14
|
constructor(client) {
|
|
15
15
|
this.client = client;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
listAggregateEntityPositions(request, options) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const queryParams = Object.assign(Object.assign({}, request), { entityId: undefined });
|
|
19
20
|
const response = yield this.client.request({
|
|
20
|
-
url: `
|
|
21
|
+
url: `portfolios/${request.entityId}/aggregate_positions`,
|
|
21
22
|
callOptions: options,
|
|
23
|
+
queryParams,
|
|
22
24
|
});
|
|
23
25
|
return response.data;
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
listEntityPositions(request, options) {
|
|
27
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const queryParams = Object.assign(Object.assign({}, request), { entityId: undefined });
|
|
28
31
|
const response = yield this.client.request({
|
|
29
|
-
url: `
|
|
32
|
+
url: `portfolios/${request.entityId}/positions`,
|
|
30
33
|
callOptions: options,
|
|
34
|
+
queryParams,
|
|
31
35
|
});
|
|
32
36
|
return response.data;
|
|
33
37
|
});
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
|
-
exports.
|
|
40
|
+
exports.PositionsService = PositionsService;
|
|
@@ -9,30 +9,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
class
|
|
12
|
+
exports.StakingService = void 0;
|
|
13
|
+
class StakingService {
|
|
14
14
|
constructor(client) {
|
|
15
15
|
this.client = client;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
createStake(request, options) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const queryParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
|
|
19
20
|
const response = yield this.client.request({
|
|
20
|
-
url: `portfolios/${request.portfolioId}/
|
|
21
|
+
url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/staking/initiate`,
|
|
22
|
+
queryParams,
|
|
21
23
|
callOptions: options,
|
|
22
24
|
});
|
|
23
25
|
return response.data;
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
|
-
|
|
28
|
+
createUnstake(request, options) {
|
|
27
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const
|
|
30
|
+
const queryParams = Object.assign(Object.assign({}, request), { portfolioId: undefined, walletId: undefined });
|
|
29
31
|
const response = yield this.client.request({
|
|
30
|
-
url: `portfolios/${request.portfolioId}/
|
|
31
|
-
|
|
32
|
+
url: `portfolios/${request.portfolioId}/wallets/${request.walletId}/staking/unstake`,
|
|
33
|
+
queryParams,
|
|
32
34
|
callOptions: options,
|
|
33
35
|
});
|
|
34
36
|
return response.data;
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
exports.
|
|
40
|
+
exports.StakingService = StakingService;
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
18
|
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
|
-
import { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse } from './types';
|
|
19
|
+
import { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse, ListEntityBalancesRequest, ListEntityBalancesResponse } from './types';
|
|
20
20
|
export interface IBalancesService {
|
|
21
21
|
listPortfolioBalances(request: ListPortfolioBalancesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioBalancesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
22
22
|
getWalletBalance(request: GetWalletBalanceRequest, options?: CoinbaseCallOptions): Promise<GetWalletBalanceResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
23
23
|
listOnchainWalletBalances(request: ListOnchainWalletBalancesRequest, options?: CoinbaseCallOptions): Promise<ListOnchainWalletBalancesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
24
|
+
listEntityBalances(request: ListEntityBalancesRequest, options?: CoinbaseCallOptions): Promise<ListEntityBalancesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
24
25
|
}
|
|
25
26
|
export declare class BalancesService implements IBalancesService {
|
|
26
27
|
private client;
|
|
@@ -28,4 +29,5 @@ export declare class BalancesService implements IBalancesService {
|
|
|
28
29
|
listPortfolioBalances(request: ListPortfolioBalancesRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioBalancesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
29
30
|
getWalletBalance(request: GetWalletBalanceRequest, options?: CoinbaseCallOptions): Promise<GetWalletBalanceResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
30
31
|
listOnchainWalletBalances(request: ListOnchainWalletBalancesRequest, options?: CoinbaseCallOptions): Promise<ListOnchainWalletBalancesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
32
|
+
listEntityBalances(request: ListEntityBalancesRequest, options?: CoinbaseCallOptions): Promise<ListEntityBalancesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
31
33
|
}
|
|
@@ -18,6 +18,7 @@ import { VisibilityStatus } from '../model/enums/VisibilityStatus';
|
|
|
18
18
|
import { GetPortfolioBalancesResponse } from '../model/GetPortfolioBalancesResponse';
|
|
19
19
|
import { GetWalletBalanceResponse as internalGetResp } from '../model/GetWalletBalanceResponse';
|
|
20
20
|
import { ListWeb3WalletBalancesResponse } from '../model/ListWeb3WalletBalancesResponse';
|
|
21
|
+
import { ListEntityBalancesResponse as internalListEntityBalances } from '../model/ListEntityBalancesResponse';
|
|
21
22
|
export type ListPortfolioBalancesRequest = {
|
|
22
23
|
portfolioId: string;
|
|
23
24
|
symbol: string;
|
|
@@ -37,3 +38,11 @@ export type ListOnchainWalletBalancesRequest = {
|
|
|
37
38
|
limit?: number;
|
|
38
39
|
};
|
|
39
40
|
export type ListOnchainWalletBalancesResponse = ListWeb3WalletBalancesResponse;
|
|
41
|
+
export type ListEntityBalancesRequest = {
|
|
42
|
+
entityId: string;
|
|
43
|
+
symbols?: string;
|
|
44
|
+
cursor?: string;
|
|
45
|
+
limit?: number;
|
|
46
|
+
aggregationType?: PortfolioBalanceType;
|
|
47
|
+
};
|
|
48
|
+
export type ListEntityBalancesResponse = internalListEntityBalances;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { CoinbaseClient } from '
|
|
16
|
+
import { CoinbaseClient } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeCredentials } from './credentials';
|
|
18
18
|
export declare class CoinbasePrimeClient extends CoinbaseClient {
|
|
19
19
|
constructor(credentials?: CoinbasePrimeCredentials, apiBasePath?: string);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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
|
+
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
|
+
import { CoinbasePrimeClient } from '../client';
|
|
18
|
+
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
|
+
import { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse } from './types';
|
|
20
|
+
export interface IFinancingService {
|
|
21
|
+
listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
22
|
+
listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
23
|
+
listPortfolioInterestAccruals(request: ListPortfolioInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
24
|
+
listMarginCallSummaries(request: ListMarginCallSummariesRequest, options?: CoinbaseCallOptions): Promise<ListMarginCallSummariesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
25
|
+
listMarginConversions(request: ListMarginConversionsRequest, options?: CoinbaseCallOptions): Promise<ListMarginConversionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
26
|
+
getEntityLocateAvailabilities(request: GetEntityLocateAvailabilitiesRequest, options?: CoinbaseCallOptions): Promise<GetEntityLocateAvailabilitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
27
|
+
getMarginInformation(request: GetMarginInformationRequest, options?: CoinbaseCallOptions): Promise<GetMarginInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
28
|
+
getPortfolioBuyingPower(request: GetPortfolioBuyingPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioBuyingPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
29
|
+
getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
30
|
+
getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
31
|
+
getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
32
|
+
createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
33
|
+
}
|
|
34
|
+
export declare class FinancingService implements IFinancingService {
|
|
35
|
+
private client;
|
|
36
|
+
constructor(client: CoinbasePrimeClient);
|
|
37
|
+
listExistingLocates(request: ListExistingLocatesRequest, options?: CoinbaseCallOptions): Promise<ListExistingLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
38
|
+
listInterestAccruals(request: ListInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
39
|
+
listPortfolioInterestAccruals(request: ListPortfolioInterestAccrualsRequest, options?: CoinbaseCallOptions): Promise<ListPortfolioInterestAccrualsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
40
|
+
listMarginCallSummaries(request: ListMarginCallSummariesRequest, options?: CoinbaseCallOptions): Promise<ListMarginCallSummariesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
41
|
+
listMarginConversions(request: ListMarginConversionsRequest, options?: CoinbaseCallOptions): Promise<ListMarginConversionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
42
|
+
getEntityLocateAvailabilities(request: GetEntityLocateAvailabilitiesRequest, options?: CoinbaseCallOptions): Promise<GetEntityLocateAvailabilitiesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
43
|
+
getMarginInformation(request: GetMarginInformationRequest, options?: CoinbaseCallOptions): Promise<GetMarginInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
44
|
+
getPortfolioBuyingPower(request: GetPortfolioBuyingPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioBuyingPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
45
|
+
getPortfolioCreditInformation(request: GetPortfolioCreditInformationRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioCreditInformationResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
46
|
+
getPortfolioWithdrawalPower(request: GetPortfolioWithdrawalPowerRequest, options?: CoinbaseCallOptions): Promise<GetPortfolioWithdrawalPowerResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
47
|
+
getTieredPricingFees(request: GetTieredPricingFeesRequest, options?: CoinbaseCallOptions): Promise<GetTieredPricingFeesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
48
|
+
createNewLocates(request: CreateNewLocatesRequest, options?: CoinbaseCallOptions): Promise<CreateNewLocatesResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-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
|
+
import { GetExistingLocatesResponse } from '../model/GetExistingLocatesResponse';
|
|
17
|
+
import { GetInterestAccrualsResponse } from '../model/GetInterestAccrualsResponse';
|
|
18
|
+
import { GetLocateAvailabilitiesResponse } from '../model/GetLocateAvailabilitiesResponse';
|
|
19
|
+
import { GetMarginConversionsResponse } from '../model/GetMarginConversionsResponse';
|
|
20
|
+
import { GetMarginSummariesResponse } from '../model/GetMarginSummariesResponse';
|
|
21
|
+
import { GetMarginInformationResponse as internalGetMarginInformationResponse } from '../model/GetMarginInformationResponse';
|
|
22
|
+
import { GetBuyingPowerResponse } from '../model/GetBuyingPowerResponse';
|
|
23
|
+
import { GetPostTradeCreditResponse } from '../model/GetPostTradeCreditResponse';
|
|
24
|
+
import { GetTFTieredPricingFeesResponse } from '../model/GetTFTieredPricingFeesResponse';
|
|
25
|
+
import { GetWithdrawalPowerResponse } from '../model/GetWithdrawalPowerResponse';
|
|
26
|
+
import { CreateNewLocatesResponse as internalCreateNewLocatesResponse } from '../model/CreateNewLocatesResponse';
|
|
27
|
+
export type ListExistingLocatesRequest = {
|
|
28
|
+
portfolioId: string;
|
|
29
|
+
locateIds?: string[];
|
|
30
|
+
conversionDate?: string;
|
|
31
|
+
locateDate?: string;
|
|
32
|
+
};
|
|
33
|
+
export type ListExistingLocatesResponse = GetExistingLocatesResponse;
|
|
34
|
+
export type ListInterestAccrualsRequest = {
|
|
35
|
+
entityId: string;
|
|
36
|
+
portfolioId?: string;
|
|
37
|
+
startDate?: string;
|
|
38
|
+
endDate?: string;
|
|
39
|
+
};
|
|
40
|
+
export type ListInterestAccrualsResponse = GetInterestAccrualsResponse;
|
|
41
|
+
export type ListPortfolioInterestAccrualsRequest = {
|
|
42
|
+
portfolioId: string;
|
|
43
|
+
startDate?: string;
|
|
44
|
+
endDate?: string;
|
|
45
|
+
};
|
|
46
|
+
export type ListPortfolioInterestAccrualsResponse = GetInterestAccrualsResponse;
|
|
47
|
+
export type ListMarginCallSummariesRequest = {
|
|
48
|
+
entityId: string;
|
|
49
|
+
startDate?: string;
|
|
50
|
+
endDate?: string;
|
|
51
|
+
};
|
|
52
|
+
export type ListMarginCallSummariesResponse = GetMarginSummariesResponse;
|
|
53
|
+
export type ListMarginConversionsRequest = {
|
|
54
|
+
portfolioId: string;
|
|
55
|
+
startDate?: string;
|
|
56
|
+
endDate?: string;
|
|
57
|
+
};
|
|
58
|
+
export type ListMarginConversionsResponse = GetMarginConversionsResponse;
|
|
59
|
+
export type GetEntityLocateAvailabilitiesRequest = {
|
|
60
|
+
entityId: string;
|
|
61
|
+
locateDate?: string;
|
|
62
|
+
};
|
|
63
|
+
export type GetEntityLocateAvailabilitiesResponse = GetLocateAvailabilitiesResponse;
|
|
64
|
+
export type GetMarginInformationRequest = {
|
|
65
|
+
entityId: string;
|
|
66
|
+
};
|
|
67
|
+
export type GetMarginInformationResponse = internalGetMarginInformationResponse;
|
|
68
|
+
export type GetPortfolioBuyingPowerRequest = {
|
|
69
|
+
portfolioId: string;
|
|
70
|
+
baseCurrency: string;
|
|
71
|
+
quoteCurrency: string;
|
|
72
|
+
};
|
|
73
|
+
export type GetPortfolioBuyingPowerResponse = GetBuyingPowerResponse;
|
|
74
|
+
export type GetPortfolioCreditInformationRequest = {
|
|
75
|
+
portfolioId: string;
|
|
76
|
+
};
|
|
77
|
+
export type GetPortfolioCreditInformationResponse = GetPostTradeCreditResponse;
|
|
78
|
+
export type GetPortfolioWithdrawalPowerRequest = {
|
|
79
|
+
portfolioId: string;
|
|
80
|
+
symbol: string;
|
|
81
|
+
};
|
|
82
|
+
export type GetPortfolioWithdrawalPowerResponse = GetWithdrawalPowerResponse;
|
|
83
|
+
export type GetTieredPricingFeesRequest = {
|
|
84
|
+
entityId: string;
|
|
85
|
+
effectiveAt?: string;
|
|
86
|
+
};
|
|
87
|
+
export type GetTieredPricingFeesResponse = GetTFTieredPricingFeesResponse;
|
|
88
|
+
export type CreateNewLocatesRequest = {
|
|
89
|
+
portfolioId: string;
|
|
90
|
+
symbol?: string;
|
|
91
|
+
amount?: string;
|
|
92
|
+
locateDate?: string;
|
|
93
|
+
};
|
|
94
|
+
export type CreateNewLocatesResponse = internalCreateNewLocatesResponse;
|
|
@@ -16,22 +16,22 @@
|
|
|
16
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
17
17
|
import { CoinbasePrimeClient } from '../client';
|
|
18
18
|
import { CoinbasePrimeClientException, CoinbasePrimeException } from '../errors';
|
|
19
|
-
import {
|
|
19
|
+
import { ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, CancelEntitySweepRequest, CancelEntitySweepResponse } from './types';
|
|
20
20
|
export interface IFuturesService {
|
|
21
|
-
listEntitySweeps(request:
|
|
21
|
+
listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
22
22
|
getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
23
23
|
getEntityPositions(request: GetEntityFuturesPositionsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesPositionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
24
24
|
scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
25
|
-
updateEntityAutoSweep(request:
|
|
25
|
+
updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
26
26
|
cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
27
27
|
}
|
|
28
28
|
export declare class FuturesService implements IFuturesService {
|
|
29
29
|
private client;
|
|
30
30
|
constructor(client: CoinbasePrimeClient);
|
|
31
|
-
listEntitySweeps(request:
|
|
31
|
+
listEntitySweeps(request: ListEntityFuturesSweepsRequest, options?: CoinbaseCallOptions): Promise<ListEntityFuturesSweepsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
32
32
|
getEntityBalance(request: GetEntityFuturesBalanceRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesBalanceResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
33
33
|
getEntityPositions(request: GetEntityFuturesPositionsRequest, options?: CoinbaseCallOptions): Promise<GetEntityFuturesPositionsResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
34
34
|
scheduleEntitySweep(request: ScheduleEntityFuturesSweepRequest, options?: CoinbaseCallOptions): Promise<ScheduleEntityFuturesSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
35
|
-
updateEntityAutoSweep(request:
|
|
35
|
+
updateEntityAutoSweep(request: UpdateEntityFuturesAutoSweepRequest, options?: CoinbaseCallOptions): Promise<UpdateEntityFuturesAutoSweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
36
36
|
cancelEntitySweep(request: CancelEntitySweepRequest, options?: CoinbaseCallOptions): Promise<CancelEntitySweepResponse | CoinbasePrimeClientException | CoinbasePrimeException>;
|
|
37
37
|
}
|
|
@@ -20,7 +20,7 @@ import { SetAutoSweepResponse } from '../model/SetAutoSweepResponse';
|
|
|
20
20
|
import { ScheduleFuturesSweepRequest } from '../model/ScheduleFuturesSweepRequest';
|
|
21
21
|
import { ScheduleFuturesSweepResponse } from '../model/ScheduleFuturesSweepResponse';
|
|
22
22
|
import { CancelFuturesSweepResponse } from '../model/CancelFuturesSweepResponse';
|
|
23
|
-
export type
|
|
23
|
+
export type ListEntityFuturesSweepsRequest = {
|
|
24
24
|
entityId: string;
|
|
25
25
|
};
|
|
26
26
|
export type ListEntityFuturesSweepsResponse = GetFuturesSweepsResponse;
|
|
@@ -33,7 +33,7 @@ export type GetEntityFuturesPositionsRequest = {
|
|
|
33
33
|
productId?: string;
|
|
34
34
|
};
|
|
35
35
|
export type GetEntityFuturesPositionsResponse = GetPositionsResponse;
|
|
36
|
-
export type
|
|
36
|
+
export type UpdateEntityFuturesAutoSweepRequest = {
|
|
37
37
|
entityId: string;
|
|
38
38
|
autoSweep: boolean;
|
|
39
39
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { PositionsService, IPositionsService } from './positions';
|
|
31
|
+
export { ProductsService, IProductsService } from './products';
|
|
32
|
+
export { StakingService, IStakingService } from './staking';
|
|
33
|
+
export { TransactionsService, ITransactionsService } from './transactions';
|
|
34
|
+
export { UsersService, IUsersService } from './users';
|
|
35
|
+
export { WalletsService, IWalletsService } from './wallets';
|
|
36
|
+
export type { GetActivityRequest, GetActivityResponse, GetPortfolioActivitiesRequest, GetPortfolioActivityResponse, ListEntityActivitiesRequest, ListEntityActivitiesResponse, ListPortfolioActivitiesRequest, ListPortfolioActivitiesResponse, } from './activities/types';
|
|
37
|
+
export type { CreateAddressBookRequest, CreateAddressBookResponse, ListAddressBooksRequest, ListAddressBooksResponse, } from './addressBooks/types';
|
|
38
|
+
export type { CreateAllocationRequest, CreateAllocationResponse, CreateNetAllocationRequest, CreateNetAllocationResponse, ListNetAllocationsRequest, ListNetAllocationsResponse, ListPortfolioAllocationsRequest, ListPortfolioAllocationsResponse, GetAllocationRequest, GetAllocationResponse, } from './allocations/types';
|
|
39
|
+
export type { ListAssetsRequest, ListAssetsResponse } from './assets/types';
|
|
40
|
+
export type { GetWalletBalanceRequest, GetWalletBalanceResponse, ListOnchainWalletBalancesRequest, ListOnchainWalletBalancesResponse, ListPortfolioBalancesRequest, ListPortfolioBalancesResponse, ListEntityBalancesRequest, ListEntityBalancesResponse, } from './balances/types';
|
|
41
|
+
export type { GetPortfolioCommissionRequest, GetPortfolioCommissionResponse, } from './commission/types';
|
|
42
|
+
export type { ListExistingLocatesRequest, ListExistingLocatesResponse, ListInterestAccrualsRequest, ListInterestAccrualsResponse, ListPortfolioInterestAccrualsRequest, ListPortfolioInterestAccrualsResponse, ListMarginCallSummariesRequest, ListMarginCallSummariesResponse, ListMarginConversionsRequest, ListMarginConversionsResponse, GetEntityLocateAvailabilitiesRequest, GetEntityLocateAvailabilitiesResponse, GetMarginInformationRequest, GetMarginInformationResponse, GetPortfolioBuyingPowerRequest, GetPortfolioBuyingPowerResponse, GetPortfolioCreditInformationRequest, GetPortfolioCreditInformationResponse, GetPortfolioWithdrawalPowerRequest, GetPortfolioWithdrawalPowerResponse, GetTieredPricingFeesRequest, GetTieredPricingFeesResponse, CreateNewLocatesRequest, CreateNewLocatesResponse, } from './financing/types';
|
|
43
|
+
export type { CancelEntitySweepRequest, CancelEntitySweepResponse, GetEntityFuturesBalanceRequest, GetEntityFuturesBalanceResponse, GetEntityFuturesPositionsRequest, GetEntityFuturesPositionsResponse, ListEntityFuturesSweepsRequest, ListEntityFuturesSweepsResponse, ScheduleEntityFuturesSweepRequest, ScheduleEntityFuturesSweepResponse, UpdateEntityFuturesAutoSweepRequest, UpdateEntityFuturesAutoSweepResponse, } from './futures/types';
|
|
44
|
+
export type { ListInvoicesRequest, ListInvoicesResponse, } from './invoices/types';
|
|
45
|
+
export type { CreateOnchainAddressBookEntryRequest, CreateOnchainAddressBookEntryResponse, DeleteOnchainAddressBookEntryRequest, DeleteOnchainAddressBookEntryResponse, ListOnchainAddressBookRequest, ListOnchainAddressBookResponse, UpdateOnchainAddressBookEntryRequest, UpdateOnchainAddressBookEntryResponse, } from './onchainAddressBook/types';
|
|
46
|
+
export type { AcceptQuoteRequest, AcceptQuoteResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderPreviewRequest, CreateOrderPreviewResponse, CreateOrderRequest, CreateOrderResponse, CreateQuoteRequest, CreateQuoteResponse, GetOrderRequest, GetOrderResponse, ListOpenOrdersRequest, ListOpenOrdersResponse, ListOrderFillsRequest, ListOrderFillsResponse, ListPortfolioFillsRequest, ListPortfolioFillsResponse, ListPortfolioOrdersRequest, ListPortfolioOrdersResponse, } from './orders/types';
|
|
47
|
+
export type { GetPaymentMethodRequest, GetPaymentMethodResponse, ListEntityPaymentMethodsRequest, ListEntityPaymentMethodsResponse, } from './paymentMethods/types';
|
|
48
|
+
export type { ListPortfoliosRequest, ListPortfoliosResponse, GetPortfolioCreditRequest, GetPortfolioCreditResponse, GetPortfolioRequest, GetPortfolioResponse, } from './portfolios/types';
|
|
49
|
+
export type { ListAggregateEntityPositionsRequest, ListAggregateEntityPositionsResponse, ListEntityPositionsRequest, ListEntityPositionsResponse, } from './positions/types';
|
|
50
|
+
export type { ListProductsRequest, ListProductsResponse, } from './products/types';
|
|
51
|
+
export type { CreateStakeRequest, CreateStakeResponse, CreateUnstakeRequest, CreateUnstakeResponse, } from './staking/types';
|
|
52
|
+
export type { CreateConversionRequest, CreateConversionResponse, CreateOnchainTransactionRequest, CreateOnchainTransactionResponse, CreateTransferRequest, CreateTransferResponse, CreateWithdrawalRequest, CreateWithdrawalResponse, GetTransactionRequest, GetTransactionResponse, ListPortfolioTransactionsRequest, ListPortfolioTransactionsResponse, ListWalletTransactionsRequest, ListWalletTransactionsResponse, } from './transactions/types';
|
|
53
|
+
export type { ListPortfolioUsersRequest, ListPortfolioUsersResponse, ListUsersRequest, ListUsersResponse, } from './users/types';
|
|
54
|
+
export type { CreateWalletRequest, CreateWalletResponse, CreateWalletDepositAddressRequest, CreateWalletDepositAddressResponse, GetWalletDepositInstructionsRequest, GetWalletDepositInstructionsResponse, GetWalletRequest, GetWalletResponse, ListWalletAddressesRequest, ListWalletAddressesResponse, ListWalletsRequest, ListWalletsResponse, } from './wallets/types';
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { Benchmark } from './enums/Benchmark';
|
|
21
|
+
import { LoanType } from './enums/LoanType';
|
|
22
|
+
import { RateType } from './enums/RateType';
|
|
23
|
+
export type Accrual = {
|
|
24
|
+
/**
|
|
25
|
+
* The accrual ID
|
|
26
|
+
*/
|
|
27
|
+
accrualId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The date of accrual in UTC
|
|
30
|
+
*/
|
|
31
|
+
date?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The unique ID of the portfolio
|
|
34
|
+
*/
|
|
35
|
+
portfolioId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The currency symbol
|
|
38
|
+
*/
|
|
39
|
+
symbol?: string;
|
|
40
|
+
loanType?: LoanType;
|
|
41
|
+
/**
|
|
42
|
+
* The daily or annualized interest rate for the loan, see rate_type
|
|
43
|
+
*/
|
|
44
|
+
interestRate?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Daily accrual amount in the principal currency
|
|
47
|
+
*/
|
|
48
|
+
nominalAccrual?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Daily USD accrued interest
|
|
51
|
+
*/
|
|
52
|
+
notionalAccrual?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Accrual rate used to convert from principal to USD accrual
|
|
55
|
+
*/
|
|
56
|
+
conversionRate?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Outstanding principal of the loan
|
|
59
|
+
*/
|
|
60
|
+
loanAmount?: string;
|
|
61
|
+
benchmark?: Benchmark;
|
|
62
|
+
/**
|
|
63
|
+
* Daily interest rate fetched from the benchmark source
|
|
64
|
+
*/
|
|
65
|
+
benchmarkRate?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Daily spread offset from the benchmark rate
|
|
68
|
+
*/
|
|
69
|
+
spread?: string;
|
|
70
|
+
rateType?: RateType;
|
|
71
|
+
/**
|
|
72
|
+
* Outstanding principal of the loan in USD
|
|
73
|
+
*/
|
|
74
|
+
loanAmountNotional?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Settled open borrow as of start-of-day in the principal currency
|
|
77
|
+
*/
|
|
78
|
+
nominalOpenBorrowSod?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Settled open borrow as of start-of-day in USD
|
|
81
|
+
*/
|
|
82
|
+
notionalOpenBorrowSod?: string;
|
|
83
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type AddressEntry = {
|
|
21
|
+
name?: string;
|
|
22
|
+
address?: string;
|
|
23
|
+
chainIds?: Array<string>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type AssetBalance = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique ID of the portfolio
|
|
23
|
+
*/
|
|
24
|
+
portfolioId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The currency symbol
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Balance amount
|
|
31
|
+
*/
|
|
32
|
+
amount?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Notional balance amount
|
|
35
|
+
*/
|
|
36
|
+
notionalAmount?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Conversion rate
|
|
39
|
+
*/
|
|
40
|
+
conversionRate?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type BuyingPower = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique ID of the portfolio
|
|
23
|
+
*/
|
|
24
|
+
portfolioId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The symbol for the base currency
|
|
27
|
+
*/
|
|
28
|
+
baseCurrency?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The symbol for the quote currency
|
|
31
|
+
*/
|
|
32
|
+
quoteCurrency?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The buying power for the base currency
|
|
35
|
+
*/
|
|
36
|
+
baseBuyingPower?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The buying power for the quote currency
|
|
39
|
+
*/
|
|
40
|
+
quoteBuyingPower?: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { ConversionDetail } from './ConversionDetail';
|
|
21
|
+
import { ShortCollateral } from './ShortCollateral';
|
|
22
|
+
export type Conversion = {
|
|
23
|
+
/**
|
|
24
|
+
* Conversion details
|
|
25
|
+
*/
|
|
26
|
+
conversionDetails?: Array<ConversionDetail>;
|
|
27
|
+
shortCollateral?: ShortCollateral;
|
|
28
|
+
/**
|
|
29
|
+
* The UTC date time used for conversion
|
|
30
|
+
*/
|
|
31
|
+
conversionDatetime?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Portfolio Id
|
|
34
|
+
*/
|
|
35
|
+
portfolioId?: string;
|
|
36
|
+
};
|