Schnellstart
Sie nutzen bereits ein kompatibles Protokoll? Ersetzen Sie einfach die Basis-URL und das Token.
- 01
Sign up and subscribe
Sign up free and subscribe to a plan in the console.
- 02
Copy your token
In the console's API Keys table, click Show token and copy it.
- 03
Change the base URL
Replace
api.itick.orgwith the address below and send thetokenheader.
Basis-URLs
| Use | Address |
|---|---|
| REST | https://api.itick.dev |
| WebSocket | wss://api.itick.dev |
Erste Anfrage senden
curl -H "token: YOUR_API_KEY" \
"https://api.itick.dev/stock/quote?region=HK&code=700"{
"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
}
}Authentifizierung
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.
Nächste Schritte
- See every endpoint and parameter: REST API
- Need continuous updates: WebSocket
- Understand limits and caching: rate limits and freshness