Browse Source

swap: include streaming interval in swap quote query

The MMGen Project 7 months ago
parent
commit
90ca53ae3d
2 changed files with 7 additions and 2 deletions
  1. 1 1
      mmgen/data/version
  2. 6 1
      mmgen/swap/proto/thorchain/thornode.py

+ 1 - 1
mmgen/data/version

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

+ 6 - 1
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