Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16978

camel-xchange - Unable to configure multiple xchange endpoints with different crypto exchanges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.14.0
    • None
    • None
    • Unknown

    Description

      It seems reasonable to have a route like:

      from("direct:binance")
      .to("xchange:binance");
      
      from("direct:kraken")
      .to("xchange:kraken");
      

      Unfortunately, this only seems possible by creating a dedicated component instance for each crypto exchange. The xchange instance is cached in the component, so the first endpoint to initialize it 'wins'.

      https://github.com/apache/camel/blob/main/components/camel-xchange/src/main/java/org/apache/camel/component/xchange/XChangeComponent.java#L55-L68

      I guess it should be cached per crypto exchange used on the endpoint(s).

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jamesnetherton James Netherton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: