-
Notifications
You must be signed in to change notification settings - Fork 217
#446 Bitstamp v2 not getting trades - fixed #456
#446 Bitstamp v2 not getting trades - fixed #456
Conversation
Hello, @pchertalev I see you used existing JSON mapping class. If this doesn't break compatibility I don't mind. |
There is only one version of BitstampAdapters class in XChange 4.4, there is no v2.BitstampAdapters, and there is no other method BitstampAdapters.adaptTrade for v2 version. So I don't see any other way - we must use BitstampTransaction class because it is used as parameter BitstampAdapters.adaptTrade. BitstampWebSocketTransaction is just wrapper for adapting input json fields to BitstampTransaction fileds.
|
Ok, if BitstampWebTransaction works for v1 and v2 trades, it looks perfect to me ;) You need something from me to merge? As soon as you guys put it in develop branch of main repo, Thanks, |
@Flemingjp @badgerwithagun Hi guys, if you have a time, please look at this PR |
I see the side calculation is in BitstampAdapters.adaptTrade
So I guess Bitstamp's own website is displaying it wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops duplicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
...tamp/src/main/java/info/bitrich/xchangestream/bitstamp/dto/BitstampWebSocketTransaction.java
Outdated
Show resolved
Hide resolved
...-bitstamp/src/main/java/info/bitrich/xchangestream/bitstamp/v2/BitstampStreamingService.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing spotted with the changed code.
...-bitstamp/src/main/java/info/bitrich/xchangestream/bitstamp/v2/BitstampStreamingService.java
Outdated
Show resolved
Hide resolved
…trades' into 446-bitstamp-not-getting-public-trades
No description provided.