question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BCH/BTC : [EQuery:Unknown asset pair]

See original GitHub issue

I have added a new currency BCH in KrakenUtils.java DIGITAL_CURRENCIES.add(KrakenAdapters.adaptCurrency("BCH"));

When requesting a ticker System.out.println(marketDataService.getTicker(new CurrencyPair(Currency.BCH, Currency.BTC))) ;

I am still getting ExchangeException [main] INFO org.knowm.xchange.kraken.KrakenExchange - Calling Remote Init... Exception in thread "main" org.knowm.xchange.exceptions.ExchangeException: [EQuery:Unknown asset pair] at org.knowm.xchange.kraken.service.KrakenBaseService.checkResult(KrakenBaseService.java:82) at org.knowm.xchange.kraken.service.KrakenMarketDataServiceRaw.getKrakenTicker(KrakenMarketDataServiceRaw.java:38) at org.knowm.xchange.kraken.service.KrakenMarketDataService.getTicker(KrakenMarketDataService.java:31)

Why it is happening. I thought a pair may be created as soon a Currency is introduced. Isn’t it? Do you need to create a pair manually?

Give a hint what else must be edited to correct it?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
douggiecommented, Aug 2, 2017

HI,

I beleive we need to have Kraken adapters not add in the X’s and Z’s into a pair when submitting the request where the quote currency is BCH.

Currently the latest develop branch is market data request by sending https://api.kraken.com/0/public/Trades?pair=ZBCHXXBT, as ZBCHXXBT is not a valid pair (https://api.kraken.com/0/public/AssetPairs) the valid pair is just BCHXBT.

Essentially when the quote currency is BCH the kraken adapter should not add the Z and X’s to create the pair.

Happy to fix it up later today, or if someone else is taking a look, great!

0reactions
npomfretcommented, Aug 3, 2017

That does sound like a good change. (And I also don’t use dark markets).

I think we still need to consider a general solution to this problem though. Not all exchanges will have the necessary API calls to do it magically.

Read more comments on GitHub >

github_iconTop Results From Across the Web

0.00624 | BCHBTC | Binance Spot
Trade BCH to BTC and other cryptocurrencies in the world's largest cryptocurrency exchange. Find real-time live price with technical indicators to help you ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found