Začínáme · Chyby
Nedostatečná pozice
Subúčet nedrží tolik kryptoměny, kolik chcete prodat.
422
INSUFFICIENT_POSITIONPříčina
- Prodávané množství je větší než dostupná pozice subúčtu, nebo subúčet kryptoměnu nedrží.
Řešení
- Zjistěte dostupné množství přes GET /v1/subaccounts/{externalClientRef}/positions, nebo prodejte vše s sellAll true; pokyn nevznikl.
Příklad odpovědi
422application/problem+json
{
"type": "https://developers.coinero.cz/errors/insufficient-position",
"title": "Insufficient position",
"status": 422,
"code": "INSUFFICIENT_POSITION",
"detail": "The subaccount does not hold enough of the cryptocurrency to sell this quantity. Read the available quantity from GET /v1/subaccounts/{externalClientRef}/positions. No order was created.",
"requestId": "0HN7GK4L2M9PQ"
}