What could cause the INVALID_MARKET exception?
See original GitHub issueFollowing 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:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use the currency pairs constants.
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);