curl --request GET \
--url https://api.fomoscan.sh/v2/ws/pump \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fomoscan.sh/v2/ws/pump', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fomoscan.sh/v2/ws/pump"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Live pump.fun callouts, every token or a token list (WebSocket)
The pump.fun callout feed on its own socket. Everything on GET /v2/ws
applies here: the handshake, the plan rule, one subscription per
connection, the frames, the close codes and the per-minute meter. The
section The pump feed there describes the pump_callout frame.
The subscribe messages are the same as on GET /v2/ws. The path picks
the feed:
{ "type": "subscribe", "subscription": { "type": "all" } }
{ "type": "subscribe", "subscription": { "type": "tokens", "tokens": ["So1111…"] } }
Theses are on GET /v2/ws.
There is no replay. Take a snapshot from GET /v2/pump/thesis and
reconcile on callout.id.
This socket is metered by the minute held open, on its own and apart
from any /v2/ws socket on the same key, from the same credits as your
REST calls. See GET /v2/me for your remaining balance.
Price: 20,000 CU per minute held open.
curl --request GET \
--url https://api.fomoscan.sh/v2/ws/pump \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fomoscan.sh/v2/ws/pump', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fomoscan.sh/v2/ws/pump"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
B2B API key (fsk_live_… / fsk_test_…), issued by FomoScan. Also accepted via X-Api-Key.
Response
Switching Protocols — the socket is open.
