curl --request GET \
--url https://openapiv1.coinstats.app/portfolio/coins \
--header 'X-API-KEY: <api-key>'{
"result": [
{
"count": 44.4987,
"coin": {
"rank": 2,
"identifier": "ethereum",
"symbol": "ETH",
"name": "Ethereum",
"icon": "https://static.coinstats.app/coins/1650455629727.png",
"priceChange24h": -5.74,
"priceChange1h": 0.1,
"priceChange7d": 1.12,
"volume": 61315198931.43572,
"isFake": false,
"isFiat": false
},
"price": {
"USD": 4343.564311034,
"BTC": 0.039479708,
"ETH": 1
},
"profitPercent": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
},
"realized": {
"USD": 18844.785945298,
"BTC": -0.46237401135664413,
"ETH": -0.0008426785167330308
}
},
"profit": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
},
"realized": {
"USD": 18844.785945298,
"BTC": -0.46237401135664413,
"ETH": -0.0008426785167330308
}
},
"averageBuy": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
}
},
"averageSell": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
}
},
"liquidityScore": 94.44676177373067,
"volatilityScore": 6.823477152064536,
"marketCapScore": 90.15554879029162,
"riskScore": 7.407055529347417,
"avgChange": 2.631321607022045
}
]
}Get detailed information about all coins in your portfolio
curl --request GET \
--url https://openapiv1.coinstats.app/portfolio/coins \
--header 'X-API-KEY: <api-key>'{
"result": [
{
"count": 44.4987,
"coin": {
"rank": 2,
"identifier": "ethereum",
"symbol": "ETH",
"name": "Ethereum",
"icon": "https://static.coinstats.app/coins/1650455629727.png",
"priceChange24h": -5.74,
"priceChange1h": 0.1,
"priceChange7d": 1.12,
"volume": 61315198931.43572,
"isFake": false,
"isFiat": false
},
"price": {
"USD": 4343.564311034,
"BTC": 0.039479708,
"ETH": 1
},
"profitPercent": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
},
"realized": {
"USD": 18844.785945298,
"BTC": -0.46237401135664413,
"ETH": -0.0008426785167330308
}
},
"profit": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
},
"realized": {
"USD": 18844.785945298,
"BTC": -0.46237401135664413,
"ETH": -0.0008426785167330308
}
},
"averageBuy": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
}
},
"averageSell": {
"allTime": {
"USD": 83720.75297372,
"BTC": 0.054246576,
"ETH": -0.0008427712028833412
},
"hour24": {
"USD": -11770.04265107636,
"BTC": -0.055726915608058335,
"ETH": 0
},
"lastTrade": {
"USD": -0.0011652685976688212,
"BTC": -8.325768295004658e-9,
"ETH": 8.470329472543003e-22
},
"unrealized": {
"USD": 64875.375139922,
"BTC": 0.516615331,
"ETH": -0.000013421973257266018
}
},
"liquidityScore": 94.44676177373067,
"volatilityScore": 6.823477152064536,
"marketCapScore": 90.15554879029162,
"riskScore": 7.407055529347417,
"avgChange": 2.631321607022045
}
]
}You will get
Required
Optional
API key needed to access the endpoints. Example: 'demo-api-key'
Passcode for accessing protected portfolio data
"123456"
Page number to retrieve (1-based indexing)
1
Number of items to return per page
20
Include Risk Score Information
true, false "true"
Passcode for accessing protected portfolio data
"123456"
Portfolio coins
Array of portfolio items containing detailed information about each held cryptocurrency including prices, profits, averages, and risk metrics
Show child attributes
Quantity of coins held in the portfolio
44.4987
Coin information including symbol, name, rank, and market data
Show child attributes
Market rank of the coin
2
Unique identifier for the coin
"ethereum"
Trading symbol of the coin
"ETH"
Full name of the coin
"Ethereum"
URL to the coin icon image
"https://static.coinstats.app/coins/1650455629727.png"
Price change percentage in the last 24 hours
-5.74
Price change percentage in the last 1 hour
0.1
Price change percentage in the last 7 days
1.12
Trading volume in the last 24 hours (USD)
61315198931.43572
Whether the coin is identified as fake
false
Whether the coin is a fiat currency
false
Profit/loss percentages across different time periods and categories
Show child attributes
All-time profit/loss percentages in multiple currencies
24-hour profit/loss percentages in multiple currencies
Show child attributes
Last trade profit/loss percentages in multiple currencies
Show child attributes
Last trade value in USD
-0.0011652685976688212
Last trade value in BTC
-8.325768295004658e-9
Last trade value in ETH
8.470329472543003e-22
Unrealized profit/loss percentages in multiple currencies
Show child attributes
Unrealized gains/losses in USD
64875.375139922
Unrealized gains/losses in BTC
0.516615331
Unrealized gains/losses in ETH
-0.000013421973257266018
Realized profit/loss percentages in multiple currencies
Show child attributes
Realized gains/losses in USD
18844.785945298
Realized gains/losses in BTC
-0.46237401135664413
Realized gains/losses in ETH
-0.0008426785167330308
Profit and loss data across different time periods and categories
Show child attributes
All-time profit/loss amounts in multiple currencies
24-hour profit/loss amounts in multiple currencies
Last trade profit/loss amounts in multiple currencies
Show child attributes
Unrealized profit/loss amounts in multiple currencies
Show child attributes
Realized profit/loss amounts in multiple currencies
Show child attributes
Average purchase prices across different time periods
Show child attributes
All-time average buy/sell price across all transactions
24-hour average buy/sell price
Average price of the most recent trade
Show child attributes
Average price for unrealized positions
Show child attributes
Unrealized gains/losses in USD
64875.375139922
Unrealized gains/losses in BTC
0.516615331
Unrealized gains/losses in ETH
-0.000013421973257266018
Average sale prices across different time periods
Show child attributes
All-time average buy/sell price across all transactions
24-hour average buy/sell price
Average price of the most recent trade
Show child attributes
Average price for unrealized positions
Show child attributes
Unrealized gains/losses in USD
64875.375139922
Unrealized gains/losses in BTC
0.516615331
Unrealized gains/losses in ETH
-0.000013421973257266018
Liquidity score indicating how easily the asset can be traded (0-100)
94.44676177373067
Volatility score indicating price stability (lower = more stable)
6.823477152064536
Market capitalization score relative to other assets (0-100)
90.15554879029162
Risk score indicating investment risk level (lower = less risky)
7.407055529347417
Average price change percentage across multiple time periods
2.631321607022045
Was this page helpful?