GET api/getChart?symbol={symbol}&interval={interval}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
symbol

string

Required

interval

string

Required

Body Parameters

None.

Response Information

Resource Description

Chart
NameDescriptionTypeAdditional information
info

metadata1

None.

line

Collection of chartData

None.

Response Formats

application/json, text/json

Sample:
{
  "info": {
    "symbol": "sample string 1",
    "priceChange": 2.0,
    "priceChangePercent": 3.0,
    "prevClosePrice": "sample string 4",
    "lastPrice": "sample string 5",
    "volume": 6.0,
    "quoteVolume": 7.0,
    "highPrice": "sample string 8",
    "lowPrice": "sample string 9",
    "fav": "sample string 10"
  },
  "line": [
    {
      "opentime": 1,
      "open": "sample string 2",
      "high": "sample string 3",
      "low": "sample string 4",
      "close": "sample string 5",
      "volume": "sample string 6",
      "closetime": 7
    },
    {
      "opentime": 1,
      "open": "sample string 2",
      "high": "sample string 3",
      "low": "sample string 4",
      "close": "sample string 5",
      "volume": "sample string 6",
      "closetime": 7
    }
  ]
}

application/xml, text/xml

Sample:
<Chart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KG_API.Models">
  <info>
    <fav>sample string 10</fav>
    <highPrice>sample string 8</highPrice>
    <lastPrice>sample string 5</lastPrice>
    <lowPrice>sample string 9</lowPrice>
    <prevClosePrice>sample string 4</prevClosePrice>
    <priceChange>2</priceChange>
    <priceChangePercent>3</priceChangePercent>
    <quoteVolume>7</quoteVolume>
    <symbol>sample string 1</symbol>
    <volume>6</volume>
  </info>
  <line>
    <chartData>
      <close>sample string 5</close>
      <closetime>7</closetime>
      <high>sample string 3</high>
      <low>sample string 4</low>
      <open>sample string 2</open>
      <opentime>1</opentime>
      <volume>sample string 6</volume>
    </chartData>
    <chartData>
      <close>sample string 5</close>
      <closetime>7</closetime>
      <high>sample string 3</high>
      <low>sample string 4</low>
      <open>sample string 2</open>
      <opentime>1</opentime>
      <volume>sample string 6</volume>
    </chartData>
  </line>
</Chart>