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:
Name
The security group.
Possible values:
FixedIncome
Equity
Forex
Futures
Other
Options
Index
Cryptocurrency
Cash
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:
FixedIncome
BankersAcceptance
CertificateOfDeposit
MortgageObligation
CorporateBond
CommercialPaper
CorporatePrivatePlacement
FederalHousingAuthority
FederalHomeLoan
FederalNationalMortgageAssociation
GovernmentNationalMortgageAssociation
TreasuriesPlusAgencyDebenture
MortgageInterestOnly
MortgagePrincipleOnly
MortgagePrivatePlacement
MunicipalBond
StudentLoanMarketingAssociation
TimeDeposit
UsTreasuryBill
CatsTigersLions
ConvertibleBond
MortgageIoette
Equity
CommonStock
MutualFund
PreferredStock
Warrant
Right
ETF
DepositoryReceipt
CoveredWarrant
Unit
Forex
ForeignExchangeContract
Futures
Future
Options
Option
Index
Index
Cryptocurrency
Cryptocurrency
Other
MiscellaneousPassThru
NoIsitcSecurityType
RepurchaseAgreement
ReverseRepurchaseAgreement
WildcardEntry
FakeStockForNonStandartOption
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