I need to connect to Kx refinery and get the table data . Table Name : stock
I tried to use:
\c `:host:port //gives output as 25 80i
getTicks[`stock;startDate;endDate] //does not work ,shows error near getTicks
I need to connect to Kx refinery and get the table data . Table Name : stock
I tried to use:
\c `:host:port //gives output as 25 80i
getTicks[`stock;startDate;endDate] //does not work ,shows error near getTicks
Copyright © 2021 Jogjafile Inc.
There's several issues in your example that I think could be solved by reading the IPC docs: https://code.kx.com/q/basics/ipc/.
First and foremost
\cis used for setting a limit on the size of the virtual console display. The25 80you see is just the size of the console (height and width)So assuming this is a standard q process you're trying to connect to (e.g rdb, hdb, gateway) then you should just be able to open the port via:
Note that this assumes there's no username or password required, in which case it would be
Then, if getTicks is a function defined on the remote process you can run something like:
to perform a synchronous (blocking) request to the server to call your function with your required arguments.