http://code.kx.com/wiki/Pivot
So you can put everything in one line like such:
0!exec (asc distinct tab.sym)#(sym!price) by time:time from tab