Trades not available for many tokens

Returns the latest 10 DEX trades by token on TON, where smart contract address is EQD0KpcRMh-sKO2z5-vOjgvFjTT58tO-2Nmvxqg5ocFQFtWz, EQB420yQsZobGcy0VYDfSKHpG2QQlw-j1f_tPu1J488I__PX or 2 more: success, trade amount, buyer address, smart contract address, currency symbol, currency name, protocol name and 12 more fields.

By Akshat · saved 10 February 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Ton(network: ton) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {SmartContract: {Address: {in: ["EQD0KpcRMh-sKO2z5-vOjgvFjTT58tO-2Nmvxqg5ocFQFtWz","EQB420yQsZobGcy0VYDfSKHpG2QQlw-j1f_tPu1J488I__PX", "EQDW9iHRwQMEuJG5MtV7OLVkqTkJQ3VQXMu5oWEq8NsP_07y", "EQByRoXQrVoCvHCWWjeOLXE9wUI9_XEha4yKTLR--cVsD1MM"]}}}}}
    ) {
      Transaction {
        Success
      }
      Trade {
        Amount
        Buyer {
          Address
        }
        Currency {
          SmartContract {
            Address
          }
          Symbol
          Name
        }
        Dex {
          SmartContract {
            Address
          }
          ProtocolName
        }
        Price
        Seller {
          Address
        }
        Side {
          Type
          AmountInUSD
          Amount
          Buyer {
            Address
          }
          Currency {
            Symbol
            SmartContract {
              Address
            }
            Name
          }
          Seller {
            Address
          }
        }
      }
      Block {
        Time
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries