I’m trying to execute a market order sell in Python. I am expecting the order to fail as I currently have the token staked (so it’s unavailable). I would expect there to be some decent error message returned but I’m just getting back a 400!
payload = {
“client_order_id”: “7268540131810426987”,
“product_id”: “ADA-GBP”,
“side”: “SELL”,
“order_configuration”: {
“market_market_ioc”: {
“base_size”: “10.0”
}
}
}
Endpoint: /api/v3/brokerage/orders
400 Client Error: Bad Request for url: https://api.coinbase.com/api/v3/brokerage/orders
Is there a problem with my order above resulting in the 400 or is it strange that a more descriptive error message is not being returned?