I am using Fyers API bridge and TV for alerts. I have created alert for Supertrend, but API bridge does not recognize Order TYPE.

 

However, if I create another duplicate alert which is same as the previous one, then the Order TYPE gets recognized.  

 

That is, with only the below alert, TYPE field is empty.

Alert Name: ST LONG

TYPE: SX, LE

SYMBOL: BANKNIFTY1

 

If I mention the alert twice as below, TYPE field is recognized for the 2nd alert.

Alert Name: ST LONG

TYPE: SX, LE

SYMBOL: BANKNIFTY1

 

Alert Name: ST LONG DUPLICATE

TYPE: SX, LE

SYMBOL: BANKNIFTY1

 

 

Logs as below:

2021-11-22 10:00:03.5323,DEBUG,Signal Received from Trading View: ID: 8,Type: , Symbol: BANKNIFTY1,Exchange: ,InstrumentName: ,OrderType: M,ProdType: ,Price: 37778.95,Qty: 1,OptionType: ,Expiry: ,Strike: ,TrigPrice: 37778.95, SquareOff: 0, TrailingTicks: 0, StopLossPrice: 0, STag: STG1

2021-11-22 10:00:03.5719,DEBUG,Invalid Signal Type:  Valid Types: LE,LX,SE,SX, ID: 8

2021-11-22 10:00:03.8026,DEBUG,Signal Received from Trading View: ID: 9,Type: LX, Symbol: BANKNIFTY1,Exchange: ,InstrumentName: ,OrderType: M,ProdType: ,Price: 37778.95,Qty: 1,OptionType: ,Expiry: ,Strike: ,TrigPrice: 37778.95, SquareOff: 0, TrailingTicks: 0, StopLossPrice: 0, STag: STG1

2021-11-22 10:00:03.8331,DEBUG,Order sent. Waiting for Broker response: ID: 9,Type: LX,Symbol: BANKNIFTY21NOVFUT,Exchange: NFO,InstrumentName: FUTIDX,OrderType: 2,ProdType: MARGIN,Price: 0,Qty: 1000,OptionType: ,Expiry: 11/25/2021,Strike: ,TrigPrice: 0, STag: STG1

2021-11-22 10:00:03.8885,DEBUG,Signal Received from Trading View: ID: 10,Type: SE, Symbol: BANKNIFTY1,Exchange: ,InstrumentName: ,OrderType: M,ProdType: ,Price: 37778.95,Qty: 1,OptionType: ,Expiry: ,Strike: ,TrigPrice: 37778.95, SquareOff: 0, TrailingTicks: 0, StopLossPrice: 0, STag: STG1

2021-11-22 10:00:03.9164,DEBUG,Order sent. Waiting for Broker response: ID: 10,Type: SE,Symbol: BANKNIFTY21NOVFUT,Exchange: NFO,InstrumentName: FUTIDX,OrderType: 2,ProdType: MARGIN,Price: 0,Qty: 1000,OptionType: ,Expiry: 11/25/2021,Strike: ,TrigPrice: 0, STag: STG1

2021-11-22 10:00:04.3961,DEBUG,Order Placed: 221112261892

2021-11-22 10:00:04.4660,DEBUG,Order Placed: 221112261902

2021-11-22 10:00:04.8325,DEBUG,Order Placed: ID: 9,Type: LX, Symbol: BANKNIFTY21NOVFUT,Exchange: NFO,InstrumentName: FUTIDX,OrderType: 2,ProdType: MARGIN,Price: 0.0,Qty: 1000,OptionType: ,Expiry: 11/25/2021,Strike: ,TrigPrice: 0.0, SquareOff: 0, TrailingTicks: 0, StopLossPrice: 0, STag: STG1

2021-11-22 10:00:04.9071,DEBUG,Order Placed: ID: 10,Type: SE, Symbol: BANKNIFTY21NOVFUT,Exchange: NFO,InstrumentName: FUTIDX,OrderType: 2,ProdType: MARGIN,Price: 0.0,Qty: 1000,OptionType: ,Expiry: 11/25/2021,Strike: ,TrigPrice: 0.0, SquareOff: 0, TrailingTicks: 0, StopLossPrice: 0, STag: STG1