Here is one solution but modify the function depending on your contract with client regarding data format that it will send to your service.
I am making following assumptions:
a) Your myfunc is correctly identifying the data part.
b) Data part will always be wrapped in ‘d(…)’
myfunc:{a:(“;\n” vs x); b:a where 10 < count each a; updTrade each b}
updTrade:{
d: “,” vs ssr[-1_2_x;“'”;“”] ; / remove single quotes from data and separate data values
td:.z.z, “IIIII” $’ d; / convert to proper types and add timestamp. Here its converting to Integer