LogoLogo
Launch App
  • Standard
    • Thesis
    • Core Contributors
    • Sigma
    • $STND
    • Tokenomics
    • DeFi 3.0
  • Apps
    • Spot
      • For Traders
        • Market
        • Order Type
      • For Developers
        • REST API
        • Websocket Streams
          • Connect
          • Trades
          • Orders
          • Orderhistories
          • Prices
          • Orderbook
      • For Projects
        • Listing
        • Launchpad
        • Terminal
        • Market Making
    • Vaults
  • Standard L3
    • What is Standard L3?
      • How Standard L3 works
      • Modular Architecture
      • Bridge
Powered by GitBook
On this page
  • Stream Price bars in an OHLCV chart for pairs or assets in Standard spot exchange
  • ✅ Request
  • 📤 Response
  • 📡 Streamed Data Format
  • 📄 Field Descriptions

Was this helpful?

  1. Apps
  2. Spot
  3. For Developers
  4. Websocket Streams

Prices

Stream Price bars in an OHLCV chart for pairs or assets in Standard spot exchange

✅ Request

Subscription
{
  "id": 1,
  "method": "spot.bars.subscribe",
  "params": {
    "ids": ["ETH/USDC-PairMin", "ETH-TokenMin"]
  }
}
Unsubscription
{
  "id": 1,
  "method": "spot.bars.unsubscribe",
  "params": {
    "ids": ["ETH/USDC-PairMin", "ETH-TokenMin"]
  }
}

📤 Response

Success
{
  "result": null,
  "id": 1
}
Error
{
  "code": 1,
  "msg": "Internal Error: {error}"
}

📡 Streamed Data Format

Bar Stream
[
    "spotBar",
    "ETH/USDC-PairMin",
    "1600.18",
    1713659300,
    1200.12
]

📄 Field Descriptions

Index
Field
Type
Description

0

eventId

string

Unique event identifier

1

id

string

Unique identifier (e.g. ETH/USDC-PairMin)

2

price

float

Price

3

timestamp

integer

UNIX timestamp of the event

4

volume

float

Volume (default or placeholder value is 0)

PreviousOrderhistoriesNextOrderbook

Last updated 13 hours ago

Was this helpful?