xStocks API
For real-time + last ~30 days, use the Trading cube — Trading.Trades gives you clean, MEV-filtered xStocks swaps with USD price, market cap, and supply on every row across 9 chains in one API. Use this page when you need historical xStocks data older than ~30 days, raw per-swap detail, or call / event context.
Several tokenized equities settle through Jupiter's RFQ order engine rather than a pool, which means they have no DEX trades at all and no price here. The Solana RFQ API shows how to read their executed prices from the fill instruction.
Tesla xStock Trades in Real-Time
Below query will give you realtime trades of Tesla xStock (TESLAx). You can run the query here
subscription LatestTrades {
Solana {
DEXTradeByTokens(
where: {
Trade: {
Currency: {
MintAddress: { is: "XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB" }
}
}
Transaction: { Result: { Success: true } }
}
) {
Block {
Time
}
Transaction {
Signature
}
Trade {
Market {
MarketAddress
}
Dex {
ProtocolName
ProtocolFamily
}
AmountInUSD
PriceInUSD
Amount
Currency {
Name
Symbol
MintAddress
}
Side {
Type
Currency {
Symbol
MintAddress
Name
}
AmountInUSD
Amount
}
}
}
}
}
Latest Price of xStocks using Crypto Price api
You can get latest price of xStocks tokens prices using our Crypto price api.
You can run the query here
subscription {
Trading {
Tokens(
where: {Token: {Name: {includes: "xStock"}}, Interval: {Time: {Duration: {eq: 1}}}}
) {
Token {
Address
Id
IsNative
Name
Network
Name
Symbol
TokenId
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
Quote
Usd
}
Price {
IsQuotedInUsd
Ohlc {
Close
High
Low
Open
}
Average {
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
Latest Price of the Apple xstock
You can use the following query to get the latest price of a Apple xStock on Solana.
You can run this query using this link.
query {
Solana {
DEXTradeByTokens(
limit:{count:1}
orderBy:{descending:Block_Time}
where: {Trade: {Currency: {MintAddress: {is: "XsbEhLAtcf6HdfpFZ5xEMdqW8nfAvcsP5bdudRLJzJp"}}}}
) {
Transaction {
Signature
}
Trade {
AmountInUSD
Amount
Currency {
MintAddress
Name
}
Dex {
ProgramAddress
ProtocolName
}
Price
PriceInUSD
Side {
Account {
Address
}
AmountInUSD
Amount
Currency {
Name
MintAddress
}
}
}
}
}
}
Realtime Price feed of Apple xstock
You can use the following query to get the latest price of a Apple xStock on Solana.
You can run this query using this link.
subscription {
Solana {
DEXTradeByTokens(
where: {Trade: {Currency: {MintAddress: {is: "XsbEhLAtcf6HdfpFZ5xEMdqW8nfAvcsP5bdudRLJzJp"}}}}
) {
Transaction {
Signature
}
Trade {
AmountInUSD
Amount
Currency {
MintAddress
Name
}
Dex {
ProgramAddress
ProtocolName
}
Price
PriceInUSD
Side {
Account {
Address
}
AmountInUSD
Amount
Currency {
Name
MintAddress
}
}
}
}
}
}