Skip to content

Fetch Balance Method

This method is used to get balance of the user.

It does not require any parameters. In response, it returns the balance of the user.

Request example:

shell
curl 'https://api.ibuy.exchange/market.v1.PubMarketService/FetchBalance' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'
typescript
const marketService = createClient(ibuy.marketv1.PubMarketService, transport)

const response = await marketService.fetchBalance({})

Response example:

json
{
  "balance": "1000"
}