POST
/
takeprofit.marketdata.external.candle.v1.CandleHistoryApi.ListCandles
curl --request POST \
  --url https://api.dev.tpinf.in/takeprofit.marketdata.external.candle.v1.CandleHistoryApi.ListCandles \
  --header 'Content-Type: application/json' \
  --data '{
  "security_id": {
    "guid": "6ef11658-5a1c-4baf-9387-d977dcca6129"
  },
  "time_frame": {
    "time_unit": "DAY",
    "count": 1
  },
  "range": {
    "count": -5,
    "first_bound_time": "2024-08-16T00:00:00Z"
  }
}'
{
  "candles": [
    {
      "time": "2024-08-09T00:00:00Z",
      "open": {
        "value": "21210",
        "scale": "100"
      },
      "high": {
        "value": "21678",
        "scale": "100"
      },
      "low": {
        "value": "21197",
        "scale": "100"
      },
      "close": {
        "value": "21624",
        "scale": "100"
      },
      "volume": {
        "value": "42201600",
        "scale": "1"
      },
      "session_type": 0
    },
    {
      "time": "2024-08-12T00:00:00Z",
      "open": {
        "value": "21607",
        "scale": "100"
      },
      "high": {
        "value": "21951",
        "scale": "100"
      },
      "low": {
        "value": "21560",
        "scale": "100"
      },
      "close": {
        "value": "21753",
        "scale": "100"
      },
      "volume": {
        "value": "38028100",
        "scale": "1"
      },
      "session_type": 0
    },
    {
      "time": "2024-08-13T00:00:00Z",
      "open": {
        "value": "21901",
        "scale": "100"
      },
      "high": {
        "value": "22189",
        "scale": "100"
      },
      "low": {
        "value": "21901",
        "scale": "100"
      },
      "close": {
        "value": "22127",
        "scale": "100"
      },
      "volume": {
        "value": "44155300",
        "scale": "1"
      },
      "session_type": 0
    },
    {
      "time": "2024-08-14T00:00:00Z",
      "open": {
        "value": "22057",
        "scale": "100"
      },
      "high": {
        "value": "22303",
        "scale": "100"
      },
      "low": {
        "value": "21970",
        "scale": "100"
      },
      "close": {
        "value": "22172",
        "scale": "100"
      },
      "volume": {
        "value": "41960600",
        "scale": "1"
      },
      "session_type": 0
    },
    {
      "time": "2024-08-15T00:00:00Z",
      "open": {
        "value": "22460",
        "scale": "100"
      },
      "high": {
        "value": "22535",
        "scale": "100"
      },
      "low": {
        "value": "22276",
        "scale": "100"
      },
      "close": {
        "value": "22472",
        "scale": "100"
      },
      "volume": {
        "value": "46414000",
        "scale": "1"
      },
      "session_type": 0
    }
  ]
}

Headers

accesstoken
string

JWT access token

Body

application/json · object

Response

200 - application/json

OK

The response is of type object.