sunswap latest Trades of token

Get latest trades of a token on sunswap

Returns the latest 100 DEX trades on Tron, where contract address is TKzxdS…g2Ax: buy amount, buy currency name, buy smart contract, buy buyer, buy price, protocol name, smart contract and 5 more fields.

By Divyasshree · saved 6 September 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Tron(dataset: realtime, network: tron) {
    DEXTrades(
      where: {Contract: {Address: {is: "TKzxdSv2FZKQrEqkKVgp5DcwEXBEKMg2Ax"}},
        any:[ {Trade: {Buy: {Currency: {SmartContract: {is: "TM3k1FoDYhn3Yadaeqb5aCyvWo7ZbHWjng"}}}}},{Trade: {Sell: {Currency: {SmartContract: {is: "TM3k1FoDYhn3Yadaeqb5aCyvWo7ZbHWjng"}}}}}]}
      limit: {count: 100}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Buy {
          Amount
          Currency {
            Name
            SmartContract
          }
          Buyer
          Price
        }
        Dex {
          ProtocolName
          Pair {
            SmartContract
            Name
          }
        }
        Sell {
          Amount
          Price
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries