喊单事件
在设置中选择喊单账号,再从同一 WebSocket 接收结构化的 account/callout 事件。
选择喊单账号
在喊单标签页中添加最多 10 个账号,可使用 pump.fun 用户名、Solana 钱包或个人主页链接。标签可选。
account/callout
d.platform 为 pump_fun。喊单者用户名和代币地址始终存在。其他代币和价格字段在可用时提供。
喊单事件类型
typescript
type CalloutEvent = {
platform: 'pump_fun';
caller: {
username: string;
};
token: {
address: string;
symbol?: string;
name?: string;
// Token artwork when available. This is not an account profile image.
image?: string;
};
url?: string;
marketCapUsd?: number;
// Exact decimal strings preserve small onchain values.
calloutPrice?: string;
multiple?: number;
maxPriceSol?: string;
// The pump.fun Callout UUID.
calloutId: string;
// When pump.fun created the Callout.
createdAt: number;
// When TweetStream received it.
receivedAt?: number;
};喊单事件
json
{
"v": 1,
"t": "account",
"op": "callout",
"id": "callout.0123456789abcdef0123",
"ts": 1772000001060,
"d": {
"platform": "pump_fun",
"caller": {
"username": "CryptoCalls"
},
"token": {
"address": "So11111111111111111111111111111111111111112",
"symbol": "ABC",
"name": "Alpha Beta",
"image": "https://cdn.example/token.png"
},
"url": "https://pump.fun/coin/So11111111111111111111111111111111111111112",
"marketCapUsd": 156230.75,
"calloutPrice": "0.00000125",
"multiple": 2.5,
"maxPriceSol": "0.00000450",
"calloutId": "9ab3177c-7b35-4d99-9cca-8b426f74a270",
"createdAt": 1772000001000,
"receivedAt": 1772000001050
}
}使用标识符和时间戳
使用 calloutId 标识喊单,使用消息信封 id 识别完全相同的重放。d.createdAt 是喊单创建时间,d.receivedAt 是可选的 TweetStream 接收时间,信封 ts 是事件准备发送的时间。可选字段仍应按可选字段处理。