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.

Bitmex IllegalArgumentException: value already present: H18 after version 4.3.2

See original GitHub issue

I randomly started getting this exception in all of my programs using Bitmex:

Exception in thread "main" java.lang.IllegalArgumentException: value already present: H18 at com.google.common.collect.HashBiMap.put(HashBiMap.java:282) at com.google.common.collect.HashBiMap.put(HashBiMap.java:258) at org.knowm.xchange.bitmex.service.BitmexMarketDataServiceRaw.getActivePrompts(BitmexMarketDataServiceRaw.java:117) at org.knowm.xchange.bitmex.BitmexExchange.remoteInit(BitmexExchange.java:54)

Only way I have been able to stop it is changing my pom file to 4.3.2, getting the same thing with 4.3.3 and 4.3.4 snapshot

I am guessing the H18 is from the supposed base pair of the futures contracts like LTCH18, but I am getting this exception even with a fresh project. thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
douggiecommented, Mar 4, 2018

i will try to take a look i think we are now getting duplicate contract dates being returned bý the active instruments api adding quick .contains() in the remote init before adding the contracts to the hash map should fix it.

On Sat, 3 Mar 2018, 02:23 Jim Northrup, notifications@github.com wrote:

if you’re feeling like implementing the features you need most I have generated bitmex fresh from swagger this morning to remove all the stacktraces in my console when its running.

it appears that @timmolter https://github.com/timmolter would rather maintain 60+ handwritten modules than generate the boilerplate, or let anyone commit code that does so and the bitmex module is a galactic scale amount of hand-maintained brittle code so it looks like an impending fork as I implement the features i need in the exchanges I can’t contribute to the main codebase here.

you can get the bitmex work-in-progress from https://github.com/jnorthrup/XChange swagger-gen branch (now my default)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timmolter/XChange/issues/2355#issuecomment-370108732, or mute the thread https://github.com/notifications/unsubscribe-auth/AENHasZ-YjTtDzK-vRpJCYtxriQdA5Wwks5taf6qgaJpZM4SVky8 .

1reaction
jnorthrupcommented, Mar 3, 2018

if you’re feeling like implementing the features you need most I have generated bitmex fresh from swagger this morning to remove all the stacktraces in my console when its running.

it appears that @timmolter would rather maintain 60+ handwritten modules than generate the boilerplate, or let anyone commit code that does so and the bitmex module is a galactic scale amount of hand-maintained brittle code so it looks like an impending fork as I implement the features i need in the exchanges I can’t contribute to the main codebase here.

you can get the bitmex work-in-progress from https://github.com/jnorthrup/XChange swagger-gen branch (now my default)

Read more comments on GitHub >

github_iconTop Results From Across the Web

17779.0 (XBTUSD) Trade - BitMEX
Trade Bitcoin and other cryptocurrencies with up to 100x leverage. Fast execution, low fees, Bitcoin futures and swaps: available only on BitMEX.
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