stellar_asset_price

Returns the latest trade effect on Stellar, where buy currency name is AQUA [GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA], sell currency name is Lumen and date since 2024-04-09: timestamp time, block, sell amount, sell currency symbol, sell currency name, buy amount, buy currency symbol and 2 more fields.

By Omkar_BQ · saved 10 April 2024 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: StellarNetwork!) {
  stellar(network: $network) {
    tradeEffects(
      buyCurrencyName: {is: "AQUA [GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA]"}
      sellCurrencyName: {is: "Lumen"}
      options: {desc: "block", limit: 1}
      date: {since: "2024-04-09"}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      block
      sell_amount_usd: sellAmount(in: USD)
      sellAmount
      sellCurrency {
        symbol
        name
      }
      buyAmount
      buyCurrency {
        symbol
        name
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "network": "stellar"
}

Similar queries