From 90ca53ae3d4d3bae6c5064cc99e63a5107db893f Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 29 Apr 2025 11:59:47 +0000 Subject: [PATCH] swap: include streaming interval in swap quote query --- mmgen/data/version | 2 +- mmgen/swap/proto/thorchain/thornode.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mmgen/data/version b/mmgen/data/version index 68917ad5..68badc27 100644 --- a/mmgen/data/version +++ b/mmgen/data/version @@ -1 +1 @@ -15.1.dev32 +15.1.dev33 diff --git a/mmgen/swap/proto/thorchain/thornode.py b/mmgen/swap/proto/thorchain/thornode.py index 86db8453..36a62d2b 100755 --- a/mmgen/swap/proto/thorchain/thornode.py +++ b/mmgen/swap/proto/thorchain/thornode.py @@ -63,7 +63,12 @@ class Thornode: def get_quote(self): def get_data(send, recv, amt): - get_str = f'/thorchain/quote/swap?from_asset={send}&to_asset={recv}&amount={amt}' + get_str = ( + '/thorchain/quote/swap?' + f'from_asset={send}&' + f'to_asset={recv}&' + f'amount={amt}&' + 'streaming_interval=1') data = json.loads(self.rpc.get(get_str).content) if not 'expiry' in data: from ....util import pp_fmt, die