Hi all,Sorry I am really a newbie. I spent a lot time on the followingproblem and couldn’t find a solution. Could you please help me?I have a csv file, which contains the tick data with the followingformat:timestamps, bp, bs, ap, as, tp, ts-----------------------------------------------------20101014 09:00:0020101014 09:05:00Of course these are event data but I would like to convert them intosnapshot data. That’s to say, I would like to find the "outstanding"bp, ap, and tp at certain time as a snapshot. For example, if there isno activity between 09:00:00 and 09:05:00, then if I query the statusat 09:05:00 as a snapshot, I should get the ap, bp and tp at09:00:00.I would like to create such a function with the date/time as input andthe “outstanding” quotes/prices as outputs..How to do that?And is there a way to use KDB as a command line: i.e. by executing:q MyFunc.q MyFile.csv 20101014 09:05:00 > MyOutputs.csv------------------------------------How to do the above in q/KDB?Thanks a lot!
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Re: [personal kdb+] Digest for personal-kdbplus@googlegroups.com - 7 | 0 | 13 | September 4, 2020 | |
| Re: [personal kdb+] Digest for personal-kdbplus@googlegroups.com - 4 | 0 | 14 | March 9, 2012 | |
| QuantumKDB Q Gems & Idioms is cropped on my handset | 1 | 12 | June 25, 2015 | |
| How do I create table with date/time stamps? | 1 | 8 | June 11, 2010 | |
| looking for a paid tutor/consultant ... | 0 | 11 | September 11, 2010 |