Relative Content

Tag Archive for kdb

vectorizing function calls for use with update

expryDt:{[ed] (2_string ed) except “.”}; // generate a formatted ticker name for an option symbol:{[tkr;expiryDate;typ;strike] if[not typ in `CALL`PUT`CE`PE; show “typ is not correct. it must be either CALL or PUT or CE or PE”; exit 1]; r: $[(typ=`CALL) or (typ=`CE); string `C; string `P]; “” sv (string tkr; expryDt[expiryDate]; r; string strike) }; // […]