Skip to main content
GET
/
api
/
v1
/
balance
/
portfolio
Get aggregated portfolio fiat balances
curl --request GET \
  --url https://integration-api.meshconnect.com/api/v1/balance/portfolio \
  --header 'X-Client-Id: <api-key>' \
  --header 'X-Client-Secret: <api-key>'
{
  "content": {
    "fiatBalances": [
      {
        "symbol": "USD",
        "cash": 3.099,
        "buyingPower": 3.099
      },
      {
        "symbol": "EUR",
        "cash": -102.88,
        "buyingPower": 1293.596
      }
    ]
  },
  "status": "ok",
  "message": "",
  "errorHash": "4f640fa9fdd823255a4603a1e2d32a1ea31e1f21",
  "errorType": ""
}

Authorizations

X-Client-Secret
string
header
required

Contact Mesh to get client Secret

X-Client-Id
string
header
required

Contact Mesh to get client Id

Query Parameters

UserId
string

End user ID to get the aggregated portfolio for.

Response

OK

status
enum<string>
Available options:
ok,
serverFailure,
permissionDenied,
badRequest,
notFound,
conflict,
tooManyRequest,
locked,
unavailableForLegalReasons
message
string | null

A message generated by the API

displayMessage
string | null

User-friendly display message that can be presented to the end user

errorHash
string | null

An error grouping hash from string components and caller information. Used by bugsnag on FE for correct error grouping

errorType
string | null

Strictly-typed error type that is explaining the reason of an unsuccessful status of the operation. All possible error types are available in the documentation.

errorData
any
content
object
I