fundamentals capstone 3.4, 4.6

https://learninghub.kx.com/forums/topic/fundamentals-capstone-3-4-4-6

In exercise 3.4 I’m getting an error when I’m saving the badTrades csv.

answer:

save `:getenv[`AX_WORKSPACE],"/badTrades.csv"

error: getenv/AX_WORKSPACE. OS reports: No such file or directory

 

In Exercise 4.6 I’m having a type error. I just wanted to check my below code is right or I have an misunderstanding of the question.

answer:

timeSeries:`edge`Qty`numTrds!{(exec x from edge15)}`$/:{exec i from edge15} each `edge`Qty`numTrds;

error: type: Mismatched types

Hi @kal8na ,

There is a typo in your line

save `:getenv[`AX_WORKSPACE],"/badTrades.csv"

You’re missing the $ operator.

I can help clarify what’s being asked in 4.6.

You will need to use the xbar function to create the edge15 table, and then use exec to extract the fields you need for the timeseries dictionary. It should be a simple

timeseries: exec ... from edge15

Hope this helps!

Laura

Problem solved. Thank you very much!!!