-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fuller featured API for get_relative_account_history #358
Comments
Or perhaps improve the |
Happy to call whatever API you think it most appropriate to achieve this. |
With the addition of the elasticsearch plugin this queries are very easy to do and much more powerful than what can currently do with a traditional full node. I was talking with @xeroc today to add at least 1 public ES node if the infrastructure worker get voted in. In the meantime i will show some examples and provide access by request to tmp ES nodes. get only transfers from account:
getting today operations from account:
get count:
going lower into first ops of account by date:
count:
use elasticsearch date math ranges, lets get the ops in the last 1 hour:
and in last 1 day:
lets add operation filter, getting all the transfers in the last month from account:
more about date math ranges at: https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math |
Please document all these ES related queries somewhere. And leave a link to every issue/PR. Replying with details in each issue is a bit waste of efforts. |
yes, understood and on it. thanks. |
Please be careful. ES has security issues, you should not expose the query API to the public internet. |
interesting, we can make something like: https://github.com/oxarbitrage/bitshares-python-api-backend/blob/master/api.py with flask and python to expose some calls with ES running on localhost. i can develop this for a full ES node with some calls, pretty easy. let me know what do you think. |
Yes, a small wrapper application should do the trick. But I'm not really an expert there, perhaps spend some time googling ES security. |
ok, thanks @pmconrad |
linking work in progress small elasticsearch flask wrapper: https://github.com/oxarbitrage/bitshares-es-wrapper |
In order to fully satisfy bitshares/bitshares-ui#68, we need to be able to optionally request:
in addition to the features of get_relative_account_history
The text was updated successfully, but these errors were encountered: