Creating a Coinbase API Key

Also see Coinbase's docs on creating Advanced Trade API Keys. Log in to your Coinbase account, navigate to the API section by clicking on the "API" option in the sidebar on the left and access the API Key Management Page.

On the API Key management page, click the "Create API key" button. A window will pop up for you to configure the API key. Choose a name for your API key.

To trade both Spot and Perpetual (Perps) contracts, you need two separate keys, each associated with their respective portfolio.

Under Portfoilio, select "Default" to create a API key for trading your spot Portfolio. Select "Perpetuals" to create an API key to trade your Perpetuals Portfolio. If you want to trade both, you will need to create both keys and enter them both in the Terminal.

Please ensure to enable the following permissions:

  • View: Allows read-only access to your portfolio.

  • Trade: Enables trade execution on your behalf.

Once you’ve configured the settings, click "Create & download" and follow the 2FA instructions to generate the API key.

Existing Legacy API Keys are still supported, but creation of new legacy key has been disabled in the Coinbase app. If you have one, just toggle the checkbox when adding the key in the Terminal.

Last updated