Self manage multiple portfolio on Fyers via API

Hi,

Does API v2 provide a mechanism to create multiple portfolio (or portfolio groups) with their own independent allocations?
It is somewhat like smallcase scid but would like to avoid smallcase and do self managed portfolio and hence asking for portfolio id and portfolio-name/portfolio-description in API.

If this is available in API (it will help people to group their allocations into baskets or portfolio much like smallcase portfolios)

Also,. trade actions to the holdings in portfolioA are independent of any trade actions to the holdings in portfolioB. Example: portfolioA has 10-F stocks while portfolioB has 100-F stocks. So, they have their different allocation needs and any activity in portfolioA should not hamper other common scrips in other portfolios.

I would have liked to use smallcase here to solve the problem, but alas they do not provide any API to automate the user generated smallcase workflows (actually they refused to do so), so there by I have decided to forego smallcase route altogether and completely rely on the brokerage API platform instead but if this is provided directly from the brokerage platform where in there is a recognition to the multiple portfolio groupings that would be kick-ass awesome!

So, here I am asking and requesting FYers API team to help with this. I have a need to do this programmatic means for creating and managing multiple portfolio in a single demat account. Holdings should be held or represented (viewed) seperately by their portfolio id.

@Fyers team tagging

Tagging Is one way to achieve this. Your feedback is noted. It’s a niche requirement which few ask for so we’ll take this up in the future after finishing whats on our table.

@Fyers team @tejas_khoday also better if API allow to manage watch lists…

Hi @tejas_khoday

appreciate your response.

I think this is something not just the tagging related concept, as in tagging is a breadth wise or row-wise activity concept .. and I am looking at this as top-down approach instead.

The reason I am saying is this:

I have lets say 3 individual separate portfolio, each catered for different objectives and different holding periods – which may have some common scrips too.

Understandably, all the stock holdings are necessarily stored in the demat account – which means there cannot be a way to store this into demat account. If tagging is done at the brokerage end, then think of this instead as having to create/maintain multiple portfolio id (similar to smallcase id) at the brokerage level. So, this provides a logical view to the holdings in the demat account filtered by the portfolio id instead of having a blanket representation to all the holdings.

An example:

There are 2 stocks in portfolio A that are common to other portfolio in single account. ITC and HAL with varied quantity holdings.

What I do (qty:- add, reduce, sell) with ITC or HAL in Portfolio A allocations should not have any bearing impact to the holdings in Portfolio B or Portfolio C or other portfolios. ITC as a stock could be held in different tranches across different portfolios too. A Portfolio can have its own weightage/allocation policies.

That being said, tagging is free text(will lead to tag explosion tagging) and will not help here as it is not the stock representation but the stock’s quantity representation in each portfolio across tranches of their own.

Even from the taxation point of view, as we understand, the individual transactions are taxed based on the number of days held after a buy transaction instead of at the stock level.

Portfolio A (Long Term) Portfolio B Portfolio C
ITC 10 5 0
HAL 3 2 3
BHEL 30 0 0

What I am self debating is whether stocks can move across the portfolio constructs and whether this would be mutually beneficial with brokerage and that is something to ponder on but I would like the possibility, after all portfolio are only virtual construct buckets with lot of benefits like improve traders’ risk management and allocation efficiency.

hi @tejas_khoday

please let me know what your/team thoughts on this.

Hey Nikhil,

Thanks for writing in, and I appreciate the feedback! I’ll relay this info to our development team. As Tejas correctly mentioned, it’s a niche requirement and we’ve seen that platforms which actually provide the holding management handle it on the front end. Will explore this internally.

Thx!

Hi @shubham_gandhi @tejas_khoday and @Fyers team

Appreciate the response. Glad to have connected on the use case.

I will be happy to chime in any and all the technical discussions around this with the team over video whenever your team is ready to go over this.

Thinking more on this in terms of technical scenario:

Operating System Platform → Virtual Machine/Container → Application allocation/isolation efficiency

Apply this to

Brokerage platform → Virtual Portfolio Id construct → Portfolio isolation/allocation efficiency

think of this is something like a virtual machine/container on the brokerage platform…

With API leading the way..and not just the front-end providing the handles.

Please let me know whenever you would like to connect.

My equity portfolio asset deployment strategies are based on this assumptions that it can be available as early as beginning of 2023, and I am currently blocked per se :frowning: but I am okay in the interim as I am still with in the preliminary development works of having this carved out on my end… but let me assure you once this is available, lot of PMS works will also get simplified too (and I believe that is a big win for brokerage too)

Hi @shubham_gandhi @tejas_khoday and @Fyers team

Appreciate any response on this. I am more than glad to contribute and chime in anyway possible here .. let me know, I can collaborate and participate in any technical discussions too.

Hi @shubham_gandhi @tejas_khoday and @Fyers team

I am making sure this thread stays afloat and let me know how can I help in this.