Streaming

Returns the state of all streaming swaps

GEThttps://thor.nownodes.io/thorchain/swaps/streaming
Query parameters
Response

OK

Body
tx_idstring

the hash of a transaction

Example: "CF524818D42B63D25BBA0CCC4909F127CAA645C0F9CD07324F2824CC151A64C7"
intervalinteger (int64)

how often each swap is made, in blocks

quantityinteger (int64)

the total number of swaps in a streaming swaps

countinteger (int64)

the amount of swap attempts so far

last_heightinteger (int64)

the block height of the latest swap

trade_target*string

the total number of tokens the swapper wants to receive of the output asset

Example: "100"
source_assetstring

the asset to be swapped from

Example: "BTC.BTC"
target_assetstring

the asset to be swapped to

Example: "ETH.ETH"
destinationstring

the destination address to receive the swap output

Example: "0x66fb1cd65b97fa40457b90b7d1ca6b92cb64b32b"
deposit*string

the number of input tokens the swapper has deposited

Example: "100"
in*string

the amount of input tokens that have been swapped so far

Example: "100"
out*string

the amount of output tokens that have been swapped so far

Example: "100"
failed_swapsarray of integer (int64)

the list of swap indexes that failed

failed_swap_reasonsarray of string

the list of reasons that sub-swaps have failed

Request
const response = await fetch('https://thor.nownodes.io/thorchain/swaps/streaming', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "tx_id": "CF524818D42B63D25BBA0CCC4909F127CAA645C0F9CD07324F2824CC151A64C7",
    "interval": 0,
    "quantity": 0,
    "count": 0,
    "last_height": 0,
    "trade_target": "100",
    "source_asset": "BTC.BTC",
    "target_asset": "ETH.ETH",
    "destination": "0x66fb1cd65b97fa40457b90b7d1ca6b92cb64b32b",
    "deposit": "100",
    "in": "100",
    "out": "100",
    "failed_swaps": [
      0
    ],
    "failed_swap_reasons": [
      "text"
    ]
  }
]