Get Market Value of all Security Groups
Retrieve a trading account's collective market value of all security groups
Introduction
This GET endpoint enables you to retrieve the collective market value of different security groups in a specific trading account.
There are five required parameters that must be provided in the request:
Authorization (header). This is the authorization token from the very first token request. The value of this header must have the following format:
Bearer BQ898r9fefi
(Bearer
+ 1 space + the token).API version (path). Unless necessary, leave it at "1.0".
accountID (path). This is the internal ID of the trading account whose market value of different security groups must be listed.
Here's the final template for this API request:
Response
In response to this API request, you'll receive a JSON file with the collective market value of different security groups in the specified trading account.
where:
Parameter | Description |
---|---|
Name | The security group. Possible values:
|
MarketValue | The collective market value of all securities of this group in this trading account. |
Relationship Between Security Types and Groups
The following table lists security types that populate each security group:
Security Group | Corresponding Security Types |
---|---|
FixedIncome |
|
Equity |
|
Forex |
|
Futures |
|
Options |
|
Index |
|
Cryptocurrency |
|
Other |
|
Common Mistakes
Here are some of the common mistakes that developers make when attempting to fetch the collective market value of different security groups in a specific trading account.
Specifying the User ID Instead of the Trading Account ID
Another common mistake when making this request is specifying the user ID instead of the user's trading account ID. Doing so will result in the 500 status code and the following error message:
Last updated