-
Notifications
You must be signed in to change notification settings - Fork 217
[bitstamp] API v2 not getting trades #446
Comments
Nobody noted that? |
Just so you know someone's listening... I don't use Bitstamp myself, sorry! |
Ok, I saw @pchertalev commited something in bitstamp v2. I'll wait a bit to see if he knows something. |
@jurepetrovic I've investigated this issue and found out it that the problem is in |
@chachalaca Nice! I see they also have javascript examples on the site. I will check, when I find some time... |
Ok, I changed that on my fork to come pass this line. And then it crashed on JSON to object mapping in |
Seems like BitstampWebSocketTransaction.java class does not match the specs. Will need to update the mapping class. |
This is weird. I've made almost identical fix as you but it works flawlessly.. |
java.lang.NoSuchMethodError: org.knowm.xchange.bitstamp.dto.marketdata.BitstampTransaction.(JJLjava/math/BigDecimal;Ljava/math/BigDecimal;I)V I'm getting this exception when trying to call constructor of the parent class in BitstampWebSocketTransaction.java. What version of basic xchange are you using? Thanks, |
Ok, I got this. It works for me now. What do you think? Can we do PR? |
Ok, let's see how this pans out. |
Guys, I'm not clear what is the problem I started BitstampManualExample and trades are recieved well:
|
Ah! I got - subscriber is not recieving trades - there is just JsonNettyStreamingService log. |
Guys, sorry I don't like changes from @jurepetrovic. |
With #456 I get trades again |
… timestamp calculation
…-trades #446 Bitstamp v2 not getting trades - fixed
Hello Gentlemen,
I tried to replace the old Bitstamp API with v2 today.
I only changed the import line:
import info.bitrich.xchangestream.bitstamp.v2.BitstampStreamingExchange;
and everything compiled fine.
However, it seems I am not getting any updates from the exchange. The log shows normal connection:
2019-11-06 18:55:19 | INFO | [main] i.b.x.b.v.BitstampStreamingService:125 - Connecting to wss://ws.bitstamp.net 2019-11-06 18:55:21 | INFO | [nioEventLoopGroup-2-1] i.b.x.s.n.WebSocketClientHandler:63 - WebSocket Client connected! 2019-11-06 18:55:21 | WARN | [nioEventLoopGroup-2-1] i.b.x.b.v.BitstampStreamingService:228 - Resubscribing channels 2019-11-06 18:55:21 | INFO | [main] i.b.x.b.v.BitstampStreamingService:312 - Subscribing to channel live_trades_btceur 2019-11-06 18:55:22 | INFO | [main] i.b.x.b.v.BitstampStreamingService:312 - Subscribing to channel live_trades_etheur
There is just not a single trade incoming.
Subscription remained exactly the same as in v1, where it worked flawlessly.
Anyone had the same problem?
Thank you and best regards,
Jure
The text was updated successfully, but these errors were encountered: