Wallet PnL & Stats
Per-wallet analytics — token and NFT PnL, trading and enhanced stats, portfolio, balances, token flows and related wallets.
Get P&L values for wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Filter data by specific blockchain chains (e.g. ethereum), comma-separated for multiple values (e.g, ethereum,polygon)
["ethereum","base","arbitrum"]Set time range for filtering data. Supported options - 1d, 7d, 30d and max. Default - max timeframe.
5dNext page for pagination.
4Filter data by specific tokens (e.g. PEPECAT or FfhArvgv8WB7eZ6qwENMouJRzcVpQVDoDtTuHrCk4Cxi), comma-separated for multiple values (e.g, usdc,usdt). Symbols are matched case-insensitively; addresses are matched as-is.
["PEPECAT","FfhArvgv8WB7eZ6qwENMouJRzcVpQVDoDtTuHrCk4Cxi"]Include cex transfers for calculating P&L. Default - false.
trueFilter to show only active positions. Default - false.
trueSuccessfull tokens PnL response
The response schema for the /v1/tokens_pnl endpoint.
A reference to the standard response status object, which indicates the success or failure of the API request.
A descriptive message accompanying the response, often used to provide additional information or context about the results or the status of the request.
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/pnl/tokens HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": {
"items": [
{
"num_swaps": 1,
"num_buys": 1,
"num_sells": 1,
"total_buy_usd": 1,
"total_buy_amount": 1,
"total_sell_usd": 1,
"total_sell_amount": 1,
"average_buy_price": 1,
"average_sell_price": 1,
"total_pnl_usd": 1,
"roi_percentage": 1,
"unrealized_pnl_usd": 1,
"unrealized_roi_percentage": 1,
"token_price": 1,
"token_address": "text",
"token_symbol": "text",
"token_name": "text",
"chain": "text",
"is_honeypot": true,
"holding_time_seconds": 3600,
"holding_amount": 1,
"holding_amount_usd": 1,
"platform": "pump-fun",
"platform_ui": "Pump.fun",
"avg_buy_market_cap_usd": 1,
"avg_sell_market_cap_usd": 1,
"token_age": 120,
"held_by": "0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2",
"held_by_labels": {
"0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2": "Whale 1"
}
}
],
"paging": {
"total_rows_in_page": 1,
"has_next_page": true,
"next_object": "text"
}
},
"message": "text"
}Get NFT P&L values for wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Set time range for filtering data. Supported options - 1d, 7d, 30d and max. Default - max timeframe.
5dNext page for pagination.
4Successfull Nft PnL response
The response schema for the /v1/nftss_pnl endpoint.
A reference to the standard response status object, which indicates the success or failure of the API request.
A descriptive message accompanying the response, often used to provide additional information or context about the results or the status of the request.
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/pnl/nfts HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": {
"items": [
{
"num_swaps": 1,
"total_buy_amount": 1,
"total_sell_amount": 1,
"total_buy_avg": 1,
"total_sell_avg": 1,
"total_buy_usd": 1,
"total_sell_usd": 1,
"profit_loss": 1,
"roi_percentage": 1,
"chain": "text",
"token_address": "text",
"nft_symbol": "text",
"nft_name": "text"
}
],
"paging": {
"total_rows_in_page": 1,
"has_next_page": true,
"next_object": "text"
}
},
"message": "text"
}Get tags associated with wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Filter transactions by specific blockchain chains (e.g. ethereum), comma-separated for multiple values (e.g, ethereum,polygon)
["ethereum","base","arbitrum"]Set time range for filtering data. Supported options - 1d, 7d, 30d and max. Default - max timeframe.
7dInclude CEX transfers in the response.
trueSuccessfull Total Stats response
The response schema for the /v1/{wallet}/pnl/total-stats endpoint.
A reference to the standard response status object, which indicates the success or failure of the API request.
A descriptive message accompanying the response, often used to provide additional information or context about the results or the status of the request.
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/pnl/total-stats HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": {
"wallet": "6sdb5o3XWM27RSjcYqoVZ88ruuPzHTfqFQEq26nN6eVq",
"realized_pnl_usd": 10000,
"realized_roi_percentage": 52.2,
"tokens_traded": 25,
"unrealized_pnl_usd": 5000,
"unrealized_roi_percentage": 75.2,
"winrate": 53.5,
"average_holding_time_seconds": 3600,
"median_holding_time_seconds": 3600,
"combined_pnl_usd": 15000,
"combined_roi_percentage": 127.4,
"total_buy_usd": 10000,
"total_sell_usd": 15000
},
"message": "text"
}This endpoint retrieves a list of wallets related to the specified wallet address. Related wallets are determined based on shared activity, such as token transfers, NFT trades, or participation in DeFi protocols.
Cost per Request
Cost per request = 10 credits.
Available Plans
Available on the following plans:
Builder
Architect
Enterprise
Get related wallets for wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Sort wallets by the specified criteria. Volume uses total USD received plus sent.
inflow_ascPossible values: Successfull Related Wallets response
The response schema for the /v1/{wallet}/related-wallets endpoint.
A reference to the standard response status object, which indicates the success or failure of the API request.
A descriptive message accompanying the response, often used to provide additional information or context about the results or the status of the request.
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/related-wallets HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": {
"related_wallets": [
{
"wallet": "0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2",
"inflow_usd": 10000,
"outflow_usd": 15000,
"total_usd": 25000,
"count": 2,
"label": "Wallet Name"
}
]
},
"message": "text"
}Get trading stats for wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Time period for trading stats (1d, 7d, 30d, max).
7dPossible values: Trading stats response
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/trading-stats HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": {
"total_trades": 150,
"successful_trades": 120,
"failed_trades": 30,
"win_rate": 80,
"average_profit": 0.15,
"total_profit": 22.5,
"total_volume": 150,
"most_traded_token": "USDC",
"most_profitable_token": "ETH",
"trading_frequency": "daily",
"last_trade_timestamp": 1678901234
}
}Retrieve the portfolio of a wallet. For Solana wallets, the response also includes the native SOL balance. Portfolio assets with a total_usd_value of zero are not included in the response. Available chains:
Solana
EVM (Ethereum, Base, HyperEVM, Robinhood)
Cost per Request
Cost per request = 20 credits.
Available Plans
Available on the following plans:
Builder
Architect
Enterprise
Get portfolio for wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2OK
The response schema for the /api/v1/{wallet}/portfolio endpoint.
A reference to the standard response status object, which indicates the success or failure of the API request.
A descriptive message accompanying the response, often used to provide additional information or context about the results or the status of the request.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/portfolio HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": {
"last_updated": 1,
"total_usd_value": 12607.8772451841,
"portfolio": [
{
"chain": "solana",
"token_address": "Fs8EHRVCes9SrPBWbLPTuSRBiCT8d53d8AWwaMLjHaid",
"token_name": "USDT",
"token_symbol": "USDT",
"platform": "pump-fun",
"platform_ui": "Pump.fun",
"token_price_usd": 0.9999,
"balance": 12609.138159,
"total_usd_value": 12607.8772451841,
"supply": 1889938292.793473,
"supply_owned": 0.0006671719498504224
}
]
},
"message": "text"
}Get token balance for wallet.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2The token address to get balance for.
0x6B175474E89094C44Da98b954EedeAC495271d0FThe blockchain network (ethereum, base, or solana).
solanaPossible values: OK
Response containing token balance information
The chain of the token.
ethereumThe token address.
0x6B175474E89094C44Da98b954EedeAC495271d0FThe token name.
Dai StablecoinThe token symbol.
DAIThe token price in USD.
0.9999The token balance.
12609.138159The total USD value.
12607.8772451841The number of decimals for the token.
18Bad Request - The request was unacceptable, often due to missing a required parameter.
Forbidden - The client does not have access rights to the content.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/token-balance?token_address=text&chain=solana HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"chain": "ethereum",
"token_address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"token_name": "Dai Stablecoin",
"token_symbol": "DAI",
"token_price_usd": 0.9999,
"balance": 12609.138159,
"total_usd_value": 12607.8772451841,
"decimals": 18
}This endpoint retrieves per-token trading positions for one or more wallets: amounts bought and sold, current holdings, average buy and sell prices, and realized and unrealized PnL in USD and in the chain's native token. Results are paginated with a cursor: pass paging.next_cursor from the previous response as next_cursor.
Cost per Request
Cost per request = 3 credits.
Available Plans
Available on the following plans:
Builder
Architect
Enterprise
Chain to query. all returns positions from both Base and Solana.
solanaPossible values: Comma-separated wallet addresses.
9W7CCnAvviXzP9ToyfCBT4aYbn845HdZSWS7kZPZ96mgComma-separated token addresses to filter by.
Return only positions with a non-zero holding.
trueFilter by the collateral the position was traded against.
Sort order.
holding_usd_descPossible values: Maximum number of positions to return.
50Cursor from the previous response's paging.next_cursor.
OK
Bad Request - chain is missing or invalid, or sort_by is invalid.
Forbidden - The client does not have access rights to the content.
Request Timeout
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/wallet/positions?chain=base HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": {
"data": [
{
"chain": "solana",
"wallet": "9W7CCnAvviXzP9ToyfCBT4aYbn845HdZSWS7kZPZ96mg",
"token_address": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"token_symbol": "BONK",
"token_name": "Bonk",
"platform": "text",
"platform_ui": "text",
"collateral": "text",
"bought_usd": 1,
"bought_native": 1,
"bought_amount": 1,
"sold_usd": 1,
"sold_native": 1,
"sold_amount": 1,
"sold_fees_usd": 1,
"sold_fees_native": 1,
"holding_usd": 1,
"holding_native": 1,
"holding_amount": 1,
"holding_raw": "text",
"realized_profit_usd": 1,
"realized_profit_native": 1,
"realized_profit_roi": 1,
"realized_profit_roi_native": 1,
"unrealized_profit_usd": 1,
"unrealized_profit_native": 1,
"unrealized_profit_roi": 1,
"unrealized_profit_roi_native": 1,
"total_profit_usd": 1,
"total_profit_native": 1,
"total_profit_roi": 1,
"total_profit_roi_native": 1,
"current_price_usd": 1,
"current_price_native": 1,
"market_cap": 1,
"avg_buy_price_usd": 1,
"avg_buy_price_native": 1,
"avg_sell_price_usd": 1,
"avg_sell_price_native": 1,
"avg_buy_market_cap_usd": 1,
"avg_sell_market_cap_usd": 1,
"last_trade_timestamp": 1,
"migrated_at": 1,
"has_cost_basis": true,
"cost_basis_carried": true
}
],
"paging": {
"next_cursor": "text"
}
}
}This endpoint retrieves enhanced aggregated trading statistics for a specified wallet, including trade counts, buy/sell amounts, DEX distribution, holding times, and most traded tokens.
Cost per Request
Cost per request = 20 credits.
Available Plans
Available on the following plans:
Whale
Builder
Architect
Enterprise
The wallet address to get enhanced aggregated stats for.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Time range filter. Supported options - 1d, 7d, 30d and max.
7dUnix timestamp for the start of the time range.
1700000000Unix timestamp for the end of the time range.
1710000000OK
Bad Request - Invalid wallet address or query parameters.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/enhanced-stats/aggregated HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}This endpoint retrieves profitability and performance statistics for a specified wallet, including win/loss trades, win rate, max profit/drawdown, win streaks, and holding distribution.
Cost per Request
Cost per request = 20 credits.
Available Plans
Available on the following plans:
Whale
Builder
Architect
Enterprise
The wallet address to get profitability stats for.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Time range filter. Supported options - 1d, 7d, 30d and max.
7dUnix timestamp for the start of the time range.
1700000000Unix timestamp for the end of the time range.
1710000000OK
Bad Request - Invalid wallet address or query parameters.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/enhanced-stats/profitability-performance HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}The wallet address to get enhanced aggregated stats for.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2Multi-bundle ID to aggregate stats across multiple wallets.
123Time range filter. Supported options - 1d, 7d, 30d and max.
7dUnix timestamp for the start of the time range.
1700000000Unix timestamp for the end of the time range.
1710000000OK
Bad Request - Invalid parameters.
Internal Server Error - Something went wrong on the server's end.
GET /api/v2/enhanced-stats/aggregated HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}The wallet address to get PnL chart data for.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2OK
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - Invalid wallet address or query parameters.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/pnl/tokens-chart HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}The wallet address to get monthly PnL data for.
0x0f9d76acdbc4417b026f876be1e2042e45f3bcd2OK
Accepted - Data is not ready yet. Retry in 10 seconds.
Bad Request - Invalid wallet address or query parameters.
Internal Server Error - Something went wrong on the server's end.
GET /api/v1/{wallet}/pnl/month HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}Last updated

