2022.07.08 02:57 AM
Please tell me the code to solve the following issues:
Using the handle ```` h` and the `a` variable , call the `xxx` API and retrieve the data. Store the returned table in a variable `t`.
2022.07.08 03:10 AM - edited 2022.07.08 03:14 AM
Pass variable a
to API xxx
on remote handle h
and save to local variable t
:
t:h("xxx";a)
More about IPC:
Formatting tips:
2022.07.10 10:09 PM
I'm unable to complete the following tasks.
Please tell me how.
----------------------------------------------------------------------------------------------------------------------------
The reference data for these Options are actually stored on a separate q process that operates as an internal service. This process is restricted in that it only allows calls to it's APIs.
The two available APIs are the following:
getOptionRef
- This API takes as it's only input a symbol list of Options and returns a table with the associated Reference datagetInstRef
- This API takes as it's only input a list of longs corresponding to Instrument IDs and returns a table with the associated Reference dataThis Reference data process is a q process which is accessible on port 5010.
1.4 Using your IPC knowledge, connect to this service and store the open handle in a variable refServiceHandle
1.5 Using the handle refServiceHandle
and the uniqueOpts
variable we created before, call the getOptionRef
API and retrieve the associated Options Reference data. Store the returned table in a variable optRef
.
1.6 Now, extract the unique instruments in our new optRef
table, and call the getInstRef
API to return the Instrument Reference data and store in a table instRef
.
2022.07.11 07:14 AM
Do you have any details of your specific issue or error?
This request is vague. https://stackoverflow.com/help/how-to-ask
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.