curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/products{
"products": [
{
"id": "BTC-USD",
"base_increment": "1",
"quote_increment": "1",
"base_min_size": "100",
"quote_min_size": "100",
"base_max_size": "1000",
"quote_max_size": "1000",
"permissions": "PRODUCT_PERMISSION_READ",
"price_increment": "0.01",
"rfq_product_details": {
"tradable": true,
"min_notional_size": "<string>",
"max_notional_size": "<string>",
"min_base_size": "<string>",
"max_base_size": "<string>",
"min_quote_size": "<string>",
"max_quote_size": "<string>"
}
}
],
"pagination": {
"next_cursor": "<string>",
"sort_direction": "DESC",
"has_next": true
}
}List tradable products for a given portfolio.
curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/products{
"products": [
{
"id": "BTC-USD",
"base_increment": "1",
"quote_increment": "1",
"base_min_size": "100",
"quote_min_size": "100",
"base_max_size": "1000",
"quote_max_size": "1000",
"permissions": "PRODUCT_PERMISSION_READ",
"price_increment": "0.01",
"rfq_product_details": {
"tradable": true,
"min_notional_size": "<string>",
"max_notional_size": "<string>",
"min_base_size": "<string>",
"max_base_size": "<string>",
"min_quote_size": "<string>",
"max_quote_size": "<string>"
}
}
],
"pagination": {
"next_cursor": "<string>",
"sort_direction": "DESC",
"has_next": true
}
}ProductsService productsService = PrimeServiceFactory.createProductsService(client);
ListPortfolioProductsRequest request = new ListPortfolioProductsRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.build();
ListPortfolioProductsResponse response = productsService.listPortfolioProducts(request);
var productsService = new ProductsService(client);
var request = new ListPortfolioProductsRequest("PORTFOLIO_ID_HERE");
var response = productsService.ListPortfolioProducts(request);
productsService := products.NewProductsService(client)
request := &products.ListProducts{
PortfolioId: "PORTFOLIO_ID_HERE",
}
response, err := productsService.ListProducts(context.Background(), request)
prime_client = PrimeClient(credentials)
request = ListProducts(
portfolio_id="PORTFOLIO_ID_HERE",
)
response = prime_client.list_products(request)
primectl list-products --help
const productsService = new ProductsService(client);
productsService.listProducts({
portfolioId: 'PORTFOLIO_ID_HERE'
}).then(async (response) => {
console.log('Products: ', response);
})
The portfolio ID
Cursor used for pagination (last consumed record)
Number of items to retrieve
Sorting order
DESC, ASC A successful response.
Show child attributes
The product ID, written as BASE-QUOTE
"BTC-USD"
The smallest permitted unit of denomination for the base asset (varies by product)
"1"
The smallest permitted unit of denomination for the quote asset (varies by product)
"1"
The minimum size (in base asset units) for which an order can be placed
"100"
The minimum size (in quote asset units) for which an order can be placed
"100"
The maximum size (in base asset units) for which an order can be placed
"1000"
The maximum size (in quote asset units) for which an order can be placed
"1000"
Permissions given to the user for a product
PRODUCT_PERMISSION_READ, PRODUCT_PERMISSION_TRADE, PRODUCT_PERMISSION_LENDING "PRODUCT_PERMISSION_READ"
The smallest permitted price increment for the product
"0.01"
Show child attributes
Whether the product is tradable via RFQ
Deprecated: Value will be an empty string
Deprecated: Value will be an empty string
Minimum base size for RFQ
Maximum base size for RFQ
Minimum quote size for RFQ
Maximum quote size for RFQ
Was this page helpful?