Extending .z.ts to execute multiple functions at different intervals

This is a guest post by Mark Street. If you like it be sure to check out his other posts, or find him on LinkedIn. If you are interested in being a guest blogger on enlist[q], please contact me. As we previously learnt, q/kdb+ has a callback function .z.ts which fires an event every x milliseconds, where x is the precision applied to the …

Using the timer function .z.ts in q/kdb+

q/kdb+ has several pre-defined functions in the dot z namespace such as .z.a to get the IP address, .z.h to get the host, and .z.b to get the dependencies. Today, we will discuss a callback function in the dot z namespace called .z.ts. .z.ts is a very simple timer function that is invoked at regular …

Enabling a modern hybrid cloud kdb+ stack with PubSub+

Things used to be much simpler just a few years ago when you had all your applications deployed in your on-prem datacenter. Sure, you had to manage all that yourself, but it was easy to deploy your applications on your finite number of servers. Things are much different now. Cloud computing has really taken off …

Publishing and Consuming messages from PubSub+ in a q/kdb+ stats process

Note: You can now subscribe to my blog updates here to receive latest updates. This post is the second post in a series of posts I have written as part of a data analytics pipeline spanning multiple languages, databases, and environments. You can find more about the pipeline in my final post here. A typical kdb+ architecture …

Bringing the power of pub/sub messaging to kdb+

Note: You can now subscribe to my blog updates here to receive latest updates. A typical kdb+ architecture (in a market data environment) is composed of multiple q processes sharing data with each other. These processes usually are: feed handlers, ticker plants, real-time subscribers (rdbs, pdbs, bars etc), historical databases (hdbs) and gateways. Here is what the …

q/kdb+ API for getting data from IEX Cloud

Last year, I wrote a q/kdb+ and python API for getting data from IEX. IEX, Investors Exchange, is an American exchange which provides a lot of financial data for free. You can get access to more data by getting a paid subscription. Last year’s API was based on IEX’s v1 API which has now been …

What exactly are keyed tables?

Note: You can now subscribe to our YouTube video channel for q/kdb+ tutorials. Well, I will tell you what they are not – tables! If you take away one thing from this post, it’s that keyed tables are poorly named and are not tables. However, after reading this post, you should have a better understanding …

Understanding type casting in q

This post is a follow up to the previous post about datatypes in q. In that post, I went over all the datatypes available in q and how to identify them using character, numeric, or symbol representation. Now, we are ready to discuss another important topic in q: type casting. This post is also available …