Skip to content

call_port method doesn't exist in kx.tick.GATEWAY class #55

@fabiogaiera

Description

@fabiogaiera

Hi maintainers,

While reviewing the documentation at https://github.com/KxSystems/pykx/blob/main/docs/user-guide/advanced/streaming/gateways.md, I noticed a reference to the call_port method, both in the text and in the code examples.

However, it appears that the call_port method is not defined in the GATEWAY class. Could you please confirm whether the documentation needs updating?

Additionally, in the following snippet:

def gateway_function(table, symbol):
    rtp = gateway.call_port('rtp', table, symbol)
    try:
        hdb = gateway.call_port('hdb', table, symbol)
    except BaseException:
        print('Failed to retrieve data from HDB')
        hdb = 0
    return rtp + hdb

the function returns the sum of rtp and hdb. Is this behavior correct and intended?

Thanks in advance for your help.

Best regards,
Fabio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions