From 974dcba611a610607d3f0445940b73e24d9c5f40 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Sun, 17 Apr 2022 17:30:36 +0200 Subject: [PATCH] api: fixed get metric one query, include channels_info Changelog-Fixed: api: fixed get metric one query, include channels_info Signed-off-by: Vincenzo Palazzo --- lnmetrics_api/queries/queries.py | 30 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/lnmetrics_api/queries/queries.py b/lnmetrics_api/queries/queries.py index eecf620..e5d8de8 100644 --- a/lnmetrics_api/queries/queries.py +++ b/lnmetrics_api/queries/queries.py @@ -64,6 +64,36 @@ end hash_next_page } + channels_info { + node_id + channel_id + node_alias + color + capacity + forwards { + direction + status + failure_reason + failure_code + timestamp + } + up_time { + event + status + timestamp + } + online + last_update + direction + fee { + base + per_msat + } + limits { + min + max + } + } up_time { event channels { diff --git a/pyproject.toml b/pyproject.toml index 5760402..657f5c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Python implementation of the lnmetrics API to query the lnmetrics authors = ["Vincenzo Palazzo "] [tool.poetry.dependencies] -python = "^3.8" +python = "^3.7" gql = "^3.1.0" aiohttp = "^3.8.1"