Price Subscribe

Subscribe to Price Updates

post

Subscribe to real-time price updates for specified token mints. Returns streaming price data including average prices over different time periods and the latest trading price.

The endpoint accepts an array of mint addresses and returns real-time pricing information including:

  • 1-minute average price

  • 15-minute average price

  • 1-hour average price

  • 24-hour average price

  • Latest trade price

Price updates are streamed as Server-Sent Events (SSE) starting with a "connected" event, followed by real-time data events with sequence numbers for proper ordering. Each update contains delete and insert operations for efficient price data management. Multiple mints can be tracked simultaneously in a single stream.

Authorizations
Body

Request to subscribe to price updates for specified mints

mintsstring[]Required

Array of token mint addresses to subscribe to

Example: ["3nSMUVeDed6G67RwLvBWxiYU2qEGVJXf2TD5MiTRpump"]
Responses
200

Success - Streaming price updates

Responsestring

Server-Sent Events stream of price updates

Example: data: {"sequence_number":2385363,"json_data":[{"delete":{"base_mint":"3nSMUVeDed6G67RwLvBWxiYU2qEGVJXf2TD5MiTRpump","quote_mint":"So11111111111111111111111111111111111111112","avg_price_1min":0.0000145159116535,"avg_price_15min":0.0000144237151482,"avg_price_1h":0.0000132893992847,"avg_price_24h":8.6219972179e-6,"latest_price":0.0000144847217258},"insert":null},{"delete":null,"insert":{"base_mint":"3nSMUVeDed6G67RwLvBWxiYU2qEGVJXf2TD5MiTRpump","quote_mint":"So11111111111111111111111111111111111111112","avg_price_1min":0.0000145253949138,"avg_price_15min":0.0000144251872985,"avg_price_1h":0.0000132893992847,"avg_price_24h":8.6219972179e-6,"latest_price":0.0000144847217258}}]}
post
POST /subscribe-price HTTP/1.1
Host: beta-api.solanavibestation.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "mints": [
    "3nSMUVeDed6G67RwLvBWxiYU2qEGVJXf2TD5MiTRpump"
  ]
}
data: {"sequence_number":2385363,"json_data":[{"delete":{"base_mint":"3nSMUVeDed6G67RwLvBWxiYU2qEGVJXf2TD5MiTRpump","quote_mint":"So11111111111111111111111111111111111111112","avg_price_1min":0.0000145159116535,"avg_price_15min":0.0000144237151482,"avg_price_1h":0.0000132893992847,"avg_price_24h":8.6219972179e-6,"latest_price":0.0000144847217258},"insert":null},{"delete":null,"insert":{"base_mint":"3nSMUVeDed6G67RwLvBWxiYU2qEGVJXf2TD5MiTRpump","quote_mint":"So11111111111111111111111111111111111111112","avg_price_1min":0.0000145253949138,"avg_price_15min":0.0000144251872985,"avg_price_1h":0.0000132893992847,"avg_price_24h":8.6219972179e-6,"latest_price":0.0000144847217258}}]}

Last updated