NYYU Logo
APIStatistics

Get Round Perform 1

Retrieve token price and sold amount performance metrics for all auction rounds

PERFORMANCE METRICS

Round Performance 1

Access comprehensive token pricing and sales volume metrics across all auction rounds for trend analysis and visualization.

Real-time Data

This query returns current performance metrics for all rounds, perfect for building live dashboards and price charts.

Overview

The getRoundPerform1 query retrieves performance metrics focused on token economics - specifically token price and sold amount for each auction round. This data is essential for tracking pricing trends, sales volume, and overall market performance.


GraphQL Schema

query {
  getRoundPerform1: [RoundPerform1]
}

Return Type

RoundPerform1 Object

roundNumberInt!

The unique identifier for the auction round. Sequential numbering starting from 1.

tokenPriceFloat!

The token price during this specific round. Typically measured in USD or platform currency.

soldAmountFloat!

The total quantity of tokens sold during this round. Represents sales volume and market demand.


Example Usage

Query Request

query GetRoundPerformance {
  getRoundPerform1 {
    roundNumber
    tokenPrice
    soldAmount
  }
}

Successful Response

{
  "data": {
    "getRoundPerform1": [
      {
        "roundNumber": 1,
        "tokenPrice": 0.05,
        "soldAmount": 1000000.0
      },
      {
        "roundNumber": 2,
        "tokenPrice": 0.075,
        "soldAmount": 850000.0
      },
      {
        "roundNumber": 3,
        "tokenPrice": 0.10,
        "soldAmount": 750000.0
      },
      {
        "roundNumber": 4,
        "tokenPrice": 0.15,
        "soldAmount": 650000.0
      },
      {
        "roundNumber": 5,
        "tokenPrice": 0.20,
        "soldAmount": 500000.0
      }
    ]
  }
}

Data Insights

The example shows typical auction behavior: token price increases over rounds while sold amount decreases, reflecting supply constraints and rising valuations.


Chart Integration Examples

Visualization Use Cases

📈

Price Trend Line Chart

Visualize token price progression across rounds to identify pricing trends and growth patterns.

Chart.js LineRecharts LineChartVictory VictoryLine

📊

Sales Volume Bar Chart

Display sold amount per round as vertical bars to compare sales performance and demand levels.

Chart.js BarRecharts BarChartVictory VictoryBar

🔄

Dual-Axis Combination Chart

Combine price (line) and volume (bars) on a single chart with dual Y-axes for comprehensive insights.

Recharts ComposedChartChart.js Mixed

📉

Area Chart for Volume Trends

Use filled area charts to emphasize volume magnitude and visualize decreasing supply over time.

Recharts AreaChartVictory VictoryArea

Implementation Examples

React + Chart.js Integration

import { Line } from 'react-chartjs-2';
import { useQuery } from '@apollo/client';
import { gql } from '@apollo/client';

const GET_ROUND_PERFORM_1 = gql`
  query GetRoundPerformance {
    getRoundPerform1 {
      roundNumber
      tokenPrice
      soldAmount
    }
  }
`;

function TokenPriceChart() {
  const { data, loading } = useQuery(GET_ROUND_PERFORM_1);

  if (loading) return <div>Loading chart...</div>;

  const chartData = {
    labels: data.getRoundPerform1.map(r => `Round ${r.roundNumber}`),
    datasets: [
      {
        label: 'Token Price ($)',
        data: data.getRoundPerform1.map(r => r.tokenPrice),
        borderColor: 'rgb(251, 146, 60)',
        backgroundColor: 'rgba(251, 146, 60, 0.1)',
        tension: 0.4
      }
    ]
  };

  const options = {
    responsive: true,
    plugins: {
      title: {
        display: true,
        text: 'Token Price Trend Across Rounds'
      },
      legend: {
        position: 'top'
      }
    },
    scales: {
      y: {
        beginAtZero: true,
        title: {
          display: true,
          text: 'Price (USD)'
        }
      }
    }
  };

  return <Line data={chartData} options={options} />;
}

Recharts Dual-Axis Example

import { ComposedChart, Line, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import { useQuery } from '@apollo/client';

function PriceVolumeChart() {
  const { data } = useQuery(GET_ROUND_PERFORM_1);

  return (
    <ComposedChart width={800} height={400} data={data?.getRoundPerform1}>
      <CartesianGrid strokeDasharray="3 3" />
      <XAxis dataKey="roundNumber" label={{ value: 'Round', position: 'insideBottom', offset: -5 }} />
      <YAxis yAxisId="left" label={{ value: 'Price ($)', angle: -90, position: 'insideLeft' }} />
      <YAxis yAxisId="right" orientation="right" label={{ value: 'Volume', angle: 90, position: 'insideRight' }} />
      <Tooltip />
      <Legend />
      <Bar yAxisId="right" dataKey="soldAmount" fill="#f59e0b" name="Sold Amount" />
      <Line yAxisId="left" type="monotone" dataKey="tokenPrice" stroke="#fb923c" strokeWidth={3} name="Token Price" />
    </ComposedChart>
  );
}

Use Cases

📊

Analytics Dashboard

Display key performance indicators including total revenue (price × volume), price growth rate, and sales trends

📈

Investor Reports

Generate automated reports showing token appreciation, market demand evolution, and round-by-round performance

🎯

Market Analysis

Analyze correlation between pricing strategy and sales volume to optimize future round configurations

💰

Revenue Tracking

Calculate total revenue per round and cumulative earnings across all auction rounds


Data Analysis Tips

💡 Revenue Calculation

Calculate revenue per round: revenue = tokenPrice × soldAmount

📊 Growth Rate Analysis

Track price growth: growth = (current - previous) / previous × 100

🎯 Demand Correlation

Compare how price changes affect sales volume to understand price elasticity and market demand

📈 Trend Forecasting

Use historical data to project future prices and volumes using linear regression or moving averages


Best Practices

⚡ Real-time Updates

Implement polling (every 30-60 seconds) to keep price and volume data fresh for live dashboards

💾 Data Caching

Cache historical round data as it won't change, only fetch latest round for updates

📊 Chart Responsiveness

Ensure charts are mobile-friendly with proper scaling and touch interactions for all device sizes

🎨 Color Accessibility

Use colorblind-friendly palettes and sufficient contrast for chart elements to ensure accessibility