curl --request POST \
--url https://api.coinbase.com/api/v3/brokerage/orders/edit_preview \
--header 'Content-Type: application/json' \
--data '{
"order_id": "<string>",
"price": "19000.00",
"size": "0.001"
}'
{
"errors": [
{
"edit_failure_reason": "<any>",
"preview_failure_reason": "<any>"
}
],
"slippage": "<string>",
"order_total": "<string>",
"commission_total": "<string>",
"quote_size": "10",
"base_size": "0.001",
"best_bid": "<string>",
"best_ask": "<string>",
"average_filled_price": "<string>"
}
Preview an edit order request with a specified new size
, or new price
.
curl --request POST \
--url https://api.coinbase.com/api/v3/brokerage/orders/edit_preview \
--header 'Content-Type: application/json' \
--data '{
"order_id": "<string>",
"price": "19000.00",
"size": "0.001"
}'
{
"errors": [
{
"edit_failure_reason": "<any>",
"preview_failure_reason": "<any>"
}
],
"slippage": "<string>",
"order_total": "<string>",
"commission_total": "<string>",
"quote_size": "10",
"base_size": "0.001",
"best_bid": "<string>",
"best_ask": "<string>",
"average_filled_price": "<string>"
}
A successful response.
The response is of type object
.
Was this page helpful?