Portfolio Upload for PMS

Create user session to obtain a session token using md_login_request:

{"md_login_request":{"login_id":"xx","password":"yy","client_application":"WEB","client_application_version":"1.0"}}

{

"error_code": 0,

"session_token": "de53a450-6a30-4c47-9a90-4e6c8f3a22fa",

"md_login_response": {

"version": "1.7.0",

"build": "mobile_and_web_server v0.8.0",

"remote_address": "10.234.92.17",

"session_timeout": 1800000,

"session_token": "de53a450-6a30-4c47-9a90-4e6c8f3a22fa",

"infinancials_access": true,

"features": ["INFINANCIALS", "TWEETWIRES", "MOBILE", "WEB", "NEWS_SEARCH", "ALERTS"],

"home_provider": 1

}

}

Create JSON document describing the portfolio:

{  
   "request_data":"John Doe Portfolio",
   "session_token":"94ffb642-427b-47fc-9db1-25a5d4af56fe",
   "md_save_user_list_request":{  
      "list":"John Doe Portfolio",
      "is_portfolio":true,
      "currency":"SEK",
      "portfolio_id":"12345ABCDS",
      "positions":[  
         {  
            "instrument":{  
               "currency":"NOK",
               "feed":18177,
               "ticker":"STL"
            },

            "volume":23469,
            "avg_price":"1108.66129186886"

            "open_ccy_rate":"8.6069"


         },
         {  
            "instrument":{  
               "isin":"NO0010786031",
               "currency":"NOK",
               "mic":"XOSL"
            },
            "volume":26500,
            "avg_price":"100.51851854118418"

            "open_ccy_rate":"8.6069"


         }
      ],
      "other":[  
         {  
            "type":"private equity",
            "description":"Company A S.A.",
            "currency":"USD",
            "value":20000.00
         }
      ],
      "cash":[  
         {  
            "currency":"USD",
            "value":20000.00
         }
      ]
   }
}

 

Portfolio definition

Field  Type  Optionality  Value for Portfolio 
 is_portfolio Boolean  Required  true 
 list String  Required  -  
 currency String  Required 
 portfolio_id String  Optional 

 

Position definition

Field Type Optionality
volume Integer Required*
ticker String Required*
isin String Required*
feed Integer Required*
avg_price Float Required
open_ccy_rate* Float Required
mic String Required*

(*) Requirement is fulfilled by either using "feed" and "ticker", or "mic" and "isin"

(**) FX rate of the position

 

'Other' definition

Field Type Optionality
type String Required
description String Required
currency String Required
value String Required

 

Cash definition

Field Type Optionality
currency String Required
value Float Required