stellar priceamount

Returns the latest trade effect on Stellar, where time since 2025-11-25 and time till 2025-11-25: timestamp time, block, transaction hash, transaction index, sell amount, sell currency symbol, sell currency name and 7 more fields.

By Divyasshree · saved 25 November 2025 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: StellarNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  stellar(network: $network) {
    tradeEffects(
      options: {desc: "block", asc: "transaction.index", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      block
      transaction {
        hash
        index
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      sellCurrency {
        symbol
        name
      }
      sellIssuer {
        address
        annotation
      }
      buyAmount
      priceAmount
      buy_amount_usd: buyAmount(in: USD)
      buyCurrency {
        symbol
        name
      }
      buyIssuer {
        address
        annotation
      }
    }
  }
}

Variables

{
  "limit": 1,
  "offset": 0,
  "network": "stellar",
  "from": "2025-11-25T13:05:00.000Z",
  "till": "2025-11-25T13:35:00.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries