> For the complete documentation index, see [llms.txt](https://3commas.gitbook.io/3commas-official-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3commas.gitbook.io/3commas-official-api-docs/account/sell-all-to-usd.md).

# Sell all to USD

**Description:** Sells all assets on the exchange account in USD, creating orders on the exchange<br>

**Permission:** ACCOUNTS\_WRITE\
**Security:** SIGNED<br>

{% hint style="info" %}
This endpoint works for the following exchanges: *Binance Spot*, *Binance Margin*, *Binance US*, *Coinbase Advanced Spot*, *Gemini Spot*, *Kraken Spot*, *Bybit Spot*, *GateIo*, *OKX Spot*, *Huobi Spot*, *Bitfinex Spot*, *Kucoin Spot*, *Bitstamp Spot*
{% endhint %}

\ <br>

***

<mark style="color:green;">**POST**</mark>

<mark style="color:green;">**/ver1/accounts/{account\_id}/sell\_all\_to\_usd**</mark>

***

<br>

{% hint style="warning" %}
When executing this request, all trading entities (bots, SmartTrade, trades, deals, orders, exception Signal Bot) will be stop and close at the 3Commas and the exchange
{% endhint %}

\ <br>

## Path Parameters<br>

**account\_id**     `integer`     <mark style="color:orange;">required</mark>\
Unique 3Commas ID for this exchange account entity

\ <br>

## Response Parameters<br>

{% hint style="info" %}
If successful, the response includes a copy of the updated [Account](/3commas-official-api-docs/account.md) entity.
{% endhint %}

<br>

## Example request<br>

```
/ver1/accounts/12345678/sell_all_to_usd
```

\ <br>

## Example Response and errors<br>

<details>

<summary>Status: 201 Created</summary>

\
\`\`\`json { "id": 12345678, "auto\_balance\_period": 12, "auto\_balance\_portfolio\_id": null, "auto\_balance\_currency\_change\_limit": null, "autobalance\_enabled": false, "hedge\_mode\_available": false, "hedge\_mode\_enabled": false, "is\_locked": false, "smart\_trading\_supported": true, "smart\_selling\_supported": true, "available\_for\_trading": {}, "stats\_supported": true, "trading\_supported": true, "market\_buy\_supported": true, "market\_sell\_supported": true, "conditional\_buy\_supported": true, "bots\_allowed": true, "bots\_ttp\_allowed": true, "bots\_tsl\_allowed": true, "gordon\_bots\_available": true, "multi\_bots\_allowed": true, "created\_at": "2024-08-29T14:16:10.830Z", "updated\_at": "2024-09-12T21:17:05.627Z", "last\_auto\_balance": null, "fast\_convert\_available": true, "grid\_bots\_allowed": true, "api\_key\_invalid": false, "market\_icon": "<https://3commas.io/img/exchanges/bybit.png>", "deposit\_enabled": false, "include\_in\_summary": true, "supported\_market\_types": \[ "spot" ], "primary\_display\_currency\_profit\_percentage": { "currency": "USD", "amount": "-1.18" }, "primary\_display\_currency\_profit": { "currency": "USD", "amount": "-0.389719012720540078530880508799462572957617268153" }, "day\_profit\_primary\_display\_currency\_percentage": { "currency": "USD", "amount": "0.0614" }, "day\_profit\_primary\_display\_currency": { "currency": "USD", "amount": "0.0200239312383869821608245791635003900071969565577" }, "primary\_display\_currency\_amount": { "currency": "USD", "amount": "32.609893809874959921469119491200537427042382731847" }, "total\_primary\_display\_currency\_profit": { "currency": "USD", "amount": -0.3897190127205401 }, "available\_include\_in\_summary": true, "api\_key": "gyTAiGCgRe1hctsA1J", "name": "New name exchange", "auto\_balance\_method": null, "auto\_balance\_error": null, "customer\_id": null, "subaccount\_name": null, "lock\_reason": null, "btc\_amount": "0.0005191667038391071501073142164609103680211753", "usd\_amount": "32.609893809874959921469119491200537427042382731847", "day\_profit\_btc": "0.000000166447295963256920306806738688145799350043270551", "day\_profit\_usd": "0.0200239312383869821608245791635003900071969565577", "day\_profit\_btc\_percentage": "0.03", "day\_profit\_usd\_percentage": "0.06", "btc\_profit": "-0.0000244065186818818498926857835390896319788247", "usd\_profit": "-0.389719012720540078530880508799462572957617268153", "usd\_profit\_percentage": "-1.18", "btc\_profit\_percentage": "-4.49", "total\_btc\_profit": "-2.440651868188185e-05", "total\_usd\_profit": "-0.3897190127205401", "pretty\_display\_type": "BybitSpot", "exchange\_name": "Bybit Spot", "market\_code": "bybit\_spot", "api\_keys\_state": "ok" } \`\`\`

</details>
