kdb+ and q
Q+A on all things kdb+ database and the q language
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Question on streaming

I have a question. Having a data source publishing real time quotes(bid price and ask price), I want to subscribe it and plot the mid price(0.5*bid+0.5*ask) using the streaming mode. How to do it please? As shown in the picture, it seems only one fil...

MSHK by New Contributor III
  • 11 replies
  • 1 kudos

Resolved! SQL call function with 2 args

I have a function which takes 2 arguments. Ill write some pseudo code for an idea f:{[x;y] $[x~`1;y;`0]} Then i have a table: t:([]a:`1`2`3;b:`4`5`6) Now i want to call that function and pass a and b to it from an update statement update c:f[a;b] fro...

Resolved! Building REST API KDB - Issues setting up SSL-TLS

Hi Community, I am trying to create a REST API that would have 2 method(get and post), and It would be initially an empty table tab:([] a:`$(); b:"i"$()) that would be filled out eventually. So I would be using .Q.hg(get) and .Q.hp(post) for it, my e...

racuna00 by New Contributor II
  • 5 replies
  • 1 kudos

Resolved! Basic (but still intriguing to me) q Interpreter question

A bit at lost here... Can someone enlighten me as to how the interpreter works in the following situation: q)show a:10?(-1 0 1) //Just to have something0 1 1 0 -1 0 1 -1 0 0 q)(>)a //That's the curiosity1 2 6 0 3 5 8 9 4 7 I understand this is actual...

JP by New Contributor III
  • 2 replies
  • 0 kudos

Resolved! wavg implementation detail

Hi, everyone. I have some questions about wavg function. 0 wavg 5 / 5 5 wavg 5 / 5 2 wavg 2 3 7 / 4 5 2 3 wavg 3 / 3 According to the doc, the x and y of wavg[x;y] must both be numeric lists. But for these invalid inputs, wavg still yields some resul...

lan by New Contributor II
  • 5 replies
  • 0 kudos