@coinbase-sample/advanced-trade-sdk-ts 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/constants.d.ts +19 -3
- package/dist/constants.js +19 -3
- package/dist/model/Account.d.ts +1 -1
- package/dist/model/Account.js +1 -1
- package/dist/model/Address.d.ts +1 -1
- package/dist/model/Address.js +1 -1
- package/dist/model/AllocatePortfolioRequest.d.ts +1 -1
- package/dist/model/AllocatePortfolioRequest.js +1 -1
- package/dist/model/Allocation.d.ts +1 -1
- package/dist/model/Allocation.js +1 -1
- package/dist/model/AllocationLeg.d.ts +1 -1
- package/dist/model/AllocationLeg.js +1 -1
- package/dist/model/Amount.d.ts +1 -1
- package/dist/model/Amount.js +1 -1
- package/dist/model/ApplePay.d.ts +1 -1
- package/dist/model/ApplePay.js +1 -1
- package/dist/model/ApplePayBraintreeData.d.ts +1 -1
- package/dist/model/ApplePayBraintreeData.js +1 -1
- package/dist/model/Asset.d.ts +1 -1
- package/dist/model/Asset.js +1 -1
- package/dist/model/Balance.d.ts +1 -1
- package/dist/model/Balance.js +1 -1
- package/dist/model/BalancePair.d.ts +4 -1
- package/dist/model/BalancePair.js +1 -1
- package/dist/model/BancomatPay.d.ts +24 -0
- package/dist/model/BancomatPay.js +21 -0
- package/dist/model/BancomatPayAccount.d.ts +22 -0
- package/dist/model/BancomatPayAccount.js +21 -0
- package/dist/model/BankAccount.d.ts +1 -1
- package/dist/model/BankAccount.js +1 -1
- package/dist/model/BestBidAskGetProductBookConfig.d.ts +1 -1
- package/dist/model/BestBidAskGetProductBookConfig.js +1 -1
- package/dist/model/BlockchainAddress.d.ts +1 -1
- package/dist/model/BlockchainAddress.js +1 -1
- package/dist/model/BlockchainTransaction.d.ts +1 -1
- package/dist/model/BlockchainTransaction.js +1 -1
- package/dist/model/CTN.d.ts +1 -1
- package/dist/model/CTN.js +1 -1
- package/dist/model/CancelFCMSweepResponse.d.ts +1 -1
- package/dist/model/CancelFCMSweepResponse.js +1 -1
- package/dist/model/CancelOrderResponse.d.ts +1 -1
- package/dist/model/CancelOrderResponse.js +1 -1
- package/dist/model/CancelOrdersRequest.d.ts +1 -1
- package/dist/model/CancelOrdersRequest.js +1 -1
- package/dist/model/CancelOrdersResponse.d.ts +1 -1
- package/dist/model/CancelOrdersResponse.js +1 -1
- package/dist/model/Candle.d.ts +1 -1
- package/dist/model/Candle.js +1 -1
- package/dist/model/Candles.d.ts +1 -1
- package/dist/model/Candles.js +1 -1
- package/dist/model/Card.d.ts +16 -1
- package/dist/model/Card.js +1 -1
- package/dist/model/CardDob.d.ts +1 -1
- package/dist/model/CardDob.js +1 -1
- package/dist/model/Cbit.d.ts +2 -1
- package/dist/model/Cbit.js +1 -1
- package/dist/model/CheckoutPaymentLink.d.ts +1 -1
- package/dist/model/CheckoutPaymentLink.js +1 -1
- package/dist/model/CheckoutToken.d.ts +22 -0
- package/dist/model/CheckoutToken.js +21 -0
- package/dist/model/ClosePositionRequest.d.ts +1 -1
- package/dist/model/ClosePositionRequest.js +1 -1
- package/dist/model/ClosePositionResponse.d.ts +1 -1
- package/dist/model/ClosePositionResponse.js +1 -1
- package/dist/model/CoinbaseAccount.d.ts +1 -1
- package/dist/model/CoinbaseAccount.js +1 -1
- package/dist/model/CommitConvertTradeRequest.d.ts +1 -1
- package/dist/model/CommitConvertTradeRequest.js +1 -1
- package/dist/model/CommitConvertTradeResponse.d.ts +1 -1
- package/dist/model/CommitConvertTradeResponse.js +1 -1
- package/dist/model/CreateConvertQuoteRequest.d.ts +1 -1
- package/dist/model/CreateConvertQuoteRequest.js +1 -1
- package/dist/model/CreateConvertQuoteResponse.d.ts +1 -1
- package/dist/model/CreateConvertQuoteResponse.js +1 -1
- package/dist/model/CreatePortfolioRequest.d.ts +1 -1
- package/dist/model/CreatePortfolioRequest.js +1 -1
- package/dist/model/CreatePortfolioResponse.d.ts +1 -1
- package/dist/model/CreatePortfolioResponse.js +1 -1
- package/dist/model/CustodialPool.d.ts +1 -1
- package/dist/model/CustodialPool.js +1 -1
- package/dist/model/DAppWalletAccount.d.ts +3 -1
- package/dist/model/DAppWalletAccount.js +1 -1
- package/dist/model/DAppWalletBlockchainAddress.d.ts +3 -1
- package/dist/model/DAppWalletBlockchainAddress.js +1 -1
- package/dist/model/DefaultAccount.d.ts +1 -1
- package/dist/model/DefaultAccount.js +1 -1
- package/dist/model/DenebIMPS.d.ts +1 -1
- package/dist/model/DenebIMPS.js +1 -1
- package/dist/model/DenebUPI.d.ts +1 -1
- package/dist/model/DenebUPI.js +1 -1
- package/dist/model/DerivativeSettlement.d.ts +1 -1
- package/dist/model/DerivativeSettlement.js +1 -1
- package/dist/model/DerivativeSettlementAccountSettlement.d.ts +1 -1
- package/dist/model/DerivativeSettlementAccountSettlement.js +1 -1
- package/dist/model/DerivativeSettlementEquityReset.d.ts +1 -1
- package/dist/model/DerivativeSettlementEquityReset.js +1 -1
- package/dist/model/DigitalWalletDetails.d.ts +1 -1
- package/dist/model/DigitalWalletDetails.js +1 -1
- package/dist/model/DirectDeposit.d.ts +1 -1
- package/dist/model/DirectDeposit.js +1 -1
- package/dist/model/Disclosure.d.ts +1 -1
- package/dist/model/Disclosure.js +1 -1
- package/dist/model/Edit.d.ts +1 -1
- package/dist/model/Edit.js +1 -1
- package/dist/model/EditOrderError.d.ts +1 -1
- package/dist/model/EditOrderError.js +1 -1
- package/dist/model/EditOrderErrorResponse.d.ts +1 -1
- package/dist/model/EditOrderErrorResponse.js +1 -1
- package/dist/model/EditOrderRequest.d.ts +1 -1
- package/dist/model/EditOrderRequest.js +1 -1
- package/dist/model/EditOrderResponse.d.ts +1 -1
- package/dist/model/EditOrderResponse.js +1 -1
- package/dist/model/EditOrderSuccessResponse.d.ts +1 -1
- package/dist/model/EditOrderSuccessResponse.js +1 -1
- package/dist/model/EditPortfolioRequest.d.ts +1 -1
- package/dist/model/EditPortfolioRequest.js +1 -1
- package/dist/model/EditPortfolioResponse.d.ts +1 -1
- package/dist/model/EditPortfolioResponse.js +1 -1
- package/dist/model/Eft.d.ts +23 -0
- package/dist/model/Eft.js +21 -0
- package/dist/model/EftAccount.d.ts +36 -0
- package/dist/model/EftAccount.js +21 -0
- package/dist/model/EmailAddress.d.ts +1 -1
- package/dist/model/EmailAddress.js +1 -1
- package/dist/model/Error.d.ts +4 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/ErrorMetadata.d.ts +23 -0
- package/dist/model/ErrorMetadata.js +21 -0
- package/dist/model/ExpiryDate.d.ts +1 -1
- package/dist/model/ExpiryDate.js +1 -1
- package/dist/model/ExtendedTimestamp.d.ts +1 -1
- package/dist/model/ExtendedTimestamp.js +1 -1
- package/dist/model/ExternalPaymentMethod.d.ts +1 -1
- package/dist/model/ExternalPaymentMethod.js +1 -1
- package/dist/model/FCMBalanceSummary.d.ts +1 -1
- package/dist/model/FCMBalanceSummary.js +1 -1
- package/dist/model/FCMPosition.d.ts +1 -1
- package/dist/model/FCMPosition.js +1 -1
- package/dist/model/FCMSweep.d.ts +1 -1
- package/dist/model/FCMSweep.js +1 -1
- package/dist/model/FcmMarginWindowMeasure.d.ts +1 -1
- package/dist/model/FcmMarginWindowMeasure.js +1 -1
- package/dist/model/FcmScheduledMaintenance.d.ts +1 -1
- package/dist/model/FcmScheduledMaintenance.js +1 -1
- package/dist/model/FcmTradingSessionDetails.d.ts +1 -1
- package/dist/model/FcmTradingSessionDetails.js +1 -1
- package/dist/model/Fedwire.d.ts +1 -1
- package/dist/model/Fedwire.js +1 -1
- package/dist/model/FedwireAccount.d.ts +1 -1
- package/dist/model/FedwireAccount.js +1 -1
- package/dist/model/FedwireAddress.d.ts +1 -1
- package/dist/model/FedwireAddress.js +1 -1
- package/dist/model/FedwireInstitution.d.ts +1 -1
- package/dist/model/FedwireInstitution.js +1 -1
- package/dist/model/Fee.d.ts +3 -1
- package/dist/model/Fee.js +1 -1
- package/dist/model/FeeTier.d.ts +9 -1
- package/dist/model/FeeTier.js +1 -1
- package/dist/model/Fill.d.ts +1 -1
- package/dist/model/Fill.js +1 -1
- package/dist/model/FirstDataToken.d.ts +1 -1
- package/dist/model/FirstDataToken.js +1 -1
- package/dist/model/FundMovement.d.ts +1 -1
- package/dist/model/FundMovement.js +1 -1
- package/dist/model/FutureProductDetails.d.ts +1 -1
- package/dist/model/FutureProductDetails.js +1 -1
- package/dist/model/FuturesPosition.d.ts +3 -1
- package/dist/model/FuturesPosition.js +1 -1
- package/dist/model/GetAccountResponse.d.ts +1 -1
- package/dist/model/GetAccountResponse.js +1 -1
- package/dist/model/GetAccountsResponse.d.ts +1 -1
- package/dist/model/GetAccountsResponse.js +1 -1
- package/dist/model/GetApiKeyPermissionsResponse.d.ts +1 -1
- package/dist/model/GetApiKeyPermissionsResponse.js +1 -1
- package/dist/model/GetBalanceSummaryResponse.d.ts +1 -1
- package/dist/model/GetBalanceSummaryResponse.js +1 -1
- package/dist/model/GetBestBidAskResponse.d.ts +1 -1
- package/dist/model/GetBestBidAskResponse.js +1 -1
- package/dist/model/GetCandlesResponse.d.ts +1 -1
- package/dist/model/GetCandlesResponse.js +1 -1
- package/dist/model/GetConvertTradeResponse.d.ts +1 -1
- package/dist/model/GetConvertTradeResponse.js +1 -1
- package/dist/model/GetCurrentMarginWindowResponse.d.ts +1 -1
- package/dist/model/GetCurrentMarginWindowResponse.js +1 -1
- package/dist/model/GetFCMBalanceSummaryResponse.d.ts +1 -1
- package/dist/model/GetFCMBalanceSummaryResponse.js +1 -1
- package/dist/model/GetFCMPositionResponse.d.ts +1 -1
- package/dist/model/GetFCMPositionResponse.js +1 -1
- package/dist/model/GetFCMPositionsResponse.d.ts +1 -1
- package/dist/model/GetFCMPositionsResponse.js +1 -1
- package/dist/model/GetFCMSweepsResponse.d.ts +1 -1
- package/dist/model/GetFCMSweepsResponse.js +1 -1
- package/dist/model/GetFillsResponse.d.ts +1 -1
- package/dist/model/GetFillsResponse.js +1 -1
- package/dist/model/GetHistoricalOrderResponse.d.ts +1 -1
- package/dist/model/GetHistoricalOrderResponse.js +1 -1
- package/dist/model/GetHistoricalOrdersResponse.d.ts +1 -1
- package/dist/model/GetHistoricalOrdersResponse.js +1 -1
- package/dist/model/GetIntradayMarginSettingResponse.d.ts +1 -1
- package/dist/model/GetIntradayMarginSettingResponse.js +1 -1
- package/dist/model/GetMarketTradesResponse.d.ts +1 -1
- package/dist/model/GetMarketTradesResponse.js +1 -1
- package/dist/model/GetPaymentMethodResponse.d.ts +1 -1
- package/dist/model/GetPaymentMethodResponse.js +1 -1
- package/dist/model/GetPaymentMethodsResponse.d.ts +1 -1
- package/dist/model/GetPaymentMethodsResponse.js +1 -1
- package/dist/model/GetPortfolioBreakdownResponse.d.ts +1 -1
- package/dist/model/GetPortfolioBreakdownResponse.js +1 -1
- package/dist/model/GetPortfoliosResponse.d.ts +1 -1
- package/dist/model/GetPortfoliosResponse.js +1 -1
- package/dist/model/GetPositionResponse.d.ts +1 -1
- package/dist/model/GetPositionResponse.js +1 -1
- package/dist/model/GetPositionsResponse.d.ts +1 -1
- package/dist/model/GetPositionsResponse.js +1 -1
- package/dist/model/GetProductBookResponse.d.ts +1 -1
- package/dist/model/GetProductBookResponse.js +1 -1
- package/dist/model/GetProductResponse.d.ts +1 -1
- package/dist/model/GetProductResponse.js +1 -1
- package/dist/model/GetProductsResponse.d.ts +1 -1
- package/dist/model/GetProductsResponse.js +1 -1
- package/dist/model/GetTransactionSummaryResponse.d.ts +1 -1
- package/dist/model/GetTransactionSummaryResponse.js +1 -1
- package/dist/model/GoodsAndServicesTax.d.ts +1 -1
- package/dist/model/GoodsAndServicesTax.js +1 -1
- package/dist/model/GooglePay.d.ts +1 -1
- package/dist/model/GooglePay.js +1 -1
- package/dist/model/GooglePayBraintreeData.d.ts +1 -1
- package/dist/model/GooglePayBraintreeData.js +1 -1
- package/dist/model/HistoricalMarketTrade.d.ts +1 -1
- package/dist/model/HistoricalMarketTrade.js +1 -1
- package/dist/model/HotWallet.d.ts +23 -0
- package/dist/model/HotWallet.js +21 -0
- package/dist/model/Ideal.d.ts +1 -1
- package/dist/model/Ideal.js +1 -1
- package/dist/model/IdentityContractCall.d.ts +1 -1
- package/dist/model/IdentityContractCall.js +1 -1
- package/dist/model/Interac.d.ts +2 -1
- package/dist/model/Interac.js +1 -1
- package/dist/model/InteracAccount.d.ts +1 -1
- package/dist/model/InteracAccount.js +1 -1
- package/dist/model/IntraBank.d.ts +1 -1
- package/dist/model/IntraBank.js +1 -1
- package/dist/model/L2Level.d.ts +1 -1
- package/dist/model/L2Level.js +1 -1
- package/dist/model/LedgerAccount.d.ts +1 -1
- package/dist/model/LedgerAccount.js +1 -1
- package/dist/model/LedgerNamedAccount.d.ts +1 -1
- package/dist/model/LedgerNamedAccount.js +1 -1
- package/dist/model/LimitLimitFok.d.ts +5 -1
- package/dist/model/LimitLimitFok.js +1 -1
- package/dist/model/LimitLimitGtc.d.ts +5 -1
- package/dist/model/LimitLimitGtc.js +1 -1
- package/dist/model/LimitLimitGtd.d.ts +5 -1
- package/dist/model/LimitLimitGtd.js +1 -1
- package/dist/model/Link.d.ts +1 -1
- package/dist/model/Link.js +1 -1
- package/dist/model/LiquidationMarketGtc.d.ts +1 -1
- package/dist/model/LiquidationMarketGtc.js +1 -1
- package/dist/model/LiquidationMarketGtd.d.ts +1 -1
- package/dist/model/LiquidationMarketGtd.js +1 -1
- package/dist/model/LiquidityPool.d.ts +2 -1
- package/dist/model/LiquidityPool.js +1 -1
- package/dist/model/MagicSpendBlockchainAddress.d.ts +23 -0
- package/dist/model/MagicSpendBlockchainAddress.js +21 -0
- package/dist/model/Manual.d.ts +24 -0
- package/dist/model/Manual.js +21 -0
- package/dist/model/MarginWindow.d.ts +1 -1
- package/dist/model/MarginWindow.js +1 -1
- package/dist/model/MarketMarketIoc.d.ts +1 -1
- package/dist/model/MarketMarketIoc.js +1 -1
- package/dist/model/Merchant.d.ts +1 -1
- package/dist/model/Merchant.js +1 -1
- package/dist/model/Money.d.ts +2 -2
- package/dist/model/Money.js +1 -1
- package/dist/model/MovePortfolioFundsRequest.d.ts +1 -1
- package/dist/model/MovePortfolioFundsRequest.js +1 -1
- package/dist/model/MovePortfolioFundsResponse.d.ts +1 -1
- package/dist/model/MovePortfolioFundsResponse.js +1 -1
- package/dist/model/MultiAssetCollateralRequest.d.ts +1 -1
- package/dist/model/MultiAssetCollateralRequest.js +1 -1
- package/dist/model/MultiAssetCollateralResponse.d.ts +1 -1
- package/dist/model/MultiAssetCollateralResponse.js +1 -1
- package/dist/model/NewOrderErrorResponse.d.ts +1 -1
- package/dist/model/NewOrderErrorResponse.js +1 -1
- package/dist/model/NewOrderRequest.d.ts +5 -1
- package/dist/model/NewOrderRequest.js +1 -1
- package/dist/model/NewOrderResponse.d.ts +1 -1
- package/dist/model/NewOrderResponse.js +1 -1
- package/dist/model/NewOrderSuccessResponse.d.ts +1 -1
- package/dist/model/NewOrderSuccessResponse.js +1 -1
- package/dist/model/NovaAccount.d.ts +25 -0
- package/dist/model/NovaAccount.js +21 -0
- package/dist/model/Order.d.ts +13 -1
- package/dist/model/Order.js +1 -1
- package/dist/model/OrderConfiguration.d.ts +6 -1
- package/dist/model/OrderConfiguration.js +1 -1
- package/dist/model/OrderPreviewRequest.d.ts +5 -1
- package/dist/model/OrderPreviewRequest.js +1 -1
- package/dist/model/OrderPreviewResponse.d.ts +9 -1
- package/dist/model/OrderPreviewResponse.js +1 -1
- package/dist/model/Owner.d.ts +1 -1
- package/dist/model/Owner.js +1 -1
- package/dist/model/Params3DS.d.ts +23 -0
- package/dist/model/Params3DS.js +21 -0
- package/dist/model/PaymentMethod.d.ts +1 -1
- package/dist/model/PaymentMethod.js +1 -1
- package/dist/model/Paypal.d.ts +3 -1
- package/dist/model/Paypal.js +1 -1
- package/dist/model/PaypalAccount.d.ts +1 -1
- package/dist/model/PaypalAccount.js +1 -1
- package/dist/model/PaypalMerchant.d.ts +1 -1
- package/dist/model/PaypalMerchant.js +1 -1
- package/dist/model/PaypalMetadata.d.ts +22 -0
- package/dist/model/PaypalMetadata.js +21 -0
- package/dist/model/PerpPosition.d.ts +5 -1
- package/dist/model/PerpPosition.js +1 -1
- package/dist/model/PerpetualProductDetails.d.ts +1 -1
- package/dist/model/PerpetualProductDetails.js +1 -1
- package/dist/model/PhoneNumber.d.ts +1 -1
- package/dist/model/PhoneNumber.js +1 -1
- package/dist/model/PixEbanx.d.ts +1 -1
- package/dist/model/PixEbanx.js +1 -1
- package/dist/model/PixEbanxPixDeposit.d.ts +1 -1
- package/dist/model/PixEbanxPixDeposit.js +1 -1
- package/dist/model/PixEbanxPixWithdrawal.d.ts +1 -1
- package/dist/model/PixEbanxPixWithdrawal.js +1 -1
- package/dist/model/PnlConfiguration.d.ts +4 -1
- package/dist/model/PnlConfiguration.js +1 -1
- package/dist/model/Portfolio.d.ts +2 -2
- package/dist/model/Portfolio.js +1 -1
- package/dist/model/PortfolioBalance.d.ts +1 -1
- package/dist/model/PortfolioBalance.js +1 -1
- package/dist/model/PortfolioBalances.d.ts +4 -1
- package/dist/model/PortfolioBalances.js +1 -1
- package/dist/model/PortfolioBreakdown.d.ts +4 -1
- package/dist/model/PortfolioBreakdown.js +1 -1
- package/dist/model/PortfolioPosition.d.ts +13 -2
- package/dist/model/PortfolioPosition.js +1 -1
- package/dist/model/PortfoliosSummary.d.ts +1 -1
- package/dist/model/PortfoliosSummary.js +1 -1
- package/dist/model/Position.d.ts +1 -1
- package/dist/model/Position.js +1 -1
- package/dist/model/PositionSummary.d.ts +1 -1
- package/dist/model/PositionSummary.js +1 -1
- package/dist/model/PreviewEditOrderResponse.d.ts +1 -1
- package/dist/model/PreviewEditOrderResponse.js +1 -1
- package/dist/model/PriceBook.d.ts +1 -1
- package/dist/model/PriceBook.js +1 -1
- package/dist/model/ProAccount.d.ts +1 -1
- package/dist/model/ProAccount.js +1 -1
- package/dist/model/ProInternalAccount.d.ts +1 -1
- package/dist/model/ProInternalAccount.js +1 -1
- package/dist/model/Product.d.ts +5 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Products.d.ts +1 -1
- package/dist/model/Products.js +1 -1
- package/dist/model/RatConvertTrade.d.ts +1 -1
- package/dist/model/RatConvertTrade.js +1 -1
- package/dist/model/Remitly.d.ts +1 -1
- package/dist/model/Remitly.js +1 -1
- package/dist/model/RemitlyAccount.d.ts +1 -1
- package/dist/model/RemitlyAccount.js +1 -1
- package/dist/model/Representment.d.ts +22 -0
- package/dist/model/Representment.js +21 -0
- package/dist/model/RollingMarketGtc.d.ts +23 -0
- package/dist/model/RollingMarketGtc.js +21 -0
- package/dist/model/Rtp.d.ts +1 -1
- package/dist/model/Rtp.js +1 -1
- package/dist/model/RtpAccount.d.ts +1 -1
- package/dist/model/RtpAccount.js +1 -1
- package/dist/model/RtpInstitution.d.ts +1 -1
- package/dist/model/RtpInstitution.js +1 -1
- package/dist/model/ScaledAmount.d.ts +1 -1
- package/dist/model/ScaledAmount.js +1 -1
- package/dist/model/ScheduleFCMSweepRequest.d.ts +1 -1
- package/dist/model/ScheduleFCMSweepRequest.js +1 -1
- package/dist/model/ScheduleFCMSweepResponse.d.ts +1 -1
- package/dist/model/ScheduleFCMSweepResponse.js +1 -1
- package/dist/model/Sepa.d.ts +1 -1
- package/dist/model/Sepa.js +1 -1
- package/dist/model/SepaAccount.d.ts +1 -1
- package/dist/model/SepaAccount.js +1 -1
- package/dist/model/SepaAccountDetail.d.ts +1 -1
- package/dist/model/SepaAccountDetail.js +1 -1
- package/dist/model/SepaInstitution.d.ts +1 -1
- package/dist/model/SepaInstitution.js +1 -1
- package/dist/model/SepaV2.d.ts +1 -1
- package/dist/model/SepaV2.js +1 -1
- package/dist/model/SetIntradayMarginSettingRequest.d.ts +1 -1
- package/dist/model/SetIntradayMarginSettingRequest.js +1 -1
- package/dist/model/SgFast.d.ts +1 -1
- package/dist/model/SgFast.js +1 -1
- package/dist/model/SgFastAccount.d.ts +1 -1
- package/dist/model/SgFastAccount.js +1 -1
- package/dist/model/SgFastInstitution.d.ts +1 -1
- package/dist/model/SgFastInstitution.js +1 -1
- package/dist/model/SgPayNow.d.ts +1 -1
- package/dist/model/SgPayNow.js +1 -1
- package/dist/model/Signet.d.ts +1 -1
- package/dist/model/Signet.js +1 -1
- package/dist/model/SingleProductGetProductBookConfig.d.ts +1 -1
- package/dist/model/SingleProductGetProductBookConfig.js +1 -1
- package/dist/model/Sofort.d.ts +1 -1
- package/dist/model/Sofort.js +1 -1
- package/dist/model/SorLimitIoc.d.ts +5 -1
- package/dist/model/SorLimitIoc.js +1 -1
- package/dist/model/StopLimitStopLimitGtc.d.ts +1 -1
- package/dist/model/StopLimitStopLimitGtc.js +1 -1
- package/dist/model/StopLimitStopLimitGtd.d.ts +1 -1
- package/dist/model/StopLimitStopLimitGtd.js +1 -1
- package/dist/model/SubscriptionInfo.d.ts +1 -1
- package/dist/model/SubscriptionInfo.js +1 -1
- package/dist/model/Swift.d.ts +1 -1
- package/dist/model/Swift.js +1 -1
- package/dist/model/SwiftAccount.d.ts +1 -1
- package/dist/model/SwiftAccount.js +1 -1
- package/dist/model/SwiftInstitution.d.ts +1 -1
- package/dist/model/SwiftInstitution.js +1 -1
- package/dist/model/TaxInfo.d.ts +1 -1
- package/dist/model/TaxInfo.js +1 -1
- package/dist/model/TradeIncentiveInfo.d.ts +1 -1
- package/dist/model/TradeIncentiveInfo.js +1 -1
- package/dist/model/TradeIncentiveMetadata.d.ts +1 -1
- package/dist/model/TradeIncentiveMetadata.js +1 -1
- package/dist/model/TransferPointer.d.ts +22 -0
- package/dist/model/TransferPointer.js +21 -0
- package/dist/model/TriggerBracketGtc.d.ts +1 -1
- package/dist/model/TriggerBracketGtc.js +1 -1
- package/dist/model/TriggerBracketGtd.d.ts +1 -1
- package/dist/model/TriggerBracketGtd.js +1 -1
- package/dist/model/TriggerBracketPnl.d.ts +7 -1
- package/dist/model/TriggerBracketPnl.js +1 -1
- package/dist/model/TwapBucketMetadata.d.ts +24 -0
- package/dist/model/TwapBucketMetadata.js +21 -0
- package/dist/model/TwapLimitGtd.d.ts +13 -1
- package/dist/model/TwapLimitGtd.js +1 -1
- package/dist/model/TypesDecimal.d.ts +1 -1
- package/dist/model/TypesDecimal.js +1 -1
- package/dist/model/Uk.d.ts +1 -1
- package/dist/model/Uk.js +1 -1
- package/dist/model/UkAccount.d.ts +3 -1
- package/dist/model/UkAccount.js +1 -1
- package/dist/model/UkInstitution.d.ts +1 -1
- package/dist/model/UkInstitution.js +1 -1
- package/dist/model/UnitPrice.d.ts +1 -1
- package/dist/model/UnitPrice.js +1 -1
- package/dist/model/User.d.ts +1 -1
- package/dist/model/User.js +1 -1
- package/dist/model/UserWarning.d.ts +1 -1
- package/dist/model/UserWarning.js +1 -1
- package/dist/model/UserWarningContext.d.ts +1 -1
- package/dist/model/UserWarningContext.js +1 -1
- package/dist/model/VaultToken.d.ts +1 -1
- package/dist/model/VaultToken.js +1 -1
- package/dist/model/VendorPayment.d.ts +1 -1
- package/dist/model/VendorPayment.js +1 -1
- package/dist/model/Venue.d.ts +1 -1
- package/dist/model/Venue.js +1 -1
- package/dist/model/WaivedDetails.d.ts +25 -0
- package/dist/model/WaivedDetails.js +21 -0
- package/dist/model/WallaceAccount.d.ts +23 -0
- package/dist/model/WallaceAccount.js +21 -0
- package/dist/model/WorldpayParams.d.ts +1 -1
- package/dist/model/WorldpayParams.js +1 -1
- package/dist/model/ZaakpayMobikwik.d.ts +1 -1
- package/dist/model/ZaakpayMobikwik.js +1 -1
- package/dist/model/Zengin.d.ts +1 -1
- package/dist/model/Zengin.js +1 -1
- package/dist/model/ZenginAccount.d.ts +1 -1
- package/dist/model/ZenginAccount.js +1 -1
- package/dist/model/ZenginInstitution.d.ts +1 -1
- package/dist/model/ZenginInstitution.js +1 -1
- package/dist/model/ZenginV2.d.ts +1 -1
- package/dist/model/ZenginV2.js +1 -1
- package/dist/model/ZenginV2Account.d.ts +1 -1
- package/dist/model/ZenginV2Account.js +1 -1
- package/dist/model/ZenginV2Institution.d.ts +1 -1
- package/dist/model/ZenginV2Institution.js +1 -1
- package/dist/model/Zepto.d.ts +1 -1
- package/dist/model/Zepto.js +1 -1
- package/dist/model/ZeptoAccount.d.ts +1 -1
- package/dist/model/ZeptoAccount.js +1 -1
- package/dist/model/coinbasePaymentMethodServiceArgentineBankAccountDetails.d.ts +23 -0
- package/dist/model/coinbasePaymentMethodServiceArgentineBankAccountDetails.js +21 -0
- package/dist/model/coinbasePaymentMethodServiceBankingCircleNowDetails.d.ts +24 -0
- package/dist/model/coinbasePaymentMethodServiceBankingCircleNowDetails.js +21 -0
- package/dist/model/coinbasePaymentMethodServiceBlikDetails.d.ts +30 -0
- package/dist/model/coinbasePaymentMethodServiceBlikDetails.js +21 -0
- package/dist/model/coinbasePaymentMethodServicePixDetails.d.ts +32 -0
- package/dist/model/coinbasePaymentMethodServicePixDetails.js +21 -0
- package/dist/model/coinbasePaymentMethodServiceTrustlyDetails.d.ts +56 -0
- package/dist/model/coinbasePaymentMethodServiceTrustlyDetails.js +21 -0
- package/dist/model/enums/AccountPlatform.d.ts +1 -1
- package/dist/model/enums/AccountPlatform.js +1 -1
- package/dist/model/enums/AccountType.d.ts +1 -1
- package/dist/model/enums/AccountType.js +1 -1
- package/dist/model/enums/ApplePayResult.d.ts +1 -1
- package/dist/model/enums/ApplePayResult.js +1 -1
- package/dist/model/enums/ApplePayScheme.d.ts +1 -1
- package/dist/model/enums/ApplePayScheme.js +1 -1
- package/dist/model/enums/CancelOrderFailureReason.d.ts +1 -1
- package/dist/model/enums/CancelOrderFailureReason.js +1 -1
- package/dist/model/enums/CardScheme.d.ts +1 -1
- package/dist/model/enums/CardScheme.js +1 -1
- package/dist/model/enums/ContractExpiryType.d.ts +1 -1
- package/dist/model/enums/ContractExpiryType.js +1 -1
- package/dist/model/enums/EditOrderFailureReason.d.ts +1 -1
- package/dist/model/enums/EditOrderFailureReason.js +1 -1
- package/dist/model/enums/ErrorCodes.d.ts +6 -2
- package/dist/model/enums/ErrorCodes.js +5 -1
- package/dist/model/enums/ErrorCta.d.ts +3 -2
- package/dist/model/enums/ErrorCta.js +2 -1
- package/dist/model/enums/ExpiringContractStatus.d.ts +1 -1
- package/dist/model/enums/ExpiringContractStatus.js +1 -1
- package/dist/model/enums/FCMPositionSide.d.ts +1 -1
- package/dist/model/enums/FCMPositionSide.js +1 -1
- package/dist/model/enums/FCMSweepStatus.d.ts +1 -1
- package/dist/model/enums/FCMSweepStatus.js +1 -1
- package/dist/model/enums/FcmMarginWindowType.d.ts +1 -1
- package/dist/model/enums/FcmMarginWindowType.js +1 -1
- package/dist/model/enums/FcmTradingSessionClosedReason.d.ts +1 -1
- package/dist/model/enums/FcmTradingSessionClosedReason.js +1 -1
- package/dist/model/enums/FcmTradingSessionState.d.ts +1 -1
- package/dist/model/enums/FcmTradingSessionState.js +1 -1
- package/dist/model/enums/FedwireInstitutionType.d.ts +1 -1
- package/dist/model/enums/FedwireInstitutionType.js +1 -1
- package/dist/model/enums/FuturesPositionSide.d.ts +4 -1
- package/dist/model/enums/FuturesPositionSide.js +4 -1
- package/dist/model/enums/GetFillsRequestFillsSortBy.d.ts +1 -1
- package/dist/model/enums/GetFillsRequestFillsSortBy.js +1 -1
- package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.d.ts +1 -1
- package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.js +1 -1
- package/dist/model/enums/GooglePayResult.d.ts +1 -1
- package/dist/model/enums/GooglePayResult.js +1 -1
- package/dist/model/enums/GooglePayScheme.d.ts +1 -1
- package/dist/model/enums/GooglePayScheme.js +1 -1
- package/dist/model/enums/Granularity.d.ts +1 -1
- package/dist/model/enums/Granularity.js +1 -1
- package/dist/model/enums/GstType.d.ts +1 -1
- package/dist/model/enums/GstType.js +1 -1
- package/dist/model/enums/IntradayMarginSetting.d.ts +1 -1
- package/dist/model/enums/IntradayMarginSetting.js +1 -1
- package/dist/model/enums/LiquidityIndicator.d.ts +1 -1
- package/dist/model/enums/LiquidityIndicator.js +1 -1
- package/dist/model/enums/MarginLevelType.d.ts +1 -1
- package/dist/model/enums/MarginLevelType.js +1 -1
- package/dist/model/enums/MarginProfileType.d.ts +1 -1
- package/dist/model/enums/MarginProfileType.js +1 -1
- package/dist/model/enums/MarginType.d.ts +1 -1
- package/dist/model/enums/MarginType.js +1 -1
- package/dist/model/enums/MarginWindowType.d.ts +1 -1
- package/dist/model/enums/MarginWindowType.js +1 -1
- package/dist/model/enums/NewOrderFailureReason.d.ts +5 -2
- package/dist/model/enums/NewOrderFailureReason.js +4 -1
- package/dist/model/enums/OrderExecutionStatus.d.ts +1 -1
- package/dist/model/enums/OrderExecutionStatus.js +1 -1
- package/dist/model/enums/OrderPlacementSource.d.ts +1 -1
- package/dist/model/enums/OrderPlacementSource.js +1 -1
- package/dist/model/enums/OrderSide.d.ts +1 -1
- package/dist/model/enums/OrderSide.js +1 -1
- package/dist/model/enums/OrderType.d.ts +3 -5
- package/dist/model/enums/OrderType.js +2 -4
- package/dist/model/enums/OwnerType.d.ts +1 -1
- package/dist/model/enums/OwnerType.js +1 -1
- package/dist/model/enums/PaymentMethodType.d.ts +17 -2
- package/dist/model/enums/PaymentMethodType.js +16 -1
- package/dist/model/enums/PortfolioLiquidationStatus.d.ts +1 -1
- package/dist/model/enums/PortfolioLiquidationStatus.js +1 -1
- package/dist/model/enums/PortfolioMarginFlags.d.ts +1 -1
- package/dist/model/enums/PortfolioMarginFlags.js +1 -1
- package/dist/model/enums/PortfolioMarginType.d.ts +4 -1
- package/dist/model/enums/PortfolioMarginType.js +4 -1
- package/dist/model/enums/PortfolioType.d.ts +4 -1
- package/dist/model/enums/PortfolioType.js +4 -1
- package/dist/model/enums/PositionSide.d.ts +1 -1
- package/dist/model/enums/PositionSide.js +1 -1
- package/dist/model/enums/PreviewFailureReason.d.ts +6 -2
- package/dist/model/enums/PreviewFailureReason.js +5 -1
- package/dist/model/enums/PreviewWarningMsg.d.ts +1 -1
- package/dist/model/enums/PreviewWarningMsg.js +1 -1
- package/dist/model/enums/ProductType.d.ts +1 -1
- package/dist/model/enums/ProductType.js +1 -1
- package/dist/model/enums/ProductVenue.d.ts +1 -1
- package/dist/model/enums/ProductVenue.js +1 -1
- package/dist/model/enums/ProductsSortOrder.d.ts +24 -0
- package/dist/model/enums/ProductsSortOrder.js +28 -0
- package/dist/model/enums/RejectReason.d.ts +1 -1
- package/dist/model/enums/RejectReason.js +1 -1
- package/dist/model/enums/RiskManagementType.d.ts +1 -1
- package/dist/model/enums/RiskManagementType.js +1 -1
- package/dist/model/enums/SgPayNowIdentifierType.d.ts +1 -1
- package/dist/model/enums/SgPayNowIdentifierType.js +1 -1
- package/dist/model/enums/StopPriceDirection.d.ts +1 -1
- package/dist/model/enums/StopPriceDirection.js +1 -1
- package/dist/model/enums/StopTriggerStatus.d.ts +1 -1
- package/dist/model/enums/StopTriggerStatus.js +1 -1
- package/dist/model/enums/TimeInForceType.d.ts +1 -1
- package/dist/model/enums/TimeInForceType.js +1 -1
- package/dist/model/enums/TradeStatus.d.ts +1 -1
- package/dist/model/enums/TradeStatus.js +1 -1
- package/dist/model/enums/WaivedFeeSource.d.ts +26 -0
- package/dist/model/enums/WaivedFeeSource.js +30 -0
- package/dist/rest/accounts/index.d.ts +15 -0
- package/dist/rest/accounts/types.d.ts +15 -0
- package/dist/rest/convert/index.d.ts +15 -0
- package/dist/rest/convert/index.js +15 -0
- package/dist/rest/convert/types.d.ts +15 -0
- package/dist/rest/credentials/index.js +84 -24
- package/dist/rest/data/index.d.ts +15 -0
- package/dist/rest/data/types.d.ts +15 -0
- package/dist/rest/fees/index.d.ts +15 -0
- package/dist/rest/fees/types.d.ts +15 -0
- package/dist/rest/futures/index.d.ts +15 -0
- package/dist/rest/futures/index.js +15 -0
- package/dist/rest/futures/types.d.ts +15 -0
- package/dist/rest/orders/index.d.ts +15 -0
- package/dist/rest/orders/index.js +15 -0
- package/dist/rest/orders/types.d.ts +15 -0
- package/dist/rest/paymentMethods/index.d.ts +15 -0
- package/dist/rest/paymentMethods/types.d.ts +15 -0
- package/dist/rest/perpetuals/index.d.ts +15 -0
- package/dist/rest/perpetuals/index.js +15 -0
- package/dist/rest/perpetuals/types.d.ts +15 -0
- package/dist/rest/portfolios/index.d.ts +15 -0
- package/dist/rest/portfolios/index.js +15 -0
- package/dist/rest/portfolios/types.d.ts +15 -0
- package/dist/rest/products/index.d.ts +15 -0
- package/dist/rest/products/types.d.ts +15 -0
- package/dist/rest/public/index.d.ts +15 -0
- package/dist/rest/public/types.d.ts +15 -0
- package/package.json +12 -14
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-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 WaivedFeeSource {
|
|
21
|
+
Unspecified = "WAIVED_FEE_SOURCE_UNSPECIFIED",
|
|
22
|
+
TradeIncentive = "WAIVED_FEE_SOURCE_TRADE_INCENTIVE",
|
|
23
|
+
CoinbaseOne = "WAIVED_FEE_SOURCE_COINBASE_ONE",
|
|
24
|
+
FeeReductionBadge = "WAIVED_FEE_SOURCE_FEE_REDUCTION_BADGE",
|
|
25
|
+
TradePromotion = "WAIVED_FEE_SOURCE_TRADE_PROMOTION"
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-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.WaivedFeeSource = void 0;
|
|
23
|
+
var WaivedFeeSource;
|
|
24
|
+
(function (WaivedFeeSource) {
|
|
25
|
+
WaivedFeeSource["Unspecified"] = "WAIVED_FEE_SOURCE_UNSPECIFIED";
|
|
26
|
+
WaivedFeeSource["TradeIncentive"] = "WAIVED_FEE_SOURCE_TRADE_INCENTIVE";
|
|
27
|
+
WaivedFeeSource["CoinbaseOne"] = "WAIVED_FEE_SOURCE_COINBASE_ONE";
|
|
28
|
+
WaivedFeeSource["FeeReductionBadge"] = "WAIVED_FEE_SOURCE_FEE_REDUCTION_BADGE";
|
|
29
|
+
WaivedFeeSource["TradePromotion"] = "WAIVED_FEE_SOURCE_TRADE_PROMOTION";
|
|
30
|
+
})(WaivedFeeSource || (exports.WaivedFeeSource = WaivedFeeSource = {}));
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { GetAccountRequest, GetAccountResponse, ListAccountsRequest, ListAccountsResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { GetAccountResponse as GetAccountResp } from '../../model/GetAccountResponse';
|
|
2
17
|
import { GetAccountsResponse } from '../../model/GetAccountsResponse';
|
|
3
18
|
export type GetAccountRequest = {
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { CreateConvertQuoteRequest, CreateConvertQuoteResponse, CommitConvertTradeRequest, CommitConvertTradeResponse, GetConvertTradeRequest, GetConvertTradeResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ConvertsService = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
13
28
|
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
14
29
|
class ConvertsService {
|
|
15
30
|
constructor(client) {
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CreateConvertQuoteResponse as createInt } from '../../model/CreateConvertQuoteResponse';
|
|
2
17
|
import { CommitConvertTradeResponse as commitInt } from '../../model/CommitConvertTradeResponse';
|
|
3
18
|
import { GetConvertTradeResponse as getInt } from '../../model/GetConvertTradeResponse';
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.CoinbaseAdvTradeCredentials = void 0;
|
|
27
37
|
/**
|
|
@@ -42,6 +52,71 @@ exports.CoinbaseAdvTradeCredentials = void 0;
|
|
|
42
52
|
const constants_1 = require("../../constants");
|
|
43
53
|
const jwt = __importStar(require("jsonwebtoken"));
|
|
44
54
|
const crypto = __importStar(require("crypto"));
|
|
55
|
+
/**
|
|
56
|
+
* Supported:
|
|
57
|
+
* - ECDSA P-256 PEM (SEC1 or PKCS8) -> ES256
|
|
58
|
+
* - Ed25519 PEM (PKCS8) -> EdDSA
|
|
59
|
+
* - Ed25519 raw base64, 64 bytes (seed + public) -> EdDSA
|
|
60
|
+
*/
|
|
61
|
+
function loadPrivateKey(secret) {
|
|
62
|
+
if (secret.trimStart().startsWith('-----BEGIN')) {
|
|
63
|
+
const key = crypto.createPrivateKey(secret);
|
|
64
|
+
return { key, algorithm: algorithmForKey(key) };
|
|
65
|
+
}
|
|
66
|
+
const raw = Buffer.from(secret.replace(/\s/g, ''), 'base64');
|
|
67
|
+
if (raw.length !== 64) {
|
|
68
|
+
throw new Error('Private key is neither PEM nor a valid 64-byte base64 Ed25519 key ' +
|
|
69
|
+
`(got ${raw.length} bytes). `);
|
|
70
|
+
}
|
|
71
|
+
const key = crypto.createPrivateKey({
|
|
72
|
+
format: 'jwk',
|
|
73
|
+
key: {
|
|
74
|
+
kty: 'OKP',
|
|
75
|
+
crv: 'Ed25519',
|
|
76
|
+
d: raw.subarray(0, 32).toString('base64url'),
|
|
77
|
+
x: raw.subarray(32).toString('base64url'),
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
return { key, algorithm: constants_1.ALGORITHM_ED25519 };
|
|
81
|
+
}
|
|
82
|
+
function algorithmForKey(key) {
|
|
83
|
+
var _a;
|
|
84
|
+
switch (key.asymmetricKeyType) {
|
|
85
|
+
case 'ed25519':
|
|
86
|
+
return constants_1.ALGORITHM_ED25519;
|
|
87
|
+
case 'ec':
|
|
88
|
+
return constants_1.ALGORITHM_ECDSA;
|
|
89
|
+
default:
|
|
90
|
+
throw new Error(`Unsupported private key type: ${(_a = key.asymmetricKeyType) !== null && _a !== void 0 ? _a : 'unknown'}. ` +
|
|
91
|
+
'Expected an ECDSA (P-256) or Ed25519 key.');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function buildJwt(loaded, accessKey, uri) {
|
|
95
|
+
const now = Math.floor(Date.now() / 1000);
|
|
96
|
+
const payload = {
|
|
97
|
+
iss: constants_1.JWT_ISSUER,
|
|
98
|
+
nbf: now,
|
|
99
|
+
exp: now + 120,
|
|
100
|
+
sub: accessKey,
|
|
101
|
+
uri,
|
|
102
|
+
};
|
|
103
|
+
const header = {
|
|
104
|
+
alg: loaded.algorithm,
|
|
105
|
+
kid: accessKey,
|
|
106
|
+
nonce: crypto.randomBytes(16).toString('hex'),
|
|
107
|
+
};
|
|
108
|
+
if (loaded.algorithm === constants_1.ALGORITHM_ED25519) {
|
|
109
|
+
const encode = (obj) => Buffer.from(JSON.stringify(obj)).toString('base64url');
|
|
110
|
+
const signingInput = `${encode(header)}.${encode(payload)}`;
|
|
111
|
+
const data = new Uint8Array(Buffer.from(signingInput));
|
|
112
|
+
const signature = crypto.sign(null, data, loaded.key);
|
|
113
|
+
return `${signingInput}.${signature.toString('base64url')}`;
|
|
114
|
+
}
|
|
115
|
+
return jwt.sign(payload, loaded.key, {
|
|
116
|
+
algorithm: loaded.algorithm,
|
|
117
|
+
header,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
45
120
|
class CoinbaseAdvTradeCredentials {
|
|
46
121
|
constructor(key, secret) {
|
|
47
122
|
if (!key || !secret) {
|
|
@@ -54,26 +129,11 @@ class CoinbaseAdvTradeCredentials {
|
|
|
54
129
|
if (!this.secretKey || !this.accessKey) {
|
|
55
130
|
return {};
|
|
56
131
|
}
|
|
132
|
+
const loaded = loadPrivateKey(this.secretKey);
|
|
57
133
|
// Drop protocol and query parameters
|
|
58
134
|
const jwtUri = `${requestMethod} ${uri.replace('https://', '').replace('http://', '').split('?')[0]}`;
|
|
59
|
-
const payload = {
|
|
60
|
-
iss: constants_1.JWT_ISSUER,
|
|
61
|
-
nbf: Math.floor(Date.now() / 1000),
|
|
62
|
-
exp: Math.floor(Date.now() / 1000) + 120,
|
|
63
|
-
sub: this.accessKey,
|
|
64
|
-
uri: jwtUri,
|
|
65
|
-
};
|
|
66
|
-
const header = {
|
|
67
|
-
alg: constants_1.ALGORITHM,
|
|
68
|
-
kid: this.accessKey,
|
|
69
|
-
nonce: crypto.randomBytes(16).toString('hex'),
|
|
70
|
-
};
|
|
71
|
-
const signature = jwt.sign(payload, this.secretKey, {
|
|
72
|
-
algorithm: constants_1.ALGORITHM,
|
|
73
|
-
header,
|
|
74
|
-
});
|
|
75
135
|
return {
|
|
76
|
-
Authorization: `Bearer ${
|
|
136
|
+
Authorization: `Bearer ${buildJwt(loaded, this.accessKey, jwtUri)}`,
|
|
77
137
|
};
|
|
78
138
|
}
|
|
79
139
|
}
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { GetAPIKeyPermissionsRequest, GetAPIKeyPermissionsResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { GetApiKeyPermissionsResponse as GetInt } from '../../model/GetApiKeyPermissionsResponse';
|
|
2
17
|
export type GetAPIKeyPermissionsRequest = Record<string, never>;
|
|
3
18
|
export type GetAPIKeyPermissionsResponse = GetInt;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { GetTransactionsSummaryRequest, GetTransactionsSummaryResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { ContractExpiryType } from '../../model/enums/ContractExpiryType';
|
|
2
17
|
import { ProductType } from '../../model/enums/ProductType';
|
|
3
18
|
import { ProductVenue } from '../../model/enums/ProductVenue';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { ListFuturesPositionsRequest, ListFuturesPositionsResponse, ListFuturesSweepsRequest, ListFuturesSweepsResponse, GetFuturesPositionRequest, GetFuturesPositionsResponse, GetFuturesBalanceSummaryRequest, GetFuturesBalanceSummaryResponse, GetFuturesCurrentMarginWindowRequest, GetFuturesCurrentMarginWindowResponse, GetFuturesIntradayMarginSettingsRequest, GetFuturesIntradayMarginSettingsResponse, UpdateFuturesIntradayMarginSettingsRequest, UpdateFuturesIntradayMarginSettingsResponse, ScheduleFuturesSweepRequest, ScheduleFuturesSweepResponse, CancelFuturesPendingSweepRequest, CancelFuturesPendingSweepResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FuturesService = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
13
28
|
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
14
29
|
class FuturesService {
|
|
15
30
|
constructor(client) {
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CancelFCMSweepResponse } from '../../model/CancelFCMSweepResponse';
|
|
2
17
|
import { IntradayMarginSetting } from '../../model/enums/IntradayMarginSetting';
|
|
3
18
|
import { MarginProfileType } from '../../model/enums/MarginProfileType';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { ListOrdersRequest, ListOrdersResponse, ListFillsRequest, ListFillsResponse, GetOrderRequest, GetOrderResponse, CreateOrderPreviewRequest, CreateOrderPreviewResponse, CreateOrderRequest, CreateOrderResponse, ClosePositionRequest, ClosePositionResponse, CancelOrdersRequest, CancelOrderResponse, EditOrderRequest, EditOrderResponse, EditOrderPreviewRequest, EditOrderPreviewResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OrdersService = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
13
28
|
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
14
29
|
class OrdersService {
|
|
15
30
|
constructor(client) {
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { ContractExpiryType } from '../../model/enums/ContractExpiryType';
|
|
2
17
|
import { OrderPlacementSource } from '../../model/enums/OrderPlacementSource';
|
|
3
18
|
import { OrderSide } from '../../model/enums/OrderSide';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { GetPaymentMethodRequest, GetPaymentMethodResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { PaymentMethod } from '../../model/PaymentMethod';
|
|
2
17
|
export type GetPaymentMethodRequest = {
|
|
3
18
|
paymentMethodId: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { ListPerpetualsPositionsRequest, ListPerpetualsPositionsResponse, GetPerpetualsPortfolioSummaryRequest, GetPerpetualsPortfolioSummaryResponse, GetPerpetualsPortfoliosBalancesRequest, GetPerpetualsPortfoliosBalancesResponse, GetPerpetualsPositionRequest, GetPerpetualsPositionResponse, CreateAllocatePortfolioRequest, CreateAllocatePortfolioResponse, UpdateMultiAssetCollateralRequest, UpdateMultiAssetCollateralResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PerpetualsService = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
13
28
|
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
14
29
|
class PerpetualsService {
|
|
15
30
|
constructor(client) {
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { GetPositionsResponse } from '../../model/GetPositionsResponse';
|
|
2
17
|
import { GetPortfoliosResponse } from '../../model/GetPortfoliosResponse';
|
|
3
18
|
import { GetPositionResponse } from '../../model/GetPositionResponse';
|
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
*/
|
|
1
16
|
import { CoinbaseCallOptions } from '@coinbase-sample/core-ts';
|
|
2
17
|
import { GetPortfolioRequest, GetPortfolioResponse, ListPortfoliosRequest, ListPortfoliosResponse, CreatePortfolioRequest, CreatePortfolioResponse, DeletePortfolioRequest, DeletePortfolioResponse, EditPortfolioRequest, EditPortfolioResponse, MovePortfolioFundsRequest, MovePortfolioFundsResponse } from './types';
|
|
3
18
|
import { CoinbaseAdvTradeClient } from '../client';
|
|
@@ -10,6 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PortfoliosService = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
15
|
+
*
|
|
16
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
17
|
+
* you may not use this file except in compliance with the License.
|
|
18
|
+
* You may obtain a copy of the License at
|
|
19
|
+
*
|
|
20
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
24
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
+
* See the License for the specific language governing permissions and
|
|
26
|
+
* limitations under the License.
|
|
27
|
+
*/
|
|
13
28
|
const core_ts_1 = require("@coinbase-sample/core-ts");
|
|
14
29
|
class PortfoliosService {
|
|
15
30
|
constructor(client) {
|