├── .env.example ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── README.md ├── apiSpec ├── generateTypes.js └── retail-public-api-spec.json ├── example ├── commitConvertTrade.js ├── createConvertQuote.js ├── createPortfolio.js ├── getAPIKeyPermissions.js ├── getConvertTrade.js ├── getPaymentMethod.js ├── getPortfolio.js ├── getProduct.js ├── getProductBook.js ├── getProductCandles.js ├── getProductMarketTrades.js ├── getProductsBestBidAsk.js ├── getTransactionSummary.js ├── listAccounts.js ├── listFutures.js ├── listOrders.js ├── listPaymentMethods.js ├── listPerpetuals.js ├── listPortfolios.js ├── listProducts.js ├── movePortfolioFunds.js └── public │ ├── getProduct.js │ ├── getProductBook.js │ ├── getProductCandles.js │ ├── getProductMarketTrades.js │ ├── getServerTime.js │ └── listProducts.js ├── openapitools.json ├── package-lock.json ├── package.json ├── src ├── constants.ts ├── index.ts ├── model │ ├── Account.ts │ ├── Address.ts │ ├── AllocatePortfolioRequest.ts │ ├── Allocation.ts │ ├── AllocationLeg.ts │ ├── Amount.ts │ ├── ApplePay.ts │ ├── ApplePayBraintreeData.ts │ ├── Asset.ts │ ├── Balance.ts │ ├── BalancePair.ts │ ├── BancomatPay.ts │ ├── BancomatPayAccount.ts │ ├── BankAccount.ts │ ├── BestBidAskGetProductBookConfig.ts │ ├── BlockchainAddress.ts │ ├── BlockchainTransaction.ts │ ├── CTN.ts │ ├── CancelFCMSweepResponse.ts │ ├── CancelOrderResponse.ts │ ├── CancelOrdersRequest.ts │ ├── CancelOrdersResponse.ts │ ├── Candle.ts │ ├── Candles.ts │ ├── Card.ts │ ├── CardDob.ts │ ├── Cbit.ts │ ├── CheckoutPaymentLink.ts │ ├── CheckoutToken.ts │ ├── ClosePositionRequest.ts │ ├── ClosePositionResponse.ts │ ├── CoinbaseAccount.ts │ ├── CommitConvertTradeRequest.ts │ ├── CommitConvertTradeResponse.ts │ ├── CreateConvertQuoteRequest.ts │ ├── CreateConvertQuoteResponse.ts │ ├── CreatePortfolioRequest.ts │ ├── CreatePortfolioResponse.ts │ ├── CustodialPool.ts │ ├── DAppWalletAccount.ts │ ├── DAppWalletBlockchainAddress.ts │ ├── DefaultAccount.ts │ ├── DenebIMPS.ts │ ├── DenebUPI.ts │ ├── DerivativeSettlement.ts │ ├── DerivativeSettlementAccountSettlement.ts │ ├── DerivativeSettlementEquityReset.ts │ ├── DigitalWalletDetails.ts │ ├── DirectDeposit.ts │ ├── Disclosure.ts │ ├── Edit.ts │ ├── EditOrderError.ts │ ├── EditOrderErrorResponse.ts │ ├── EditOrderRequest.ts │ ├── EditOrderResponse.ts │ ├── EditOrderSuccessResponse.ts │ ├── EditPortfolioRequest.ts │ ├── EditPortfolioResponse.ts │ ├── Eft.ts │ ├── EftAccount.ts │ ├── EmailAddress.ts │ ├── Error.ts │ ├── ErrorMetadata.ts │ ├── ExpiryDate.ts │ ├── ExtendedTimestamp.ts │ ├── ExternalPaymentMethod.ts │ ├── FCMBalanceSummary.ts │ ├── FCMPosition.ts │ ├── FCMSweep.ts │ ├── FcmMarginWindowMeasure.ts │ ├── FcmScheduledMaintenance.ts │ ├── FcmTradingSessionDetails.ts │ ├── Fedwire.ts │ ├── FedwireAccount.ts │ ├── FedwireAddress.ts │ ├── FedwireInstitution.ts │ ├── Fee.ts │ ├── FeeTier.ts │ ├── Fill.ts │ ├── FirstDataToken.ts │ ├── FundMovement.ts │ ├── FutureProductDetails.ts │ ├── FuturesPosition.ts │ ├── GetAccountResponse.ts │ ├── GetAccountsResponse.ts │ ├── GetApiKeyPermissionsResponse.ts │ ├── GetBalanceSummaryResponse.ts │ ├── GetBestBidAskResponse.ts │ ├── GetCandlesResponse.ts │ ├── GetConvertTradeResponse.ts │ ├── GetCurrentMarginWindowResponse.ts │ ├── GetFCMBalanceSummaryResponse.ts │ ├── GetFCMPositionResponse.ts │ ├── GetFCMPositionsResponse.ts │ ├── GetFCMSweepsResponse.ts │ ├── GetFillsResponse.ts │ ├── GetHistoricalOrderResponse.ts │ ├── GetHistoricalOrdersResponse.ts │ ├── GetIntradayMarginSettingResponse.ts │ ├── GetMarketTradesResponse.ts │ ├── GetPaymentMethodResponse.ts │ ├── GetPaymentMethodsResponse.ts │ ├── GetPortfolioBreakdownResponse.ts │ ├── GetPortfoliosResponse.ts │ ├── GetPositionResponse.ts │ ├── GetPositionsResponse.ts │ ├── GetProductBookResponse.ts │ ├── GetProductResponse.ts │ ├── GetProductsResponse.ts │ ├── GetTransactionSummaryResponse.ts │ ├── GoodsAndServicesTax.ts │ ├── GooglePay.ts │ ├── GooglePayBraintreeData.ts │ ├── HistoricalMarketTrade.ts │ ├── HotWallet.ts │ ├── Ideal.ts │ ├── IdentityContractCall.ts │ ├── Interac.ts │ ├── InteracAccount.ts │ ├── IntraBank.ts │ ├── L2Level.ts │ ├── LedgerAccount.ts │ ├── LedgerNamedAccount.ts │ ├── LimitLimitFok.ts │ ├── LimitLimitGtc.ts │ ├── LimitLimitGtd.ts │ ├── Link.ts │ ├── LiquidationMarketGtc.ts │ ├── LiquidationMarketGtd.ts │ ├── LiquidityPool.ts │ ├── MagicSpendBlockchainAddress.ts │ ├── Manual.ts │ ├── MarginWindow.ts │ ├── MarketMarketIoc.ts │ ├── Merchant.ts │ ├── Money.ts │ ├── MovePortfolioFundsRequest.ts │ ├── MovePortfolioFundsResponse.ts │ ├── MultiAssetCollateralRequest.ts │ ├── MultiAssetCollateralResponse.ts │ ├── NewOrderErrorResponse.ts │ ├── NewOrderRequest.ts │ ├── NewOrderResponse.ts │ ├── NewOrderSuccessResponse.ts │ ├── NovaAccount.ts │ ├── Order.ts │ ├── OrderConfiguration.ts │ ├── OrderPreviewRequest.ts │ ├── OrderPreviewResponse.ts │ ├── Owner.ts │ ├── Params3DS.ts │ ├── PaymentMethod.ts │ ├── Paypal.ts │ ├── PaypalAccount.ts │ ├── PaypalMerchant.ts │ ├── PaypalMetadata.ts │ ├── PerpPosition.ts │ ├── PerpetualProductDetails.ts │ ├── PhoneNumber.ts │ ├── PixEbanx.ts │ ├── PixEbanxPixDeposit.ts │ ├── PixEbanxPixWithdrawal.ts │ ├── PnlConfiguration.ts │ ├── Portfolio.ts │ ├── PortfolioBalance.ts │ ├── PortfolioBalances.ts │ ├── PortfolioBreakdown.ts │ ├── PortfolioPosition.ts │ ├── PortfoliosSummary.ts │ ├── Position.ts │ ├── PositionSummary.ts │ ├── PreviewEditOrderResponse.ts │ ├── PriceBook.ts │ ├── ProAccount.ts │ ├── ProInternalAccount.ts │ ├── Product.ts │ ├── Products.ts │ ├── RatConvertTrade.ts │ ├── Remitly.ts │ ├── RemitlyAccount.ts │ ├── Representment.ts │ ├── RollingMarketGtc.ts │ ├── Rtp.ts │ ├── RtpAccount.ts │ ├── RtpInstitution.ts │ ├── ScaledAmount.ts │ ├── ScheduleFCMSweepRequest.ts │ ├── ScheduleFCMSweepResponse.ts │ ├── Sepa.ts │ ├── SepaAccount.ts │ ├── SepaAccountDetail.ts │ ├── SepaInstitution.ts │ ├── SepaV2.ts │ ├── SetIntradayMarginSettingRequest.ts │ ├── SgFast.ts │ ├── SgFastAccount.ts │ ├── SgFastInstitution.ts │ ├── SgPayNow.ts │ ├── Signet.ts │ ├── SingleProductGetProductBookConfig.ts │ ├── Sofort.ts │ ├── SorLimitIoc.ts │ ├── StopLimitStopLimitGtc.ts │ ├── StopLimitStopLimitGtd.ts │ ├── SubscriptionInfo.ts │ ├── Swift.ts │ ├── SwiftAccount.ts │ ├── SwiftInstitution.ts │ ├── TaxInfo.ts │ ├── TradeIncentiveInfo.ts │ ├── TradeIncentiveMetadata.ts │ ├── TransferPointer.ts │ ├── TriggerBracketGtc.ts │ ├── TriggerBracketGtd.ts │ ├── TriggerBracketPnl.ts │ ├── TwapBucketMetadata.ts │ ├── TwapLimitGtd.ts │ ├── TypesDecimal.ts │ ├── Uk.ts │ ├── UkAccount.ts │ ├── UkInstitution.ts │ ├── UnitPrice.ts │ ├── User.ts │ ├── UserWarning.ts │ ├── UserWarningContext.ts │ ├── VaultToken.ts │ ├── VendorPayment.ts │ ├── Venue.ts │ ├── WaivedDetails.ts │ ├── WallaceAccount.ts │ ├── WorldpayParams.ts │ ├── ZaakpayMobikwik.ts │ ├── Zengin.ts │ ├── ZenginAccount.ts │ ├── ZenginInstitution.ts │ ├── ZenginV2.ts │ ├── ZenginV2Account.ts │ ├── ZenginV2Institution.ts │ ├── Zepto.ts │ ├── ZeptoAccount.ts │ ├── coinbasePaymentMethodServiceArgentineBankAccountDetails.ts │ ├── coinbasePaymentMethodServiceBankingCircleNowDetails.ts │ ├── coinbasePaymentMethodServiceBlikDetails.ts │ ├── coinbasePaymentMethodServicePixDetails.ts │ ├── coinbasePaymentMethodServiceTrustlyDetails.ts │ └── enums │ │ ├── AccountPlatform.ts │ │ ├── AccountType.ts │ │ ├── ApplePayResult.ts │ │ ├── ApplePayScheme.ts │ │ ├── CancelOrderFailureReason.ts │ │ ├── CardScheme.ts │ │ ├── ContractExpiryType.ts │ │ ├── EditOrderFailureReason.ts │ │ ├── ErrorCodes.ts │ │ ├── ErrorCta.ts │ │ ├── ExpiringContractStatus.ts │ │ ├── FCMPositionSide.ts │ │ ├── FCMSweepStatus.ts │ │ ├── FcmMarginWindowType.ts │ │ ├── FcmTradingSessionClosedReason.ts │ │ ├── FcmTradingSessionState.ts │ │ ├── FedwireInstitutionType.ts │ │ ├── FuturesPositionSide.ts │ │ ├── GetFillsRequestFillsSortBy.ts │ │ ├── GetHistoricalOrdersRequestHistoricalOrdersSortBy.ts │ │ ├── GooglePayResult.ts │ │ ├── GooglePayScheme.ts │ │ ├── Granularity.ts │ │ ├── GstType.ts │ │ ├── IntradayMarginSetting.ts │ │ ├── LiquidityIndicator.ts │ │ ├── MarginLevelType.ts │ │ ├── MarginProfileType.ts │ │ ├── MarginType.ts │ │ ├── MarginWindowType.ts │ │ ├── NewOrderFailureReason.ts │ │ ├── OrderExecutionStatus.ts │ │ ├── OrderPlacementSource.ts │ │ ├── OrderSide.ts │ │ ├── OrderType.ts │ │ ├── OwnerType.ts │ │ ├── PaymentMethodType.ts │ │ ├── PortfolioLiquidationStatus.ts │ │ ├── PortfolioMarginFlags.ts │ │ ├── PortfolioMarginType.ts │ │ ├── PortfolioType.ts │ │ ├── PositionSide.ts │ │ ├── PreviewFailureReason.ts │ │ ├── PreviewWarningMsg.ts │ │ ├── ProductType.ts │ │ ├── ProductVenue.ts │ │ ├── ProductsSortOrder.ts │ │ ├── RejectReason.ts │ │ ├── RiskManagementType.ts │ │ ├── SgPayNowIdentifierType.ts │ │ ├── StopPriceDirection.ts │ │ ├── StopTriggerStatus.ts │ │ ├── TimeInForceType.ts │ │ ├── TradeStatus.ts │ │ └── WaivedFeeSource.ts └── rest │ ├── accounts │ ├── index.ts │ └── types.ts │ ├── client.ts │ ├── convert │ ├── index.ts │ └── types.ts │ ├── credentials │ └── index.ts │ ├── data │ ├── index.ts │ └── types.ts │ ├── errors │ └── index.ts │ ├── fees │ ├── index.ts │ └── types.ts │ ├── futures │ ├── index.ts │ └── types.ts │ ├── orders │ ├── index.ts │ └── types.ts │ ├── paymentMethods │ ├── index.ts │ └── types.ts │ ├── perpetuals │ ├── index.ts │ └── types.ts │ ├── portfolios │ ├── index.ts │ └── types.ts │ ├── products │ ├── index.ts │ └── types.ts │ ├── public │ ├── index.ts │ └── types.ts │ └── shared │ └── toCamelCase.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- 1 | KEY_NAME="organizations/6b5-xxxx-xxxx-xxxx-adc/apiKeys/162-xxxx-xxxx-xxxx-e881" 2 | PRIVATE_KEY='-----BEGIN EC PRIVATE KEY-----\nMHcCLNyNdA==\n-----END EC PRIVATE KEY-----\n' -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | /** @type {import('eslint').Linter.Config} */ 2 | module.exports = { 3 | parser: '@typescript-eslint/parser', 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:@typescript-eslint/recommended', 7 | 'prettier', 8 | 'plugin:prettier/recommended', 9 | ], 10 | plugins: ['prettier'], 11 | rules: { 12 | 'prettier/prettier': 'error', 13 | '@typescript-eslint/explicit-module-boundary-types': 'off', 14 | '@typescript-eslint/no-explicit-any': 'off', 15 | }, 16 | ignorePatterns: ['**/dist/**', '**/node_modules/**', '**/*.md'], 17 | env: { 18 | node: true, // Add this line to recognize Node.js globals 19 | es2021: true, // Optionally include modern JavaScript features 20 | }, 21 | }; 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | src/rest/main.ts 3 | dist/ 4 | node_modules/ 5 | .idea/ 6 | apiSpec/types -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": true, 3 | "singleQuote": true, 4 | "trailingComma": "es5" 5 | } 6 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.1.0] - 2024-SEP-06 4 | 5 | ### Added 6 | 7 | - Support for all Coinbase Advanced API REST endpoints via central client 8 | - Custom Request and Response objects for endpoints 9 | - Custom error types 10 | -------------------------------------------------------------------------------- /example/public/getServerTime.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024-present Coinbase Global, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | require('dotenv').config(); 17 | const { CoinbaseAdvTradeClient, PublicService } = require('../../dist'); 18 | 19 | const client = new CoinbaseAdvTradeClient(); 20 | 21 | const pubService = new PublicService(client); 22 | 23 | pubService 24 | .getServerTime() 25 | .then((pm) => { 26 | console.log(JSON.stringify(pm, null, 2)); 27 | }) 28 | .catch((err) => console.log(err)); 29 | -------------------------------------------------------------------------------- /example/public/listProducts.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024-present Coinbase Global, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | require('dotenv').config(); 17 | const { CoinbaseAdvTradeClient, PublicService } = require('../../dist'); 18 | 19 | const client = new CoinbaseAdvTradeClient(); 20 | 21 | const publicService = new PublicService(client); 22 | 23 | publicService 24 | .listProducts() 25 | .then((pm) => { 26 | console.log(JSON.stringify(pm, null, 2)); 27 | }) 28 | .catch((err) => console.log(err)); 29 | -------------------------------------------------------------------------------- /openapitools.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", 3 | "spaces": 2, 4 | "generator-cli": { 5 | "version": "7.10.0" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024-present Coinbase Global, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | export const BASE_URL = 'api.coinbase.com'; 17 | export const API_PREFIX = '/api/v3/brokerage/'; 18 | export const ALGORITHM = 'ES256'; 19 | export const VERSION = '0.1.0'; 20 | export const USER_AGENT = `coinbase-advanced-ts/${VERSION}`; 21 | export const JWT_ISSUER = 'cdp'; 22 | export const API_BASE_PATH = 'https://' + BASE_URL + API_PREFIX; 23 | -------------------------------------------------------------------------------- /src/model/Address.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Address = { 22 | address1?: string; 23 | address2?: string; 24 | city?: string; 25 | state?: string; 26 | postalCode?: string; 27 | country?: string; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/Allocation.ts: -------------------------------------------------------------------------------- 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 | 21 | import { AllocationLeg } from './AllocationLeg'; 22 | 23 | export type Allocation = { 24 | id?: string; 25 | legs?: Array; 26 | isNetted?: boolean; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/AllocationLeg.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FundMovement } from './FundMovement'; 22 | 23 | export type AllocationLeg = { 24 | id?: string; 25 | movements?: Array; 26 | isNetted?: boolean; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/Amount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Amount = { 22 | /** 23 | * Value of the Amount 24 | */ 25 | value?: string; 26 | /** 27 | * The currency to be allocated for the specific isolated position (e.g. USD, BTC, etc). 28 | */ 29 | currency?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/ApplePayBraintreeData.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ApplePayBraintreeData = { 22 | nonce?: string; 23 | correlationId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/BalancePair.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | /** 24 | * Balance pair represents balances in both native and raw underlying currency. 25 | */ 26 | export type BalancePair = { 27 | userNativeCurrency?: Amount; 28 | rawCurrency?: Amount; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/BancomatPay.ts: -------------------------------------------------------------------------------- 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 | 21 | import { BancomatPayAccount } from './BancomatPayAccount'; 22 | 23 | export type BancomatPay = { 24 | customerName?: string; 25 | account?: BancomatPayAccount; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/BancomatPayAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type BancomatPayAccount = { 22 | phoneNumber?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/BankAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type BankAccount = { 22 | customerAccountType?: string; 23 | customerAccountNumber?: string; 24 | customerRoutingNumber?: string; 25 | customerName?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/BestBidAskGetProductBookConfig.ts: -------------------------------------------------------------------------------- 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 | 21 | export type BestBidAskGetProductBookConfig = { 22 | /** 23 | * The list of trading pairs (e.g. \'BTC-USD\'). 24 | */ 25 | productIds?: Array; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/BlockchainAddress.ts: -------------------------------------------------------------------------------- 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 | 21 | export type BlockchainAddress = { 22 | address?: string; 23 | destinationTag?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/BlockchainTransaction.ts: -------------------------------------------------------------------------------- 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 | 21 | export type BlockchainTransaction = { 22 | hsh?: string; 23 | height?: number; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/CTN.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CTN = { 22 | id?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/CancelFCMSweepResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CancelFCMSweepResponse = { 22 | success?: boolean; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/CancelOrdersRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CancelOrdersRequest = { 22 | /** 23 | * The order IDs that cancel requests should be initiated for. 24 | */ 25 | orderIds: Array; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/CancelOrdersResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { CancelOrderResponse } from './CancelOrderResponse'; 22 | 23 | export type CancelOrdersResponse = { 24 | /** 25 | * The result of initiated cancel requests 26 | */ 27 | results?: Array; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/Candles.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Candle } from './Candle'; 22 | 23 | export type Candles = { 24 | candles?: Array; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/CardDob.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CardDob = { 22 | month?: string; 23 | day?: string; 24 | year?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/Cbit.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Cbit = { 22 | cbitWalletAddress?: string; 23 | customersBankAccountId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/CheckoutPaymentLink.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CheckoutPaymentLink = { 22 | paymentLinkId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/CheckoutToken.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CheckoutToken = { 22 | sourceId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/CoinbaseAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CoinbaseAccount = { 22 | accountId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/CommitConvertTradeRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CommitConvertTradeRequest = { 22 | /** 23 | * The currency of the account to convert from (e.g. USD). 24 | */ 25 | fromAccount?: string; 26 | /** 27 | * The currency of the account to convert to (e.g. USDC). 28 | */ 29 | toAccount?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/CommitConvertTradeResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { RatConvertTrade } from './RatConvertTrade'; 22 | 23 | export type CommitConvertTradeResponse = { 24 | trade?: RatConvertTrade; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/CreateConvertQuoteResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { RatConvertTrade } from './RatConvertTrade'; 22 | 23 | export type CreateConvertQuoteResponse = { 24 | trade?: RatConvertTrade; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/CreatePortfolioRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CreatePortfolioRequest = { 22 | /** 23 | * The name of the portfolio. 24 | */ 25 | name?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/CreatePortfolioResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Portfolio } from './Portfolio'; 22 | 23 | export type CreatePortfolioResponse = { 24 | portfolio?: Portfolio; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/CustodialPool.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CustodialPool = { 22 | name?: string; 23 | network?: string; 24 | fiatId?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/DAppWalletAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type DAppWalletAccount = { 22 | userUuid?: string; 23 | network?: string; 24 | cohortId?: string; 25 | signingBackend?: string; 26 | currency?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/DAppWalletBlockchainAddress.ts: -------------------------------------------------------------------------------- 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 | 21 | export type DAppWalletBlockchainAddress = { 22 | network?: string; 23 | address?: string; 24 | cohortId?: string; 25 | userUuid?: string; 26 | pool?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/DefaultAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type DefaultAccount = { 22 | userUuid?: string; 23 | currency?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/DenebIMPS.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Address } from './Address'; 22 | 23 | export type DenebIMPS = { 24 | ifscCode?: string; 25 | accountNumber?: string; 26 | customerFirstName?: string; 27 | customerLastName?: string; 28 | email?: string; 29 | phoneNumber?: string; 30 | pan?: string; 31 | address?: Address; 32 | }; 33 | -------------------------------------------------------------------------------- /src/model/DenebUPI.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Address } from './Address'; 22 | 23 | export type DenebUPI = { 24 | vpaId?: string; 25 | customerFirstName?: string; 26 | customerLastName?: string; 27 | email?: string; 28 | phoneNumber?: string; 29 | pan?: string; 30 | address?: Address; 31 | }; 32 | -------------------------------------------------------------------------------- /src/model/DerivativeSettlementEquityReset.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Money } from './Money'; 22 | import { LedgerAccount } from './LedgerAccount'; 23 | 24 | export type DerivativeSettlementEquityReset = { 25 | amount?: Money; 26 | equityAccount?: LedgerAccount; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/DigitalWalletDetails.ts: -------------------------------------------------------------------------------- 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 | 21 | export type DigitalWalletDetails = { 22 | nonce?: string; 23 | correlationId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/DirectDeposit.ts: -------------------------------------------------------------------------------- 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 | 21 | export type DirectDeposit = { 22 | directDepositAccount?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/Disclosure.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Link } from './Link'; 22 | 23 | export type Disclosure = { 24 | title?: string; 25 | description?: string; 26 | link?: Link; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/Edit.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Edit = { 22 | /** 23 | * The update price of the order. 24 | */ 25 | price?: string; 26 | /** 27 | * The updated size of the order. 28 | */ 29 | size?: string; 30 | replaceAcceptTimestamp?: string; 31 | }; 32 | -------------------------------------------------------------------------------- /src/model/EditOrderError.ts: -------------------------------------------------------------------------------- 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 | 21 | import { EditOrderFailureReason } from './enums/EditOrderFailureReason'; 22 | import { PreviewFailureReason } from './enums/PreviewFailureReason'; 23 | 24 | export type EditOrderError = { 25 | editFailureReason?: EditOrderFailureReason; 26 | previewFailureReason?: PreviewFailureReason; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/EditOrderRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type EditOrderRequest = { 22 | /** 23 | * The ID of the order. 24 | */ 25 | orderId: string; 26 | /** 27 | * The update price of the order. 28 | */ 29 | price: string; 30 | /** 31 | * The updated size of the order. 32 | */ 33 | size: string; 34 | }; 35 | -------------------------------------------------------------------------------- /src/model/EditOrderResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { EditOrderError } from './EditOrderError'; 22 | 23 | export type EditOrderResponse = { 24 | /** 25 | * Whether the order edit request was placed. 26 | */ 27 | success: boolean; 28 | errors?: Array; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/EditOrderSuccessResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | export type EditOrderSuccessResponse = { 22 | /** 23 | * The ID of the order. 24 | */ 25 | orderId: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/EditPortfolioRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type EditPortfolioRequest = { 22 | /** 23 | * The name of the portfolio. 24 | */ 25 | name?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/EditPortfolioResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Portfolio } from './Portfolio'; 22 | 23 | export type EditPortfolioResponse = { 24 | portfolio?: Portfolio; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/Eft.ts: -------------------------------------------------------------------------------- 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 | 21 | import { EftAccount } from './EftAccount'; 22 | 23 | export type Eft = { 24 | account?: EftAccount; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/EmailAddress.ts: -------------------------------------------------------------------------------- 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 | 21 | export type EmailAddress = { 22 | value?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/ErrorMetadata.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | export type ErrorMetadata = { 24 | limitAmount?: Amount; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/ExpiryDate.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ExpiryDate = { 22 | month?: string; 23 | year?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/ExternalPaymentMethod.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ExternalPaymentMethod = { 22 | paymentMethodId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/FcmScheduledMaintenance.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * Fcm specific scheduled maintenance details. 23 | */ 24 | export type FcmScheduledMaintenance = { 25 | startTime?: string; 26 | endTime?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/Fedwire.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FedwireAccount } from './FedwireAccount'; 22 | import { FedwireInstitution } from './FedwireInstitution'; 23 | 24 | export type Fedwire = { 25 | routingNumber?: string; 26 | accountHolder?: FedwireAccount; 27 | bank?: FedwireInstitution; 28 | intermediaryBank?: FedwireInstitution; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/FedwireAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FedwireAddress } from './FedwireAddress'; 22 | 23 | export type FedwireAccount = { 24 | legalName?: string; 25 | accountNumber?: string; 26 | address?: FedwireAddress; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/FedwireAddress.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * FedwireAddress in an address ... no more, no less. 23 | */ 24 | export type FedwireAddress = { 25 | lines?: Array; 26 | countryCode?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/FirstDataToken.ts: -------------------------------------------------------------------------------- 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 | 21 | export type FirstDataToken = { 22 | value?: string; 23 | storeId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/FundMovement.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Money } from './Money'; 22 | import { LedgerAccount } from './LedgerAccount'; 23 | 24 | export type FundMovement = { 25 | id?: string; 26 | sourceAccount?: LedgerAccount; 27 | destinationAccount?: LedgerAccount; 28 | amount?: Money; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/GetAccountResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Account } from './Account'; 22 | 23 | export type GetAccountResponse = { 24 | account?: Account; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetBalanceSummaryResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { PortfolioBalance } from './PortfolioBalance'; 22 | 23 | export type GetBalanceSummaryResponse = { 24 | portfolioBalances?: Array; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetBestBidAskResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { PriceBook } from './PriceBook'; 22 | 23 | export type GetBestBidAskResponse = { 24 | pricebooks: Array; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetCandlesResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Candles } from './Candles'; 22 | 23 | export type GetCandlesResponse = { 24 | body?: Candles; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetConvertTradeResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { RatConvertTrade } from './RatConvertTrade'; 22 | 23 | export type GetConvertTradeResponse = { 24 | trade?: RatConvertTrade; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetFCMBalanceSummaryResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FCMBalanceSummary } from './FCMBalanceSummary'; 22 | 23 | export type GetFCMBalanceSummaryResponse = { 24 | balanceSummary?: FCMBalanceSummary; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetFCMPositionResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FCMPosition } from './FCMPosition'; 22 | 23 | export type GetFCMPositionResponse = { 24 | position?: FCMPosition; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetFCMPositionsResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FCMPosition } from './FCMPosition'; 22 | 23 | export type GetFCMPositionsResponse = { 24 | positions?: Array; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetFCMSweepsResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { FCMSweep } from './FCMSweep'; 22 | 23 | export type GetFCMSweepsResponse = { 24 | sweeps?: Array; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetHistoricalOrderResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Order } from './Order'; 22 | 23 | export type GetHistoricalOrderResponse = { 24 | /** 25 | * The retrieved order. 26 | */ 27 | order?: Order; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/GetIntradayMarginSettingResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { IntradayMarginSetting } from './enums/IntradayMarginSetting'; 22 | 23 | export type GetIntradayMarginSettingResponse = { 24 | setting?: IntradayMarginSetting; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetPaymentMethodResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { PaymentMethod } from './PaymentMethod'; 22 | 23 | export type GetPaymentMethodResponse = { 24 | paymentMethod?: PaymentMethod; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetPaymentMethodsResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { PaymentMethod } from './PaymentMethod'; 22 | 23 | export type GetPaymentMethodsResponse = { 24 | paymentMethods?: Array; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetPortfolioBreakdownResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { PortfolioBreakdown } from './PortfolioBreakdown'; 22 | 23 | export type GetPortfolioBreakdownResponse = { 24 | breakdown?: PortfolioBreakdown; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetPortfoliosResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Portfolio } from './Portfolio'; 22 | import { PortfoliosSummary } from './PortfoliosSummary'; 23 | 24 | export type GetPortfoliosResponse = { 25 | portfolios?: Array; 26 | summary?: PortfoliosSummary; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/GetPositionResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Position } from './Position'; 22 | 23 | export type GetPositionResponse = { 24 | position?: Position; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetPositionsResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Position } from './Position'; 22 | import { PositionSummary } from './PositionSummary'; 23 | 24 | export type GetPositionsResponse = { 25 | positions?: Array; 26 | summary?: PositionSummary; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/GetProductBookResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { PriceBook } from './PriceBook'; 22 | 23 | export type GetProductBookResponse = { 24 | pricebook: PriceBook; 25 | last?: string; 26 | midMarket?: string; 27 | spreadBps?: string; 28 | spreadAbsolute?: string; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/GetProductResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Product } from './Product'; 22 | 23 | export type GetProductResponse = { 24 | body?: Product; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GetProductsResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Products } from './Products'; 22 | 23 | export type GetProductsResponse = { 24 | body?: Products; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/GoodsAndServicesTax.ts: -------------------------------------------------------------------------------- 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 | 21 | import { GstType } from './enums/GstType'; 22 | 23 | export type GoodsAndServicesTax = { 24 | rate?: string; 25 | type?: GstType; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/GooglePayBraintreeData.ts: -------------------------------------------------------------------------------- 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 | 21 | export type GooglePayBraintreeData = { 22 | nonce?: string; 23 | correlationId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/HotWallet.ts: -------------------------------------------------------------------------------- 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 | 21 | export type HotWallet = { 22 | network?: string; 23 | address?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Ideal.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Ideal = { 22 | currency?: string; 23 | iban?: string; 24 | bic?: string; 25 | bankName?: string; 26 | customerPaymentName?: string; 27 | customerCountryCode?: string; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/IdentityContractCall.ts: -------------------------------------------------------------------------------- 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 | 21 | export type IdentityContractCall = { 22 | network?: string; 23 | address?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Interac.ts: -------------------------------------------------------------------------------- 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 | 21 | import { InteracAccount } from './InteracAccount'; 22 | 23 | export type Interac = { 24 | pmsvcId?: string; 25 | account?: InteracAccount; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/IntraBank.ts: -------------------------------------------------------------------------------- 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 | 21 | export type IntraBank = { 22 | currency?: string; 23 | accountNumber?: string; 24 | routingNumber?: string; 25 | customerName?: string; 26 | fiatId?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/L2Level.ts: -------------------------------------------------------------------------------- 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 | 21 | export type L2Level = { 22 | price?: string; 23 | size?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/LedgerAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Owner } from './Owner'; 22 | 23 | export type LedgerAccount = { 24 | accountId?: string; 25 | currency?: string; 26 | owner?: Owner; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/LedgerNamedAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type LedgerNamedAccount = { 22 | name?: string; 23 | currency?: string; 24 | foreignNetwork?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/Link.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Link = { 22 | text?: string; 23 | url?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/LiquidationMarketGtc.ts: -------------------------------------------------------------------------------- 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 | 21 | export type LiquidationMarketGtc = { 22 | /** 23 | * The amount of the first Asset in the Trading Pair. For example, on the BTC-USD Order Book, BTC is the Base Asset. 24 | */ 25 | baseSize?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/LiquidityPool.ts: -------------------------------------------------------------------------------- 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 | 21 | export type LiquidityPool = { 22 | network?: string; 23 | pool?: string; 24 | currency?: string; 25 | accountId?: string; 26 | fromAddress?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/MagicSpendBlockchainAddress.ts: -------------------------------------------------------------------------------- 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 | 21 | export type MagicSpendBlockchainAddress = { 22 | address?: string; 23 | destinationTag?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Manual.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Manual = { 22 | settlementBankName?: string; 23 | settlementAccountNumber?: string; 24 | reference?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/MarginWindow.ts: -------------------------------------------------------------------------------- 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 | 21 | import { MarginWindowType } from './enums/MarginWindowType'; 22 | 23 | export type MarginWindow = { 24 | /** 25 | * Your margin window 26 | */ 27 | marginWindowType?: MarginWindowType; 28 | /** 29 | * The end time of the margin window 30 | */ 31 | endTime?: string; 32 | }; 33 | -------------------------------------------------------------------------------- /src/model/Merchant.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Merchant = { 22 | mid?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/Money.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * This is a clone of 23 | */ 24 | export type Money = { 25 | amount?: string; 26 | currency?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/MovePortfolioFundsResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | export type MovePortfolioFundsResponse = { 22 | /** 23 | * The UUID of the portfolio to send funds from. 24 | */ 25 | sourcePortfolioUuid?: string; 26 | /** 27 | * The UUID of the portfolio to send funds to. 28 | */ 29 | targetPortfolioUuid?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/MultiAssetCollateralRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type MultiAssetCollateralRequest = { 22 | /** 23 | * The portfolio UUID. 24 | */ 25 | portfolioUuid?: string; 26 | /** 27 | * Enable or disable Multi Asset Collateral. 28 | */ 29 | multiAssetCollateralEnabled?: boolean; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/MultiAssetCollateralResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | export type MultiAssetCollateralResponse = { 22 | multiAssetCollateralEnabled?: boolean; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/NovaAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type NovaAccount = { 22 | network?: string; 23 | novaAccountId?: string; 24 | poolName?: string; 25 | accountIdempotencyKey?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/Owner.ts: -------------------------------------------------------------------------------- 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 | 21 | import { OwnerType } from './enums/OwnerType'; 22 | 23 | export type Owner = { 24 | id?: string; 25 | uuid?: string; 26 | userUuid?: string; 27 | type?: OwnerType; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/Params3DS.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Params3DS = { 22 | ddc3dsId?: string; 23 | disableCbCheckout?: boolean; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/PaypalAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PaypalAccount = { 22 | paypalId?: string; 23 | paypalPmId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/PaypalMerchant.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PaypalMerchant = { 22 | merchantAccountId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/PaypalMetadata.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PaypalMetadata = { 22 | paypalCorrelationId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/PerpetualProductDetails.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PerpetualProductDetails = { 22 | openInterest?: string; 23 | fundingRate?: string; 24 | fundingTime?: string; 25 | maxLeverage?: string; 26 | baseAssetUuid?: string; 27 | underlyingType?: string; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/PhoneNumber.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PhoneNumber = { 22 | value?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/PixEbanxPixDeposit.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PixEbanxPixDeposit = { 22 | transactionId?: string; 23 | accountId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/PixEbanxPixWithdrawal.ts: -------------------------------------------------------------------------------- 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 | 21 | export type PixEbanxPixWithdrawal = { 22 | accountNumber?: string; 23 | accountType?: string; 24 | bankCode?: string; 25 | branchNumber?: string; 26 | pixKey?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/PnlConfiguration.ts: -------------------------------------------------------------------------------- 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 | 21 | import { TriggerBracketPnl } from './TriggerBracketPnl'; 22 | 23 | export type PnlConfiguration = { 24 | /** 25 | * PNL configuration for a bracket order. 26 | */ 27 | triggerBracketPnl?: TriggerBracketPnl; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/PortfolioBalance.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Balance } from './Balance'; 22 | 23 | export type PortfolioBalance = { 24 | portfolioUuid?: string; 25 | balances?: Array; 26 | isMarginLimitReached?: boolean; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/PortfoliosSummary.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | export type PortfoliosSummary = { 24 | unrealizedPnl?: Amount; 25 | buyingPower?: Amount; 26 | totalBalance?: Amount; 27 | maxWithdrawalAmount?: Amount; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/PositionSummary.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | export type PositionSummary = { 24 | aggregatedPnl?: Amount; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/PriceBook.ts: -------------------------------------------------------------------------------- 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 | 21 | import { L2Level } from './L2Level'; 22 | 23 | export type PriceBook = { 24 | /** 25 | * The trading pair (e.g. \'BTC-USD\'). 26 | */ 27 | productId: string; 28 | bids: Array; 29 | asks: Array; 30 | time?: string; 31 | }; 32 | -------------------------------------------------------------------------------- /src/model/ProAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ProAccount = { 22 | accountId?: string; 23 | coinbaseAccountId?: string; 24 | userId?: string; 25 | currency?: string; 26 | portfolioId?: string; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/ProInternalAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ProInternalAccount = { 22 | userId?: string; 23 | currency?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Products.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Product } from './Product'; 22 | 23 | export type Products = { 24 | /** 25 | * Array of objects, each representing one product. 26 | */ 27 | products?: Array; 28 | /** 29 | * Number of products that were returned. 30 | */ 31 | numProducts?: number; 32 | }; 33 | -------------------------------------------------------------------------------- /src/model/Remitly.ts: -------------------------------------------------------------------------------- 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 | 21 | import { RemitlyAccount } from './RemitlyAccount'; 22 | 23 | export type Remitly = { 24 | accountHolder?: RemitlyAccount; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/RemitlyAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type RemitlyAccount = { 22 | recipientId?: string; 23 | payoutMethodType?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Representment.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Representment = { 22 | currency?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/RollingMarketGtc.ts: -------------------------------------------------------------------------------- 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 | 21 | export type RollingMarketGtc = { 22 | baseSize?: string; 23 | closeOnly?: boolean; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/RtpAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type RtpAccount = { 22 | legalName?: string; 23 | identifier?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/RtpInstitution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type RtpInstitution = { 22 | routingNumber?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/ScaledAmount.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | export type ScaledAmount = { 24 | amount?: Amount; 25 | scale?: number; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/ScheduleFCMSweepRequest.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ScheduleFCMSweepRequest = { 22 | /** 23 | * The amount of USD to be swept. By default, sweeps all available excess funds. 24 | */ 25 | usdAmount?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/ScheduleFCMSweepResponse.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ScheduleFCMSweepResponse = { 22 | success?: boolean; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/SepaAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type SepaAccount = { 22 | legalName?: string; 23 | iban?: string; 24 | bban?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/SepaInstitution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type SepaInstitution = { 22 | bic?: string; 23 | name?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/SgFastAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type SgFastAccount = { 22 | customerName?: string; 23 | accountNumber?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/SgFastInstitution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type SgFastInstitution = { 22 | bankCode?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/Signet.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Signet = { 22 | signetWalletId?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/SingleProductGetProductBookConfig.ts: -------------------------------------------------------------------------------- 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 | 21 | export type SingleProductGetProductBookConfig = { 22 | /** 23 | * The trading pair (e.g. \'BTC-USD\'). 24 | */ 25 | productId?: string; 26 | /** 27 | * The number of bid/asks to be returned. 28 | */ 29 | limit?: number; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/Sofort.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Sofort = { 22 | currency?: string; 23 | iban?: string; 24 | bic?: string; 25 | bankName?: string; 26 | customerPaymentName?: string; 27 | customerCountryCode?: string; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/Swift.ts: -------------------------------------------------------------------------------- 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 | 21 | import { SwiftAccount } from './SwiftAccount'; 22 | import { SwiftInstitution } from './SwiftInstitution'; 23 | 24 | export type Swift = { 25 | accountHolder?: SwiftAccount; 26 | institution?: SwiftInstitution; 27 | intermediary?: SwiftInstitution; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/SwiftInstitution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type SwiftInstitution = { 22 | bic?: string; 23 | name?: string; 24 | bankAddress1?: string; 25 | bankAddress2?: string; 26 | bankAddress3?: string; 27 | bankCountryCode?: string; 28 | domesticBankId?: string; 29 | internationalBankId?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/TaxInfo.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | export type TaxInfo = { 24 | name?: string; 25 | amount?: Amount; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/TradeIncentiveInfo.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | 23 | export type TradeIncentiveInfo = { 24 | appliedIncentive?: boolean; 25 | userIncentiveId?: string; 26 | codeVal?: string; 27 | endsAt?: string; 28 | feeWithoutIncentive?: Amount; 29 | redeemed?: boolean; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/TradeIncentiveMetadata.ts: -------------------------------------------------------------------------------- 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 | 21 | export type TradeIncentiveMetadata = { 22 | /** 23 | * The user incentive id. 24 | */ 25 | userIncentiveId?: string; 26 | /** 27 | * A promo code for waiving fees. 28 | */ 29 | codeVal?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/TransferPointer.ts: -------------------------------------------------------------------------------- 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 | 21 | export type TransferPointer = { 22 | idem?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/TriggerBracketPnl.ts: -------------------------------------------------------------------------------- 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 | 21 | export type TriggerBracketPnl = { 22 | /** 23 | * PNL if an attached order fills at the take profit price. 24 | */ 25 | takeProfitPnl?: string; 26 | /** 27 | * PNL if an attached order fills at the stop loss price 28 | */ 29 | stopLossPnl?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/TwapBucketMetadata.ts: -------------------------------------------------------------------------------- 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 | 21 | export type TwapBucketMetadata = { 22 | bucketDuration?: string; 23 | bucketSize?: string; 24 | numberBuckets?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/TypesDecimal.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * Represents a decimal number with precision. 23 | */ 24 | export type TypesDecimal = { 25 | /** 26 | * String representation allows for unlimited precision. 27 | */ 28 | value?: string; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/UkAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Address } from './Address'; 22 | 23 | export type UkAccount = { 24 | legalName?: string; 25 | bban?: string; 26 | sortCode?: string; 27 | accountNumber?: string; 28 | address?: Address; 29 | }; 30 | -------------------------------------------------------------------------------- /src/model/UkInstitution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type UkInstitution = { 22 | name?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/UnitPrice.ts: -------------------------------------------------------------------------------- 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 | 21 | import { ScaledAmount } from './ScaledAmount'; 22 | 23 | export type UnitPrice = { 24 | targetToFiat?: ScaledAmount; 25 | targetToSource?: ScaledAmount; 26 | sourceToFiat?: ScaledAmount; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/User.ts: -------------------------------------------------------------------------------- 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 | 21 | export type User = { 22 | userUuid?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/UserWarning.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Link } from './Link'; 22 | import { UserWarningContext } from './UserWarningContext'; 23 | 24 | export type UserWarning = { 25 | id?: string; 26 | link?: Link; 27 | context?: UserWarningContext; 28 | code?: string; 29 | message?: string; 30 | }; 31 | -------------------------------------------------------------------------------- /src/model/UserWarningContext.ts: -------------------------------------------------------------------------------- 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 | 21 | export type UserWarningContext = { 22 | details?: Array; 23 | title?: string; 24 | linkText?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/VaultToken.ts: -------------------------------------------------------------------------------- 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 | 21 | export type VaultToken = { 22 | value?: string; 23 | vaultId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/VendorPayment.ts: -------------------------------------------------------------------------------- 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 | 21 | export type VendorPayment = { 22 | vendorName?: string; 23 | vendorPaymentId?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Venue.ts: -------------------------------------------------------------------------------- 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 | 21 | export type Venue = { 22 | name?: string; 23 | }; 24 | -------------------------------------------------------------------------------- /src/model/WaivedDetails.ts: -------------------------------------------------------------------------------- 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 | 21 | import { Amount } from './Amount'; 22 | import { WaivedFeeSource } from './enums/WaivedFeeSource'; 23 | 24 | export type WaivedDetails = { 25 | amount?: Amount; 26 | source?: WaivedFeeSource; 27 | }; 28 | -------------------------------------------------------------------------------- /src/model/WallaceAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type WallaceAccount = { 22 | wallaceAccountId?: string; 23 | poolName?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/WorldpayParams.ts: -------------------------------------------------------------------------------- 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 | 21 | export type WorldpayParams = { 22 | tokenValue?: string; 23 | usesMerchantToken?: boolean; 24 | acceptHeader?: string; 25 | userAgentHeader?: string; 26 | shopperIp?: string; 27 | shopperSessionId?: string; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/ZaakpayMobikwik.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * Represents a customer\'s mobikwik account. 23 | */ 24 | export type ZaakpayMobikwik = { 25 | phoneNumber?: string; 26 | }; 27 | -------------------------------------------------------------------------------- /src/model/ZenginAccount.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ZenginAccount = { 22 | legalName?: string; 23 | identifier?: string; 24 | type?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/ZenginInstitution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ZenginInstitution = { 22 | bankCode?: string; 23 | branchCode?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/ZenginV2Account.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ZenginV2Account = { 22 | legalName?: string; 23 | identifier?: string; 24 | type?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/ZenginV2Institution.ts: -------------------------------------------------------------------------------- 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 | 21 | export type ZenginV2Institution = { 22 | bankCode?: string; 23 | branchCode?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/Zepto.ts: -------------------------------------------------------------------------------- 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 | 21 | import { ZeptoAccount } from './ZeptoAccount'; 22 | 23 | /** 24 | * Zepto identifies for the payment method ZEPTO. 25 | */ 26 | export type Zepto = { 27 | account?: ZeptoAccount; 28 | }; 29 | -------------------------------------------------------------------------------- /src/model/coinbasePaymentMethodServiceArgentineBankAccountDetails.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CoinbasePaymentMethodServiceArgentineBankAccountDetails = { 22 | taxId?: string; 23 | cbu?: string; 24 | }; 25 | -------------------------------------------------------------------------------- /src/model/coinbasePaymentMethodServiceBankingCircleNowDetails.ts: -------------------------------------------------------------------------------- 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 | 21 | export type CoinbasePaymentMethodServiceBankingCircleNowDetails = { 22 | iban?: string; 23 | currency?: string; 24 | customerPaymentName?: string; 25 | }; 26 | -------------------------------------------------------------------------------- /src/model/enums/AccountPlatform.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum AccountPlatform { 22 | Unspecified = 'ACCOUNT_PLATFORM_UNSPECIFIED', 23 | Consumer = 'ACCOUNT_PLATFORM_CONSUMER', 24 | CfmConsumer = 'ACCOUNT_PLATFORM_CFM_CONSUMER', 25 | Intx = 'ACCOUNT_PLATFORM_INTX', 26 | } 27 | -------------------------------------------------------------------------------- /src/model/enums/AccountType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum AccountType { 22 | Unspecified = 'ACCOUNT_TYPE_UNSPECIFIED', 23 | Crypto = 'ACCOUNT_TYPE_CRYPTO', 24 | Fiat = 'ACCOUNT_TYPE_FIAT', 25 | Vault = 'ACCOUNT_TYPE_VAULT', 26 | PerpFutures = 'ACCOUNT_TYPE_PERP_FUTURES', 27 | } 28 | -------------------------------------------------------------------------------- /src/model/enums/ApplePayResult.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ApplePayResult { 22 | Uncertain = 'UNCERTAIN', 23 | True = 'TRUE', 24 | False = 'FALSE', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/ApplePayScheme.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ApplePayScheme { 22 | Unknown = 'UNKNOWN', 23 | Visa = 'VISA', 24 | Mastercard = 'MASTERCARD', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/CardScheme.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum CardScheme { 22 | Unknown = 'UNKNOWN', 23 | Visa = 'VISA', 24 | Mastercard = 'MASTERCARD', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/ContractExpiryType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ContractExpiryType { 22 | UnknownContractExpiryType = 'UNKNOWN_CONTRACT_EXPIRY_TYPE', 23 | Expiring = 'EXPIRING', 24 | Perpetual = 'PERPETUAL', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/ExpiringContractStatus.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ExpiringContractStatus { 22 | UnknownExpiringContractStatus = 'UNKNOWN_EXPIRING_CONTRACT_STATUS', 23 | StatusUnexpired = 'STATUS_UNEXPIRED', 24 | StatusExpired = 'STATUS_EXPIRED', 25 | StatusAll = 'STATUS_ALL', 26 | } 27 | -------------------------------------------------------------------------------- /src/model/enums/FCMPositionSide.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum FCMPositionSide { 22 | Unknown = 'UNKNOWN', 23 | Long = 'LONG', 24 | Short = 'SHORT', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/FCMSweepStatus.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum FCMSweepStatus { 22 | UnknownFcmSweepStatus = 'UNKNOWN_FCM_SWEEP_STATUS', 23 | Pending = 'PENDING', 24 | Processing = 'PROCESSING', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/FuturesPositionSide.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * FuturesPosition defines the side of the position. 23 | */ 24 | export enum FuturesPositionSide { 25 | Unspecified = 'FUTURES_POSITION_SIDE_UNSPECIFIED', 26 | Long = 'FUTURES_POSITION_SIDE_LONG', 27 | Short = 'FUTURES_POSITION_SIDE_SHORT', 28 | } 29 | -------------------------------------------------------------------------------- /src/model/enums/GetFillsRequestFillsSortBy.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum GetFillsRequestFillsSortBy { 22 | UnknownSortBy = 'UNKNOWN_SORT_BY', 23 | Price = 'PRICE', 24 | TradeTime = 'TRADE_TIME', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/GetHistoricalOrdersRequestHistoricalOrdersSortBy.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum GetHistoricalOrdersRequestHistoricalOrdersSortBy { 22 | UnknownSortBy = 'UNKNOWN_SORT_BY', 23 | LimitPrice = 'LIMIT_PRICE', 24 | LastFillTime = 'LAST_FILL_TIME', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/GooglePayResult.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum GooglePayResult { 22 | Uncertain = 'UNCERTAIN', 23 | True = 'TRUE', 24 | False = 'FALSE', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/GooglePayScheme.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum GooglePayScheme { 22 | Unknown = 'UNKNOWN', 23 | Visa = 'VISA', 24 | Mastercard = 'MASTERCARD', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/GstType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum GstType { 22 | Inclusive = 'INCLUSIVE', 23 | Exclusive = 'EXCLUSIVE', 24 | } 25 | -------------------------------------------------------------------------------- /src/model/enums/IntradayMarginSetting.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum IntradayMarginSetting { 22 | Unspecified = 'INTRADAY_MARGIN_SETTING_UNSPECIFIED', 23 | Standard = 'INTRADAY_MARGIN_SETTING_STANDARD', 24 | Intraday = 'INTRADAY_MARGIN_SETTING_INTRADAY', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/LiquidityIndicator.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum LiquidityIndicator { 22 | UnknownLiquidityIndicator = 'UNKNOWN_LIQUIDITY_INDICATOR', 23 | Maker = 'MAKER', 24 | Taker = 'TAKER', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/MarginLevelType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum MarginLevelType { 22 | Unspecified = 'MARGIN_LEVEL_TYPE_UNSPECIFIED', 23 | Base = 'MARGIN_LEVEL_TYPE_BASE', 24 | Warning = 'MARGIN_LEVEL_TYPE_WARNING', 25 | Danger = 'MARGIN_LEVEL_TYPE_DANGER', 26 | Liquidation = 'MARGIN_LEVEL_TYPE_LIQUIDATION', 27 | } 28 | -------------------------------------------------------------------------------- /src/model/enums/MarginProfileType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum MarginProfileType { 22 | Unspecified = 'MARGIN_PROFILE_TYPE_UNSPECIFIED', 23 | RetailRegular = 'MARGIN_PROFILE_TYPE_RETAIL_REGULAR', 24 | RetailIntradayMargin1 = 'MARGIN_PROFILE_TYPE_RETAIL_INTRADAY_MARGIN_1', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/MarginType.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * - CROSS: Cross margin applies margin to the position of the entire portfolio - ISOLATED: Isolated margin applies margin to a single position 23 | */ 24 | export enum MarginType { 25 | Cross = 'CROSS', 26 | Isolated = 'ISOLATED', 27 | } 28 | -------------------------------------------------------------------------------- /src/model/enums/OrderPlacementSource.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum OrderPlacementSource { 22 | UnknownPlacementSource = 'UNKNOWN_PLACEMENT_SOURCE', 23 | RetailSimple = 'RETAIL_SIMPLE', 24 | RetailAdvanced = 'RETAIL_ADVANCED', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/OrderSide.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum OrderSide { 22 | Buy = 'BUY', 23 | Sell = 'SELL', 24 | } 25 | -------------------------------------------------------------------------------- /src/model/enums/OrderType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum OrderType { 22 | UnknownOrderType = 'UNKNOWN_ORDER_TYPE', 23 | Market = 'MARKET', 24 | Limit = 'LIMIT', 25 | Stop = 'STOP', 26 | StopLimit = 'STOP_LIMIT', 27 | Bracket = 'BRACKET', 28 | Twap = 'TWAP', 29 | } 30 | -------------------------------------------------------------------------------- /src/model/enums/OwnerType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum OwnerType { 22 | Unknown = 'UNKNOWN', 23 | InvestmentVehicle = 'INVESTMENT_VEHICLE', 24 | Retail = 'RETAIL', 25 | Venue = 'VENUE', 26 | Portfolio = 'PORTFOLIO', 27 | } 28 | -------------------------------------------------------------------------------- /src/model/enums/PortfolioMarginFlags.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum PortfolioMarginFlags { 22 | Unspecified = 'PORTFOLIO_MARGIN_FLAGS_UNSPECIFIED', 23 | InLiquidation = 'PORTFOLIO_MARGIN_FLAGS_IN_LIQUIDATION', 24 | } 25 | -------------------------------------------------------------------------------- /src/model/enums/PortfolioMarginType.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * PortfolioMarginType defines the type of margin type. 23 | */ 24 | export enum PortfolioMarginType { 25 | Unspecified = 'MARGIN_TYPE_UNSPECIFIED', 26 | Cross = 'MARGIN_TYPE_CROSS', 27 | Isolated = 'MARGIN_TYPE_ISOLATED', 28 | } 29 | -------------------------------------------------------------------------------- /src/model/enums/PortfolioType.ts: -------------------------------------------------------------------------------- 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 | 21 | /** 22 | * PortfolioType defines the type of Portfolio. 23 | */ 24 | export enum PortfolioType { 25 | Undefined = 'UNDEFINED', 26 | Default = 'DEFAULT', 27 | Consumer = 'CONSUMER', 28 | Intx = 'INTX', 29 | } 30 | -------------------------------------------------------------------------------- /src/model/enums/PositionSide.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum PositionSide { 22 | Unknown = 'POSITION_SIDE_UNKNOWN', 23 | Long = 'POSITION_SIDE_LONG', 24 | Short = 'POSITION_SIDE_SHORT', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/PreviewWarningMsg.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum PreviewWarningMsg { 22 | Unknown = 'UNKNOWN', 23 | BigOrder = 'BIG_ORDER', 24 | SmallOrder = 'SMALL_ORDER', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/ProductType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ProductType { 22 | UnknownProductType = 'UNKNOWN_PRODUCT_TYPE', 23 | Spot = 'SPOT', 24 | Future = 'FUTURE', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/ProductVenue.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ProductVenue { 22 | UnknownVenueType = 'UNKNOWN_VENUE_TYPE', 23 | Cbe = 'CBE', 24 | Fcm = 'FCM', 25 | Intx = 'INTX', 26 | } 27 | -------------------------------------------------------------------------------- /src/model/enums/ProductsSortOrder.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum ProductsSortOrder { 22 | Undefined = 'PRODUCTS_SORT_ORDER_UNDEFINED', 23 | Volume24HDescending = 'PRODUCTS_SORT_ORDER_VOLUME_24H_DESCENDING', 24 | ListTimeDescending = 'PRODUCTS_SORT_ORDER_LIST_TIME_DESCENDING', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/RiskManagementType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum RiskManagementType { 22 | UnknownRiskManagementType = 'UNKNOWN_RISK_MANAGEMENT_TYPE', 23 | ManagedByFcm = 'MANAGED_BY_FCM', 24 | ManagedByVenue = 'MANAGED_BY_VENUE', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/SgPayNowIdentifierType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum SgPayNowIdentifierType { 22 | Unspecified = 'TYPE_UNSPECIFIED', 23 | Nric = 'TYPE_NRIC', 24 | Phone = 'TYPE_PHONE', 25 | } 26 | -------------------------------------------------------------------------------- /src/model/enums/StopPriceDirection.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum StopPriceDirection { 22 | Up = 'STOP_DIRECTION_STOP_UP', 23 | Down = 'STOP_DIRECTION_STOP_DOWN', 24 | } 25 | -------------------------------------------------------------------------------- /src/model/enums/StopTriggerStatus.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum StopTriggerStatus { 22 | UnknownTriggerStatus = 'UNKNOWN_TRIGGER_STATUS', 23 | InvalidOrderType = 'INVALID_ORDER_TYPE', 24 | StopPending = 'STOP_PENDING', 25 | StopTriggered = 'STOP_TRIGGERED', 26 | } 27 | -------------------------------------------------------------------------------- /src/model/enums/TimeInForceType.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum TimeInForceType { 22 | UnknownTimeInForce = 'UNKNOWN_TIME_IN_FORCE', 23 | GoodUntilDateTime = 'GOOD_UNTIL_DATE_TIME', 24 | GoodUntilCancelled = 'GOOD_UNTIL_CANCELLED', 25 | ImmediateOrCancel = 'IMMEDIATE_OR_CANCEL', 26 | FillOrKill = 'FILL_OR_KILL', 27 | } 28 | -------------------------------------------------------------------------------- /src/model/enums/TradeStatus.ts: -------------------------------------------------------------------------------- 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 | 21 | export enum TradeStatus { 22 | Unspecified = 'TRADE_STATUS_UNSPECIFIED', 23 | Created = 'TRADE_STATUS_CREATED', 24 | Started = 'TRADE_STATUS_STARTED', 25 | Completed = 'TRADE_STATUS_COMPLETED', 26 | Canceled = 'TRADE_STATUS_CANCELED', 27 | } 28 | -------------------------------------------------------------------------------- /src/rest/data/types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024-present Coinbase Global, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | import { GetApiKeyPermissionsResponse as GetInt } from '../../model/GetApiKeyPermissionsResponse'; 17 | 18 | export type GetAPIKeyPermissionsRequest = Record; 19 | 20 | export type GetAPIKeyPermissionsResponse = GetInt; 21 | -------------------------------------------------------------------------------- /src/rest/paymentMethods/types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024-present Coinbase Global, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | import { PaymentMethod } from '../../model/PaymentMethod'; 17 | 18 | export type GetPaymentMethodRequest = { 19 | paymentMethodId: string; 20 | }; 21 | 22 | export type GetPaymentMethodResponse = PaymentMethod; 23 | 24 | export type ListPaymentMethodsRequest = {}; 25 | 26 | export type ListPaymentMethodsResponse = { 27 | paymentMethods: PaymentMethod[]; 28 | }; 29 | --------------------------------------------------------------------------------