Room Coin UPDATE

Overview

The COIN_UPDATES room provides real-time updates for coins statistic. This room supports subscribing to multiple coins at once.

Endpoint

wss://ws.noodles.fi/ws/coin-update

Subscription

See: WebSocket Setup for general WebSocket connection and management details.

Client Subscription Message

{
  "type": "subscribe",
  "room": "COIN_UPDATES",
  "data": {
    "coins": [
      "0x2::sui::SUI",
      "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
      "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP"
    ]
  }
}

Server Response Data Format

Data Fields

Field
Type
Description

coin

object

Coin basic information (coin_ident, symbol, name)

price

number

Current price in USD (optional)

price_change_30m

number

Price change percentage over 30 minutes (optional)

price_change_1h

number

Price change percentage over 1 hour (optional)

price_change_4h

number

Price change percentage over 4 hours (optional)

price_change_6h

number

Price change percentage over 6 hours (optional)

price_change_24h

number

Price change percentage over 24 hours (optional)

vol_change_1d

number

Volume change percentage over 1 day (optional)

liq_change_1d

number

Liquidity change percentage over 1 day (optional)

tx_change_1d

number

Transaction count change percentage over 1 day (optional)

tx_24h

number

Number of transactions in the last 24 hours (optional)

buy_vol_24h

number

Buy volume over 24 hours in USD (optional)

sell_vol_24h

number

Sell volume over 24 hours in USD (optional)

buy_tx_24h

number

Number of buy transactions in the last 24 hours (optional)

sell_tx_24h

number

Number of sell transactions in the last 24 hours (optional)

buy_vol_6h

number

Buy volume over 6 hours in USD (optional)

sell_vol_6h

number

Sell volume over 6 hours in USD (optional)

buy_tx_6h

number

Number of buy transactions in the last 6 hours (optional)

sell_tx_6h

number

Number of sell transactions in the last 6 hours (optional)

buy_vol_4h

number

Buy volume over 4 hours in USD (optional)

sell_vol_4h

number

Sell volume over 4 hours in USD (optional)

buy_tx_4h

number

Number of buy transactions in the last 4 hours (optional)

sell_tx_4h

number

Number of sell transactions in the last 4 hours (optional)

buy_vol_1h

number

Buy volume over 1 hour in USD (optional)

sell_vol_1h

number

Sell volume over 1 hour in USD (optional)

buy_tx_1h

number

Number of buy transactions in the last 1 hour (optional)

sell_tx_1h

number

Number of sell transactions in the last 1 hour (optional)

buy_vol_30m

number

Buy volume over 30 minutes in USD (optional)

sell_vol_30m

number

Sell volume over 30 minutes in USD (optional)

buy_tx_30m

number

Number of buy transactions in the last 30 minutes (optional)

sell_tx_30m

number

Number of sell transactions in the last 30 minutes (optional)

volume_30m

number

Trading volume over 30 minutes in USD (optional)

volume_1h

number

Trading volume over 1 hour in USD (optional)

volume_4h

number

Trading volume over 4 hours in USD (optional)

volume_6h

number

Trading volume over 6 hours in USD (optional)

volume_24h

number

Trading volume over 24 hours in USD (optional)

maker_24h

number

Number of unique makers in the last 24 hours (optional)

market_cap

number

Market capitalization in USD (optional)

liquidity_usd

number

Total liquidity in USD (optional)

rank

number

Coin ranking (optional)

holders

number

Number of token holders (optional)

Note: All fields except coin are optional and may not be present in every update. Updates contain only the fields that have changed.

Example Usage

JavaScript

TypeScript

Unsubscription

Client Unsubscription Message

Server Unsubscription Response

See also: WebSocket Setup for general WebSocket connection and management details.

Last updated