TimeQueryTrades

指定币种在指定时间段的交易列表,目前24小时内

Returns 20 DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is 8KMfU1…pump and block time since 2025-02-08, sorted by block time: block time, program address, protocol family, protocol name, account owner, side type, side account address and 8 more fields.

By elec · saved 8 February 2025 · Bitquery API v2

What it returns

Filters

The query

query TimeQueryTrades(
  $token: String, 
  $base: String,
  $time_start: DateTime!, 
  $time_end: DateTime!
) {
  Solana{
    DEXTradeByTokens(
      orderBy: {ascending: Block_Time}
      limit: {count: 20}
      where: {Trade: {Side: {Amount: {gt: "10"}, Currency: {MintAddress: {is: $base}}}, Currency: {MintAddress: {is: $token}}, Price: {gt: 0}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: $time_start, till: $time_end}}}
    ) {
      Block {
        allTime: Time
      }
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Account {
          Owner
        }
        Side {
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "token": "8KMfU13W1ayhBEyWrZTe8hPTNbZo2cLJrH3pTqNqpump",
  "base": "So11111111111111111111111111111111111111112",
  "time_start":"2025-02-08T01:41:00Z",
  "time_end":"2025-02-08T01:42:00Z"
}

Similar queries