trade by time

Returns the latest 5 DEX trades on Solana, where market market address is B4Vwoz…MhUV and block time since 2024-12-26: slot, block time, buy amount, buy price, buy account address, buy account owner, buy token owner and 23 more fields.

By gaurav · saved 26 December 2024 · Bitquery API v2

What it returns

Filters

The query

query SubscribeAllTrades {
  Solana {
    DEXTrades(
      limit: {count: 5}
      orderBy: {descending: Block_Time}
      where: {Block: {Time: {since: "2024-12-26T7:59:00Z"}}, Trade: {Market: {MarketAddress: {is: "B4Vwozy1FGtp8SELXSXydWSzavPUGnJ77DURV2k4MhUV"}}}}
    ) {
      Block {
        Slot
        Time
      }
      Trade {
        Buy {
          Amount
          Price
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Currency {
            MintAddress
            Name
            Decimals
            Symbol
          }
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Index
        Market {
          MarketAddress
        }
        Sell {
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            Decimals
            Name
            Symbol
            MintAddress
          }
        }
      }
      Transaction {
        Signature
        Signer
        Result {
          Success
        }
      }
      Instruction {
        Index
        InternalSeqNumber
      }
    }
  }
}

Similar queries