What's the best method to segregate Option Buying and Option Selling in same account using API?

What’s the best method to segregate Option Buying and Option Selling using API in the same account?

Does Fyers provide the option to create one more account for the same user?

With a single PAN, you can open only one demat account with FYERS, you cannot open more than one account.

Regarding the segregation of option buying and selling using FYERS API, currently, there is no provision for such segregation.
However, if the segregation pertains to Order Placement, you have the option to create separate baskets using FYERS API. You can refer to the multi-order API in the documentation at [u]https://myapi.fyers.in/docs[/u] for more information.

Additionally, you can filter positions using the position API to distinguish between buy and sell positions.

https://myapi.fyers.in/docs

Hi Naresh, Thanks for the reply.

So positions data can be segerigated using netQty and side parameters?

Let’s say, If I’m selling ATM call and put options for one strategy and next minute Im putting buy order of same strikes for Option buying strategy, will that close the sell position?

If you have open sell positions for both Call and Put options of a strike, placing a buy order for the same strike will automatically close the position.

To address this, you can consider placing orders with different order types such as ‘Margin’ or ‘Intraday’.

Example:
Sell position (Margin/CNC)

Buy position (Intraday)

Thats awesome Naresh! Thanks for workaround!