KX Community

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

Home Forums KX Academy Fundamental Capstone Exercise 2

  • Fundamental Capstone Exercise 2

    Posted by Gerald on January 20, 2025 at 6:00 pm

    The meta for my optRef table is:

    c | t f a
    ———| —–
    option_id| s
    inst_id | j
    opt_type | s
    strike | j
    expiry | d    

    I can see I successfully change the expiry column to “date”. But it seems to fail in the test:

    quizItem      success      description                                       error
    —————————————————————————–
    exercise2.1    Fail          “optRef Has Correct Format          ” “”
    exercise2.2  Pass         “instRef Has Correct Format          ” “”
    exercise2.3   Pass         “messages Has Correct Format   ” “”   

    To get optRef, I used optRef: refServiceHandle (`getOptionRef; uniqueOpts).

    I have 99 rows in my optRef table.

    Any suggestions?

    • This discussion was modified 1 day, 19 hours ago by  Gerald.
    megan_mcp replied 1 day, 3 hours ago 2 Members · 1 Reply
  • 1 Reply
  • megan_mcp

    Administrator
    January 21, 2025 at 10:11 am

    Hi Gerald,

    Your code seems correct! Can you send me your code for uniqueOpts? You can do it via direct message if you wish. I believe the number of rows in the optRef table should be 100.

    Thanks,

    Megan

Log in to reply.