# Coinbase integration

> Coinbase Advanced Trade API (spot and US derivatives trading, portfolios, converts, market data) and Coinbase App v2 API (accounts, transactions, sends, addresses, fiat deposits and withdrawals, prices), called with a CDP secret API key.

- Authentication: apiKey

## Tools (70)

- **Cancel Orders**: Initiate cancel requests for one or more orders.
- **Cancel Pending US Derivatives Sweep**: Cancel the pending sweep of funds from FCM wallet to USD Spot wallet
- **Close Position**: Places an order to close any open positions for a specified `product_id`.
- **Commit Convert Trade**: Commits a convert trade with a specified trade id, source account, and target account
- **Commit Deposit**: Completes a deposit that was created with `commit: false`; this is the step that moves the money.
- **Commit Withdrawal**: Completes a withdrawal that was created with `commit: false`; this is the step that moves the money.
- **Create Address**: Creates a new receive address for a wallet account; an empty body is allowed.
- **Create Convert Quote**: Create a convert quote with a specified source account, target account, and amount.
- **Create Order**: Create an order with a specified `product_id`, `side`, and `order_configuration`.
- **Create Portfolio**: Create a portfolio.
- **Delete Portfolio**: Delete portfolio.
- **Deposit Funds**: Moves a fiat amount into a fiat account using a payment method. Without `commit: true` it only creates the deposit (status `created`) and nothing moves until Commit.
- **Edit Order**: Edit an order with a specified new `size`, or new `price`.
- **Edit Order Preview**: Preview an edit order request with a specified new `size`, or new `price`.
- **Edit Portfolio**: Edit a portfolio.
- **Get Account**: Get a list of information about an account, given an account UUID.
- **Get API Key Permissions**: Get information about your CDP API key permissions
- **Get Best Bid/Ask**: Get the best bid/ask for all products.
- **Get Buy Price**: Total price to buy one unit of the base currency; includes the standard 1% Coinbase fee, excludes bank fees and moves within seconds.
- **Get Convert Trade**: Gets a list of information about a convert trade with a specified trade id, source account, and target account
- **Get Cryptocurrencies**: Lists known cryptocurrencies.
- **Get Current Margin Window**: Get the futures current margin window
- **Get Current Time**: Returns the API server time.
- **Get Current User**: Returns the current user's public profile (name, avatar, timezone, country).
- **Get Exchange Rates**: Current exchange rates for one unit of the base currency.
- **Get Fiat Currencies**: Lists known fiat currencies (ISO 4217 codes where possible).
- **Get Intraday Margin Setting**: Get the futures intraday margin setting
- **Get Market Trades**: Get snapshot information by product ID about the last trades (ticks) and best bid/ask.
- **Get Order**: Get a single order by order ID.
- **Get Payment Method**: Get information about a payment method for the current user.
- **Get Portfolio Breakdown**: Get the breakdown of a portfolio.
- **Get Product**: Get information on a single product by product ID.
- **Get Product Book**: Get a list of bids/asks for a single product.
- **Get Product Candles**: Get rates for a single product by product ID, grouped in buckets.
- **Get Public Market Trades**: Get snapshot information by product ID about the last trades (ticks) and best bid/ask.
- **Get Public Product**: Get information on a single product by product ID.
- **Get Public Product Book**: Get a list of bids/asks for a single product.
- **Get Public Product Candles**: Get rates for a single product by product ID, grouped in buckets.
- **Get Sell Price**: Total price to sell one unit of the base currency; includes the standard 1% Coinbase fee, excludes bank fees and moves within seconds.
- **Get Server Time**: Get the current time from the Coinbase Advanced API.
- **Get Spot Price**: Current market price, between buy and sell; add `date` for a historic price.
- **Get Transaction Summary**: Get a summary of transactions with fee tiers, total volume, and fees.
- **Get US Derivatives Balance Summary**: Get a summary of balances for CFM trading
- **Get US Derivatives Position**: Get positions for a specific CFM product
- **List Accounts**: Get a list of authenticated accounts for the current user.
- **List Accounts (Coinbase App v2)**: Lists the user's accounts (crypto wallets, fiat accounts, vaults), paginated.
- **List Addresses**: Lists the receive addresses of an account, paginated.
- **List Address Transactions**: Lists the transactions that touched one receive address, paginated.
- **List Deposits**: Lists the deposits of a fiat account, paginated.
- **List Fills**: Get a list of fills filtered by optional query parameters (`product_ids`, `order_ids`, etc.).
- **List Orders**: Get a list of orders filtered by optional query parameters (`product_ids`, `order_status`, etc.).
- **List Payment Methods**: Get a list of payment methods for the current user.
- **List Portfolios**: Get all portfolios of a user.
- **List Products**: Get a list of the available currency pairs for trading.
- **List Public Products**: Get a list of the available currency pairs for trading.
- **List Transactions**: Lists an account's transactions (sends, buys, sells, Advanced Trade fills and more), paginated.
- **List US Derivatives Positions**: Get a list of positions in CFM products
- **List US Derivatives Sweeps**: Get pending and processing sweeps of funds from FCM wallet to USD Spot wallet
- **List Withdrawals**: Lists the withdrawals of a fiat account, paginated.
- **Move Portfolio Funds**: Move funds between portfolios.
- **Preview Order**: Preview an order.
- **Schedule US Derivatives Sweep**: Schedules a sweep of funds from FCM wallet to USD Spot wallet
- **Send Money**: Sends crypto from an account to a blockchain address or an email. Asynchronous: Coinbase may delay or cancel the send, so poll Show Transaction for `completed`.
- **Set Intraday Margin Setting**: Set the futures intraday margin setting
- **Show Account**: Returns one account; a currency code such as `BTC` in place of the id returns the primary account for that currency.
- **Show Address**: Returns one receive address of an account.
- **Show Deposit**: Returns one deposit.
- **Show Transaction**: Returns one transaction; poll it to see when an asynchronous send reaches `completed`.
- **Show Withdrawal**: Returns one withdrawal.
- **Withdraw Funds**: Moves a fiat amount out of a fiat account using a payment method. Without `commit: true` it only creates the withdrawal (status `created`) and nothing moves until Commit.

Connect Coinbase in General Input: https://www.generalinput.com/apps/coinbase