# Where do i get the accountId to liquidate?

**URL:** <https://community.tradovate.com/t/where-do-i-get-the-accountid-to-liquidate/4351>\
**Category:** API Developers\
**Created:** [April 3, 2022, 6:10pm UTC](https://community.tradovate.com/t/where-do-i-get-the-accountid-to-liquidate/4351 "2022-04-03T18:10:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Shannahan](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@Robert\_Shannahan](https://community.tradovate.com/u/Robert_Shannahan)\
**Post date:** [April 3, 2022, 6:10pm UTC](https://community.tradovate.com/t/where-do-i-get-the-accountid-to-liquidate/4351/1 "2022-04-03T18:10:53Z")

</div>

does it not work outside of market hours? Or is there a specific id like the orders i have to fetch for?

---

<div class="post-metadata">

**Author:** ![Alexander](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/alexander/32/988_2.png) [@Alexander](https://community.tradovate.com/u/Alexander)\
**Post date:** [April 4, 2022, 12:32pm UTC](https://community.tradovate.com/t/where-do-i-get-the-accountid-to-liquidate/4351/2 "2022-04-04T12:32:06Z")

</div>

It will not work outside of market hours - you’re placing an order technically (to zero out your position) so it needs to be during market hours. If it’s still giving you trouble, make sure you use the ID of one of your trading accounts. You can find the accounts associated with your user (typically one single account but some people like to trade multiple accounts) by calling the `/account/list` endpoint. It will return an array of at least one account for you to choose from. Make sure that you match the base URLs up - if you’re trying to liquidate on LIVE, use the LIVE endpoint for `/account/list` (and vice versa for simulation mode)
