curl --request GET \
--url https://int-api.mx.com/users/{user_guid}/investment_holdings \
--header 'Accept-Version: <accept-version>' \
--header 'Authorization: Basic <encoded-value>'{
"investment_holdings": [
{
"account_guid": "ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1",
"cost_basis": 827,
"coupon_yield": null,
"currency_code": "USD",
"current_price": 15,
"daily_change": 2.5,
"description": "Guggenheim Defensive Equity ETF",
"expiration": null,
"face_value": 1000,
"frequency": "ANNUALLY",
"guid": "HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2",
"market_value": 989.5,
"maturity_date": null,
"percentage_change": 0.2,
"purchase_price": 26.3,
"quantity": "5000.0",
"rate": null,
"strike_price": null,
"symbol": "DEF",
"term": null,
"today_ugl_amount": 200,
"today_ugl_percentage": 0.27,
"total_ugl_amount": 20000,
"total_ugl_percentage": 26.67,
"unvested_quantity": null,
"unvested_value": null,
"user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54",
"vested_quantity": null,
"vested_value": null,
"created_at": "2025-02-13T18:08:00+00:00",
"current_price_as_of": "2023-11-06T00:00:00Z",
"issue_date": "2015-08-15",
"vesting_start_date": null,
"vesting_end_date": null,
"put_or_call": null,
"holding_type": "MUTUAL_FUND",
"term_unit": null
}
],
"pagination": {
"current_page": 1,
"per_page": 25,
"total_entries": 1,
"total_pages": 1
}
}List holdings by user
curl --request GET \
--url https://int-api.mx.com/users/{user_guid}/investment_holdings \
--header 'Accept-Version: <accept-version>' \
--header 'Authorization: Basic <encoded-value>'{
"investment_holdings": [
{
"account_guid": "ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1",
"cost_basis": 827,
"coupon_yield": null,
"currency_code": "USD",
"current_price": 15,
"daily_change": 2.5,
"description": "Guggenheim Defensive Equity ETF",
"expiration": null,
"face_value": 1000,
"frequency": "ANNUALLY",
"guid": "HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2",
"market_value": 989.5,
"maturity_date": null,
"percentage_change": 0.2,
"purchase_price": 26.3,
"quantity": "5000.0",
"rate": null,
"strike_price": null,
"symbol": "DEF",
"term": null,
"today_ugl_amount": 200,
"today_ugl_percentage": 0.27,
"total_ugl_amount": 20000,
"total_ugl_percentage": 26.67,
"unvested_quantity": null,
"unvested_value": null,
"user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54",
"vested_quantity": null,
"vested_value": null,
"created_at": "2025-02-13T18:08:00+00:00",
"current_price_as_of": "2023-11-06T00:00:00Z",
"issue_date": "2015-08-15",
"vesting_start_date": null,
"vesting_end_date": null,
"put_or_call": null,
"holding_type": "MUTUAL_FUND",
"term_unit": null
}
],
"pagination": {
"current_page": 1,
"per_page": 25,
"total_entries": 1,
"total_pages": 1
}
}Authorizations
The MX Platform API requires basic access authentication using your client_id and api_key. These credentials must be Base64 encoded and included in the Authorization header of each API request to ensure secure access.
Here's an example using curl to access v20250224. Replace https://int-api.mx.com/endpoint with the actual API endpoint you wish to access and your Base64 encoded client_id and api_key.
curl -L -X POST `https://int-api.mx.com/endpoint' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Accept-Version: v20250224'
-H 'Authorization: Basic BASE_64_ENCODING_OF{client_id:api_key}'Headers
MX Platform API version.
"v20250224"
Path Parameters
The unique identifier for a user, beginning with the prefix USR-.
Query Parameters
Results are paginated. Specify current page.
This specifies the number of records to be returned on each page. Defaults to 25. The valid range is from 10 to 1000. If the value exceeds 1000, the default value of 25 will be used instead.
Response
OK
Hide child attributes
Hide child attributes
The unique identifier for an account. Defined by MX.
"ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1"
The original value of an asset for tax purposes, usually the purchase price, used to calculate capital gains or losses. Accumulated price.
827
The rate of return the bonds coupon rate generates.
null
The three-character ISO 4217 currency code, for example, USD.
"USD"
The present market price of a single unit of the holding (for example, stock price per share).
15
The daily change in the current_price of the holding since the previous trading day.
2.5
A brief description of the holding, such as the company name for stocks or the bond type for bonds.
"Guggenheim Defensive Equity ETF"
The expiration date associated with the holding.
null
The nominal value of a bond or fixed-income security, paid to the holder at maturity.
1000
The frequency of the interest paid on the bond (i.e. Annually, Monthly, etc.)
"ANNUALLY"
The unique identifier for the holding. Defined by MX.
"HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2"
The current market value of the holding, calculated as the current price times the number of units (shares) owned.
989.5
The maturity date associated with the holding.
null
The percent change in the current_price of the holding compared to a previous time period. It is the percentage change that reflects the daily_change.
0.2
The average price paid for the holding.
26.3
The number of units of the holding owned (for example, number of shares of stock).
"5000.0"
The interest on the bond, subject to determining the payout amount of the bond.
null
The strike price associated to the option.
null
The ticker symbol or unique identifier of the holding, used in stock exchanges.
"DEF"
The length of time until the bond's principal amount is due to be repaid. It is the period from when the bond is issued until it reaches its maturity date.
null
The unrealized gain/loss amount for today.
200
The unrealized gain/loss percentage for today.
0.27
The total unrealized gain/loss amount for an investment.
20000
The total unrealized gain/loss for the holding since it was acquired.
26.67
The number of units (for example, shares) of the holding that are not yet vested or owned outright by the holder.
null
The value of the portion of the holding that is unvested.
null
The unique identifier for the user. Defined by MX.
"USR-fa7537f3-48aa-a683-a02a-b18940482f54"
The number of units (for example, shares) of the holding that are vested and fully owned by the holder.
null
The value of the portion of the holding that is vested and fully owned by the holder.
null
The date and time the investment holding was created, represented in ISO 8601 format with a timestamp.
"2025-02-13T18:08:00+00:00"
The date and time when the current price was last updated, represented in ISO 8601 format with a timestamp.
"2023-11-06T00:00:00Z"
The date on which a security was issued or made available for sale.
"2015-08-15"
The date from which the vesting schedule for a holding begins.
null
The date from which the vesting schedule for a holding ends.
null
States whether the option is a PUT or CALL.
null
The type of investment (e.g., equity, fixed income, mutual fund, etc.)
"MUTUAL_FUND"
The unit type of the term associated to the bond. (Year, Month, etc.)
null
Hide child attributes
Hide child attributes
The page delivered by the current response.
1
The number of records delivered with each page.
25
The total number of records available.
1
The total number of pages available.
1

