Coinbase Exchange
Exchange Sandbox
A public sandbox is available for testing API connectivity and web trading.
Sandbox is subset
The sandbox hosts a subset of the production order books and supports all exchange functionality except Transfers. You can add unlimited fake funds for testing.
Login sessions and API keys are separate from production. Log into the sandbox web interface to create an API key, deposit/withdraw funds, etc.
Sandbox URLs
Use the following URLs to test your API connectivity. See the Runbook for Production URLs.
API | URL |
---|---|
REST API | VAR::REST_URL_SAND |
Websocket Feed | VAR::WSS_URL_SAND |
Websocket Direct Feed | VAR::WSS_DIRECT_URL_SAND |
FIX API - Order Entry 4.2 | VAR::FIX_URL_SAND_ORDER_ENTRY_FOUR |
FIX API - Order Entry 5.0 SP2 | VAR::FIX_URL_SAND_ORDER_ENTRY_FIVE |
FIX API - Market Data 5.0 SP2 | VAR::FIX_URL_SAND_MARKET_DATA_FIVE |
Sandbox SSL Certificate
Your FIX SSL client must validate the following sandbox FIX server SSL certificate:
Unsupported Features
The Transfer endpoints are not available for testing in the Sandbox:
- Withdraw to payment
- Deposit from payment
- Deposit from Coinbase account
- Withdraw to crypto address
- Withdraw to Coinbase Account
Creating API Keys
To create an API key in the sandbox web interface:
- Go to the sandbox web interface
- Create an account or sign in.
- Go to API in your profile dropdown menu.
- Click New API Key.
Managing Funds
To add or remove funds in the sandbox web interface:
- Go to the Portfolios tab.
- Click the Deposit and Withdraw buttons as you would on the production web interface.