[bisq-network/bisq] Add API 'gettrades' method (PR #5976)

Christoph Atteneder notifications at github.com
Tue Jan 25 11:51:56 CET 2022


@ghubstan I just tried out the gettrades endpoint and it failed for me with following error when trying to call:
`./bisq-cli --password=xyz gettrades --category=closed`

```
Jän.-25 11:49:18.942 [BisqDaemonMain] ERROR b.d.grpc.GrpcTradesService:  java.lang.NullPointerException: Cannot invoke "bisq.core.trade.protocol.Provider.getKeyRing()" because "this.provider" is null
	at bisq.core.trade.protocol.bsq_swap.model.BsqSwapProtocolModel.getKeyRing(BsqSwapProtocolModel.java:226)
	at bisq.core.trade.bisq_v1.TradeUtil.getRole(TradeUtil.java:221)
	at bisq.core.api.CoreTradesService.getTradeRole(CoreTradesService.java:274)
	at bisq.core.api.CoreApi.getTradeRole(CoreApi.java:343)
	at bisq.daemon.grpc.GrpcTradesService.lambda$buildGetTradesReply$7(GrpcTradesService.java:309)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at bisq.daemon.grpc.GrpcTradesService.buildGetTradesReply(GrpcTradesService.java:322)
	at bisq.daemon.grpc.GrpcTradesService.getTrades(GrpcTradesService.java:150)
	at bisq.proto.grpc.TradesGrpc$MethodHandlers.invoke(TradesGrpc.java:761)
	at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:182)
	at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:340)
	at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:866)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5976#issuecomment-1021055939
You are receiving this because you are subscribed to this thread.

Message ID: <bisq-network/bisq/pull/5976/c1021055939 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20220125/5b3171e2/attachment.htm>


More information about the bisq-github mailing list