Get accounts
GET /frontoffice/api/v3/accounts
Summary
Use this method to retrieve a list of all trading accounts with their basic information including account type and total balance.
Request
No request parameters.
Request example
GET /frontoffice/api/v3/accounts HTTP/1.1
Host: {host}
Authorization: Bearer JWT
Accept: */*
Response
In case of success, an array of objects will be returned.
Each object contains the following information:
accountId string
The trading account identifier.
accountName string
The account name.
accountType string
The account type.
Possible values:
HedgingNetting
totalBalanceInRAT decimal string
The total balance, in RAT.
isCopyTradingAccount boolean
Indicates if the account is Copy.
Response example β 200: OK
[
{
"accountId": "685a7eaa360f9e7416221a61",
"accountName": "B2TRADER Hedging account",
"accountType": "Hedging",
"totalBalanceInRAT": "6020.12",
"isCopyTradingAccount": false
},
{
"accountId": "6891e70db552ff9c6fbbccf5",
"accountName": "B2TRADER Netting account",
"accountType": "Netting",
"totalBalanceInRAT": "10987.39",
"isCopyTradingAccount": false
}
]
