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

camel-xchange: ticker action may throw NotYetImplementedForExchangeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.5.0
    • camel-xchange
    • None
    • Unknown

    Description

      The xchange ticker action invokes this code:

      https://github.com/apache/camel/blob/e924867d1a153e3d1bf6af7b01cf1f950cf91ff3/components/camel-xchange/src/main/java/org/apache/camel/component/xchange/XChangeEndpoint.java#L181

      Note the cast of 'pair' to 'Instrument'. Conveniently this works for the default binance exchange that the component ships with. But for most other exchanges, the xchange crypto API implementations still use the deprecated MarketDataService.getTicker(CurrencyPair).

      So if you try to use the ticker action for the kraken exchange, you get NotYetImplementedForExchangeException.

      We could do fallback to the older getTicker variant if the initial attempt fails.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: