Post / receive Acks on the same channel for ADS websocket in Python

Hi - I can connected to an ads and off-stream post successfully. Im trying to send a lot of data, so i use a while True loop after receiving the login response to listen to a queue and post.

However this means that the on_message function is never accessed to receive the Acks to the posts.


Do you have any example of how I could achieve this please? (I'm using the Refinitiv examples as a base to connect to the ADS websocket)

Thanks

Martin

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @martin.gregory

    Thanks for reaching out to us.

    You need to send post messages outside the on_message function.

    You can refer to the market_price_posting.py example on GitHub.

    The example shows how to send post messages in the main thread outside the on_message function.

    1675059262955.png

    I hope that this information is of help.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.