We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop
https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_postorders#stop-orders
Action Items:
types.OrderType
The payload to create a stop order is not as describe in the doc. By setting type to "stop", the API will give error response with status code 400:
type
"stop"
{"message": "Invalid order_type stop"}
Instead, you have to submit the payload as follows to create a stop order:
{ "price": "3000", "product_id": "ETH-USD", "size": "0.001", "side": "sell", "type": "limit", "stop": "entry", "stop_price": "2500" }
That is, the required fields in the payload for a stop order are:
"limit"
"entry"
"loss"
stop_price
The life cycle for a stop order is just like normal limit order, with an extra activate event at the beginning when it is submitted:
activate
The text was updated successfully, but these errors were encountered:
https://exchange.coinbase.com/markets
Sorry, something went wrong.
No branches or pull requests
https://docs.cdp.coinbase.com/exchange/reference/exchangerestapi_postorders#stop-orders
Action Items:
types.OrderType
The payload to create a stop order is not as describe in the doc.
By setting
type
to"stop"
, the API will give error response with status code 400:Instead, you have to submit the payload as follows to create a stop order:
That is, the required fields in the payload for a stop order are:
type
as"limit"
stop
field ("entry"
or"loss"
)stop_price
fieldThe life cycle for a stop order is just like normal limit order, with an extra
activate
event at the beginning when it is submitted:The text was updated successfully, but these errors were encountered: