GET Single Product K line query

English / 中文

Stock Market Data Query

Interface Address

Request Example

When sending a query request, you must include the method name and token information. An example of a request is as follows:

https://quote.tradeswitcher.com/quote-b-api/kline?token=您的token&query=queryData

K线查询

GEThttps://quote.tradeswitcher.com/quote-stock-b-api/kline
Query parameters
Response

OK

Body
ret*integer
msg*string
trace*string
data*object
Request
const response = await fetch('https://quote.tradeswitcher.com/quote-stock-b-api/kline?token=text&query=text', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "msg": "text",
  "trace": "text",
  "data": {
    "code": "text",
    "kline_list": [
      {
        "timestamp": "text",
        "open_price": "text",
        "close_price": "text",
        "high_price": "text",
        "low_price": "text",
        "volume": "text",
        "turnover": "text"
      }
    ]
  }
}

Official Website

Official website: https://alltick.co/

Last updated