KX Community

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

Home Forums KX Academy Fundamentals Capstone 3.2

  • Fundamentals Capstone 3.2

    Posted by anduhau on October 23, 2023 at 12:00 am

    I am able to update the table and add the exQuality column, but I cannot pass the tests. Here is my function.

    classifyTrade : {[initTable] newTable : update exQuality : ?[side = `S; ?[price > bid; 1b; 0b]; ?[price < ask; 1b; 0b]] from initTable;
    :newTable;}

    Could anyone provide one suggestion? I also tried removing the inner [] brackets, but I still fail the tests.

    Thank you for the help!

    anduhau replied 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • megan_mcp

    Administrator
    October 24, 2023 at 12:00 am

    Hi  !

    Can you try naming the function classifyTrades instead of classifyTrade.

    I’ve tested it and it should work fine with this adjustment.

    Many thanks,

    Megan

Log in to reply.