can use websocket to place/exit orders using API V2 data structure format? or is there any other format for websocket?

can use websocket to place/exit orders using API V2 data structure format? or is there any other format for websocket?

No, websocket is only for receiving data, although based on the received data you can write place/exit order code.
In simplest ways, let’s say I’m subscribed to NSE: SBIN-EQ and I want to place the order when the ltp exceeds 50rs
from fyers_api.Websocket import ws

def run_process_foreground_symbol_data(token,symbol=None):
data_type = “symbolData”

data_type = “orderUpdate”

fs=ws.FyersSocket(access_token=token,run_background=False,log_path=os.getcwd())
fs.websocket_data = custom_message
fs.subscribe(symbol=symbol,data_type=data_type)
fs.keep_running()

def custom_message(msg):
print (f"Custom:{msg}")
if msg[0].get(“ltp”)>50:
print (“buy using api buy call”)

token = f’{APP_ID}-100:{AccessToken}’
symbol=[“NSE:SBIN-EQ”]
run_process_foreground_symbol_data(token=token,symbol=symbol)