The Investment Model

This section gives an overview of Embed Investments, what the model looks like, creating, modifying and retrieving investments

{
  "investment_id":"166234af-648a-4e5a-b844-595d339a0801",
  "account_id":"033f5d3d00354d28961031efe9ae2938",
  "product_code":"PRCDE1396226130",
  "asset_type":"stock-portfolio",
  "asset_in_index":false,
  "index_id":null,
  "current_units":"0.0000",
  "currency":"USD",
  "current_value":"0",
  "investment_returns":"0",
  "change_today":"0.0",
  "created_on":"2021-05-29T16:35:46.328371+00:00",
  "pending_deposits":[],
  "pending_sales":[]
}
Sample Investment Object

Attributes

investment_id
string
Unique identifier of the investment
account_id
string
Unique Identifier of account owning
product_code
string
generated product code of the investment
asset_type
string
The type of asset the investment belongs to
asset_in_index
boolean
Returns true or false depending on whether asset is part of an index
index_id
string
returns unique identifier of index if asset belongs to an index
current_units
string
current units on the investment
currency
string
the currency code which follows ISO-4217 standard
current_value
string
current value of the investment
investment_returns
string
current total investment returns
change_today
string
changes made to investment as at today
created_on
string
timestamp of the investment
pending_deposits
list
deposits into this investment awaiting verification
pending_sales
list
sale of investments that are awaiting fufillment