satang-api
  • Introduction
  • Authentication
  • Sign Request Example
    • Javascript
    • Python
    • Golang
  • APIs
    • Public
      • Orders
    • Private
      • Deposits
      • Crypto Deposits
      • User/Wallet
      • Orders
    • Portal (Obsoleted)
  • APIs V3
    • General information
      • Kline Chart Interval
      • Authorization
        • Endpoint Security types
    • Public
      • Exchange Information
      • Depth
      • Kline/Candlestick data
      • Ticker
      • Aggregate trade
    • Private
      • Orders
      • Listen Key
    • Websockets
      • General WSS information
      • User Data Streams
      • Streams
        • Aggregate trade
        • Depth
        • Kline
        • Ticker
  • Satang.pro SDK
Powered by GitBook
On this page

Was this helpful?

  1. APIs V3
  2. Websockets
  3. Streams

Kline

Valid Kline intervals:

Units

Intervals

minutes

1m, 3m, 5m, 15m, 30m

hours

1h, 2h, 4h, 6h, 8h, 12h

days

1d, 3d

weeks

1w

months

1M

Stream Name: <pair>@kline_<interval>

Update Speed: 1000ms

{
  "e": "kline",                  // Event type
  "E": 1591845195392,            // Event time
  "s": "btc_thb",                // Symbol
  "k": {
    "t": 1590969600000,          // Kline start time
    "T": 1593561599999,          // Kline close time
    "s": "btc_thb",              // Symbol
    "i": "1M",                   // Interval
    "f": 332283374,              // First trade ID
    "L": 338659987,              // Last trade ID
    "o": "9448.27000000",        // Open price
    "c": "9930.23000000",        // Close price
    "h": "10380.00000000",       // High price
    "l": "9266.00000000",        // Low price
    "v": "569228.23462500",      // Base asset volume
    "n": 6376614,                // Number of trades
    "x": false,                  // Is this kline closed?
    "q": "5536922020.81383922",  // Quote asset volume
    "V": "277310.22952600",      // Taker buy base asset volume
    "Q": "2699814619.41102725",  // Taker buy quote asset volume
    "B": "0"                     // Ignore
  }
}
PreviousDepthNextTicker

Last updated 4 years ago

Was this helpful?