Websocket
This page documents the WebSocket API for real-time updates available at ws.sugar.money
The API delivers real-time updates on coin events like new launches, trades, and migrations. Each coin event follows a common schema, Coin. Specifically, the CoinTradeEvent event includes a trade_data attribute, defined by CoinTradeData.
SDKs
To make integration easier, we provide official SDKs:
Please open an issue here if you run into issues using any of the SDKs.
Generic Message Format
All events are sent as generic messages with the following format:
{
type: string;
data: object;
};Available Event Types:
SolanaPrice:
'solana_price'NewCoin:
'new_coin'CoinCreate:
'coin_create'CoinTrade:
'coin_trade'CoinMigrated:
'coin_migrate'CoinCompleted:
'coin_complete'CoinFeatured:
'coin_featured'CoinComment:
'coin_comment'
Last updated