본문으로 건너뛰기

빠른 시작

이미 호환 프로토콜을 사용 중이신가요? 기본 URL과 토큰만 교체하면 즉시 연동됩니다.

  1. 01

    Sign up and subscribe

    Sign up free and subscribe to a plan in the console.

  2. 02

    Copy your token

    In the console's API Keys table, click Show token and copy it.

  3. 03

    Change the base URL

    Replace api.itick.org with the address below and send the token header.

기본 URL (Base URL)

UseAddress
RESThttps://api.itick.dev
WebSocketwss://api.itick.dev

첫 번째 요청 보내기

curl
curl -H "token: YOUR_API_KEY" \
  "https://api.itick.dev/stock/quote?region=HK&code=700"
Response
{
  "code": 0,
  "msg": null,
  "data": {
    "s": "700",
    "ld": 420.6,
    "p": 428.2,
    "o": 425.6,
    "h": 426,
    "l": 419.2,
    "v": 12436640,
    "ch": -7.6,
    "chp": -1.77
  }
}

인증 방법

Send the token in the token request header, as with the iTick API. You can also use the x-api-key or Authorization: Bearer header, or the token query parameter. Browser WebSockets cannot set headers, so use the query parameter there.

Keep your token to your own programs; never put it in a public web page or repository. If it leaks, reset it in the console and the old token stops working immediately.

다음 단계