Token Data

Input the the token contract address to fetch token data. Any token that exists in at least one Aktionariat brokerbot can be queried. The output will aggregate data across all brokerbots that include the token.

All tokens

This query gets you all registered tokens back. If there are more than 100 tokens you can use the skip parameter for pagination.

{
  tokens(first: 100, skip: 0) {
    id
    symbol
    name
  }
}

General Token Data

This queries the symbol, name, decimals, transaction count, volume and current price in USD for the DAKS token. Reference the full token schema for all possible fields you can query.

{
    token(id: "0x6f38e0f1a73c96cb3f42598613ea3474f09cb200"){
     symbol
     name
     decimals
     txCount
     tradeVolumeUSD  
     totalValueLockedUSD
     derivedUSD
    }
}

Token Weekly / Daily / Hourly Aggregated

You can fetch aggregate data about a specific token over different periods. This query gets the last 10 entries for Weekly, Daily and Hourly aggregated data for the DAKS token.

{
    week: tokenWeekDatas(first: 10, where: {token: "0x6f38e0f1a73c96cb3f42598613ea3474f09cb200", date_gt: 1658880000}, orderDirection: desc, orderBy: date){
     date
     volumeUSD
     totalValueLockedUSD
     raisedUSD
     priceUSD
    },
    day: tokenDayDatas(first: 10, where: {token: "0x6f38e0f1a73c96cb3f42598613ea3474f09cb200", date_gt: 1658880000}, orderDirection: desc, orderBy: date){
     date
     volumeUSD
     totalValueLockedUSD
     raisedUSD
     priceUSD
    },
    hour: tokenHourDatas(first: 10, where: {token: "0x6f38e0f1a73c96cb3f42598613ea3474f09cb200", periodStartUnix_gt: 1658880000}, orderDirection: desc, orderBy: periodStartUnix){
     periodStartUnix
     volumeUSD
     totalValueLockedUSD
     raisedUSD
     priceUSD
    }
}

Last updated