strategy_plus3

CreationDate CreationPrice Plus3h Price

Returns one transfer on BNB Chain, where currency smart contract is 0x5c85…46f6, buy currency smart contract is 0x5c85…46f6 and block time since 2025-03-26, sorted by block time: block number, block time, transaction hash, buy currency name, buy currency symbol, buy price, sell currency name and 2 more fields.

By Imanol · saved 27 March 2025 · run 13 times · Bitquery API v2

What it returns

Filters

The query

query {
  EVM(network: bsc) {
    # First transfer (creation date)
    creation: Transfers(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {
        Transfer: {Currency: {SmartContract: {is: "0x5c85d6c6825ab4032337f11ee92a72df936b46f6"}}}
      }
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        Hash
      }
    }
    
    # First trade (initial price)
    initialPrice: DEXTrades(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {
        Trade: {Buy: {Currency: {SmartContract: {is: "0x5c85d6c6825ab4032337f11ee92a72df936b46f6"}}}}
      }
    ) {
      Block {
        Time
        Number
      }
      Trade {
        Buy {
          Currency {
            Name
            Symbol
          }
          Price
        }
        Sell {
          Currency {
            Name
            Symbol
          }
        }
        Dex {
          ProtocolName
        }
      }
      Transaction {
        Hash
      }
    }
    
    # Price after 3 hours
    priceAfter3Hours: DEXTrades(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {
        Trade: {Buy: {Currency: {SmartContract: {is: "0x5c85d6c6825ab4032337f11ee92a72df936b46f6"}}}},
        Block: {Time: {since: "2025-03-26T07:20:00Z"}}
      }
    ) {
      Block {
        Time
        Number
      }
      Trade {
        Buy {
          Currency {
            Name
            Symbol
          }
          Price
        }
        Sell {
          Currency {
            Name
            Symbol
          }
        }
        Dex {
          ProtocolName
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries