Assets GraphQL API
'Assets
Simple Example
https://dton.io/graphql/
query PnlFLow {
assets_pnl_flow(
user: "dassets.ton",
asset_address:"EQD0vdSA_NedR9uvbgN9EikRX-suesDxGeFg69XQMavfLqIw"
from_time: 1747058400
to_time: 1748089208
interval:DAY_1
) {
time
time_human
balance
net_worth
estimate_usd
avg_estimate_usd
realized_in_usd
realized_out_usd
realized_pnl_usd
realized_pnl_percent
unrealized_pnl_usd
unrealized_pnl_percent
}
}Single User
{
assets(
user: "address or domain"
) {
asset_address
balance
__typename
... on JettonAssetType {
jetton_wallet_address
jetton_info {
symbol
decimals
token_type
}
}
... on StakingAssetType {
provider
nft_address
}
... on TonAssetType {
jetton_info {
decimals
estimate_usd
binary_content {
icon_view
}
}
}
}
}Multiple Users
{
assets(
users: [
"address1 or domain1",
"address2 or domain2"
]
) {
asset_address
balance
estimate_ton
estimate_usd
__typename
by_user {
user_address
balance
}
... on JettonAssetType {
jetton_wallet_address
jetton_info {
symbol
decimals
token_type
}
}
... on StakingAssetType {
provider
}
... on TonAssetType {
jetton_info {
decimals
}
}
}
}
Assets Net Worth
Example
https://dton.io/graphql
{
assets_net_worth(
user: "lolkekcheburek.ton"
# users: ["", ""]
) {
net_worth_ton
net_worth_usd
}
}
Assets Token Info
Simple Example
{
assets_token_info(address: "EQDP4FKs4AqothucWAPdHJfsntegHdknrwmg8qV9eBVlrWma") {
name
symbol
estimate_usd
binary_content {
full_view
}
}
}Get all liquid_pool tokens
{
assets_token_info(
token_type: liquid_pool,
estimate_usd__gt: 0 # Exclude shitcoins,
page: 0,
page_size: 50
) {
address
name
symbol
estimate_usd
pool_info {
asset0 {
symbol
}
asset1 {
symbol
}
}
}
}
Assets Liquidity Pools
Simple Example
{
assets_liquidity_pools(pool_address:"0:3E5FFCA8DDFCF36C36C9FF46F31562AAB51B9914845AD6C26CBDE649D58A5588") {
address
reserve0
reserve1
apr
}
}