# How do I get the wallet balance from Bisq programmatically?

**URL:** <https://bisq.community/t/how-do-i-get-the-wallet-balance-from-bisq-programmatically/10543>\
**Category:** Support\
**Created:** [March 9, 2021, 1:44am UTC](https://bisq.community/t/how-do-i-get-the-wallet-balance-from-bisq-programmatically/10543 "2021-03-09T01:44:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SomeBisqUser](https://bisq.community/letter_avatar/somebisquser/32/6_22734026db12803ebb3e059622ac3534.png) [@SomeBisqUser](https://bisq.community/u/SomeBisqUser)\
**Post date:** [March 9, 2021, 1:44am UTC](https://bisq.community/t/how-do-i-get-the-wallet-balance-from-bisq-programmatically/10543/1 "2021-03-09T01:44:16Z")

</div>

I have Bisq installed on Windows. Now I’m trying to fetch the current balance from PHP CLI (in practice meaning “from the command line”).

I already tried to copy the `bisq_BTC.wallet` to a “Bisq” dir in the Bitcoin Core datadir (renamed to `wallet.dat`) and make it open that, but it’s apparently a completely different format, not recognized by Bitcoin Core. So that was a dud.

I’ve read the manual and find not one word about any API or command-line parameters such as: `bisq.exe --grab-btc-wallet-balance`.

How do I grab the balance without looking with my eyes in the GUI?

---

<div class="post-metadata">

**Author:** ![MnM](https://bisq.community/user_avatar/bisq.community/mnm/32/257_2.png) [@MnM](https://bisq.community/u/MnM)\
**Post date:** [March 9, 2021, 10:17am UTC](https://bisq.community/t/how-do-i-get-the-wallet-balance-from-bisq-programmatically/10543/2 "2021-03-09T10:17:22Z")

</div>

You can export the x-zpub’s from Account - wallet info.

---

<div class="post-metadata">

**Author:** ![SomeBisqUser](https://bisq.community/letter_avatar/somebisquser/32/6_22734026db12803ebb3e059622ac3534.png) [@SomeBisqUser](https://bisq.community/u/SomeBisqUser)\
**Post date:** [March 9, 2021, 8:10pm UTC](https://bisq.community/t/how-do-i-get-the-wallet-balance-from-bisq-programmatically/10543/3 "2021-03-09T20:10:23Z")

</div>

I have no idea what “x-zpub” is, even after searching online. But having to manually export stuff all the time negates the whole point?

---

<div class="post-metadata">

**Author:** ![sqrrm](https://bisq.community/letter_avatar/sqrrm/32/6_22734026db12803ebb3e059622ac3534.png) [@sqrrm](https://bisq.community/u/sqrrm)\
**Post date:** [March 9, 2021, 9:30pm UTC](https://bisq.community/t/how-do-i-get-the-wallet-balance-from-bisq-programmatically/10543/4 "2021-03-09T21:30:57Z")

</div>

With the API it is possible to do this. The plan is to publicly release this in the next release, but please take a look at the guide here [bisq/api-beta-test-guide.md at master · bisq-network/bisq · GitHub](https://github.com/bisq-network/bisq/blob/master/apitest/docs/api-beta-test-guide.md#checking-balances)
