Skip to content

021ticker

haipo yang edited this page Jun 28, 2018 · 10 revisions

Acquire Market Data

  • Request description: Acquire real-time market data

  • Request type: GET

  • Signature required: No

  • Request Url:https://api.coinex.com/v1/market/ticker?market=BTCBCH

  • Request parameter:

    name type required description
    market String Yes See<API invocation description·market>
  • Return value description:

    name type description
    date String server time when returning
    buy String buy 1
    open String 24H open price
    high String 24H highest price
    last String latest price
    low String 24H lowest price
    sell String sell 1
    vol String 24H volume
  • Example:

# Request
GET https://api.coinex.com/v1/market/ticker?market=btcbch
# Response
{
  "code": 0,
  "data": {
    "date": 1494310546,  # server time when returning
    "ticker": {
      "buy": "10.00",    # buy 1
      "open": "10",      # highest price
      "high": "10",      # highest price
      "last": "10.00",   # latest price 
      "low": "10",       # lowest price
      "sell": "10.00",   # sell 1
      "vol": "110"       # 24H volume
    }
  },
  "message": "Ok"
}

Acquire All Market Data

  • Request description: acquire all market data

  • Request type: GET

  • Signature required: No

  • Request Url:https://api.coinex.com/v1/market/ticker/all

  • Request parameter: None

  • Return value description:

    name type description
    date String server time when returning
    buy String buy 1
    high String 24H highest price
    last String latest price
    low String 24H lowest price
    sell String sell 1
    vol String 24H volumn
  • Example:

# Request
GET https://api.coinex.com/v1/market/ticker/all
# Response
{
    "code": 0,
    "data": {
        "date": 1513865441609,
        "ticker": {
            "BTCBCH": {
                "buy": "0.222",
                "open": "0.2322211",
                "high": "0.2322211",
                "last": "0.2322211",
                "low": "0.222",
                "sell": "0.3522211",
                "vol": "2.01430624"
            },
            "DASHBCH": {
                "buy": "0.59716345",
                "open": "0",
                "high": "0",
                "last": "0.62400681",
                "low": "0",
                "sell": "0.62400681",
                "vol": "0"
            },
            "ETHBCH": {
                "buy": "0.38971579",
                "open": "0",
                "high": "0",
                "last": "0.4162151",
                "low": "0",
                "sell": "0.4162151",
                "vol": "0"
            },
            "LTCBCH": {
                "buy": "0.17938942",
                "open": "0.18917566",
                "high": "0.18917566",
                "last": "0.18917566",
                "low": "0.18917566",
                "sell": "0.18917566",
                "vol": "0.001"
            },
            "ZECBCH": {
                "buy": "0.2599809",
                "open": "0.28888065",
                "high": "0.28888065",
                "last": "0.28888065",
                "low": "0.28888065",
                "sell": "0.28888065",
                "vol": "0.002"
            }
        }
    },
    "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally