DynamicAssets Trading

Returns one trade, where quote token address is So1111…1112, market network is Solana and block time since 2026-09-14: token address, sum of amounts quote, unique of trader address, nakamoto of amounts quote and calculate.

By Divyasshree · saved 14 September 2026 · run 5 times · Bitquery API v2

What it returns

Filters

The query

query DynamicAssets($b0_start: DateTime!, $b0_end: DateTime!, $b0_astralRiskV1_recent: DateTime!) {
  b0_Trading: Trading {
    winner: Trades(
      where: {Pair: {Market: {Network: {is: "Solana"}}, QuoteToken: {Address: {is: "So11111111111111111111111111111111111111112"}}}, Block: {Time: {since: $b0_start, till: $b0_end}}, Amounts: {Quote: {ge: 0.01}}, Trader: {Address: {not: ""}}}
      orderBy: [{descendingByField: "volume"}, {ascending: Pair_Token_Address}]
      limit: {count: 1}
    ) {
      Pair {
        Token {
          Address
        }
      }
      volume: sum(of: Amounts_Quote)
      astralRiskV1_0_buyers: uniq(
        of: Trader_Address
        method: exact
        if: {Side: {is: "Buy"}}
        selectWhere: {ge: "75"}
      )
      astralRiskV1_0_recent: uniq(
        of: Trader_Address
        method: exact
        if: {Side: {is: "Buy"}, Block: {Time: {since: $b0_astralRiskV1_recent}}}
        selectWhere: {ge: "15"}
      )
      astralRiskV1_0_majority: nakamoto(
        of: Amounts_Quote
        ratio: 0.51
        selectWhere: {ge: 15}
      )
      risk: calculate(
        expression: "100 * greatest(50 / (50 + $astralRiskV1_0_buyers), 10 / (10 + $astralRiskV1_0_recent), 10 / (10 + $astralRiskV1_0_majority))"
      )
    }
  }
}

Variables

{
  "b0_start": "2026-09-14T00:45:00Z",
  "b0_end": "2026-09-14T00:55:00Z",
  "b0_astralRiskV1_recent": "2026-09-13T00:53:00Z"
}

Similar queries