Forex Batch K-line Query API forex API REST API Batch historical and real-time K-line data for multiple forex currency pairs, covering complete OHLC price sequences for multiple currencies including EUR, GBP, JPY, CHF. Supports multiple time periods from minute charts to monthly charts, providing standardized timestamps, opening prices, highest prices, lowest prices, and closing prices data.
Please select
Real-Time Kline
GET
/forex/klines
Request Parameters
regionenumRequired
GB
Market code
codesstringRequired
Product code
kTypeenumRequired
5 minutes
Interval: 1 minute, 2 five minutes, 3 fifteen minutes, 4 thirty minutes, 5 one hour, 8 one day, 9 one week, 10 one month
etstring
When the query end timestamp (e.g., 1751328000000) is empty, it defaults to the current timestamp.
limitstringRequired
Number of records to query
Response Parameters
codenumber
Response code
msgstring
Response description
dataarray(object)
Response result
tunumber
Transaction amount
cnumber
Closing price of the Kline
tnumber
Timestamp
vnumber
Transaction volume
hnumber
Highest price of the Kline
lnumber
Lowest price of the Kline
onumber
Opening price of the Kline
Code Examples
import requests
url = "https://api.itick.org/forex/klines?region=GB&codes=EURUSD,GBPUSD&kType=2&limit=5"
headers = {
"accept": "application/json"
"token": "Your Token"
}
response = requests.get(url, headers=headers)
print(response.text)
Query URL
GET
https://api.itick.org/forex/klines?region=GB&codes=EURUSD,GBPUSD&kType=2&limit=5
Response Result
{
"code": 0,
"msg": null,
"data": {
"EURUSD": [
{
"tu": 1108.4808,
"c": 1.08058,
"t": 1741239000000,
"v": 1026,
"h": 1.08064,
"l": 1.08016,
"o": 1.08023
}
],
"GBPUSD": [
{
"tu": 1131.40863,
"c": 1.29028,
"t": 1741239000000,
"v": 877,
"h": 1.29031,
"l": 1.28982,
"o": 1.28986
}
]
}
}- Batch Real-Time DepthForex Market
Batch real-time order book depth data for multiple forex currency pairs, covering major currency pairs such as EUR, GBP, JPY, CHF. Provides complete buy-sell order lists for each currency pair, including multi-level prices and order volumes, with millisecond-level real-time updates.
- Indices MarketReal-Time Tick
Real-time Tick data for major global stock indices, covering core indices such as SSE Composite Index, CSI 300, Dow Jones, S&P 500, Nasdaq, and Hang Seng. Provides millisecond-accurate index prices, trading volumes, price changes, and timestamps, reflecting the latest market movements in real-time.