Capestone Fundaments 3.3

https://learninghub.kx.com/forums/topic/capestone-fundaments-3-3

Hi , even though the badTrades was created as per the requirement still can’t pass the exercise which throws the below error . can that be explained. Or can the requirement be elaborated further.

 

 

badTrades:select from (update exQuality:classifyTrades[tradeContext`side;tradeContext`price;tradeContext`ask;tradeContext`bid] from tradeContext) where exQuality=0b //your code here - or work in the scratchpad ?Scratchpad

 

 

 

You can move the update inside classifyTrades

Hi , I have altered the code to a single input function and getting the desired output as provided above but still i am not able to pass the exercise.

classifyTrades:{ side:xside;price:xprice;ask:xask;bid:xbid; ?[side=`B;?[price<=ask;1b;0b];?[price>=bid;1b;0b]]}
update exQuality:classifyTrades[tradeContext] from tradeContext

badTrades:select from (update exQuality:classifyTrades[tradeContext] from tradeContext) where exQuality=0b

 

 

even though i could get the desired output I cannot pass through