@coinbase-sample/advanced-trade-sdk-ts 0.2.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 +134 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.js +10 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +44 -0
- package/dist/model/Account.d.ts +80 -0
- package/dist/model/Account.js +21 -0
- package/dist/model/Address.d.ts +27 -0
- package/dist/model/Address.js +21 -0
- package/dist/model/AllocatePortfolioRequest.d.ts +37 -0
- package/dist/model/AllocatePortfolioRequest.js +21 -0
- package/dist/model/Allocation.d.ts +25 -0
- package/dist/model/Allocation.js +21 -0
- package/dist/model/AllocationLeg.d.ts +25 -0
- package/dist/model/AllocationLeg.js +21 -0
- package/dist/model/Amount.d.ts +29 -0
- package/dist/model/Amount.js +21 -0
- package/dist/model/ApplePay.d.ts +40 -0
- package/dist/model/ApplePay.js +21 -0
- package/dist/model/ApplePayBraintreeData.d.ts +23 -0
- package/dist/model/ApplePayBraintreeData.js +21 -0
- package/dist/model/Asset.d.ts +30 -0
- package/dist/model/Asset.js +21 -0
- package/dist/model/Balance.d.ts +32 -0
- package/dist/model/Balance.js +21 -0
- package/dist/model/BalancePair.d.ts +24 -0
- package/dist/model/BalancePair.js +21 -0
- package/dist/model/BankAccount.d.ts +25 -0
- package/dist/model/BankAccount.js +21 -0
- package/dist/model/BestBidAskGetProductBookConfig.d.ts +25 -0
- package/dist/model/BestBidAskGetProductBookConfig.js +21 -0
- package/dist/model/BlockchainAddress.d.ts +23 -0
- package/dist/model/BlockchainAddress.js +21 -0
- package/dist/model/BlockchainTransaction.d.ts +23 -0
- package/dist/model/BlockchainTransaction.js +21 -0
- package/dist/model/CTN.d.ts +22 -0
- package/dist/model/CTN.js +21 -0
- package/dist/model/CancelFCMSweepResponse.d.ts +22 -0
- package/dist/model/CancelFCMSweepResponse.js +21 -0
- package/dist/model/CancelOrderResponse.d.ts +34 -0
- package/dist/model/CancelOrderResponse.js +21 -0
- package/dist/model/CancelOrdersRequest.d.ts +25 -0
- package/dist/model/CancelOrdersRequest.js +21 -0
- package/dist/model/CancelOrdersResponse.d.ts +26 -0
- package/dist/model/CancelOrdersResponse.js +21 -0
- package/dist/model/Candle.d.ts +45 -0
- package/dist/model/Candle.js +21 -0
- package/dist/model/Candles.d.ts +23 -0
- package/dist/model/Candles.js +21 -0
- package/dist/model/Card.d.ts +46 -0
- package/dist/model/Card.js +21 -0
- package/dist/model/CardDob.d.ts +24 -0
- package/dist/model/CardDob.js +21 -0
- package/dist/model/Cbit.d.ts +22 -0
- package/dist/model/Cbit.js +21 -0
- package/dist/model/CheckoutPaymentLink.d.ts +22 -0
- package/dist/model/CheckoutPaymentLink.js +21 -0
- package/dist/model/ClosePositionRequest.d.ts +33 -0
- package/dist/model/ClosePositionRequest.js +21 -0
- package/dist/model/ClosePositionResponse.d.ts +34 -0
- package/dist/model/ClosePositionResponse.js +21 -0
- package/dist/model/CoinbaseAccount.d.ts +22 -0
- package/dist/model/CoinbaseAccount.js +21 -0
- package/dist/model/CommitConvertTradeRequest.d.ts +29 -0
- package/dist/model/CommitConvertTradeRequest.js +21 -0
- package/dist/model/CommitConvertTradeResponse.d.ts +23 -0
- package/dist/model/CommitConvertTradeResponse.js +21 -0
- package/dist/model/CreateConvertQuoteRequest.d.ts +38 -0
- package/dist/model/CreateConvertQuoteRequest.js +21 -0
- package/dist/model/CreateConvertQuoteResponse.d.ts +23 -0
- package/dist/model/CreateConvertQuoteResponse.js +21 -0
- package/dist/model/CreatePortfolioRequest.d.ts +25 -0
- package/dist/model/CreatePortfolioRequest.js +21 -0
- package/dist/model/CreatePortfolioResponse.d.ts +23 -0
- package/dist/model/CreatePortfolioResponse.js +21 -0
- package/dist/model/CustodialPool.d.ts +24 -0
- package/dist/model/CustodialPool.js +21 -0
- package/dist/model/DAppWalletAccount.d.ts +24 -0
- package/dist/model/DAppWalletAccount.js +21 -0
- package/dist/model/DAppWalletBlockchainAddress.d.ts +24 -0
- package/dist/model/DAppWalletBlockchainAddress.js +21 -0
- package/dist/model/DefaultAccount.d.ts +23 -0
- package/dist/model/DefaultAccount.js +21 -0
- package/dist/model/DenebIMPS.d.ts +30 -0
- package/dist/model/DenebIMPS.js +21 -0
- package/dist/model/DenebUPI.d.ts +29 -0
- package/dist/model/DenebUPI.js +21 -0
- package/dist/model/DerivativeSettlement.d.ts +25 -0
- package/dist/model/DerivativeSettlement.js +21 -0
- package/dist/model/DerivativeSettlementAccountSettlement.d.ts +33 -0
- package/dist/model/DerivativeSettlementAccountSettlement.js +21 -0
- package/dist/model/DerivativeSettlementEquityReset.d.ts +25 -0
- package/dist/model/DerivativeSettlementEquityReset.js +21 -0
- package/dist/model/DigitalWalletDetails.d.ts +23 -0
- package/dist/model/DigitalWalletDetails.js +21 -0
- package/dist/model/DirectDeposit.d.ts +22 -0
- package/dist/model/DirectDeposit.js +21 -0
- package/dist/model/Disclosure.d.ts +25 -0
- package/dist/model/Disclosure.js +21 -0
- package/dist/model/Edit.d.ts +30 -0
- package/dist/model/Edit.js +21 -0
- package/dist/model/EditOrderError.d.ts +25 -0
- package/dist/model/EditOrderError.js +21 -0
- package/dist/model/EditOrderErrorResponse.d.ts +30 -0
- package/dist/model/EditOrderErrorResponse.js +21 -0
- package/dist/model/EditOrderRequest.d.ts +33 -0
- package/dist/model/EditOrderRequest.js +21 -0
- package/dist/model/EditOrderResponse.d.ts +27 -0
- package/dist/model/EditOrderResponse.js +21 -0
- package/dist/model/EditOrderSuccessResponse.d.ts +25 -0
- package/dist/model/EditOrderSuccessResponse.js +21 -0
- package/dist/model/EditPortfolioRequest.d.ts +25 -0
- package/dist/model/EditPortfolioRequest.js +21 -0
- package/dist/model/EditPortfolioResponse.d.ts +23 -0
- package/dist/model/EditPortfolioResponse.js +21 -0
- package/dist/model/EmailAddress.d.ts +22 -0
- package/dist/model/EmailAddress.js +21 -0
- package/dist/model/Error.d.ts +30 -0
- package/dist/model/Error.js +21 -0
- package/dist/model/ExpiryDate.d.ts +23 -0
- package/dist/model/ExpiryDate.js +21 -0
- package/dist/model/ExtendedTimestamp.d.ts +33 -0
- package/dist/model/ExtendedTimestamp.js +21 -0
- package/dist/model/ExternalPaymentMethod.d.ts +22 -0
- package/dist/model/ExternalPaymentMethod.js +21 -0
- package/dist/model/FCMBalanceSummary.d.ts +73 -0
- package/dist/model/FCMBalanceSummary.js +21 -0
- package/dist/model/FCMPosition.d.ts +54 -0
- package/dist/model/FCMPosition.js +21 -0
- package/dist/model/FCMSweep.d.ts +43 -0
- package/dist/model/FCMSweep.js +21 -0
- package/dist/model/FcmMarginWindowMeasure.d.ts +51 -0
- package/dist/model/FcmMarginWindowMeasure.js +21 -0
- package/dist/model/FcmScheduledMaintenance.d.ts +26 -0
- package/dist/model/FcmScheduledMaintenance.js +21 -0
- package/dist/model/FcmTradingSessionDetails.d.ts +31 -0
- package/dist/model/FcmTradingSessionDetails.js +21 -0
- package/dist/model/Fedwire.d.ts +27 -0
- package/dist/model/Fedwire.js +21 -0
- package/dist/model/FedwireAccount.d.ts +25 -0
- package/dist/model/FedwireAccount.js +21 -0
- package/dist/model/FedwireAddress.d.ts +26 -0
- package/dist/model/FedwireAddress.js +21 -0
- package/dist/model/FedwireInstitution.d.ts +31 -0
- package/dist/model/FedwireInstitution.js +21 -0
- package/dist/model/Fee.d.ts +31 -0
- package/dist/model/Fee.js +21 -0
- package/dist/model/FeeTier.d.ts +49 -0
- package/dist/model/FeeTier.js +21 -0
- package/dist/model/Fill.d.ts +83 -0
- package/dist/model/Fill.js +21 -0
- package/dist/model/FirstDataToken.d.ts +23 -0
- package/dist/model/FirstDataToken.js +21 -0
- package/dist/model/FundMovement.d.ts +27 -0
- package/dist/model/FundMovement.js +21 -0
- package/dist/model/FutureProductDetails.d.ts +43 -0
- package/dist/model/FutureProductDetails.js +21 -0
- package/dist/model/FuturesPosition.d.ts +35 -0
- package/dist/model/FuturesPosition.js +21 -0
- package/dist/model/GetAccountResponse.d.ts +23 -0
- package/dist/model/GetAccountResponse.js +21 -0
- package/dist/model/GetAccountsResponse.d.ts +35 -0
- package/dist/model/GetAccountsResponse.js +21 -0
- package/dist/model/GetApiKeyPermissionsResponse.d.ts +42 -0
- package/dist/model/GetApiKeyPermissionsResponse.js +21 -0
- package/dist/model/GetBalanceSummaryResponse.d.ts +23 -0
- package/dist/model/GetBalanceSummaryResponse.js +21 -0
- package/dist/model/GetBestBidAskResponse.d.ts +23 -0
- package/dist/model/GetBestBidAskResponse.js +21 -0
- package/dist/model/GetCandlesResponse.d.ts +23 -0
- package/dist/model/GetCandlesResponse.js +21 -0
- package/dist/model/GetConvertTradeResponse.d.ts +23 -0
- package/dist/model/GetConvertTradeResponse.js +21 -0
- package/dist/model/GetCurrentMarginWindowResponse.d.ts +31 -0
- package/dist/model/GetCurrentMarginWindowResponse.js +21 -0
- package/dist/model/GetFCMBalanceSummaryResponse.d.ts +23 -0
- package/dist/model/GetFCMBalanceSummaryResponse.js +21 -0
- package/dist/model/GetFCMPositionResponse.d.ts +23 -0
- package/dist/model/GetFCMPositionResponse.js +21 -0
- package/dist/model/GetFCMPositionsResponse.d.ts +23 -0
- package/dist/model/GetFCMPositionsResponse.js +21 -0
- package/dist/model/GetFCMSweepsResponse.d.ts +23 -0
- package/dist/model/GetFCMSweepsResponse.js +21 -0
- package/dist/model/GetFillsResponse.d.ts +30 -0
- package/dist/model/GetFillsResponse.js +21 -0
- package/dist/model/GetHistoricalOrderResponse.d.ts +26 -0
- package/dist/model/GetHistoricalOrderResponse.js +21 -0
- package/dist/model/GetHistoricalOrdersResponse.d.ts +38 -0
- package/dist/model/GetHistoricalOrdersResponse.js +21 -0
- package/dist/model/GetIntradayMarginSettingResponse.d.ts +23 -0
- package/dist/model/GetIntradayMarginSettingResponse.js +21 -0
- package/dist/model/GetMarketTradesResponse.d.ts +31 -0
- package/dist/model/GetMarketTradesResponse.js +21 -0
- package/dist/model/GetPaymentMethodResponse.d.ts +23 -0
- package/dist/model/GetPaymentMethodResponse.js +21 -0
- package/dist/model/GetPaymentMethodsResponse.d.ts +23 -0
- package/dist/model/GetPaymentMethodsResponse.js +21 -0
- package/dist/model/GetPortfolioBreakdownResponse.d.ts +23 -0
- package/dist/model/GetPortfolioBreakdownResponse.js +21 -0
- package/dist/model/GetPortfoliosResponse.d.ts +25 -0
- package/dist/model/GetPortfoliosResponse.js +21 -0
- package/dist/model/GetPositionResponse.d.ts +23 -0
- package/dist/model/GetPositionResponse.js +21 -0
- package/dist/model/GetPositionsResponse.d.ts +25 -0
- package/dist/model/GetPositionsResponse.js +21 -0
- package/dist/model/GetProductBookResponse.d.ts +27 -0
- package/dist/model/GetProductBookResponse.js +21 -0
- package/dist/model/GetProductResponse.d.ts +23 -0
- package/dist/model/GetProductResponse.js +21 -0
- package/dist/model/GetProductsResponse.d.ts +23 -0
- package/dist/model/GetProductsResponse.js +21 -0
- package/dist/model/GetTransactionSummaryResponse.d.ts +61 -0
- package/dist/model/GetTransactionSummaryResponse.js +21 -0
- package/dist/model/GoodsAndServicesTax.d.ts +24 -0
- package/dist/model/GoodsAndServicesTax.js +21 -0
- package/dist/model/GooglePay.d.ts +40 -0
- package/dist/model/GooglePay.js +21 -0
- package/dist/model/GooglePayBraintreeData.d.ts +23 -0
- package/dist/model/GooglePayBraintreeData.js +21 -0
- package/dist/model/HistoricalMarketTrade.d.ts +50 -0
- package/dist/model/HistoricalMarketTrade.js +21 -0
- package/dist/model/Ideal.d.ts +27 -0
- package/dist/model/Ideal.js +21 -0
- package/dist/model/IdentityContractCall.d.ts +23 -0
- package/dist/model/IdentityContractCall.js +21 -0
- package/dist/model/Interac.d.ts +23 -0
- package/dist/model/Interac.js +21 -0
- package/dist/model/InteracAccount.d.ts +34 -0
- package/dist/model/InteracAccount.js +21 -0
- package/dist/model/IntraBank.d.ts +26 -0
- package/dist/model/IntraBank.js +21 -0
- package/dist/model/L2Level.d.ts +23 -0
- package/dist/model/L2Level.js +21 -0
- package/dist/model/LedgerAccount.d.ts +25 -0
- package/dist/model/LedgerAccount.js +21 -0
- package/dist/model/LedgerNamedAccount.d.ts +24 -0
- package/dist/model/LedgerNamedAccount.js +21 -0
- package/dist/model/LimitLimitFok.d.ts +29 -0
- package/dist/model/LimitLimitFok.js +21 -0
- package/dist/model/LimitLimitGtc.d.ts +33 -0
- package/dist/model/LimitLimitGtc.js +21 -0
- package/dist/model/LimitLimitGtd.d.ts +37 -0
- package/dist/model/LimitLimitGtd.js +21 -0
- package/dist/model/Link.d.ts +23 -0
- package/dist/model/Link.js +21 -0
- package/dist/model/LiquidationMarketGtc.d.ts +25 -0
- package/dist/model/LiquidationMarketGtc.js +21 -0
- package/dist/model/LiquidationMarketGtd.d.ts +29 -0
- package/dist/model/LiquidationMarketGtd.js +21 -0
- package/dist/model/LiquidityPool.d.ts +25 -0
- package/dist/model/LiquidityPool.js +21 -0
- package/dist/model/MarginWindow.d.ts +30 -0
- package/dist/model/MarginWindow.js +21 -0
- package/dist/model/MarketMarketIoc.d.ts +29 -0
- package/dist/model/MarketMarketIoc.js +21 -0
- package/dist/model/Merchant.d.ts +22 -0
- package/dist/model/Merchant.js +21 -0
- package/dist/model/Money.d.ts +26 -0
- package/dist/model/Money.js +21 -0
- package/dist/model/MovePortfolioFundsRequest.d.ts +34 -0
- package/dist/model/MovePortfolioFundsRequest.js +21 -0
- package/dist/model/MovePortfolioFundsResponse.d.ts +29 -0
- package/dist/model/MovePortfolioFundsResponse.js +21 -0
- package/dist/model/MultiAssetCollateralRequest.d.ts +29 -0
- package/dist/model/MultiAssetCollateralRequest.js +21 -0
- package/dist/model/MultiAssetCollateralResponse.d.ts +22 -0
- package/dist/model/MultiAssetCollateralResponse.js +21 -0
- package/dist/model/NewOrderErrorResponse.d.ts +43 -0
- package/dist/model/NewOrderErrorResponse.js +21 -0
- package/dist/model/NewOrderRequest.d.ts +56 -0
- package/dist/model/NewOrderRequest.js +21 -0
- package/dist/model/NewOrderResponse.d.ts +34 -0
- package/dist/model/NewOrderResponse.js +21 -0
- package/dist/model/NewOrderSuccessResponse.d.ts +38 -0
- package/dist/model/NewOrderSuccessResponse.js +21 -0
- package/dist/model/Order.d.ts +172 -0
- package/dist/model/Order.js +21 -0
- package/dist/model/OrderConfiguration.d.ts +66 -0
- package/dist/model/OrderConfiguration.js +21 -0
- package/dist/model/OrderPreviewRequest.d.ts +48 -0
- package/dist/model/OrderPreviewRequest.js +21 -0
- package/dist/model/OrderPreviewResponse.d.ts +59 -0
- package/dist/model/OrderPreviewResponse.js +21 -0
- package/dist/model/Owner.d.ts +26 -0
- package/dist/model/Owner.js +21 -0
- package/dist/model/PaymentMethod.d.ts +65 -0
- package/dist/model/PaymentMethod.js +21 -0
- package/dist/model/Paypal.d.ts +25 -0
- package/dist/model/Paypal.js +21 -0
- package/dist/model/PaypalAccount.d.ts +23 -0
- package/dist/model/PaypalAccount.js +21 -0
- package/dist/model/PaypalMerchant.d.ts +22 -0
- package/dist/model/PaypalMerchant.js +21 -0
- package/dist/model/PerpPosition.d.ts +44 -0
- package/dist/model/PerpPosition.js +21 -0
- package/dist/model/PerpetualProductDetails.d.ts +27 -0
- package/dist/model/PerpetualProductDetails.js +21 -0
- package/dist/model/PhoneNumber.d.ts +22 -0
- package/dist/model/PhoneNumber.js +21 -0
- package/dist/model/PixEbanx.d.ts +27 -0
- package/dist/model/PixEbanx.js +21 -0
- package/dist/model/PixEbanxPixDeposit.d.ts +23 -0
- package/dist/model/PixEbanxPixDeposit.js +21 -0
- package/dist/model/PixEbanxPixWithdrawal.d.ts +26 -0
- package/dist/model/PixEbanxPixWithdrawal.js +21 -0
- package/dist/model/PnlConfiguration.d.ts +23 -0
- package/dist/model/PnlConfiguration.js +21 -0
- package/dist/model/Portfolio.d.ts +80 -0
- package/dist/model/Portfolio.js +21 -0
- package/dist/model/PortfolioBalance.d.ts +25 -0
- package/dist/model/PortfolioBalance.js +21 -0
- package/dist/model/PortfolioBalances.d.ts +28 -0
- package/dist/model/PortfolioBalances.js +21 -0
- package/dist/model/PortfolioBreakdown.d.ts +31 -0
- package/dist/model/PortfolioBreakdown.js +21 -0
- package/dist/model/PortfolioPosition.d.ts +32 -0
- package/dist/model/PortfolioPosition.js +21 -0
- package/dist/model/PortfoliosSummary.d.ts +26 -0
- package/dist/model/PortfoliosSummary.js +21 -0
- package/dist/model/Position.d.ts +71 -0
- package/dist/model/Position.js +21 -0
- package/dist/model/PositionSummary.d.ts +23 -0
- package/dist/model/PositionSummary.js +21 -0
- package/dist/model/PreviewEditOrderResponse.d.ts +37 -0
- package/dist/model/PreviewEditOrderResponse.js +21 -0
- package/dist/model/PriceBook.d.ts +29 -0
- package/dist/model/PriceBook.js +21 -0
- package/dist/model/ProAccount.d.ts +26 -0
- package/dist/model/ProAccount.js +21 -0
- package/dist/model/ProInternalAccount.d.ts +23 -0
- package/dist/model/ProInternalAccount.js +21 -0
- package/dist/model/Product.d.ts +167 -0
- package/dist/model/Product.js +21 -0
- package/dist/model/Products.d.ts +30 -0
- package/dist/model/Products.js +21 -0
- package/dist/model/RatConvertTrade.d.ts +67 -0
- package/dist/model/RatConvertTrade.js +21 -0
- package/dist/model/Remitly.d.ts +23 -0
- package/dist/model/Remitly.js +21 -0
- package/dist/model/RemitlyAccount.d.ts +23 -0
- package/dist/model/RemitlyAccount.js +21 -0
- package/dist/model/Rtp.d.ts +28 -0
- package/dist/model/Rtp.js +21 -0
- package/dist/model/RtpAccount.d.ts +23 -0
- package/dist/model/RtpAccount.js +21 -0
- package/dist/model/RtpInstitution.d.ts +22 -0
- package/dist/model/RtpInstitution.js +21 -0
- package/dist/model/ScaledAmount.d.ts +24 -0
- package/dist/model/ScaledAmount.js +21 -0
- package/dist/model/ScheduleFCMSweepRequest.d.ts +25 -0
- package/dist/model/ScheduleFCMSweepRequest.js +21 -0
- package/dist/model/ScheduleFCMSweepResponse.d.ts +22 -0
- package/dist/model/ScheduleFCMSweepResponse.js +21 -0
- package/dist/model/Sepa.d.ts +29 -0
- package/dist/model/Sepa.js +21 -0
- package/dist/model/SepaAccount.d.ts +24 -0
- package/dist/model/SepaAccount.js +21 -0
- package/dist/model/SepaAccountDetail.d.ts +32 -0
- package/dist/model/SepaAccountDetail.js +21 -0
- package/dist/model/SepaInstitution.d.ts +23 -0
- package/dist/model/SepaInstitution.js +21 -0
- package/dist/model/SepaV2.d.ts +46 -0
- package/dist/model/SepaV2.js +21 -0
- package/dist/model/SetIntradayMarginSettingRequest.d.ts +26 -0
- package/dist/model/SetIntradayMarginSettingRequest.js +21 -0
- package/dist/model/SgFast.d.ts +28 -0
- package/dist/model/SgFast.js +21 -0
- package/dist/model/SgFastAccount.d.ts +23 -0
- package/dist/model/SgFastAccount.js +21 -0
- package/dist/model/SgFastInstitution.d.ts +22 -0
- package/dist/model/SgFastInstitution.js +21 -0
- package/dist/model/SgPayNow.d.ts +28 -0
- package/dist/model/SgPayNow.js +21 -0
- package/dist/model/Signet.d.ts +22 -0
- package/dist/model/Signet.js +21 -0
- package/dist/model/SingleProductGetProductBookConfig.d.ts +29 -0
- package/dist/model/SingleProductGetProductBookConfig.js +21 -0
- package/dist/model/Sofort.d.ts +27 -0
- package/dist/model/Sofort.js +21 -0
- package/dist/model/SorLimitIoc.d.ts +29 -0
- package/dist/model/SorLimitIoc.js +21 -0
- package/dist/model/StopLimitStopLimitGtc.d.ts +38 -0
- package/dist/model/StopLimitStopLimitGtc.js +21 -0
- package/dist/model/StopLimitStopLimitGtd.d.ts +42 -0
- package/dist/model/StopLimitStopLimitGtd.js +21 -0
- package/dist/model/SubscriptionInfo.d.ts +30 -0
- package/dist/model/SubscriptionInfo.js +21 -0
- package/dist/model/Swift.d.ts +26 -0
- package/dist/model/Swift.js +21 -0
- package/dist/model/SwiftAccount.d.ts +29 -0
- package/dist/model/SwiftAccount.js +21 -0
- package/dist/model/SwiftInstitution.d.ts +29 -0
- package/dist/model/SwiftInstitution.js +21 -0
- package/dist/model/TaxInfo.d.ts +24 -0
- package/dist/model/TaxInfo.js +21 -0
- package/dist/model/TradeIncentiveInfo.d.ts +28 -0
- package/dist/model/TradeIncentiveInfo.js +21 -0
- package/dist/model/TradeIncentiveMetadata.d.ts +29 -0
- package/dist/model/TradeIncentiveMetadata.js +21 -0
- package/dist/model/TriggerBracketGtc.d.ts +33 -0
- package/dist/model/TriggerBracketGtc.js +21 -0
- package/dist/model/TriggerBracketGtd.d.ts +37 -0
- package/dist/model/TriggerBracketGtd.js +21 -0
- package/dist/model/TriggerBracketPnl.d.ts +23 -0
- package/dist/model/TriggerBracketPnl.js +21 -0
- package/dist/model/TwapLimitGtd.d.ts +41 -0
- package/dist/model/TwapLimitGtd.js +21 -0
- package/dist/model/TypesDecimal.d.ts +28 -0
- package/dist/model/TypesDecimal.js +21 -0
- package/dist/model/Uk.d.ts +29 -0
- package/dist/model/Uk.js +21 -0
- package/dist/model/UkAccount.d.ts +25 -0
- package/dist/model/UkAccount.js +21 -0
- package/dist/model/UkInstitution.d.ts +22 -0
- package/dist/model/UkInstitution.js +21 -0
- package/dist/model/UnitPrice.d.ts +25 -0
- package/dist/model/UnitPrice.js +21 -0
- package/dist/model/User.d.ts +22 -0
- package/dist/model/User.js +21 -0
- package/dist/model/UserWarning.d.ts +28 -0
- package/dist/model/UserWarning.js +21 -0
- package/dist/model/UserWarningContext.d.ts +24 -0
- package/dist/model/UserWarningContext.js +21 -0
- package/dist/model/VaultToken.d.ts +23 -0
- package/dist/model/VaultToken.js +21 -0
- package/dist/model/VendorPayment.d.ts +23 -0
- package/dist/model/VendorPayment.js +21 -0
- package/dist/model/Venue.d.ts +22 -0
- package/dist/model/Venue.js +21 -0
- package/dist/model/WorldpayParams.d.ts +27 -0
- package/dist/model/WorldpayParams.js +21 -0
- package/dist/model/ZaakpayMobikwik.d.ts +25 -0
- package/dist/model/ZaakpayMobikwik.js +21 -0
- package/dist/model/Zengin.d.ts +28 -0
- package/dist/model/Zengin.js +21 -0
- package/dist/model/ZenginAccount.d.ts +24 -0
- package/dist/model/ZenginAccount.js +21 -0
- package/dist/model/ZenginInstitution.d.ts +23 -0
- package/dist/model/ZenginInstitution.js +21 -0
- package/dist/model/ZenginV2.d.ts +28 -0
- package/dist/model/ZenginV2.js +21 -0
- package/dist/model/ZenginV2Account.d.ts +24 -0
- package/dist/model/ZenginV2Account.js +21 -0
- package/dist/model/ZenginV2Institution.d.ts +23 -0
- package/dist/model/ZenginV2Institution.js +21 -0
- package/dist/model/Zepto.d.ts +26 -0
- package/dist/model/Zepto.js +21 -0
- package/dist/model/ZeptoAccount.d.ts +32 -0
- package/dist/model/ZeptoAccount.js +21 -0
- package/dist/model/enums/AccountPlatform.d.ts +25 -0
- package/dist/model/enums/AccountPlatform.js +29 -0
- package/dist/model/enums/AccountType.d.ts +26 -0
- package/dist/model/enums/AccountType.js +30 -0
- package/dist/model/enums/ApplePayResult.d.ts +24 -0
- package/dist/model/enums/ApplePayResult.js +28 -0
- package/dist/model/enums/ApplePayScheme.d.ts +24 -0
- package/dist/model/enums/ApplePayScheme.js +28 -0
- package/dist/model/enums/CancelOrderFailureReason.d.ts +31 -0
- package/dist/model/enums/CancelOrderFailureReason.js +35 -0
- package/dist/model/enums/CardScheme.d.ts +24 -0
- package/dist/model/enums/CardScheme.js +28 -0
- package/dist/model/enums/ContractExpiryType.d.ts +24 -0
- package/dist/model/enums/ContractExpiryType.js +28 -0
- package/dist/model/enums/EditOrderFailureReason.d.ts +35 -0
- package/dist/model/enums/EditOrderFailureReason.js +39 -0
- package/dist/model/enums/ErrorCodes.d.ts +44 -0
- package/dist/model/enums/ErrorCodes.js +48 -0
- package/dist/model/enums/ErrorCta.d.ts +29 -0
- package/dist/model/enums/ErrorCta.js +33 -0
- package/dist/model/enums/ExpiringContractStatus.d.ts +25 -0
- package/dist/model/enums/ExpiringContractStatus.js +29 -0
- package/dist/model/enums/FCMPositionSide.d.ts +24 -0
- package/dist/model/enums/FCMPositionSide.js +28 -0
- package/dist/model/enums/FCMSweepStatus.d.ts +24 -0
- package/dist/model/enums/FCMSweepStatus.js +28 -0
- package/dist/model/enums/FcmMarginWindowType.d.ts +26 -0
- package/dist/model/enums/FcmMarginWindowType.js +30 -0
- package/dist/model/enums/FcmTradingSessionClosedReason.d.ts +28 -0
- package/dist/model/enums/FcmTradingSessionClosedReason.js +32 -0
- package/dist/model/enums/FcmTradingSessionState.d.ts +26 -0
- package/dist/model/enums/FcmTradingSessionState.js +30 -0
- package/dist/model/enums/FedwireInstitutionType.d.ts +34 -0
- package/dist/model/enums/FedwireInstitutionType.js +38 -0
- package/dist/model/enums/FuturesPositionSide.d.ts +24 -0
- package/dist/model/enums/FuturesPositionSide.js +28 -0
- package/dist/model/enums/GetFillsRequestFillsSortBy.d.ts +24 -0
- package/dist/model/enums/GetFillsRequestFillsSortBy.js +28 -0
- package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.d.ts +24 -0
- package/dist/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.js +28 -0
- package/dist/model/enums/GooglePayResult.d.ts +24 -0
- package/dist/model/enums/GooglePayResult.js +28 -0
- package/dist/model/enums/GooglePayScheme.d.ts +24 -0
- package/dist/model/enums/GooglePayScheme.js +28 -0
- package/dist/model/enums/Granularity.d.ts +30 -0
- package/dist/model/enums/Granularity.js +34 -0
- package/dist/model/enums/GstType.d.ts +23 -0
- package/dist/model/enums/GstType.js +27 -0
- package/dist/model/enums/IntradayMarginSetting.d.ts +24 -0
- package/dist/model/enums/IntradayMarginSetting.js +28 -0
- package/dist/model/enums/LiquidityIndicator.d.ts +24 -0
- package/dist/model/enums/LiquidityIndicator.js +28 -0
- package/dist/model/enums/MarginLevelType.d.ts +26 -0
- package/dist/model/enums/MarginLevelType.js +30 -0
- package/dist/model/enums/MarginProfileType.d.ts +24 -0
- package/dist/model/enums/MarginProfileType.js +28 -0
- package/dist/model/enums/MarginType.d.ts +26 -0
- package/dist/model/enums/MarginType.js +30 -0
- package/dist/model/enums/MarginWindowType.d.ts +26 -0
- package/dist/model/enums/MarginWindowType.js +30 -0
- package/dist/model/enums/NewOrderFailureReason.d.ts +66 -0
- package/dist/model/enums/NewOrderFailureReason.js +70 -0
- package/dist/model/enums/OrderExecutionStatus.d.ts +30 -0
- package/dist/model/enums/OrderExecutionStatus.js +34 -0
- package/dist/model/enums/OrderPlacementSource.d.ts +24 -0
- package/dist/model/enums/OrderPlacementSource.js +28 -0
- package/dist/model/enums/OrderSide.d.ts +23 -0
- package/dist/model/enums/OrderSide.js +27 -0
- package/dist/model/enums/OrderType.d.ts +30 -0
- package/dist/model/enums/OrderType.js +34 -0
- package/dist/model/enums/OwnerType.d.ts +26 -0
- package/dist/model/enums/OwnerType.js +30 -0
- package/dist/model/enums/PaymentMethodType.d.ts +75 -0
- package/dist/model/enums/PaymentMethodType.js +79 -0
- package/dist/model/enums/PortfolioLiquidationStatus.d.ts +28 -0
- package/dist/model/enums/PortfolioLiquidationStatus.js +32 -0
- package/dist/model/enums/PortfolioMarginFlags.d.ts +23 -0
- package/dist/model/enums/PortfolioMarginFlags.js +27 -0
- package/dist/model/enums/PortfolioMarginType.d.ts +24 -0
- package/dist/model/enums/PortfolioMarginType.js +28 -0
- package/dist/model/enums/PortfolioType.d.ts +25 -0
- package/dist/model/enums/PortfolioType.js +29 -0
- package/dist/model/enums/PositionSide.d.ts +24 -0
- package/dist/model/enums/PositionSide.js +28 -0
- package/dist/model/enums/PreviewFailureReason.d.ts +95 -0
- package/dist/model/enums/PreviewFailureReason.js +99 -0
- package/dist/model/enums/PreviewWarningMsg.d.ts +24 -0
- package/dist/model/enums/PreviewWarningMsg.js +28 -0
- package/dist/model/enums/ProductType.d.ts +24 -0
- package/dist/model/enums/ProductType.js +28 -0
- package/dist/model/enums/ProductVenue.d.ts +25 -0
- package/dist/model/enums/ProductVenue.js +29 -0
- package/dist/model/enums/RejectReason.d.ts +26 -0
- package/dist/model/enums/RejectReason.js +30 -0
- package/dist/model/enums/RiskManagementType.d.ts +24 -0
- package/dist/model/enums/RiskManagementType.js +28 -0
- package/dist/model/enums/SgPayNowIdentifierType.d.ts +24 -0
- package/dist/model/enums/SgPayNowIdentifierType.js +28 -0
- package/dist/model/enums/StopPriceDirection.d.ts +23 -0
- package/dist/model/enums/StopPriceDirection.js +27 -0
- package/dist/model/enums/StopTriggerStatus.d.ts +25 -0
- package/dist/model/enums/StopTriggerStatus.js +29 -0
- package/dist/model/enums/TimeInForceType.d.ts +26 -0
- package/dist/model/enums/TimeInForceType.js +30 -0
- package/dist/model/enums/TradeStatus.d.ts +26 -0
- package/dist/model/enums/TradeStatus.js +30 -0
- package/dist/rest/accounts/index.d.ts +14 -0
- package/dist/rest/accounts/index.js +37 -0
- package/dist/rest/accounts/types.d.ts +11 -0
- package/dist/rest/accounts/types.js +2 -0
- package/dist/rest/client.d.ts +20 -0
- package/dist/rest/client.js +31 -0
- package/dist/rest/convert/index.d.ts +16 -0
- package/dist/rest/convert/index.js +55 -0
- package/dist/rest/convert/types.d.ts +25 -0
- package/dist/rest/convert/types.js +2 -0
- package/dist/rest/credentials/index.d.ts +6 -0
- package/dist/rest/credentials/index.js +80 -0
- package/dist/rest/data/index.d.ts +12 -0
- package/dist/rest/data/index.js +27 -0
- package/dist/rest/data/types.d.ts +3 -0
- package/dist/rest/data/types.js +2 -0
- package/dist/rest/errors/index.d.ts +22 -0
- package/dist/rest/errors/index.js +31 -0
- package/dist/rest/fees/index.d.ts +12 -0
- package/dist/rest/fees/index.js +28 -0
- package/dist/rest/fees/types.d.ts +10 -0
- package/dist/rest/fees/types.js +2 -0
- package/dist/rest/futures/index.d.ts +28 -0
- package/dist/rest/futures/index.js +106 -0
- package/dist/rest/futures/types.d.ts +35 -0
- package/dist/rest/futures/types.js +2 -0
- package/dist/rest/orders/index.d.ts +28 -0
- package/dist/rest/orders/index.js +114 -0
- package/dist/rest/orders/types.d.ts +71 -0
- package/dist/rest/orders/types.js +2 -0
- package/dist/rest/paymentMethods/index.d.ts +14 -0
- package/dist/rest/paymentMethods/index.js +36 -0
- package/dist/rest/paymentMethods/types.d.ts +9 -0
- package/dist/rest/paymentMethods/types.js +2 -0
- package/dist/rest/perpetuals/index.d.ts +22 -0
- package/dist/rest/perpetuals/index.js +77 -0
- package/dist/rest/perpetuals/types.d.ts +28 -0
- package/dist/rest/perpetuals/types.js +2 -0
- package/dist/rest/portfolios/index.d.ts +22 -0
- package/dist/rest/portfolios/index.js +81 -0
- package/dist/rest/portfolios/types.d.ts +27 -0
- package/dist/rest/portfolios/types.js +2 -0
- package/dist/rest/products/index.d.ts +22 -0
- package/dist/rest/products/index.js +96 -0
- package/dist/rest/products/types.d.ts +52 -0
- package/dist/rest/products/types.js +2 -0
- package/dist/rest/public/index.d.ts +22 -0
- package/dist/rest/public/index.js +76 -0
- package/dist/rest/public/types.d.ts +46 -0
- package/dist/rest/public/types.js +2 -0
- package/dist/rest/shared/toCamelCase.d.ts +1 -0
- package/dist/rest/shared/toCamelCase.js +23 -0
- package/package.json +36 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { MarginType } from './enums/MarginType';
|
|
21
|
+
import { OrderConfiguration } from './OrderConfiguration';
|
|
22
|
+
import { OrderSide } from './enums/OrderSide';
|
|
23
|
+
export type NewOrderRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* A unique ID provided for the order (used for identification purposes). If the ID provided is not unique, the order will not be created and the order corresponding with that ID will be returned instead.
|
|
26
|
+
*/
|
|
27
|
+
clientOrderId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The trading pair (e.g. \'BTC-USD\').
|
|
30
|
+
*/
|
|
31
|
+
productId: string;
|
|
32
|
+
/**
|
|
33
|
+
* The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
|
|
34
|
+
*/
|
|
35
|
+
side: OrderSide;
|
|
36
|
+
/**
|
|
37
|
+
* The configuration of the order (e.g. the order type, size, etc).
|
|
38
|
+
*/
|
|
39
|
+
orderConfiguration: OrderConfiguration;
|
|
40
|
+
/**
|
|
41
|
+
* The amount of leverage for the order (default is 1.0).
|
|
42
|
+
*/
|
|
43
|
+
leverage?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Margin Type for this order (default is CROSS).
|
|
46
|
+
*/
|
|
47
|
+
marginType?: MarginType;
|
|
48
|
+
/**
|
|
49
|
+
* **(Deprecated)** The ID of the portfolio to associate the order with. Only applicable for legacy keys. CDP keys will default to the key\'s permissioned portfolio.
|
|
50
|
+
*/
|
|
51
|
+
retailPortfolioId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Preview ID for this order, to associate this order with a preview request
|
|
54
|
+
*/
|
|
55
|
+
previewId?: string;
|
|
56
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { NewOrderErrorResponse } from './NewOrderErrorResponse';
|
|
21
|
+
import { NewOrderSuccessResponse } from './NewOrderSuccessResponse';
|
|
22
|
+
import { OrderConfiguration } from './OrderConfiguration';
|
|
23
|
+
export type NewOrderResponse = {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the order was created.
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
successResponse?: NewOrderSuccessResponse;
|
|
29
|
+
errorResponse?: NewOrderErrorResponse;
|
|
30
|
+
/**
|
|
31
|
+
* The configuration of the order (e.g. the order type, size, etc).
|
|
32
|
+
*/
|
|
33
|
+
orderConfiguration?: OrderConfiguration;
|
|
34
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { OrderSide } from './enums/OrderSide';
|
|
21
|
+
export type NewOrderSuccessResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the order.
|
|
24
|
+
*/
|
|
25
|
+
orderId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The trading pair (e.g. \'BTC-USD\').
|
|
28
|
+
*/
|
|
29
|
+
productId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
|
|
32
|
+
*/
|
|
33
|
+
side?: OrderSide;
|
|
34
|
+
/**
|
|
35
|
+
* The unique ID provided for the order (used for identification purposes).
|
|
36
|
+
*/
|
|
37
|
+
clientOrderId?: string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { Edit } from './Edit';
|
|
21
|
+
import { MarginType } from './enums/MarginType';
|
|
22
|
+
import { OrderConfiguration } from './OrderConfiguration';
|
|
23
|
+
import { OrderExecutionStatus } from './enums/OrderExecutionStatus';
|
|
24
|
+
import { OrderPlacementSource } from './enums/OrderPlacementSource';
|
|
25
|
+
import { OrderSide } from './enums/OrderSide';
|
|
26
|
+
import { OrderType } from './enums/OrderType';
|
|
27
|
+
import { ProductType } from './enums/ProductType';
|
|
28
|
+
import { RejectReason } from './enums/RejectReason';
|
|
29
|
+
import { StopTriggerStatus } from './enums/StopTriggerStatus';
|
|
30
|
+
import { TimeInForceType } from './enums/TimeInForceType';
|
|
31
|
+
export type Order = {
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the order.
|
|
34
|
+
*/
|
|
35
|
+
orderId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The trading pair (e.g. \'BTC-USD\').
|
|
38
|
+
*/
|
|
39
|
+
productId: string;
|
|
40
|
+
/**
|
|
41
|
+
* The id of the User owning this Order
|
|
42
|
+
*/
|
|
43
|
+
userId: string;
|
|
44
|
+
/**
|
|
45
|
+
* The configuration of the order (e.g. the order type, size, etc).
|
|
46
|
+
*/
|
|
47
|
+
orderConfiguration: OrderConfiguration;
|
|
48
|
+
/**
|
|
49
|
+
* The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
|
|
50
|
+
*/
|
|
51
|
+
side: OrderSide;
|
|
52
|
+
/**
|
|
53
|
+
* The unique ID provided for the order (used for identification purposes).
|
|
54
|
+
*/
|
|
55
|
+
clientOrderId: string;
|
|
56
|
+
/**
|
|
57
|
+
* The current state of the order
|
|
58
|
+
*/
|
|
59
|
+
status: OrderExecutionStatus;
|
|
60
|
+
/**
|
|
61
|
+
* The client specified window for which the order can remain active
|
|
62
|
+
*/
|
|
63
|
+
timeInForce?: TimeInForceType;
|
|
64
|
+
/**
|
|
65
|
+
* Timestamp for when the order was created
|
|
66
|
+
*/
|
|
67
|
+
createdTime: string;
|
|
68
|
+
/**
|
|
69
|
+
* The percent of total order amount that has been filled
|
|
70
|
+
*/
|
|
71
|
+
completionPercentage: string;
|
|
72
|
+
/**
|
|
73
|
+
* The portion (in base currency) of total order amount that has been filled
|
|
74
|
+
*/
|
|
75
|
+
filledSize?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The average of all prices of fills for this order
|
|
78
|
+
*/
|
|
79
|
+
averageFilledPrice: string;
|
|
80
|
+
/**
|
|
81
|
+
* **(Deprecated)** Commission amount
|
|
82
|
+
*/
|
|
83
|
+
fee?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Number of fills that have been posted for this order
|
|
86
|
+
*/
|
|
87
|
+
numberOfFills: string;
|
|
88
|
+
/**
|
|
89
|
+
* The portion (in quote current) of total order amount that has been filled
|
|
90
|
+
*/
|
|
91
|
+
filledValue?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether a cancel request has been initiated for the order, and not yet completed
|
|
94
|
+
*/
|
|
95
|
+
pendingCancel: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the order was placed with quote currency
|
|
98
|
+
*/
|
|
99
|
+
sizeInQuote: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The total fees for the order
|
|
102
|
+
*/
|
|
103
|
+
totalFees: string;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the order size includes fees
|
|
106
|
+
*/
|
|
107
|
+
sizeInclusiveOfFees: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* derived field: filled_value + total_fees for buy orders and filled_value - total_fees for sell orders.
|
|
110
|
+
*/
|
|
111
|
+
totalValueAfterFees: string;
|
|
112
|
+
/**
|
|
113
|
+
* The trigger status of the order, with respect to stop price.
|
|
114
|
+
*/
|
|
115
|
+
triggerStatus?: StopTriggerStatus;
|
|
116
|
+
/**
|
|
117
|
+
* Type of the order
|
|
118
|
+
*/
|
|
119
|
+
orderType?: OrderType;
|
|
120
|
+
/**
|
|
121
|
+
* Reason the order was rejected.
|
|
122
|
+
*/
|
|
123
|
+
rejectReason?: RejectReason;
|
|
124
|
+
/**
|
|
125
|
+
* True if the order is fully filled, false otherwise.
|
|
126
|
+
*/
|
|
127
|
+
settled?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* The type of order, i.e. Spot or Future
|
|
130
|
+
*/
|
|
131
|
+
productType?: ProductType;
|
|
132
|
+
/**
|
|
133
|
+
* Message stating why the order was rejected.
|
|
134
|
+
*/
|
|
135
|
+
rejectMessage?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Message stating why the order was canceled.
|
|
138
|
+
*/
|
|
139
|
+
cancelMessage?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Message stating which source an order was placed from.
|
|
142
|
+
*/
|
|
143
|
+
orderPlacementSource?: OrderPlacementSource;
|
|
144
|
+
/**
|
|
145
|
+
* The remaining hold amount (holdAmount - holdAmountReleased). [value is 0 if holdReleased is true]
|
|
146
|
+
*/
|
|
147
|
+
outstandingHoldAmount?: string;
|
|
148
|
+
/**
|
|
149
|
+
* True if order is of liquidation type.
|
|
150
|
+
*/
|
|
151
|
+
isLiquidation?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Time of the most recent fill for this order
|
|
154
|
+
*/
|
|
155
|
+
lastFillTime?: string;
|
|
156
|
+
/**
|
|
157
|
+
* An array of the latest 5 edits per order
|
|
158
|
+
*/
|
|
159
|
+
editHistory?: Array<Edit>;
|
|
160
|
+
/**
|
|
161
|
+
* The amount of leverage for the order (default is 1.0).
|
|
162
|
+
*/
|
|
163
|
+
leverage?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Margin Type for this order (default is CROSS).
|
|
166
|
+
*/
|
|
167
|
+
marginType?: MarginType;
|
|
168
|
+
/**
|
|
169
|
+
* The ID of the portfolio this order is associated with.
|
|
170
|
+
*/
|
|
171
|
+
retailPortfolioId?: string;
|
|
172
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { LimitLimitFok } from './LimitLimitFok';
|
|
21
|
+
import { LimitLimitGtc } from './LimitLimitGtc';
|
|
22
|
+
import { LimitLimitGtd } from './LimitLimitGtd';
|
|
23
|
+
import { MarketMarketIoc } from './MarketMarketIoc';
|
|
24
|
+
import { SorLimitIoc } from './SorLimitIoc';
|
|
25
|
+
import { StopLimitStopLimitGtc } from './StopLimitStopLimitGtc';
|
|
26
|
+
import { StopLimitStopLimitGtd } from './StopLimitStopLimitGtd';
|
|
27
|
+
import { TriggerBracketGtc } from './TriggerBracketGtc';
|
|
28
|
+
import { TriggerBracketGtd } from './TriggerBracketGtd';
|
|
29
|
+
export type OrderConfiguration = {
|
|
30
|
+
/**
|
|
31
|
+
* Buy or sell a specified quantity of an Asset at the current best available market price. [Read more on Market Orders](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#market-order)
|
|
32
|
+
*/
|
|
33
|
+
marketMarketIoc?: MarketMarketIoc;
|
|
34
|
+
/**
|
|
35
|
+
* Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it will immediately Fill; any remaining quantity is canceled. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
|
|
36
|
+
*/
|
|
37
|
+
sorLimitIoc?: SorLimitIoc;
|
|
38
|
+
/**
|
|
39
|
+
* Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until canceled. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
|
|
40
|
+
*/
|
|
41
|
+
limitLimitGtc?: LimitLimitGtc;
|
|
42
|
+
/**
|
|
43
|
+
* Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
|
|
44
|
+
*/
|
|
45
|
+
limitLimitGtd?: LimitLimitGtd;
|
|
46
|
+
/**
|
|
47
|
+
* Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it is to immediately and completely Fill. [Read more on Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#limit-order)
|
|
48
|
+
*/
|
|
49
|
+
limitLimitFok?: LimitLimitFok;
|
|
50
|
+
/**
|
|
51
|
+
* Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until canceled. [Read more on Stop-Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#stop-limit-order)
|
|
52
|
+
*/
|
|
53
|
+
stopLimitStopLimitGtc?: StopLimitStopLimitGtc;
|
|
54
|
+
/**
|
|
55
|
+
* Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order. [Read more on Stop-Limit Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#stop-limit-order)
|
|
56
|
+
*/
|
|
57
|
+
stopLimitStopLimitGtd?: StopLimitStopLimitGtd;
|
|
58
|
+
/**
|
|
59
|
+
* A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until canceled. [Read more on Bracket Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#bracket-order)
|
|
60
|
+
*/
|
|
61
|
+
triggerBracketGtc?: TriggerBracketGtc;
|
|
62
|
+
/**
|
|
63
|
+
* A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. [Read more on Bracket Orders.](https://help.coinbase.com/en/coinbase/trading-and-funding/advanced-trade/order-types#bracket-order)
|
|
64
|
+
*/
|
|
65
|
+
triggerBracketGtd?: TriggerBracketGtd;
|
|
66
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { MarginType } from './enums/MarginType';
|
|
21
|
+
import { OrderConfiguration } from './OrderConfiguration';
|
|
22
|
+
import { OrderSide } from './enums/OrderSide';
|
|
23
|
+
export type OrderPreviewRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The trading pair (e.g. \'BTC-USD\').
|
|
26
|
+
*/
|
|
27
|
+
productId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The side of the market that the order is on (e.g. \'BUY\', \'SELL\').
|
|
30
|
+
*/
|
|
31
|
+
side: OrderSide;
|
|
32
|
+
/**
|
|
33
|
+
* The configuration of the order (e.g. the order type, size, etc).
|
|
34
|
+
*/
|
|
35
|
+
orderConfiguration: OrderConfiguration;
|
|
36
|
+
/**
|
|
37
|
+
* The amount of leverage for the order (default is 1.0).
|
|
38
|
+
*/
|
|
39
|
+
leverage?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Margin Type for this order (default is CROSS).
|
|
42
|
+
*/
|
|
43
|
+
marginType?: MarginType;
|
|
44
|
+
/**
|
|
45
|
+
* **(Deprecated)** The ID of the portfolio to associate the order with. Only applicable for legacy keys. CDP keys will default to the key\'s permissioned portfolio.
|
|
46
|
+
*/
|
|
47
|
+
retailPortfolioId?: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { PreviewFailureReason } from './enums/PreviewFailureReason';
|
|
21
|
+
import { PreviewWarningMsg } from './enums/PreviewWarningMsg';
|
|
22
|
+
export type OrderPreviewResponse = {
|
|
23
|
+
orderTotal: string;
|
|
24
|
+
/**
|
|
25
|
+
* Currency amount of the applied commission (so not the rate that was used on input)
|
|
26
|
+
*/
|
|
27
|
+
commissionTotal: string;
|
|
28
|
+
/**
|
|
29
|
+
* List of potential failure reasons were this order to be submitted
|
|
30
|
+
*/
|
|
31
|
+
errs: Array<PreviewFailureReason>;
|
|
32
|
+
warning: Array<PreviewWarningMsg>;
|
|
33
|
+
/**
|
|
34
|
+
* The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
|
|
35
|
+
*/
|
|
36
|
+
quoteSize: string;
|
|
37
|
+
/**
|
|
38
|
+
* The amount of the first Asset in the Trading Pair. For example, on the BTC-USD Order Book, BTC is the Base Asset.
|
|
39
|
+
*/
|
|
40
|
+
baseSize: string;
|
|
41
|
+
bestBid: string;
|
|
42
|
+
bestAsk: string;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether tradable_balance should be set to the maximum amount.
|
|
45
|
+
*/
|
|
46
|
+
isMax: boolean;
|
|
47
|
+
orderMarginTotal?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The amount of leverage for the order (default is 1.0).
|
|
50
|
+
*/
|
|
51
|
+
leverage?: string;
|
|
52
|
+
longLeverage?: string;
|
|
53
|
+
shortLeverage?: string;
|
|
54
|
+
slippage?: string;
|
|
55
|
+
previewId?: string;
|
|
56
|
+
currentLiquidationBuffer?: string;
|
|
57
|
+
projectedLiquidationBuffer?: string;
|
|
58
|
+
maxLeverage?: string;
|
|
59
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024-present Coinbase Global, Inc.
|
|
4
|
+
*
|
|
5
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generato
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*
|
|
19
|
+
* Do not edit the class manually.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|