curl --request PUT \
--url https://int-data.moneydesktop.com/holdings/{holding_guid} \
--header 'Content-Type: application/vnd.mx.nexus.v1+json' \
--header 'MD-SESSION-TOKEN: <api-key>' \
--data '
{
"holding": {
"cost_basis": 123,
"currency_code": "USD",
"metadata": "Additional Information",
"skip_webhook": false
}
}
'{
"holding": {
"account_guid": "ACT-a8ba7faa-6ce8-4e05-a8b4-bd02ae2b8b9d",
"allocations_cash": 88.0948,
"allocations_convertible": 48.6542,
"allocations_foreign_bond": 0.0139,
"allocations_foreign_stock": 87.8851,
"allocations_other": 0.0542,
"allocations_preferred": 43.5169,
"allocations_unknown": 0.023,
"allocations_us_bond": 0.0563,
"allocations_us_stock": 45.0999,
"bond_coupon_rate": 123,
"bond_coupon_rate_set_by": 1,
"bond_coupon_rate_set_by_name": "FEED",
"bond_maturity_date": "2015-04-13T00:00:00.000Z",
"bond_maturity_date_set_by": 1,
"bond_maturity_date_set_by_name": "FEED",
"cost_basis": 123,
"cost_basis_set_by": 1,
"cost_basis_set_by_name": "FEED",
"cost_basis_updated_at": "2015-04-13T12:01:23.000Z",
"created_at": "<string>",
"currency_code": "USD",
"currency_code_set_by": 1,
"currency_code_set_by_name": "FEED",
"daily_change": 123,
"daily_change_set_by": 1,
"daily_change_set_by_name": "FEED",
"deleted_at": "2015-04-13T12:01:23.000Z",
"description": "a description",
"description_set_by": 1,
"description_set_by_name": "<string>",
"equity_classification": 5,
"equity_classification_set_by": 2,
"equity_classification_set_by_name": "<string>",
"external_guid": "holding-be73487f-2cd2-4a99-b78c-2f8fb866cbed",
"fixed_income_classification": 123,
"fixed_income_classification_set_by": 123,
"fixed_income_classification_set_by_name": "<string>",
"feed_bond_coupon_rate": 123,
"feed_bond_maturity_date": "<string>",
"feed_cost_basis": 123,
"feed_currency_code": "<string>",
"feed_cusip": "<string>",
"feed_daily_change": 123,
"feed_description": "<string>",
"feed_equity_classification": 123,
"feed_fixed_income_classification": 123,
"feed_isin": "<string>",
"feed_market_value": 123,
"feed_purchase_price": 123,
"feed_sector": 123,
"feed_sedol": "<string>",
"feed_shares": 123,
"feed_symbol": "<string>",
"guid": "holding-be73487f-2cd2-4a99-b78c-2f8fb866cbed",
"holding_type": 1,
"holding_type_name": "EQUITY",
"holding_type_set_by": 1,
"holding_type_set_by_name": "FEED",
"is_deleted": true,
"isin": "<string>",
"isin_set_by": 1,
"isin_set_by_name": "FEED",
"large_core_weight": 0.053,
"large_growth_weight": 63.7687,
"large_value_weight": 0.0103,
"market_value": 618,
"market_value_set_by": 1,
"market_value_set_by_name": "FEED",
"member_is_managed_by_user": false,
"metadata": "Additional Information",
"mid_core_weight": 61.9756,
"mid_growth_weight": 0.4567,
"mid_value_weight": 0.0563,
"purchase_price": 35,
"purchase_price_set_by": 1,
"purchase_price_set_by_name": "FEED",
"sector": 205,
"sector_set_by": 1,
"sector_set_by_name": "FEED",
"sedol": null,
"sedol_set_by": 1,
"sedol_set_by_name": "FEED",
"shares": 125,
"shares_set_by": 1,
"shares_set_by_name": "FEED",
"small_core_weight": 0.5,
"small_growth_weight": 0.3,
"small_value_weight": 0.3,
"symbol": "HDP",
"symbol_set_by": 1,
"symbol_set_by_name": "FEED",
"updated_at": "2015-04-13T12:01:23.000Z",
"unknown_weight": 0.0521,
"user_guid": "USR-11141024-90b3-1bce-cac9-c06ced52ab4c"
}
}Update holding
curl --request PUT \
--url https://int-data.moneydesktop.com/holdings/{holding_guid} \
--header 'Content-Type: application/vnd.mx.nexus.v1+json' \
--header 'MD-SESSION-TOKEN: <api-key>' \
--data '
{
"holding": {
"cost_basis": 123,
"currency_code": "USD",
"metadata": "Additional Information",
"skip_webhook": false
}
}
'{
"holding": {
"account_guid": "ACT-a8ba7faa-6ce8-4e05-a8b4-bd02ae2b8b9d",
"allocations_cash": 88.0948,
"allocations_convertible": 48.6542,
"allocations_foreign_bond": 0.0139,
"allocations_foreign_stock": 87.8851,
"allocations_other": 0.0542,
"allocations_preferred": 43.5169,
"allocations_unknown": 0.023,
"allocations_us_bond": 0.0563,
"allocations_us_stock": 45.0999,
"bond_coupon_rate": 123,
"bond_coupon_rate_set_by": 1,
"bond_coupon_rate_set_by_name": "FEED",
"bond_maturity_date": "2015-04-13T00:00:00.000Z",
"bond_maturity_date_set_by": 1,
"bond_maturity_date_set_by_name": "FEED",
"cost_basis": 123,
"cost_basis_set_by": 1,
"cost_basis_set_by_name": "FEED",
"cost_basis_updated_at": "2015-04-13T12:01:23.000Z",
"created_at": "<string>",
"currency_code": "USD",
"currency_code_set_by": 1,
"currency_code_set_by_name": "FEED",
"daily_change": 123,
"daily_change_set_by": 1,
"daily_change_set_by_name": "FEED",
"deleted_at": "2015-04-13T12:01:23.000Z",
"description": "a description",
"description_set_by": 1,
"description_set_by_name": "<string>",
"equity_classification": 5,
"equity_classification_set_by": 2,
"equity_classification_set_by_name": "<string>",
"external_guid": "holding-be73487f-2cd2-4a99-b78c-2f8fb866cbed",
"fixed_income_classification": 123,
"fixed_income_classification_set_by": 123,
"fixed_income_classification_set_by_name": "<string>",
"feed_bond_coupon_rate": 123,
"feed_bond_maturity_date": "<string>",
"feed_cost_basis": 123,
"feed_currency_code": "<string>",
"feed_cusip": "<string>",
"feed_daily_change": 123,
"feed_description": "<string>",
"feed_equity_classification": 123,
"feed_fixed_income_classification": 123,
"feed_isin": "<string>",
"feed_market_value": 123,
"feed_purchase_price": 123,
"feed_sector": 123,
"feed_sedol": "<string>",
"feed_shares": 123,
"feed_symbol": "<string>",
"guid": "holding-be73487f-2cd2-4a99-b78c-2f8fb866cbed",
"holding_type": 1,
"holding_type_name": "EQUITY",
"holding_type_set_by": 1,
"holding_type_set_by_name": "FEED",
"is_deleted": true,
"isin": "<string>",
"isin_set_by": 1,
"isin_set_by_name": "FEED",
"large_core_weight": 0.053,
"large_growth_weight": 63.7687,
"large_value_weight": 0.0103,
"market_value": 618,
"market_value_set_by": 1,
"market_value_set_by_name": "FEED",
"member_is_managed_by_user": false,
"metadata": "Additional Information",
"mid_core_weight": 61.9756,
"mid_growth_weight": 0.4567,
"mid_value_weight": 0.0563,
"purchase_price": 35,
"purchase_price_set_by": 1,
"purchase_price_set_by_name": "FEED",
"sector": 205,
"sector_set_by": 1,
"sector_set_by_name": "FEED",
"sedol": null,
"sedol_set_by": 1,
"sedol_set_by_name": "FEED",
"shares": 125,
"shares_set_by": 1,
"shares_set_by_name": "FEED",
"small_core_weight": 0.5,
"small_growth_weight": 0.3,
"small_value_weight": 0.3,
"symbol": "HDP",
"symbol_set_by": 1,
"symbol_set_by_name": "FEED",
"updated_at": "2015-04-13T12:01:23.000Z",
"unknown_weight": 0.0521,
"user_guid": "USR-11141024-90b3-1bce-cac9-c06ced52ab4c"
}
}Authorizations
MX Session Token
- Request an API token using the read API token endpoint in the MX SSO API.
- Exchange an API token for a session token.
- A session token is obtained by sending a POST request to /sessions
- The session token will be used in each request made for the user. It should be passed in an
MD-SESSION-TOKENHTTP header as shown below. - This session token is valid for 30 minutes from the time it was created. The 30 minute expiration counter is refreshed with each call.
- If you send a request with an expired session token you'll receive an error code of
4011.
curl -i https://int-data.moneydesktop.com/accounts \
-H 'MD-SESSION-TOKEN: CWforZl1Vn2vC_v6H4rnQRT1DoWpDouJAV-_5TBmiQRAtA8rsOG_BoajTiOSsL0A3bd-bmHXlA-eQzc9ywItKg' \
-H 'Content-Type: application/vnd.mx.nexus.v1+json' \
-H 'Accept: application/vnd.mx.nexus.v1+json'In documentation code examples, replace <API_KEY_VALUE> with the session token.
Path Parameters
The unique identifier for a holding. Defined by MX.
Body
Hide child attributes
Hide child attributes
The cost basis is the original value of an asset adjusted for stock splits, dividends, and capital distributions.
The ISO 4217 three-character currency code (e.g. USD).
"USD"
Additional information a partner can store on the holding.
"Additional Information"
false
Response
OK
Hide child attributes
Hide child attributes
Unique identifier for the account. Defined by MX.
"ACT-a8ba7faa-6ce8-4e05-a8b4-bd02ae2b8b9d"
The percentage of a holding held in cash or cash equivalents.
88.0948
The percentage of a holding held in convertible shares (often in the form of preferred shares or bonds).
48.6542
The percentage of a holding held in US bonds.
0.0139
The percentage of a holding held in non-US stocks.
87.8851
The percentage of a holding held in otherwise undefined assets. Real estate, commodities, and precious metals are examples of 'other' assets.
0.0542
The percentage of a holding held in preferred stocks.
43.5169
The percentage of a holding held in assets that are currently undefined by MX.
0.023
The percentage of a holding held in US bonds.
0.0563
The percentage of a holding held in US stocks.
45.0999
The coupon rate for a bond.
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data (FEED, USER, or SYSTEM).
"FEED"
The bond maturity date, represented in ISO 8601 format without a timestamp.
"2015-04-13T00:00:00.000Z"
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data (FEED, USER, or SYSTEM).
"FEED"
The cost basis is the original value of an asset adjusted for stock splits, dividends, and capital distributions.
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data (FEED, USER, or SYSTEM).
"FEED"
Date and time the cost basis was last updated, represented in ISO 8601 format with timestamp (e.g. 2015-04-13T12:01:23-00:00).
"2015-04-13T12:01:23.000Z"
Date and time the holding was created, represented in ISO 8601 format with timestamp (e.g. 2015-04-13T12:01:23-00:00).
The ISO 4217 three-character currency code (e.g. USD).
"USD"
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data (FEED, USER, or SYSTEM).
"FEED"
The change from the previous day in the price of the security.
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data (FEED, USER, or SYSTEM).
"FEED"
Date and time the holding was deleted, represented in ISO 8601 format with timestamp.
"2015-04-13T12:01:23.000Z"
Description of the holding.
"a description"
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
A graphical representation of the investment style of the stocks and stock funds within a holding according to the Morningstar Style Box. See Holding Classification for more information.
5
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
2
The source that set the data ( FEED, USER, or SYSTEM ).
Partner created identifier for the holding.
"holding-be73487f-2cd2-4a99-b78c-2f8fb866cbed"
A graphical representation of the investment style of the fixed income funds within a holding (like bonds) according to the Morningstar Style Box. See Fixed Income Classification for more information.
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
The source that set the data ( FEED, USER, or SYSTEM ).
The bond coupon rate, as provided by our data feed. See bond_coupon_rate for more information.
The bond maturity date, as provided by our data feed. See bond_maturity_date for more information.
The cost basis, as provided by our data feed. See cost_basis for more information.
The ISO 4217 three-character currency code, as provided by our data feed. See currency_code for more information.
The Committee on Uniform Securities Identification Procedures (CUSIP) classification code, as provided by our data feed. See cusip for more information.
The change from the previous day in the price of the security, as provided by our data feed. See daily_change for more information.
The description, as provided by our data feed. See description for more information.
The equity classification, as provided by our data feed. See equity_classification for more information.
The fixed income classification, as provided by our data feed. See fixed_income_classification for more information.
The International Securities Identification Number (ISIN), as provided by our data feed. See isin for more information.
The current market value of the holding, as provided by our data feed. See market_value for more information.
The purchase price, as provided by our data feed. See purchase_price for more information.
The area of the economy the holding is invested in, as provided by our data feed. See sector for more information.
The Stock Exchange Daily Official List (SEDOL) classification code, as provided by our data feed. See sedol for more information.
The number of shares, as provided by our data feed. See shares for more information.
The ticker symbol, as provided by our data feed. See symbol for more information.
Unique transaction identifier. Defined by MX.
"holding-be73487f-2cd2-4a99-b78c-2f8fb866cbed"
The type of holding, such as Mutual Fund, Equity, or Bond.
1
The name of the holding type.
"EQUITY"
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
If the holding is deleted, this field will be true. Otherwise, this field will be false.
true
The International Securities Identification Number (ISIN) in ISO 6166 format.
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data (FEED, USER, or SYSTEM).
"FEED"
The percentage of a holding's stock value with a large core investment style.
0.053
The percentage of a holding's stock value with a large growth investment style.
63.7687
The percentage of a holding's stock value with a large value investment style.
0.0103
The market value of the holding.
618
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
If the member the holding belongs to is managed by the user, this field will be true. Otherwise, the member is managed by the MX partner and this field will be false. Members created with Nexus are considered to be managed by the user.
false
Additional information a partner can store on the holding.
"Additional Information"
The percentage of a holding's stock value with a mid core investment style.
61.9756
The percentage of a holding's stock value with a mid growth investment style.
0.4567
The percentage of a holding's stock value with a mid value investment style.
0.0563
The purchase price of the holding.
35
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
The area of the economy the holding is invested in.
205
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
The Stock Exchange Daily Official List (SEDOL) classification code, represented as a seven-character code (e.g. B03MM40).
null
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
The number of shares owned for this holding.
125
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
The percentage of funds allocated to a small-cap, core equity holding.
0.5
The percentage of funds allocated to a small-cap, growth equity holding.
0.3
The percentage of funds allocated to a small-cap, value equity holding.
0.3
The symbol that refers to the ticker symbol of the security (e.g. AAPL for Apple, Inc.).
"HDP"
The source that set the data ( 1 = FEED, 2 = USER, 3 = SYSTEM ).
1
The source that set the data ( FEED, USER, or SYSTEM ).
"FEED"
Date and time the transaction was updated, represented in ISO 8601 format with timestamp.
"2015-04-13T12:01:23.000Z"
The percentage of a holding's stock value with an investment style currently undefined by MX.
0.0521
Unique identifier for the user. Defined by MX.
"USR-11141024-90b3-1bce-cac9-c06ced52ab4c"

