Aktionariat Documentation
  • Introduction to Aktionariat
    • ⚡Quick Start
  • 🛠️APIs
    • 📊Subgraph
      • Schema
      • Query Examples
        • Platform data
        • Token Data
        • Brokerbot Data
        • Swaps Data
    • ⚙️External API
      • ⚙️External API (Gitbook)
  • 🌐Web
    • Integrate with Ethers.js
      • Brokerbot Quoter
    • Integrate Aktionariat Widgets
  • ⛓️Smart Contracts
    • 📔Contracts Overview
    • 👷‍♂️Guides
      • Implement A Trade
        • Direct Trades
        • Multihop Trades
      • Get Brokerbot Contract for Token
      • Buy Shares
      • Sell Shares
    • Technical Reference
      • Allowlist
      • Brokerbot
      • Drag-Along
      • Infinite Allowances
      • Multi-Signature Contract
      • Recovery
      • Shareholder Registry
  • 📖Reference
    • Brokerbot Architecture
    • Github
    • Whitepaper
    • Brokerbot Analytics
  • 💬Socials
    • Twitter
    • Telegram
    • LinkedIn
    • Youtube
Powered by GitBook
On this page
  • All tokens
  • General Token Data
  • Token Weekly / Daily / Hourly Aggregated

Was this helpful?

Edit on GitHub
  1. APIs
  2. Subgraph
  3. Query Examples

Token Data

PreviousPlatform dataNextBrokerbot Data

Last updated 2 years ago

Was this helpful?

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 for all possible fields you can query.

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

Token Weekly / Daily / Hourly Aggregated

{
    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
    }
}

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

🛠️
📊
token schema
Weekly
Daily
Hourly