-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BitfinexAdapters.adaptTicker(org.knowm.xchange.bitfinex.v2.dto.marketdata.BitfinexTicker bitfinexTicker) NPE #4818
Comments
did anyone facing same issue? |
Hello, @pavlo-pastushok We need to understand that this is normal operation of the exchange API, and then create an exception handler. |
Hi @rizer1980 I am not sure, but I received this situation more than 10 times a day during last 3 days |
I have faced a similar issue. It seemed that exchange metadata was not populated for currency pairs with USDT as the quoted currency. Upon checking, it looks like during the remote init process, currency pairs derived from tickers and symbol details are processed inconsistently, at least in terms of adapting the currencies. This resulted in
The fix appears to be needed in Change: This will then adapt ticker-derived symbols and symbols-details-derived symbols in the same way, and results in UST being converted to USDT in both cases. Note that getTicker() and getTickers() on BitfinexMarketDataService also call BitfinexAdapters.adaptTicker, so a regression test could be extended to these use cases as well. Hope this helps with any bug fix that may be deemed necessary :) |
@rustyruzzee nice. shouldnt this be a PR? |
During Bitfinex remoteInit I received an error related to tickers adaptation
a line above throws an exception
because some tickers have
dailyChangePerc
field as nullfor example:
The text was updated successfully, but these errors were encountered: