token created tine

Returns one DEX pool on Solana, where base currency mint address is So1111…1112 and quote currency mint address is AwvKn1…JBPL, sorted by block height: block time, protocol family, market address, base currency name, quote currency name, base post amount, base post amount in USD and 2 more fields.

By creatordao · saved 1 November 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($base: String, $quote: String) {
  Solana {
    DEXPools(
      orderBy: {ascending: Block_Height}
      where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: $base}}, QuoteCurrency: {MintAddress: {is: $quote}}}}}
      limit: {count: 1}
    ) {
      Block{
        Time
      }
      Pool {
        Dex {
          ProtocolFamily
        }
        Market {
          MarketAddress
          BaseCurrency {
            Name
          }
          QuoteCurrency {
            Name
          }
        }
        Base {
          PostAmount(maximum: Block_Slot)
          PostAmountInUSD(maximum: Block_Slot)
        }
        Quote {
          PostAmount(maximum: Block_Slot)
          PostAmountInUSD(maximum: Block_Slot)
        }
      }
    }
  }
}

Variables

{
  "quote": "AwvKn1U5g1wxW3yFcbguAqN1FTcSkQaANTwWDjmVJBPL",
  "base": "So11111111111111111111111111111111111111112",
  "time_ago": "2023-11-01T05:56:56Z"
}

Similar queries