getOptionRef API is giving empty results

https://learninghub.kx.com/forums/topic/getoptionref-api-is-giving-empty-results

Hello, I'm stuck at 1.5 of the Fundamentals Capstone project.
I'm writing a query to the getOptionRef API
uniqueOpts:$string distinct tradeoption_id to get a list of symbols as indicated.
However I'm getting an empty response:
refServiceHandle(getOptionRef;uniqueOpts)

option_id inst_id opt_type strike expiry
----------------------------------------

However, when I do this query with integers to the other integral I'm getting kind of result.
uniqueOpts2: distinct trade option_id

refServiceHandle(`getInstRef;uniqueOpts2)

inst_id inst_syb inst_name
------------------------------
1 AAPL "Apple"
2 MSFT "Microsoft"


How should I proceed in order to get some response on the getOption API?
Best regards,
Juan Pedro GarcĂ­a

Hi @JuanpeGarcia11

What does uniqueOpts variable return in the console? Would you be able to share a screen shot of this with your code and result instead of code snippet too please?


I will be better able to assist if I can see your code and output example as we have some issues with code formatting on the forums due to be resolved soon https://learninghub.kx.com/forums/topic/known-forum-ux-issues-and-resolutions/