h(`.u.upd;t;x)
h(`.u.upd;`trade;(2019.01.07D00:00:02.536524000;`MSFT;33342.87;7i;0b;"B";"N"))
-11!pathtologfile
autoreplay:@[value;`autoreplay;0b]
Hi hzadonis,
.u.upd in ticketplant doesn’t return any value. Is anything subscribing from the tickerplant? You can check with .u.w, which list out the handle for each subscriber, and which table they are subscribing to.
Regards,
Simon Tsang | Programmer Analyst Advisory | Global Fixed Income Development
Scotiabank |
Global Wholesale & Risk Technology (GWRT)
320 Bay St, 13th floor, Toronto, Ontario, Canada M5H 4A6
T 1.416.860-1764
Scotiabank is a business name used by The Bank of Nova Scotia
From: kdb...@googlegroups.com [mailto:kdb...@googlegroups.com]
On Behalf Of hzadonis
Sent: January-10-19 1:25 AM
To: AquaQ kdb+/TorQ
Subject: [Aquaq kdbtorq] Re: Which function is used to feed realtime data
Hi, Fiona:
One more question.
The processes are working, but the insertion form q client doesn't success.
q)h:hopen`:10.34.5.66:9000:tickerplant:pass
q)h"meta AShare_Intraday_Trade"
c | t f a
------| -----
time | p
sym | s g
Price | e
Volume| j
and insert data with:
q)h(`.u.upd;`AShare_Intraday_Trade;(2019.01.10D00:00:02.536524000;`10057011;89.90;1000))
q)
no any feedback but a normal "q)" prompt.
then, I select data from rdb/wdb, the table is empty. do you have any advice? Thanks!
在 2019年1月10日星期四 UTC+8上午11:31:39,hzadonis写道:
--
www.aquaq.co.uk
www.aquaq.co.uk/blog
www.aquaq.co.uk/training
---
You received this message because you are subscribed to the Google Groups "AquaQ kdb+/TorQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
kdbtorq+u...@googlegroups.com.
To post to this group, send email to kdb...@googlegroups.com.
Visit this group at https://groups.google.com/group/kdbtorq.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/kdbtorq/401839e9-a021-4ab5-bb15-4c0ece9f940b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Hzadonis,
You can add a wrapper function to convert the type before calling .u.upd
In TP:
typedUPD:{[t;x] .u.upd[t;] (exec t from meta t) {x$y}'x }
Example :
q)tbl:([]sym:`symbol$();rnum:`real$();fnum:`float$();inum:`int$();date:`date$();time:`timespan$())
q).u.upd[`tbl] (`abc;123;123;123;2018.01.01;0D0)
'type
q)typedUPD[`tbl] (`abc;123;123;123;2018.01.01;0D0)
,0
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/a8f612e0-3a94-4c55-b936-de300809afcd%40googlegroups.com.