Skip to content

Subscribing to created events seems broken and LiquidTap docs likely wrong. #2

@scherrey

Description

@scherrey

Am using liquid-tap-python to try to subscribe to executions_cash_btcusd events. The docs at https://developers.liquid.com/#public-channels claim I should be subscribing to "updated" events but logging shows that these events come across as "created" events. See the stderr log output:
$ python tap.py > data/executions_cash_btcusd.json
Connection: Connection opened
Connection: ping to pusher
Connection: Message - {"data":"{"activity_timeout":120,"socket_id":"8544629409.4799544661"}","event":"pusher:connection_established"}
Connection: Sending event - {"event": "pusher:subscribe", "data": {"channel": "executions_cash_btcusd"}}
Connection: Message - {"data":"","event":"pusher:pong"}
Connection: pong from pusher
Connection: Message - {"channel":"executions_cash_btcusd","data":{},"event":"pusher_internal:subscription_succeeded"}
Connection: Message - {"channel":"executions_cash_btcusd","data":"{"created_at":1578762435,"id":248693094,"price":8113.295,"quantity":0.068,"taker_side":"sell"}","event":"created"}
Connection: Message - {"channel":"executions_cash_btcusd","data":"{"created_at":1578762504,"id":248693385,"price":8113.2492,"quantity":0.728,"taker_side":"buy"}","event":"created"}

However, even though I change the bind to subscribe to 'created' events, my callback function is never called and so even though the log shows events are out there I cannot capture them.

Contrast this to the executions_cash_btcusd channel which does product 'updated' events and subscriptions to same are captured in my callback function. I've attached two versions of the source code to show the difference.

Also - is there any other documentation for what events and channels exist to subscribe to and what their behavior really means? It's difficult to completely understand what the difference is between the semantics of the channels.

executions_cash_btcusd.txt
product_cash_btcusd_1.txt

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