swap: include streaming interval in swap quote query

This commit is contained in:
The MMGen Project 2025-04-29 11:59:47 +00:00
commit 90ca53ae3d
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 7 additions and 2 deletions

View file

@ -1 +1 @@
15.1.dev32
15.1.dev33

View file

@ -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