If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: code.kx.com/accelerators/eqea-order-execution-util-functions.html - Utility Functions - Accelerato.

site address: code.kx.com/eqea-order-execution-util-functions.html redirected to: code.kx.com/accelerators/eqea-order-execution-util-functions.html

site title: Utility Functions - Accelerators

Our opinion (on Monday 24 August 2026 5:00:49 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:
description=Order Execution Analytics Utility Functions;
author=;

Headings (most frequently used words):

eqea, util, example, usage, analytics, asof, order, execution, utility, functions, tickdata, ajfromcfg, custom, design, principles, simpleanalytics, getdataandaggfromcfg, advanced, simpleanalyticswithwc, getdataandaggregate, timerackfromcfg, ajtickdatatoinput, pivotbycfg, how, the, function, works,

Text of the page (most frequently used words):
the (422), #analytics (198), eqea (180), util (116), function (107), this (107), custom (106), table (105), for (87), data (78), #example (73), cfg (73), that (70), are (64), analytic (62), use (60), order (60), from (58), and (57), config (50), orderanalyticsres (45), used (45), asof (45), dictionary (39), name (37), utility (37), where (37), column (36), time (36), can (33), description (33), values (33), with (32), input (32), tickdata (31), how (29), ajfromcfg (29), functions (27), our (26), columns (25), type (24), more (24), value (24), args (23), market (23), aggclause (23), argument (22), these (22), getdataandaggfromcfg (22), orderanalytics (21), clause (21), configuration (21), query (21), ice (21), which (20), join (20), all (19), symbol (19), note (19), you (19), striketime (19), select (19), analytictype (19), keys (18), refer (18), trade (18), equities (18), when (17), results (17), below (17), should (17), kcols (16), advanced (16), have (16), price (16), jointimeoffset (16), ordercompletedtime (16), than (16), simpleanalytics (16), outlined (15), dataset (15), usage (15), window (15), bloomberg (15), accepted (14), dict (14), timerackfromcfg (14), number (14), simply (14), marketdatatabname (14), fsi (13), each (13), then (13), exec (13), functional (13), list (12), intended (12), using (12), apiargs (12), get (12), guide (12), code (12), funcname (12), aggdict (12), 0nt (12), max (12), defined (12), overview (11), required (11), define (11), output (11), parse (11), rows (11), add (11), res (11), flip (11), timestamp (11), they (11), not (10), generateorderanalytics (10), tree (10), corresponding (10), makes (10), calculate (10), has (9), only (9), pivotbycfg (9), ajtickdatatoinput (9), set (9), match (9), its (9), getdataandaggregate (9), information (9), starttime (9), myaggfromcfganalytic (9), accelerators (9), returns (8), parameter (8), names (8), key (8), tick (8), complex (8), cases (8), make (8), after (8), writing (8), takes (8), based (8), orderdict (8), row (8), aggregations (8), endtime (8), aggregation (8), derived (8), dependent (8), other (8), together (8), simple (8), execution (8), bucketduration (8), quote (8), mysimpleanalytic (8), release (8), notes (8), onetick (8), containing (7), filter (7), your (7), above (7), instrumentid (7), joinordertimecol (7), create (7), content (7), keyed (7), usequerywindowadjustmentfactor (7), myagganalytic (7), generate (7), two (7), works (7), arrivalbidprice (7), arrivalaskprice (7), out (7), simpleanalyticswithwc (7), wclist (7), previous (6), joined (6), contains (6), details (6), recommended (6), tip (6), joining (6), documentation (6), tabname (6), inputdata (6), distinct (6), ticktabname (6), file (6), settings (6), best (6), orderanalytic (6), point (6), defines (6), means (6), appear (6), lower (6), calculating (6), logic (6), reversion (6), show (6), framework (6), consolidated (6), quickstart (6), accelerator (5), apis (5), taken (5), pivot (5), been (5), result (5), performance (5), orders (5), numlookbackdays (5), expanded (5), fully (5), working (5), snippets (5), provided (5), ensure (5), relevant (5), timerack (5), includes (5), need (5), minimum (5), advancedaj (5), shown (5), eqeacustomanalytics (5), follows (5), across (5), write (5), boolean (5), depend (5), start (5), depends (5), appears (5), intervalspread (5), down (5), following (5), same (5), single (5), askprice (5), here (5), operations (5), equity (5), pipeline (5), bpipe (5), pivvalues (4), usually (4), conjunction (4), proven (4), incompatible (4), flexible (4), case (4), necessary (4), amount (4), their (4), myadvancedajanalytic (4), demonstrates (4), operates (4), possible (4), one (4), iterate (4), but (4), querying (4), adjustment (4), timestamps (4), language (4), calculates (4), help (4), build (4), placing (4), them (4), group (4), populated (4), behavior (4), api (4), run (4), existing (4), myasofanalytic (4), exist (4), bidprice (4), examples (4), principles (4), configure (4), generation (4), ingest (4), screener (4), started (4), back (3), pivoted (3), section (3), perform (3), timecol (3), sym (3), idcol (3), current (3), most (3), enough (3), joins (3), ensures (3), tickdatacols (3), tickidcol (3), edge (3), less (3), setup (3), eventtimestamp (3), rack (3), successive (3), first (3), atomic (3), before (3), factor (3), needed (3), end (3), qsql (3), similar (3), creating (3), calculation (3), conditions (3), update (3), whereclause (3), uses (3), intervalhigh_5 (3), prevailing (3), null (3), standard (3), into (3), there (3), three (3), aggregate (3), flexibility (3), greater (3), performs (3), specified (3), reversionaskprice_60 (3), passed (3), timespan (3), added (3), strike (3), mywhereclauseintervalanalytic (3), buy (3), sell (3), myderivedintervalanalytic (3), derive (3), mywiderintervalanalytic (3), myintervalanalytic (3), additional (3), calculated (3), box (3), relative (3), gets (3), grouped (3), outputs (3), design (3), page (3), library (3), fixed (3), income (3), book (3), releases (3), glossary (3), systems (2), inc (2), kdb (2), extending (2), needs (2), subset (2), batch (2), specific (2), pivots (2), absolutely (2), inefficient (2), important (2), just (2), midnight (2), instruments (2), include (2), partitioned (2), efficient (2), xkey (2), return (2), qcols (2), also (2), date (2), ticktimecol (2), primary (2), want (2), append (2), will (2), part (2), becomes (2), myagg (2), eachanalytic (2), iterates (2), correspond (2), may (2), intervalmaxprice (2), true (2), adds (2), querywindowadjustmentfactor (2), interest (2), any (2), however (2), must (2), dictate (2), take (2), infinite (2), extension (2), operators (2), running (2), level (2), late (2), expands (2), such (2), require (2), points (2), requires (2), provide (2), cover (2), arguments (2), reduces (2), reversionaskprice_3600 (2), reversionaskprice_120 (2), taking (2), filtering (2), some (2), way (2), limitprice (2), clauses (2), depending (2), whether (2), question (2), intervalmaxpricewhereclause (2), provides (2), info (2), specify (2), seconds (2), combined (2), optional (2), within (2), between (2), intervalhigh (2), already (2), further (2), dependencies (2), different (2), arrivalvalue (2), multiplies (2), both (2), executedqty (2), arrivalmid (2), users (2), called (2), well (2), inputs (2), volume (2), prep (2), customize (2), getbars (2), getstats (2), daily (2), historic (2), feed (2), install (2), developer (2), test (2), bar (2), ingestion (2), home (2), made, material, mkdocs, insiders, 2026, rights, reserved, registered, trademarks, subsidiary, software, limited, next, top, contents, days, look, doing, found, placed, illiquid, long, wish, wanted, size, would, pricesize, aligned, under, helps, eradicate, traded, near, expected, partition, particularly, useful, liquid, variable, retry, attempts, parted, find, efficiency, plus, configured, offsets, concerned, entries, tradepriceatstriketimeplus30minalt, tradepriceatstriketimeplus1minalt, tradepriceatstriketimealt, eventually, sort, target, ensuring, generated, creates, item, lists, represent, until, iterated, whole, returning, generating, main, sub, therefore, sufficient, comes, off, needing, compatible, functionality, getdata, period, element, does, specifically, calling, included, along, alternative, met, replaced, intervalhigh_4, useintervalprevailingvalues, equitiesea, interval, non, apply, expand, resulting, respective, compared, missed, could, happen, multiple, many, reproduce, version, offers, cost, requiring, variables, encounters, switch, control, written, vast, majority, haven, accounted, easily, inputted, tradepriceatstriketimeplus30min, tradepriceatstriketimeplus1min, tradepriceatstriketime, returned, onto, essentially, original, contained, correct, per, step, every, groups, understand, building, ordersidecode, combination, bounds, incoming, intervalmaxaskpricederivedwindow, intervalmaxbidpricederivedwindow, intervalmaxaskpricewiderwindow, intervalmaxbidpricewiderwindow, intervalmaxaskprice, intervalmaxbidprice, contain, depth, either, indicating, delay, produce, bucket, duration, looks, like, illustrate, trees, items, generally, form, definitions, derives, runsimpleanalytic, endbidprice, endaskprice, myendcalc, myarrivalcalc, others, differently, cannot, operation, reasons, grouping, much, selects, accept, enables, given, general, types, allows, previously, mentioned, second, named, considerations, regarding, appended, initialization, maintainability, upgradability, adding, explains, whereby, understanding, because, lets, heart, keep, mind, designed, extended, document, reference, tools, wide, range, scenarios, simplify, development, process, optimal, comp, pipe, cancellations, corrections, errors, getorderanalyticsummary, getticks, deployment, realtime, entitlements, insights, enterprise, user, map, emrs, manual, about, prerequisites, initializing, search, skip,


Text of the page (random words):
cfg table this information can help you build out analytics that are dependent on other analytics by placing them lower down the config table than the analytics they depend on for example the analytic intervalspread depends on the values of arrivalaskprice and arrivalbidprice which means that it appears in the eqea analytics cfg table after these analytics aggclause this is a q language parse tree which defines the calculation for each analytic note that we match the aggregation clause to the corresponding analytic column name by creating a dictionary with analytic as the key and aggclause as the values as in the example below create a dictionary to be used in a functional select to calculate our analytics aggdict exec analytic from cfg exec aggclause from cfg this dictionary is then used in a functional select similar to below to generate our analytics data wc bc aggdict refer to q documentation for more information on how functional qsql works tip the eqea util simpleanalytics function can accept a single row in the cfg argument if necessary but analytics should be grouped together where possible grouping analytics where possible ensures best performance as it reduces the amount of operations needed for examples calculating 10 analytics in 1 functional select is much more efficient than calculating the same 10 analytics in 10 different functional selects the only reasons analytics should not be grouped are analytics that require different logic that is analytics that are as of join to market data are calculated differently to analytics that are aggregations of market data and so cannot be grouped together in a single operation analytics that are dependent on the output of other analytics note the analytics are calculated in order so any analytics that are dependent on others should be added further down the eqea config custom analytics table than their dependencies example usage this example demonstrates writing a custom function that makes use of eqea util simpleanalytics as follows in the example custom configuration file example eqeacustomanalytics q define your config table eqea config custom analytics as shown below eqea config custom analytics flip analytic analytictype funcname aggclause marketdatatabname jointimeoffset flip myarrivalcalc mysimpleanalytic custom mysimpleanalytic arrivalaskprice arrivalbidprice 0nt myendcalc mysimpleanalytic custom mysimpleanalytic endaskprice endbidprice 0nt content of the custom function custom mysimpleanalytic custom mysimpleanalytic orderanalyticsres args run simple analytics that use already existing columns analytics cfg select from eqea config custom analytics where analytictype mysimpleanalytic we can use a utility function eqea util runsimpleanalytic to run analytics that are dependent on columns that already exist in the orderanalytics table eqea util simpleanalytics orderanalyticsres cfg orderanalyticsres cfg note the code snippets provided in the example above are simply an example of the configuration and code required to use this function for a fully working example refer to the how to add custom analytics guide parameter name type description args dict argument dictionary accepted keys are outlined in the function description returns type description table keyed table containing all orderanalytic results to this point eqea util tickdata getdataandaggfromcfg the eqea util tickdata getdataandaggfromcfg utility function is used to calculate get market data and aggregate analytics that is analytics based on aggregations of market data this function derives a where clause from the input orderanalytics data for example where eventtimestamp within striketime ordercompletedtime gets analytic definitions from the aggclause column of the input cfg data gets the corresponding column names from the analytic column of the input cfg data takes an optional by clause argument performs a functional select on the table defined by the marketdatatabname which generally takes the form of marketdatatabname wc bc analytic aggclause the result of this functional select becomes the value of the column s defined by the value of the analytic column in the input cfg data for example the out of the box analytic intervalhigh makes use of the eqea util tickdata getdataandaggfromcfg utility function to get the max trade price of an instrumentid between the striketime and ordercompletedtime values of each order this function takes a dictionary as its input accepted dictionary keys are outlined in the below table name type description orderanalyticsres table input orderanalytics data cfg table subset of eqea config custom analytics contains all the details required for the current batch of analytics wclist list optional list of where clauses to be used when querying tick data to be used when an analytic requires a where clause more complex than instrumentid id eventtimestamp within starttime endtime note if no additional where clause logic is needed then simply use note if additional where clause logic is required then the list should have the same number of items as there are rows in the order data starttime symbol or parse tree start time of the query window used in the market data aggregation can either be an atomic symbol indicating a timestamp column or a parse tree which can be used to derive a timestamp from values in the input orderanalyticsres table for example column based to use the strike time of an order as the query window start time simply specify the symbol striketime relative timestamp to use a 5 seconds delay before the strike time as the query window start time specify using a parse tree striketime 00 00 05 complex relative timestamp timestamp columns can be combined with timespan columns to produce timestamps from more complex conditions one example of this is using bucket duration the analytic bucketduration is an analytic that is calculated by the order analytics framework out of the box you can use this derived timespan to generate a derived start time if you use a parse tree which looks like this striketime bucketduration note the above is just a simple example to illustrate flexibility these parse trees can be more complex than this if required endtime symbol or parse tree end time of the query window used in the market data aggregation functions the same way as the starttime argument refer to the starttime argument description for more in depth info usequerywindowadjustmentfactor boolean boolean value when true adds the amount of time defined by eqea querywindowadjustmentfactor to endtime when querying for market data refer to the query adjustment window guide for more details apiargs dict argument dictionary input to fsi eqea generateorderanalytics analytics that make use of the eqea util tickdata getdataandaggfromcfg utility function should have at a minimum the following values populated in eqea config custom analytics analytic the name of the analytic you are calculating this should match a corresponding column name in the orderanalytics table analytictype this is simply a value that can be used to group analytics together funcname this is the name of the function used to calculate these analytics the function fsi eqea generateorderanalytics calculates order analytics in the order that they appear in the eqea analytics cfg table this information can help you build out analytics that are dependent on other analytics by placing them lower down the config table than the analytics they depend on for example the analytic intervalspread depends on the values of arrivalaskprice and arrivalbidprice which means that it appears in the eqea analytics cfg table after these analytics aggclause this is a q language parse tree which defines the calculation for each analytic note that we match the aggregation clause to the corresponding analytic column name by creating a dictionary with analytic as the key and aggclause as the values as in the example below create a dictionary to be used in a functional select to calculate our analytics aggdict exec analytic from cfg exec aggclause from cfg this dictionary is then used in a functional select similar to below to generate our analytics data wc bc aggdict refer to the q documentation for more information on how functional qsql works note for the eqea util tickdata getdataandaggfromcfg utility function the aggclause should only contain columns from the market data table specified by the value of marketdatatabname marketdatatabname this is the name of the market data table you are querying in this analytic example usage this section provides an example custom function that makes use of the eqea util tickdata getdataandaggfromcfg utility function in the example custom configuration file example eqeacustomanalytics q define your config table eqea config custom analytics as shown below eqea config custom analytics flip analytic analytictype funcname aggclause marketdatatabname jointimeoffset flip these two analytics are intended to show how the query time window can be derived from names of timestamp columns in the orderanalytics table e g striketime intervalmaxbidprice myintervalanalytic custom myaggfromcfganalytic max bidprice quote 0nt intervalmaxaskprice myintervalanalytic custom myaggfromcfganalytic max askprice quote 0nt these two analytics are intended to show how the query time window can be derived from operations on timestamp columns in the orderanalytics table e g striketime 00 00 05 intervalmaxbidpricewiderwindow mywiderintervalanalytic custom myaggfromcfganalytic max bidprice quote 0nt intervalmaxaskpricewiderwindow mywiderintervalanalytic custom myaggfromcfganalytic max askprice quote 0nt these two analytics are intended to show how the query time window can be derived from operations on timestamp and time columns in the orderanalytics table e g striketime bucketduration intervalmaxbidpricederivedwindow myderivedintervalanalytic custom myaggfromcfganalytic max bidprice quote 0nt intervalmaxaskpricederivedwindow myderivedintervalanalytic custom myaggfromcfganalytic max askprice quote 0nt these two analytics are intended to show how additional filtering logic can be derived from the incoming orderanalytics data e g add a greater than or less than filter depending on whether the order in question is a buy or sell intervalmaxpricewhereclause mywhereclauseintervalanalytic custom myaggfromcfganalytic max price trade 0nt intervalmaxpricewhereclause mywhereclauseintervalanalytic custom myaggfromcfganalytic max price trade 0nt content of the custom function custom mysimpleanalytic custom myaggfromcfganalytic orderanalyticsres args example analytics that are based on aggregations on market data here we simply use striketime and ordercompletedtime as the bounds of our query window cfg select from eqea config custom analytics where analytictype myintervalanalytic orderanalyticsres eqea util tickdata getdataandaggfromcfg orderanalyticsres cfg wclist starttime endtime usequerywindowadjustmentfactor apiargs orderanalyticsres cfg striketime ordercompletedtime 1b args here show how we can derive timestamps using a time column some value cfg select from eqea config custom analytics where analytictype mywiderintervalanalytic orderanalyticsres eqea util tickdata getdataandaggfromcfg orderanalyticsres cfg wclist starttime endtime usequerywindowadjustmentfactor apiargs orderanalyticsres cfg striketime 00 00 05 ordercompletedtime 00 00 05 1b args here we show how we can derive the query window using a combination of columns we are using striketime bucketduration as the starttime and ordercompletedtime bucketduration as the end time of our query window cfg select from eqea config custom analytics where analytictype myderivedintervalanalytic orderanalyticsres eqea util tickdata getdataandaggfromcfg orderanalyticsres cfg wclist starttime endtime usequerywindowadjustmentfactor apiargs orderanalyticsres cfg striketime bucketduration ordercompletedtime bucketduration 0b args here we are using a where clause as part of our analytic here we generate a list of where clauses which use greater than or less than depending on whether the order in question is a buy or sell wclist exec whereclause from update whereclause buy sell ordersidecode price limitprice from orderanalyticsres where not null limitprice cfg select from eqea config custom analytics where analytictype mywhereclauseintervalanalytic orderanalyticsres eqea util tickdata getdataandaggfromcfg orderanalyticsres cfg wclist starttime endtime usequerywindowadjustmentfactor apiargs orderanalyticsres cfg wclist striketime ordercompletedtime 1b args return our results orderanalyticsres note the code snippets provided in the example above are simply an example of the configuration and code required to use this function for a fully working example refer to the how to add custom analytics guide parameter name type description args dict argument dictionary accepted keys are outlined in the function description returns type description table keyed table containing all orderanalytic results to this point eqea util asof ajfromcfg the eqea util asof ajfromcfg utility function is used to calculate as of join analytics that is analytics defined by an as of join on market data for example the analytics arrivalbidprice and arrivalaskprice make use of the eqea util asof ajfromcfg function as they are defined by the bidprice and askprice values from the quote table at strike time this function takes a dictionary as its input accepted dictionary keys are outlined in the below table name type description orderanalyticsres table input order analytics data cfg table configuration settings usually taken from eqea config custom analytics used to define how the function operates joinordertimecol symbol time column from the order table you add the value of jointimeoffset from the cfg to this value to create the data set used in the as of join kcols symbol list of key column names used to append successive analytics to the orderanalytics table wc parse tree where clause used to filter tick data when joining note only use this where clause argument when it is absolutely necessary as this can make as of joins more inefficient refer to the aj performance documentation for details apiargs dict argument dictionary input to fsi eqea generateorderanalytics analytics that make use of the eqea util asof ajfromcfg utility function should have at a minimum the following values populated in eqea config custom analytics analytic the name of the analytic you are calculating this should match a corresponding column name in the orderanalytics table analytictype this is simply a value that can be used to group analytics together funcname this is the name of the function used to calculate these analytics the function fsi eqea generateorderanalytics calculates order analytics in the order that they appear in the eqea analytics cfg table this information can help you build out analytics that are dependent on other analytics by placing them ...
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)
  • logo

Verified site has: 74 subpage(s). Do you want to verify them? Verify pages:

1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
51-55 56-60 61-65 66-70 71-74


The site also has 1 references to external domain(s).

 squidfunk.github.io  Verify


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/1.1 301 Moved Permanently
Server nginx/1.22.0
Date Mon, 24 Aug 2026 05:00:48 GMT
Content-Type text/html
Content-Length 169
Connection close
Location htt????/code.kx.com/eqea-order-execution-util-functions.html
HTTP/2 301
server nginx/1.22.0
date Mon, 24 Aug 2026 05:00:48 GMT
content-type text/html
content-length 169
location htt????/code.kx.com/accelerators/eqea-order-execution-util-functions.html
strict-transport-security max-age=31536000
HTTP/2 200
server nginx/1.22.0
date Mon, 24 Aug 2026 05:00:48 GMT
content-type text/html
last-modified Thu, 20 Aug 2026 15:58:16 GMT
etag W/ 6a872418-24e08
strict-transport-security max-age=31536000
content-encoding gzip

Meta Tags

title="Utility Functions - Accelerators"
charset="utf-8"
name="viewport" content="width=device-width,initial-scale=1"
name="description" content="Order Execution Analytics Utility Functions"
name="author" content="KX Systems, Inc., a subsidiary of KX Software Limited"
name="generator" content="mkdocs-1.6.1, mkdocs-material-8.2.7+insiders-4.11.0"

Load Info

page size26285
load time (s)0.790931
redirect count2
speed download33272
server IP 35.193.146.67
* all occurrences of the string "http://" have been changed to "htt???/"