Handling Async API Responses

Discussion in 'Automated Trading' started by roark240, Feb 18, 2022.

  1. roark240

    roark240

    1. Hi all,
    2. I am working on a project for automated trading, and we are looking to integrate Lime API.
    3. Our existing strategy code is in python, and requires synchronous api calls. Lime's API is in C++, and is largely asynchronous. We plan to use boost.python as a wrapper for the C++ code, and to use promises (std::future) to handle the async. Is this a good approach? If not, what are some recommended alternatives?
     
  2. Can you apply a call back to the api? Or check the status change of the api’s return.
     
  3. qlai

    qlai

    Don’t they have FIX api as well?
     
  4. they have