curl --request GET \
--url https://api.bookie.app/v1/prices/SOL \
--header 'Authorization: Bearer bookie_live_abc123def456'
const response = await fetch(
'https://api.bookie.app/v1/prices/SOL',
{
headers: {
'Authorization': `Bearer ${process.env.BOOKIE_API_KEY}`
}
}
);
import requests
response = requests.get(
'https://api.bookie.app/v1/prices/SOL',
headers={
'Authorization': f'Bearer {api_key}'
}
)
{
"mint": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"price": 147.23,
"change24h": 3.2,
"volume24h": 2847392847,
"marketCap": 68492837492,
"lastUpdated": "2024-03-08T14:30:00Z"
}
{
"error": {
"code": "token_not_found",
"message": "Token not found or not supported"
}
}
Portfolio & Prices
Get Token Price
Get current price and market data for a token
GET
/
v1
/
prices
/
{tokenMint}
curl --request GET \
--url https://api.bookie.app/v1/prices/SOL \
--header 'Authorization: Bearer bookie_live_abc123def456'
const response = await fetch(
'https://api.bookie.app/v1/prices/SOL',
{
headers: {
'Authorization': `Bearer ${process.env.BOOKIE_API_KEY}`
}
}
);
import requests
response = requests.get(
'https://api.bookie.app/v1/prices/SOL',
headers={
'Authorization': f'Bearer {api_key}'
}
)
{
"mint": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"price": 147.23,
"change24h": 3.2,
"volume24h": 2847392847,
"marketCap": 68492837492,
"lastUpdated": "2024-03-08T14:30:00Z"
}
{
"error": {
"code": "token_not_found",
"message": "Token not found or not supported"
}
}
Authorization
string
required
Bearer token. Format:
Bearer bookie_live_abc123def456Path Parameters
string
required
Token mint address or symbol (SOL, USDC, BONK, etc.)
Response
string
Token mint address
string
Token symbol
number
Current price in USD
number
24-hour price change percentage
number
24-hour trading volume in USD
number
Market capitalization in USD
string
ISO 8601 timestamp of last price update
curl --request GET \
--url https://api.bookie.app/v1/prices/SOL \
--header 'Authorization: Bearer bookie_live_abc123def456'
const response = await fetch(
'https://api.bookie.app/v1/prices/SOL',
{
headers: {
'Authorization': `Bearer ${process.env.BOOKIE_API_KEY}`
}
}
);
import requests
response = requests.get(
'https://api.bookie.app/v1/prices/SOL',
headers={
'Authorization': f'Bearer {api_key}'
}
)
{
"mint": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"price": 147.23,
"change24h": 3.2,
"volume24h": 2847392847,
"marketCap": 68492837492,
"lastUpdated": "2024-03-08T14:30:00Z"
}
{
"error": {
"code": "token_not_found",
"message": "Token not found or not supported"
}
}