REST only: When sending market orders, only
size
orfunds
can be included on the order, not both.
Why this change was done?
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_postorders
When placing a market order you can specify
funds
and/orsize
. Funds limit how much of your quote currency account balance is used and size limits the bitcoin amount transacted.
Documentation still says that both can be used…
But my main problem is this:
For
market
buy
orders wherefunds
is specified, thefunds
amount is put on hold. If onlysize
is specified, all of your account balance (in the quote account) is put on hold for the duration of the market order (usually a trivially short time). For asell
order, thesize
in BTC is put on hold. Ifsize
is not specified (and onlyfunds
is specified), your entire BTC balance is put on hold for the duration of the market order.
I am making market
buy
orders specifying size
! I also specified funds
to avoid holding all balance. That “usually a trivially short time” is not short enough! I had orders failing with insufficient balance in past, that is why I started to specify both parameters and it was working good until new validation changes was made.
With new validation changes, has hold rules also changed? Or should I expect my orders to fail again?