KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy fundamentals capstone 3.4, 4.6

  • fundamentals capstone 3.4, 4.6

    Posted by Kal8na on April 12, 2024 at 1:16 pm

    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

    Kal8na replied 8 months, 2 weeks ago 2 Members · 2 Replies
  • 2 Replies
  • Laura

    Administrator
    April 12, 2024 at 3:02 pm

    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

  • Kal8na

    Member
    April 12, 2024 at 3:27 pm

    Problem solved. Thank you very much!!!

Log in to reply.