Strategy API - stock exchange information for each holding

Greetings all,

When using the API (https://api.portfolio123.com:8443/docs/index.html#/Strategy/_details) I can get the current holdings of a live strategy.

However, the ‘holdings’ dictionary that I receive via the api doesn’t contain the exchanges that the company is listed on. This can create some problems.

For example, for American Shared Hospital Services
https://www.portfolio123.com/app/stock?tab=issues&t=AMS:USA, the exchange is the NYSE.

However, just using the ticker ‘AMS’ could lead you to buy https://www.portfolio123.com/app/stock?tab=issues&t=AMS:CHE.

Currently, I use a sort of work-around. The API actually gives the ticker ‘AMS:USA’. So that way at least I know that I should probably buy the company on an American exchange. However, this is not as precise as I would like it to be.

Also, the holdings dictionary contains a variable with abbriviation ‘mktUid’. Could someone tell me what this stands for? Probably something very obvious, but I couldn’t figure it out just of yet.

Kind regards,

Victor

Hi Victor. The mktUid is an id used internally and is of no use to you. The API is simply returning all the data that is available on the Holdings page on the website including mktUid which is available, but not shown on the web page.

Hi Dan,

Would it be possible to adjust the columns in a screen_run api call?

I thought that way I could perhaps get the exchange of a ticker by adding ‘ExchangeCode’ variable to the columns.

Best,

Victor

Hi Victor. For development requests like this, we need to measure user demand for the request. The best way to do that would be for you to create a Feature Request in the Learn and Connect section.