Latest Trades of a Token on TON

Returns the latest 100 DEX trades on TON: block time, shard, buy amount, buy currency name, buy smart contract address, buy buyer address, buy workchain and 7 more fields.

By Divyasshree · saved 24 October 2024 · run 20 times · Bitquery API v2

What it returns

The query

query MyQuery {
  Ton(network: ton) {
    DEXTrades(
      orderBy: {descending: Block_Time}
      limit: {count: 100}
      where: {any: [{Trade: {Buy: {Currency: {SmartContract: {Address: {is: "EQDEI9826MxJmFwVQaIugojr4a-6cmeAWOk5g86HdCgap2dK"}}}}}}, {Trade: {Sell: {Currency: {SmartContract: {Address: {is: "EQDEI9826MxJmFwVQaIugojr4a-6cmeAWOk5g86HdCgap2dK"}}}}}}]}
    ) {
      Block {
        Time
        Shard
      }
      Trade {
        Buy {
          Amount
          Currency {
            Name
            SmartContract {
              Address
            }
          }
          Buyer {
            Address
            Workchain
          }
        }
        Dex {
          ProtocolName
          SmartContract {
            Address
          }
        }
        Sell {
          Amount
          Currency {
            Name
          }
          Seller {
            Address
            Workchain
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries