Custom securities
Your organization can now create custom securities to represent investments that are not in Gorila's database, such as real estate or stakes in private companies, and provide their prices.
To create a custom security, use the Create Security endpoint with the CUSTOM type, informing name, description, assetClass and initialDate (maturityDate is optional). The response returns the new security's id, which you use to register prices and transactions.
// REQUEST
// POST https://core.gorila.com.br/securities
{
"type": "CUSTOM",
"name": "Apartment",
"description": "Apartment located in São Paulo",
"assetClass": "TANGIBLE",
"initialDate": "2022-04-04"
}
Since these securities have no market source, the organization provides their prices: use Upsert Security Prices to send a list of prices (prices, with referenceDate and price) and List Security Prices to read them. The prices apply to every portfolio in your organization that holds the security. Custom securities are available only to your organization's API keys.
Learn more in Custom Security.