Crypto Market Data Structures Explained: A Technical Analysis Using a Compute-Sharing Network Token
This article explains the core fields of cryptocurrency market data, including identifiers, price and volatility metrics, market capitalization, and timestamps. It walks through how amplitude and change percentage are calculated, presents a sample data model, shows a Python implementation that avoids floating-point errors, and covers common pitfalls in displaying and interpreting market data. A compute-sharing network token serves as the example throughout.
1. Background
In the blockchain industry, decentralized compute-sharing networks are a typical application. These networks try to match idle computing resources through a distributed network and schedule them. Demand-side users pay network tokens to acquire computing power, while supply-side providers earn tokens by contributing resources. The price of these tokens directly reflects the market’s expectations for the value of the network’s compute ecosystem.
This article uses a market snapshot of a compute-sharing network token (symbol GLM, trading pair GLMUSDT) as a sample. It explains how to understand and process cryptocurrency market data from three angles: data structure, calculation logic, and engineering implementation. The snapshot data is as follows:
- Last price: 0.09109 USD
- 24-hour change: +0.002397 USD, +2.703%
- Open: 0.08869 USD, high: 0.09368 USD, low: 0.08759 USD
- Market capitalization: approximately 90,541,500 USD, ranked #168
- Data updated: 2026-11-24 14:34:37
2. Core Fields in Market Data
2.1 Identifier Fields
The first layer of market data is identification. It includes the symbol, the trading pair, and the market type. The symbol GLM is the unique abbreviation of the token on its blockchain network. The pair GLMUSDT indicates that the token is traded against the USD stablecoin. The market type CRYPTO places the asset in the broader cryptocurrency market category.
When designing a market data system, use the composite key “symbol + pair + market type.” This prevents data errors caused by different exchanges naming the same asset differently.
2.2 Price and Volatility Fields
Price fields form the core of market data:
- Last price: the price of the most recent trade. It requires the highest real-time accuracy.
- Open price: usually the price at 00:00 UTC or at the start of a rolling 24-hour window. It is the baseline for calculating price change.
- High and low prices: the price range within the statistical period. They can be used to calculate amplitude.
In this sample, the 24-hour price range runs from 0.08759 to 0.09368 USD. The amplitude is:
Amplitude = (High - Low) / Low ≈ (0.09368 - 0.08759) / 0.08759 ≈ 6.95%
The change percentage is calculated as:
Change % = (Last - Open) / Open × 100%= (0.09109 - 0.08869) / 0.08869 × 100%≈ 2.71%
The 2.71% result matches the reported 2.703% within the rounding of the displayed prices. The absolute change of 0.002397 USD is consistent with the reported percentage. In engineering implementations, avoid floating-point types for monetary fields because they accumulate errors. Use fixed-point numbers or a high-precision decimal type, such as the decimal type provided by many languages.
2.3 Market Capitalization and Rank Fields
Market capitalization is a key measure of a token’s size. It is generally calculated as:
Market Cap = Circulating Supply × Current Price
This sample has a market capitalization of approximately 90,541,500 USD and ranks #168. Market rank is often used to group assets by liquidity and to assess risk. In general, a larger market cap means better liquidity and greater difficulty for price manipulation. Smaller assets tend to be more volatile. When building risk controls or asset screens, developers should combine market cap and trading volume rather than rely on a single metric.
2.4 Timestamp Fields
The update time field records when the data snapshot was generated. Market data is time-sensitive. Every display and calculation should include a timestamp, or the data loses comparability. Store timestamps in UTC in the storage layer, and convert them to the local time zone only in the display layer.
3. Engineering Considerations for Market Data Systems
3.1 Data Collection and Update Strategy
Market data typically comes from aggregated market data APIs or from exchange push channels. A common strategy is:
- Use WebSocket push or polling at one-second intervals for high-frequency fields, such as the last price and 24-hour statistics.
- Refresh low-frequency fields, such as market cap and rank, at one-minute intervals or longer.
- Implement reconnection logic and data validation. Raise alerts when prices jump beyond a set threshold.
3.2 Sample Data Structure
The following is a simplified market data model, shown as JSON-like structure:
{"symbol": "GLM","pair": "GLMUSDT","market": "CRYPTO","price": {"last": 0.09109,"open": 0.08869,"high": 0.09368,"low": 0.08759,"change_abs": 0.002397,"change_pct": 2.703},"market_cap": {"value_usd": 90541500,"rank": 168},"updated_at": "2026-11-24T14:34:37Z"}
3.3 Calculating Change Percentage Correctly
Two common pitfalls appear in real systems. First, inconsistent open price baselines, such as 00:00 UTC versus a rolling 24-hour window, can make change percentages disagree across data sources. Second, division by zero and precision errors can cause incorrect results. A robust implementation looks like this:
from decimal import Decimal, ROUND_HALF_UPdef calc_change_pct(last: Decimal, open_price: Decimal) -> Decimal:# Return 0 when the open price is zero to avoid division by zeroif open_price == 0:return Decimal("0")pct = (last - open_price) / open_price * Decimal("100")# Round to three decimal places using half-up roundingreturn pct.quantize(Decimal("0.001"), rounding=ROUND_HALF_UP)
3.4 Display Layer Considerations
When showing market data to users, pay attention to the following details:
- Color semantics: Markets use different conventions for price changes. Some use red for gains and green for losses. Make color settings configurable by locale.
- Price precision: Set decimal places based on the price magnitude. For example, show five decimal places for low-priced assets.
- Freshness indicators: Clearly label the data update time so users do not mistake delayed data for real-time data.
- Disclaimers: Market data is for reference only. Display pages should include a risk warning.
4. Common Misreadings of Market Data
This sample shows several typical interpretation points:
- Change percentage versus price range: A 2.703% change looks modest, but the intraday amplitude is close to 7%. The change percentage alone shows the closing movement and understates intraday risk.
- Dynamic market rank: A rank of #168 places the asset in a mid-to-small size tier. Its price is more easily moved by individual large trades.
- Limits of a single snapshot: A snapshot at one point in time does not show a trend. Combine it with candlestick series, trading volume, and order book depth for multi-dimensional analysis.
5. Conclusion
Market data may look simple, but it involves several engineering dimensions: data definitions, precision control, timeliness management, and risk interpretation. Developers building reliable market data systems should start from the meaning of each field. They should confirm how each metric is calculated and over what period. They should then use high-precision numeric types and a sound update strategy to maintain data quality. For small and mid-cap assets such as the decentralized compute-sharing network token in this sample, assess price range and liquidity risk together. The field analysis and implementation approach in this article can serve as a reusable reference for market-data applications.
(Risk notice: Crypto asset prices are highly volatile. All data in this article is a technical example only and does not constitute investment advice.)
