Ticker

Request

The requests is consisted of JSON Object and the response is also JSON Object. Requests are divided into ticket field, type field, and format field, and multiple type fields can be specified in one request. Please refer to Request method and format for ticket field and format field.

📘

Request format

[{Ticket Field},{Type Field},....,{Type Field},{Format Field}]

Type Field

In this field, you have to list the market data you want to receive.

is_only_snapshot and is_only_realtime fields are optional and both snapshot and real-time data will be received if they are omitted.

Field NameTypeDescriptionRequiredDefault
typeStringdata type
ticker: Current market price
O
codesListMarket code list
*Must be requested in capital letters.
O
is_only_snapshotBooleanOnly provides snapshot dataXfalse
is_only_realtimeBooleanOnly provides real-time dataXfalse

Response

Field NameSimplified Format (format: SIMPLE)DescriptionTypeValue
typetyTypeStringticker
codecdMarket ID (e.g. SGD-BTC)String
opening_priceopOpening priceDouble
high_pricehpHigh priceDouble
low_pricelpLow priceDouble
trade_pricetpClosing priceDouble
prev_closing_pricepcpPrevious closeDouble
changecChange directionStringRISE, EVEN, FALL
change_pricecpUnsigned change priceDouble
signed_change_pricescpSigned change priceDouble
change_ratecrUnsigned change rateDouble
signed_change_ratescrSigned change rateDouble
trade_volumetvLast trade volumeDouble
acc_trade_volumeatvAccumulated volume (UTC+0)Double
acc_trade_volume_24hatv24h24h accumulated volumeDouble
acc_trade_priceatpAccumulated price (UTC+0)Double
acc_trade_price_24hatp24h24h accumulated priceDouble
trade_datetdtTrade date (UTC)StringyyyyMMdd
trade_timettmTrade time (UTC)StringHHmmss
trade_timestampttmsTrade timestamp (ms)Long
ask_bidabOrder typeStringASK, BID
acc_ask_volumeaavAccumulated ask volumeDouble
acc_bid_volumeabvAccumulated bid volumeDouble
highest_52_week_priceh52wp52-week high priceDouble
highest_52_week_dateh52wdtDate of 52-week highStringyyyy-MM-dd
lowest_52_week_pricel52wp52-week low priceDouble
lowest_52_week_datel52wdtDate of 52-week lowStringyyyy-MM-dd
market_statemsMarket statusStringPREVIEW, ACTIVE, DELISTED
market_warningmwInvestment caution flagStringNONE, CAUTION
timestamptmsData timestampLong
stream_typestStream typeStringSNAPSHOT, REALTIME

Example

Request

[
  {
    "ticket": "test example"
  },
  {
    "type": "ticker",
    "codes": ["SGD-BTC", "SGD-ETH"]
  },
  {
    "format": "DEFAULT"
  }
]

Response

{
  "type": "ticker",
  "code": "SGD-BTC",
  "opening_price": 37249,
  "high_price": 37645,
  "low_price": 36732,
  "trade_price": 36929,
  "prev_closing_price": 37235,
  "acc_trade_price": 5530.55648491,
  "change": "FALL",
  "change_price": 306,
  "signed_change_price": -306,
  "change_rate": 0.0082180744,
  "signed_change_rate": -0.0082180744,
  "ask_bid": "ASK",
  "trade_volume": 0.00006314,
  "acc_trade_volume": 0.149474,
  "trade_date": "20230830",
  "trade_time": "082105",
  "trade_timestamp": 1693383665811,
  "acc_ask_volume": 0.0197006,
  "acc_bid_volume": 0.1297734,
  "highest_52_week_price": 42710,
  "highest_52_week_date": "2023-07-06",
  "lowest_52_week_price": 21332,
  "lowest_52_week_date": "2022-11-21",
  "market_state": "ACTIVE",
  "is_trading_suspended": false,
  "delisting_date": null,
  "market_warning": "NONE",
  "timestamp": 1693383690031,
  "acc_trade_price_24h": 8320.40577449,
  "acc_trade_volume_24h": 0.22569412,
  "stream_type": "SNAPSHOT"
}