-
why sv needs ,’ here?
I have the below trades table in my q session:
q)meta trades c | t f a -----| ----- time | p sym | s g src | s g price| f size | i
Then, why does it need each both for the sv function when x and y are joined already and then passed into sv:
q)update symsrc:{` sv'(x,'y)}[sym;src] from 1#trades time sym src price size symsrc -------------------------------------------------------- 2023.06.04D08:00:49.248000000 ORCL L 40.67 3984 ORCL.L q)update symsrc:{-1 .Q.s1 x,y; ` sv'(x,'y)}[sym;src] from 1#trades `ORCL`L time sym src price size symsrc -------------------------------------------------------- 2023.06.04D08:00:49.248000000 ORCL L 40.67 3984 ORCL.L
Log in to reply.