product_book
Pack: coinbase-exchange · Endpoint: https://gateway.pipeworx.io/coinbase-exchange/mcp
Coinbase Exchange (US-regulated crypto venue) live order book — bids + asks for a crypto pair like “BTC-USD”. Levels 1-3 control depth. Use for spread analysis, liquidity assessment, market making.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
product_id | string | yes | |
level | number | no |
Example call
Arguments
{
"product_id": "BTC-USD"
}
curl
curl -X POST https://gateway.pipeworx.io/coinbase-exchange/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"product_book","arguments":{"product_id":"BTC-USD"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('product_book', {
"product_id": "BTC-USD"
});
More examples
{
"product_id": "ETH-USD",
"level": 2
}
Response shape
| Field | Type | Description |
|---|---|---|
sequence | integer | Sequence number |
bids | array | Bid levels |
asks | array | Ask levels |
Full JSON Schema
{
"type": "object",
"properties": {
"sequence": {
"type": "integer",
"description": "Sequence number"
},
"bids": {
"type": "array",
"items": {
"type": "array",
"description": "[price, size, num_orders]"
},
"description": "Bid levels"
},
"asks": {
"type": "array",
"items": {
"type": "array",
"description": "[price, size, num_orders]"
},
"description": "Ask levels"
}
},
"description": "Orderbook snapshot"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"coinbase-exchange": {
"url": "https://gateway.pipeworx.io/coinbase-exchange/mcp"
}
}
}
See Getting Started for client-specific install steps.