bitrich-info/xchange-stream

GDAX listens to fills

szd116 opened this issue · 4 comments

Hi guys,

First of all thank you very much for this great stream api. Just a quick question for the GDAX api, how do I listen to my fills ? I can listen to all the fills like below, the trade object doesn't even have an orderID, but ideally my fills should be pushed to me, any ideas? Thank you again for this great API.

  exchange.getStreamingMarketDataService().getTrades(CurrencyPair.BTC_USD).subscribe(trade -> {
        LOG.info("TRADE: {}", trade);

I've implemented this in pull request #160. I'm using it currently. It returns a UserTrade object (subclass of the Trade object) that contains the orderID information.

Private subscription is not supported currently.

#160 has now been merged, so you can use it by running a snapshot build.