Coinbase Perpetuals
Connect Coinbase perpetual futures to Coinrule with a CFM-enabled CDP API key — scope picker, key format, and limits.
Coinbase offers perpetual futures to eligible US customers through Coinbase Financial Markets (CFM). Coinrule connects to them as a separate coinbase_perps account on the Coinbase tile. If you only trade spot, see the Coinbase guide.
How do I connect Coinbase perpetuals?
Enable perpetual futures on Coinbase
Your Coinbase account must be approved for CFM perpetual futures. Coinbase shows the enrolment in the Advanced Trade futures section.
Create a CDP API key with futures access
In the Coinbase Developer Platform create an API key with View and Trade permissions that covers futures. Do not grant transfer or withdrawal permissions. Download the JSON key file — the private key is shown only once.
Open the Coinbase tile and choose Perps
Go to cloud.coinrule.com/connect, select Coinbase, and pick Perps in the account scope. The Sign in with Coinbase button disappears, because OAuth cannot grant futures access.
Paste the key name and private key
Paste the key
nameas the API Key and the fullprivateKeyblock (ECDSA PEM including the header line, or an Ed25519 key) as the API Secret, then press Connect.
Enable these permissions
- ✓View— read balances and order history.
- ✓Trade— place trades on your behalf.
Leave these OFF
- ✕Transfer
Notes
- ℹEnable Futures (Perps only)
OAuth is spot only
Sign in with Coinbase covers spot trading. Perpetuals always require a CDP API key with CFM permission; a key without it fails validation and no coinbase_perps account is created.
Which markets are supported?
Coinbase's US perpetual-style futures (CFTC-regulated, settled in USD), for example the BTC and ETH perp-style contracts. In Coinrule they appear as BTC/USD and ETH/USD perps on the Coinbase perps account. Coinbase International Exchange (INTX) perpetuals are not available through this connection.
Which timeframes are available?
Coinbase does not provide 1m candles. Use 5m, 15m, 1h, 4h, or 1d; a strategy that asks for 1m on Coinbase is rejected at launch with an explicit validation error.
Can I paper trade Coinbase perpetuals?
Paper trading for Coinbase perpetuals is not yet available. Use the paper account of another perpetuals venue such as Hyperliquid or Bitget to rehearse a perp strategy, or trade Coinbase spot on paper.
Troubleshooting
| Error | Fix |
|---|---|
| Key rejected for missing CFM permission | Create a CDP key with futures/trade access on an account approved for perpetuals |
COINBASE_INVALID_PRIVATE_KEY | Paste the complete PEM including the header and footer lines, or a valid Ed25519 key; do not retype it |
1m interval rejected | Switch the strategy to 5m or longer |
| Account missing after Sign in with Coinbase | OAuth creates a spot account only; connect perps with a CDP key |
Get started
- Learn how Coinrule automates Coinbase trading on the Coinrule website.
- Sign in to Coinrule Cloud and connect Coinbase perpetuals from the Connect page.