Realtime trades for a TON network token

Streams DEX trades on TON as they happen: block time, shard, buy amount in USD, buy amount, buy buyer address, buy workchain, buy currency name and 20 more fields.

By Akshat · saved 8 November 2024 · Bitquery API v2

What it returns

The subscription

subscription MyQuery {
  Ton(network: ton) {
    DEXTrades(where: {any: [{Trade:{Buy:{Currency:{SmartContract:{Address:{is:"EQDEI9826MxJmFwVQaIugojr4a-6cmeAWOk5g86HdCgap2dK"}}}}}},{Trade:{Sell:{Currency:{SmartContract:{Address:{is:"EQDEI9826MxJmFwVQaIugojr4a-6cmeAWOk5g86HdCgap2dK"}}}}}} ]}) {
      Block {
        Time
        Shard
      }
      Trade {
        Buy {
          AmountInUSD
          Amount
          Buyer {
            Address
            Workchain
          }
          Currency {
            Name
            Symbol
            SmartContract {
              Address
            }
          }
          Price
          PriceInUSD
          Seller {
            Address
            Workchain
          }
        }
        Dex {
          ProtocolName
          ProtocolVersion
          ProtocolFamily
          SmartContract {
            Address
          }
        }
        Sell {
          Amount
          AmountInUSD
          Buyer {
            Workchain
            Address
          }
          Currency {
            Name
            ImageURI
            Symbol
          }
          Price
          PriceInUSD
          Seller {
            Workchain
            Address
          }
        }
        Transaction {
          Hash
        }
      }
    }
  }
}

Similar queries