POST
/
v1
/
portfolios
/
{portfolio_id}
/
accept_quote
Accept Quote
curl --request POST \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/accept_quote \
  --header 'Content-Type: application/json' \
  --data '{
  "product_id": "<string>",
  "side": "BUY",
  "client_order_id": "f69a20b1-4ac4-420e-90b5-814a12565bfa",
  "quote_id": "f69a20b1-4ac4-420e-90b5-814a12565bfa",
  "settl_currency": "<string>"
}'
{
  "order_id": "<string>"
}

Path Parameters

portfolio_id
string
required

The ID of the portfolio that owns the order

Body

application/json
product_id
string
required
side
enum<string>
required
  • UNKNOWN_ORDER_SIDE: nil value
  • BUY: Buy order
  • SELL: Sell order
Available options:
BUY,
SELL
client_order_id
string
required

A client-generated ID used for reference purposes (note: order will be rejected if this ID is not unique among all currently active orders)

Example:

"f69a20b1-4ac4-420e-90b5-814a12565bfa"

quote_id
string
required

A quote id that was returned from the quote request

Example:

"f69a20b1-4ac4-420e-90b5-814a12565bfa"

settl_currency
string

Response

200 - application/json

A successful response.

order_id
string