# Insufficient Balance

**URL:** <https://forum.alpaca.markets/t/insufficient-balance/13697>\
**Category:** App-Integration\
**Created:** [February 17, 2024, 9:04pm UTC](https://forum.alpaca.markets/t/insufficient-balance/13697 "2024-02-17T21:04:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![biggerrisk](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@biggerrisk](https://forum.alpaca.markets/u/biggerrisk)\
**Post date:** [February 17, 2024, 9:04pm UTC](https://forum.alpaca.markets/t/insufficient-balance/13697/1 "2024-02-17T21:04:07Z")

</div>

Under Paper trading account, I am getting this error trying to submit a sell market order on BTC.

market\_order\_data = MarketOrderRequest(  
symbol=“BTC/USD”,  
notional=25000,  
side=OrderSide.SELL,  
time\_in\_force=TimeInForce.GTC  
)

market\_order = trading\_client.submit\_order(  
order\_data=market\_order\_data  
)

Error: {“available”:“0”,“balance”:“0”,“code”:40310000,“message”:“insufficient balance for BTC (requested: 0.495057308, available: 0)”,“symbol”:“USD”}

---

<div class="post-metadata">

**Author:** ![biggerrisk](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@biggerrisk](https://forum.alpaca.markets/u/biggerrisk)\
**Post date:** [February 17, 2024, 9:13pm UTC](https://forum.alpaca.markets/t/insufficient-balance/13697/2 "2024-02-17T21:13:44Z")

</div>

Update. Changed my order to “BUY” and was filled. Whats the problem with “sell”? I guess its looking for any long position to sell but Im trying to submit a short.

---

<div class="post-metadata">

**Author:** ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)\
**Post date:** [February 19, 2024, 2:47am UTC](https://forum.alpaca.markets/t/insufficient-balance/13697/3 "2024-02-19T02:47:22Z")

</div>

@biggerrisk You are correct. The original order was trying to sell BTC and you didn’t hold any BTC. Alpaca doesn’t support shorting crypto.

---

<div class="post-metadata">

**Author:** ![Vishal\_C](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/vishal_c/32/5760_2.png) [@Vishal\_C](https://forum.alpaca.markets/u/Vishal_C)\
**Post date:** [June 23, 2024, 4:16am UTC](https://forum.alpaca.markets/t/insufficient-balance/13697/5 "2024-06-23T04:16:56Z")

</div>

I am hitting the same error.  
When I query positions query it says I have 0.071761091 . So I issue a limit sell of all the quantity available but it errors out saying available as 0.0012621. Is there a way to do a sell all without passing the notional value?

This is the response from the positions api  
{  
“asset\_id”: “64bbff51-59d6-4b3c-9351-13ad85e3c752”,  
“symbol”: “BTCUSD”,  
“exchange”: “CRYPTO”,  
“asset\_class”: “crypto”,  
“asset\_marginable”: false,  
“qty”: “0.071761091”,  
“avg\_entry\_price”: “64352.274611301”,  
“side”: “long”,  
“market\_value”: “4628.136552360516”,  
“cost\_basis”: “4617.989434439”,  
“unrealized\_pl”: “10.147117921516”,  
“unrealized\_plpc”: “0.0021973021085417”,  
“unrealized\_intraday\_pl”: “10.147117921955310609”,  
“unrealized\_intraday\_plpc”: “0.002197302108637”,  
“current\_price”: “64493.676”,  
“lastday\_price”: “64493.676”,  
“change\_today”: “0”,  
“qty\_available”: “0.0012621”  
},

See error response below.  
“{“available”:“0.0012621”,“balance”:“0.071761091”,“code”:40310000,“message”:“insufficient balance for BTC (requested: 0.071761091, available: 0.0012621)”,“symbol”:“USD”}”

---

<div class="post-metadata">

**Author:** ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)\
**Post date:** [June 24, 2024, 3:35pm UTC](https://forum.alpaca.markets/t/insufficient-balance/13697/6 "2024-06-24T15:35:42Z")

</div>

@Vishal_C It appears you may have an existing sell order for BTC? That is why ‘available’ is only .0012621. There must be another order which is ‘reserving’ some of your position.

There are two solutions. 2) cancel the other order or 2) on the dashboard, select the position from the "Positions’ list and click “Liquidate”. You will then see a popup with the option to “cancel all open orders”. Select that and it will auto cancel any open orders for you.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/b/b4df2cfe144e39768f85db268a403a2bca404aa8.jpeg)
