Trends.Fun API - Solana - New Tokens, Trades, Live Prices
In this page, we will explore several examples related to Trends.fun. You can also check out our Pump Fun API Docs and Jupiter Studio API Docs.
Trends.fun tokens are created and traded on Meteora Dynamic Bonding Curve (DBC).
Need zero-latency Trends.fun data? Read about our Shred Streams and Contact us for a Trial.
To query or stream data via graphQL outside the Bitquery IDE, you need to generate an API access token.
Follow the steps here to create one: How to generate Bitquery API token ➤
If you want fastest data without any latency, we can provide gRPC and Kafka streams, please fill this form for it. Our Team will reach out.
Table of Contents​
1. Trends.fun Token Launches & Creation​
2. Bonding Curve & Progress APIs​
3. Token Migration & Graduation​
4. Trading & Market Data​
- Latest Trades of a Trends.fun Token ➤
- Latest Price of a Trends.fun Token ➤
- OHLCV Data ➤
- Top Buyers and Sellers ➤
5. Liquidity & Pool Data​
Track Trends.fun Pool Creation​
Using this stream , we can get the realtime created Trends.fun tokens on Meteora Dynamic Bonding Curve.
Click to expand GraphQL query
subscription {
Solana {
Instructions(
where: {
Instruction: {
Program: {
Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
Method: { is: "initialize_virtual_pool_with_spl_token" }
}
}
Transaction: { Result: { Success: true } }
}
) {
Block {
Time
}
Instruction {
Accounts {
Address
IsWritable
Token {
Mint
Owner
ProgramId
}
}
Program {
AccountNames
Address
Arguments {
Name
Type
Value {
... on Solana_ABI_Integer_Value_Arg {
integer
}
... on Solana_ABI_String_Value_Arg {
string
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Json_Value_Arg {
json
}
}
}
Method
Name
}
}
Transaction {
Signature
Signer
}
}
}
}
Bonding Curve Progress API​
Below query will give you the Bonding curve progress percentage of a specific Trends.fun Token.
Bonding Curve Progress Formula​
- Formula: BondingCurveProgress = 100 - ((leftTokens * 100) / initialRealTokenReserves)
Where:
-
leftTokens = realTokenReserves - reservedTokens
-
initialRealTokenReserves = totalSupply - reservedTokens
-
Definitions:
initialRealTokenReserves
=totalSupply
-reservedTokens
totalSupply
: 1,000,000,000 (Trends.fun Token)reservedTokens
: Varies by token configuration
leftTokens
=realTokenReserves
-reservedTokens
realTokenReserves
: Token balance at the market address.
Note: The exact reserved tokens amount may vary for Trends.fun tokens. Check the specific token's parameters for accurate calculations.
Get Bonding Curve Progress​
Use this query to fetch the bonding curve progress percentage: Query Link.
Click to expand GraphQL query
query GetBondingCurveProgressPercentage {
Solana {
DEXPools(
limit: { count: 1 }
orderBy: { descending: Block_Slot }
where: {
Pool: {
Market: {
BaseCurrency: {
MintAddress: { is: "YOUR_TRENDS_FUN_TOKEN_ADDRESS" }
}
}
Dex: {
ProgramAddress: {
is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN"
}
}
}
}
) {
Pool {
Market {
MarketAddress
BaseCurrency {
MintAddress
Symbol
Name
}
QuoteCurrency {
MintAddress
Symbol
Name
}
}
Dex {
ProtocolFamily
ProtocolName
}
Quote {
PostAmount
PriceInUSD
PostAmountInUSD
}
Base {
Balance: PostAmount
}
}
}
}
}
Track Trends.fun Tokens above 95% Bonding Curve Progress in realtime​
Track Trends.fun tokens that are approaching graduation with high bonding curve progress percentages. Run the query: Trends.fun tokens between 95–100% bonding-curve progress ➤.
Click to expand GraphQL query
subscription TrendsFunHighProgressTokens {
Solana {
DEXPools(
where: {
Pool: {
Dex: {
ProgramAddress: {
is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN"
}
}
Market: {
QuoteCurrency: {
MintAddress: {
in: [
"11111111111111111111111111111111"
"So11111111111111111111111111111111111111112"
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
]
}
}
}
}
Transaction: { Result: { Success: true } }
}
) {
Pool {
Market {
BaseCurrency {
MintAddress
Name
Symbol
}
MarketAddress
QuoteCurrency {
MintAddress
Name
Symbol
}
}
Dex {
ProtocolName
ProtocolFamily
}
Base {
Balance: PostAmount
}
Quote {
PostAmount
PriceInUSD
PostAmountInUSD
}
}
}
}
}
Track Trends.fun Token Migrations to Meteora DEX in Realtime​
Track real-time migrations of Trends.fun tokens from the bonding curve to Meteora DEX when they graduate.
Run the stream: Track Trends.fun token migrations ➤.
Click to expand GraphQL query
subscription TrendsFunMigrations {
Solana {
Instructions(
where: {
Instruction: {
Program: {
Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
Method: { in: ["migrate_meteora_damm", "migration_damm_v2"] }
}
}
Transaction: { Result: { Success: true } }
}
) {
Block {
Time
}
Instruction {
Program {
Method
AccountNames
Address
Arguments {
Value {
... on Solana_ABI_Json_Value_Arg {
json
}
... on Solana_ABI_Float_Value_Arg {
float
}
... on Solana_ABI_Boolean_Value_Arg {
bool
}
... on Solana_ABI_Bytes_Value_Arg {
hex
}
... on Solana_ABI_BigInt_Value_Arg {
bigInteger
}
... on Solana_ABI_Address_Value_Arg {
address
}
... on Solana_ABI_Integer_Value_Arg {
integer
}
... on Solana_ABI_String_Value_Arg {
string
}
}
Type
Name
}
Name
}
Accounts {
Address
IsWritable
Token {
ProgramId
Owner
Mint
}
}
}
Transaction {
Signature
Signer
}
}
}
}
Latest Trades of a Trends.fun Token​
This query fetches the most recent trades of a specific Trends.fun token. Run query
Click to expand GraphQL query
query LatestTrades {
Solana {
DEXTradeByTokens(
orderBy: { descending: Block_Time }
limit: { count: 50 }
where: {
Trade: {
Currency: {
MintAddress: { is: "CY1P83KnKwFYostvjQcoR2HJLyEJWRBRaVQmYyyD3cR8" }
}
}
}
) {
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
}
}
}
}
}
Top Buyers of a Trends.fun Token​
This API endpoint returns the top 100 buyers for a specific Trends.fun token.
Click to expand GraphQL query
query TopBuyers {
Solana {
DEXTradeByTokens(
where: {
Trade: {
Currency: { MintAddress: { is: "YOUR_TRENDS_TOKEN_ADDRESS" } }
Side: { Type: { is: buy } }
}
}
orderBy: { descendingByField: "buy_volume" }
limit: { count: 100 }
) {
Trade {
Currency {
MintAddress
Name
Symbol
}
}
Transaction {
Signer
}
buy_volume: sum(of: Trade_Side_AmountInUSD)
}
}
}
Top Sellers of a Trends.fun Token​
Using this query, get the top 100 sellers for a specific Trends.fun token.
Click to expand GraphQL query
query TopSellers {
Solana {
DEXTradeByTokens(
where: {
Trade: {
Currency: { MintAddress: { is: "YOUR Token Address here" } }
Side: { Type: { is: buy } }
}
}
orderBy: { descendingByField: "sell_volume" }
limit: { count: 100 }
) {
Trade {
Currency {
MintAddress
Name
Symbol
}
}
Transaction {
Signer
}
sell_volume: sum(of: Trade_AmountInUSD)
}
}
}
OHLCV for specific Trends.fun Token​
This API endpoint returns the OHLCV values for a Trends.fun token when traded against WSOL or USDC.
Click to expand GraphQL query
{
Trading {
Currencies(
where: {
Currency: {
Id: { is: "bid:solana:CY1P83KnKwFYostvjQcoR2HJLyEJWRBRaVQmYyyD3cR8" }
}
Interval: { Time: { Duration: { eq: 1 } } }
}
limit: { count: 10 }
orderBy: { descending: Block_Time }
) {
Currency {
Id
Name
Symbol
}
Block {
Date
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Volume {
Base
BaseAttributedToUsd
Quote
Usd
}
Price {
IsQuotedInUsd #The price is shown in USD (`IsQuotedInUsd: true` by default).
Ohlc {
Open # Earliest price across chains in the interval
High # Highest price across chains in the interval
Low # Lowest price across chains in the interval
Close # Latest price across chains in the interval
}
Average {
Estimate
ExponentialMoving
Mean
SimpleMoving
WeightedSimpleMoving
}
}
}
}
}
Get Liquidity for a Trends.fun Token Pair Address​
Using this query we can get the liquidity for a Trends.fun Token Pair, where Base_PostBalance
is the amount of tokens present in the pool and Quote_PostBalance
is the amount of quote currency (WSOL/USDC) present in the pool.
Click to expand GraphQL query
{
Solana {
DEXPools(
where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: "TOKEN ADDRESS here"}}}, Dex: {ProgramAddress: {is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN"}}}, Transaction: {Result: {Success: true}}}
orderBy: {descending: Block_Time}
limit: {count: 1}
) {
Pool {
Base {
PostAmount
}
Quote {
PostAmount
}
Market {
BaseCurrency {
MintAddress
Name
Symbol
}
QuoteCurrency {
MintAddress
Name
Symbol
}
}
}
}
}
}
Find All Tokens Created by a Trends.fun Developer​
Get all tokens created by a specific Trends.fun developer/creator address.
Click to expand GraphQL query
{
Solana(network: solana) {
Instructions(
limit: { count: 10 }
where: {
Instruction: { Program: { Method: { is: "initializeMint2" } } }
Transaction: { FeePayer: { is: "DEVELOPER_ADDRESS_HERE" } }
}
) {
Instruction {
Program {
Address
Name
Method
AccountNames
}
Accounts {
Address
IsWritable
Token {
Mint
Owner
ProgramId
}
}
Logs
BalanceUpdatesCount
AncestorIndexes
CallPath
CallerIndex
Data
Depth
ExternalSeqNumber
Index
InternalSeqNumber
TokenBalanceUpdatesCount
}
Transaction {
Fee
FeeInUSD
Signature
Signer
FeePayer
Result {
Success
ErrorMessage
}
}
Block {
Time
Height
}
}
}
}
Additional Resources​
- Need ultra-low latency Trends.fun data? Check out our Kafka Streaming Services
- Explore more Solana APIs: Solana Documentation ➤
- For technical support, join our Telegram