---
updatedAt: 2025-11-12T17:43:12.000Z
agentTools:
  projectIndex: https://dev.tensor.trade/llms.txt
---

# Get OHLC candles (floor price & active listings)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "tv-api"
  },
  "servers": [
    {
      "url": "https://api-tradingview.mainnet.tensordev.io"
    }
  ],
  "paths": {
    "/tv/history": {
      "get": {
        "summary": "Get OHLC candles (floor price & active listings)",
        "description": "",
        "operationId": "get-ohlc",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"s\": \"string\",\n  \"t\": [1, 2, 3],\n  \"o\": [1, 2, 3],\n  \"c\": [1, 2, 3],\n  \"h\": [1, 2, 3],\n  \"l\": [1, 2, 3],\n  \"v\": [1, 2, 3]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "s": {
                      "type": "string",
                      "example": "string"
                    },
                    "t": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      }
                    },
                    "o": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      }
                    },
                    "c": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      }
                    },
                    "h": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      }
                    },
                    "l": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      }
                    },
                    "v": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "example": 1,
                        "default": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "symbol",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "In the form `<SLUG>/SOL` (for floor price) or `<SLUG>%23LISTINGS` (for # active listings)"
          },
          {
            "in": "query",
            "name": "resolution",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Interval of candles in minutes (valid: 1, 5, 15, 30, 45, 60, 120, 180, 240, 1D, 1W, 1M)"
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string",
              "default": "1"
            },
            "required": true,
            "description": "Start time (in unix seconds): leave at `1` (not used, see `countback`)"
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "End time (in unix seconds)"
          },
          {
            "in": "query",
            "name": "countback",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Max # of candles to query backwards in time starting from from (max: 2880)"
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-tensor-api-key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "security": [
    {
      "sec0": []
    }
  ]
}
```