Skip to content
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

Machine-friendly Trade Logs #1432

Open
tiberio-baptista opened this issue Nov 24, 2022 · 0 comments
Open

Machine-friendly Trade Logs #1432

tiberio-baptista opened this issue Nov 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tiberio-baptista
Copy link

tiberio-baptista commented Nov 24, 2022

In addition to polldata.json, I think it would be beneficial to have a separate log with machine-friendly trade logs (JSON line format, see https://jsonlines.org/). This seems easy to implement, and this feature could be toggled via options.json or an environment file.

Benefits
An example of this being useful: the file could be easily monitored for new logs, and new lines would be easily parsed and fed to software that can generate graphs and charts, such as Grafana with a Loki backend.

Other use-cases can be thought up of, such as custom alerts to alternative apps/software such as Telegram, Slack, e-mail, (...). Another example is that self-made GUIs could be able to update their visuals/charts in real-time by simply monitoring this file.

Alternatives
This could be done with polldata.json, but I don't find this practical because the whole file must be read and parsed for new trades. polldata.json also tends to increase in size, making each subsequent read/parse of the entirety of the file more costly.

@tiberio-baptista tiberio-baptista added the enhancement New feature or request label Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant