Workspace API -> Docker Container Application

Hi,

We are a Workspace user and have developed a series of dashboards using Python / Streamlit library.

When trying to containerize our app with docker we face issues as the docker image is unable to detect that Workspace is open and running.

1. What would be the best practice of consuming the real-time streaming data with Refinitiv tools (to be able to integrate into our application that is containerized with Docker)? Or what would be the alternative method to achieve our objectives?

2. Is there a limitation of the size of instrument list when opening a data stream? Is so, what would be the workaround if we have a huge list of instruments that we’d like to track where we just need last price, or last available traded price only?

Thanks!

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @ajaber

    If you uses the Refinitiv Data Library for Python in a docker container, you can change the base-url configuration of the desktop.workspace session to "http://host.docker.internal:9000" in the RD library configuration file (refinitiv-data.config.json). However, you need to know the TCP port used by the API proxy server. The default port is 9000. For example:

      },
            "desktop": {
                "workspace": {
                    "app-key": "<app-key>",
                    "base-url": "http://host.docker.internal:9000"
                }
            }
        }


Answers