-
Notifications
You must be signed in to change notification settings - Fork 15
Filtering trades by "Now" doesn't work #476
Comments
Thanks for the bug report. I'm not receiving notifications from github, so didn't see it until today. When Horizon v1 was released there was a bug in parsing the cursor argument. I disabled it at that time, but never returned to restore it. As such, it was always defaulting to the start of the ledger. I'm patching this now. The stream will terminate when no more data is found, so ascending from now will always return an empty list. I assume you want the ability to stream forever, blocking until new data is ready? |
Please take a look at v0.21.1, which fixes the cursor. I've been working on a version 2 SDK and would appreciate input into features you'd like to see. Please feel free to raise issues at https://github.com/Synesso/scala-stellar |
Thanks for the patch! Yes, we're looking for the ability to stream forever like in the JS sdk - just curious if there was historical background to why this wasn't implemented back then? We're also looking to query solely by an asset issuer (as opposed to the orderbook filter with multiple criteria). |
Thanks for taking time to develop this sdk.
I have a simple app to stream trades since request time:
but I noticed in the logs that it is retrieving trades since the start of time:
If I do the below, it doesn't print anything (I admit that I did not wait for longer than 5 mins which may be insufficient for the lazylist to compute from 2015 until 2021)
Could you advise if this is actually a bug, or if I have to do something else to stream from a certain time?
The text was updated successfully, but these errors were encountered: