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.

What could cause the INVALID_MARKET exception?

See original GitHub issue

Following the example code for the Bittrex marketdata demo, the exchange responds with a disappointing HTTP message. Here’s the exception:

Exception in thread "main" si.mazi.rescu.HttpStatusIOException: Can not construct instance of org.knowm.xchange.bittrex.v1.dto.marketdata.BittrexTickerResponse, problem: null at [Source: {"success":false,"message":"INVALID_MARKET","result":null}; line: 1, column: 58]

Is this reproducible on someone else’s machine? Am I doing something wrong?

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
npomfretcommented, Aug 7, 2017

Use the currency pairs constants.

1reaction
devsatishcommented, Aug 7, 2017

Yep…not just the demo. Just did some debugging and found that the BittrexUtils.toPairString is causing it. public static String toPairString(CurrencyPair currencyPair) { return currencyPair.counter.getCurrencyCode().toUpperCase() + "-" + currencyPair.base.getCurrencyCode().toUpperCase(); }

I guess its because of not properly constructed CurrencyPair object param.

My Request was like this: CurrencyPair cp = new CurrencyPair("btc", "ltc"); List<BittrexUserTrade> lt = serviceRaw.getBittrexTradeHistory(cp);

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control Number: 49673 Addendum StartPage: 0 - PUC Interchange
"invalid".4 The provided examples inform what "may" cause an invalid market solution or price, but they do not provide a limitation to what...
Read more >
What is Exception Handling? - SearchSoftwareQuality
Exceptions occur for numerous reasons, including invalid user input, code errors, device failure, the loss of a network connection, insufficient memory to run ......
Read more >
OATS Reporting Technical Specifications - finra
Reporting Exception Code - in instances where no trade report is required pursuant to FINRA transaction reporting rules, firms may use a ...
Read more >
Error Messages - USAePay
Your billing address does not match your credit card. Please check with your bank. The AVS result received from the platform was blocked...
Read more >
MiFID II Order Error Updates - Intercontinental Exchange
This material may not be reproduced or redistributed in whole or in part ... Any of the following exceptions result in the entire...
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