Go back

Stacks (STX) API and Price Oracle

Stacks icon

Stacks

STX
$ 
Information
For informational use only; request a custom oracle/API for production below.

General information

Contract address
Smart contract address of the asset
More info
0x0000...0000
Network
Blockchain network where the asset is deployed
More info
Stacks
Methodology
Pricing methodology used to determine the price of the token in USD. By default, all price feeds on the DIA App are calculated with a MAIR methodology. This parameter is customisable.Learn more about methodologies.
More info
MAIR
Update frequency
120 seconds is the default update frequency. This parameter is customisable.Learn more about oracle updates.
More info
120s
Next update
24h Volume
The total volume captured by DIA across all the integrated sources.
More info
Source
Volume 24h
Trades 24h
Pairs

Get a custom Stacks price oracle or API endpoint

Request custom oracle

Request a fully tailored price oracle implementation

  • Autonomously deploy oracles under 3 minutes
  • Tailored oracles for any individual needs
  • Editable, updatable oracles
  • Real-time gas balance notifications
  • Available in 50+ chains
Start request process

Token information

What is Stacks (STX)?

Stacks (STX) is a layer-2 solution that enables smart contracts and decentralized applications on Bitcoin. STX is the native token of the Stacks network, launched in 2021 by Blockstream and founded by Muneeb Ali. It operates through a proof-of-transfer consensus mechanism that settles transactions on Bitcoin while allowing programmability Bitcoin lacks natively. STX holders can participate in consensus and earn Bitcoin rewards.

The Stacks price API returns real-time STX price data sourced from aggregated trades across multiple exchanges and on-chain sources. Developers use this endpoint to fetch the current market price of Stacks, the Bitcoin layer that enables smart contracts and decentralized applications secured by Bitcoin's proof-of-work consensus.

DIA provides a Stacks price API that aggregates individual trade data to deliver verifiable price feeds for STX. The free endpoint available on this page is intended for testing and evaluation purposes only, allowing developers to assess data quality and integration patterns.

For production deployments, DIA builds custom, production-grade Stacks feeds. These feeds are configurable by data sources, pricing methodology, and update frequency, tailored to specific application requirements. Developers can request a dedicated feed through DIA's Discord or Telegram channels.

DIA publishes a free Stacks price API endpoint on this asset page, available for developers to test and evaluate without cost. The free endpoint provides access to Stacks price data for non-production purposes.

For production deployments or customized Stacks price feeds, DIA builds dedicated feeds configurable by data sources, pricing methodology, and update frequency. Teams requiring production-grade infrastructure should request a custom feed through DIA's Discord or Telegram channels to discuss specific requirements and deployment parameters.

A blockchain price oracle is an external provider that supplies verified offchain data to smart contracts on a blockchain. Price oracles enable applications to access real-world market information in a trustless manner.

DIA deploys Stacks price oracles that deliver onchain STX price data to smart contracts on supported chains. DIA aggregates individual trade data from 100+ exchanges across on-chain and off-chain sources to construct its price feeds, covering STX alongside 3,000+ other assets.

DIA's price oracle infrastructure runs on Lasernet, DIA's Ethereum layer-2 rollup, which makes each feed independently verifiable. A free API endpoint is available for testing; production deployments and custom oracles configurable by data sources, pricing methodology, and update frequency are requested via DIA's Discord or Telegram.

DIA calculates the Stacks (STX) price by aggregating individual trade data from on-chain and off-chain sources across multiple exchanges rather than relying on a single exchange or liquidity pool. This approach captures trading activity across the fragmented market for STX and reduces the impact of any individual venue's pricing anomalies.

The sources used in the aggregation and the pricing methodology applied to that data are transparent and documented. For production deployments, DIA builds dedicated price feeds where the data sources, calculation method, and update frequency can be customized to match specific application requirements. Requests for custom Stacks feeds can be made through DIA's Discord or Telegram channels.

Stacks (STX) is a layer 1 blockchain that enables smart contracts and decentralized applications on Bitcoin. Developers building with STX price data can create several concrete applications:

Lending protocols that accept STX as collateral and require real-time price feeds to calculate loan-to-value ratios and trigger liquidations when collateral value drops.

Decentralized exchanges operating on Stacks that need accurate STX pricing to execute swaps against Bitcoin and other assets with minimal slippage.

Bitcoin-backed stablecoins collateralized by STX, where price oracles ensure the reserve maintains sufficient backing as STX valuations fluctuate.

A price oracle from DIA aggregates trade data across 100+ exchanges to deliver verifiable STX prices, enabling these applications to operate with transparent, auditable pricing on any supported blockchain.

DIA aggregates Stacks price data from 100+ exchanges by collecting individual trade data across on-chain and off-chain sources, creating a transparent foundation developers can audit. For Stacks feeds, DIA offers configuration by data sources, pricing methodology, and update frequency, allowing teams to tailor parameters to their application's requirements rather than accepting preset defaults.

DIA deploys price oracles across 60+ blockchains, meaning a Stacks feed can reach multiple chains where smart contracts need verified pricing. Each feed runs on Lasernet, DIA's Ethereum layer-2 rollup, enabling independent verification of the data pipeline outside the oracle itself.

Developers can evaluate DIA's approach by testing the free price-feed API endpoint on this page. For production use or custom requirements, teams request a dedicated Stacks feed through DIA's Discord or Telegram.

Why use DIA data feeds and oracles?

Transparent

DIA provides full insight on the oracle’s data journey as well monitoring tools to track feeds in real-time.

Customisable

Oracles can be tailored to any use case in terms of data sources, methodologies and update mechanisms and much more.

Broadest coverage

DIA provides price oracles for 3,000+ cryptocurrencies: from blue-chip tokens to long-tail assets.