question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adding document for ipc

See original GitHub issue

Please add some document on how to use ipc. I figured it out by seach hopen in the repo

>>> h = q.hopen('::9900')
>>>  h(q('"1 + 1"'))
K('3')
>>>  h((q('+'), 1, 2)))
K('3')

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sashkabcommented, Oct 31, 2018

@dirwin15 If you pass argument as Python string, it will be casted into symbol, which is expected. If you would like to pass arguments with a different type, you should either pass their Python equivalent (i.e for date — use datetime.date, for int pass int.

>>> from datetime import date
>>> from pyq import kp, K
>>> K.date(date(2018, 10, 31))
k('2018.10.31')
>>> K.string("string")
k('"string"')
>>> kp("string")
k('"string"')
>>> K.int(123)
k('123i')
>>> K.float(3.14159)
k('3.14159')

So you might want to modify your call in order to receive expected types:

h(('runFunc',('tradeData'),(K.date(date(2018, 7, 26)), K.long(10055285), K.string('ORD_ID'))))

Documentation is available at code.kx.com

1reaction
StephenTaylor-Kxcommented, Jun 20, 2018

Looking forward to seeing the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learn about license types and document formats - IPC Store
If you purchased a single-device DRM document, the IPC FileOpen permission server will consider the first device you use to open a DRM-protected...
Read more >
Frequently Asked Questions | IPC International, Inc.
IPC documents are provided in electronic download and hard copy formats. Hard Copy — A professionally printed and bound document. Download — Available...
Read more >
IPC Digital Rights Management (DRM) User Guide Free ...
IPC Digital Rights Management (DRM) User Guide Free Member Documents. Do not attempt to open the document unless you are the primary contact...
Read more >
IPC Standards Related Resources | IPC International, Inc.
There are several products, tools and documents provided by IPC in support of the electronics industry. The information includes the standards specification ...
Read more >
IPC - Propose a Standard Development Activity
Any number of individuals - from a single engineer to an entire company of electronics professionals - can submit a standard development proposal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found