Forex K-line Data API forex API REST API K-line data for major global forex currency pairs, including complete OHLC fields such as opening price, highest price, lowest price, and closing price for major currency pairs like EUR, GBP, JPY, CHF. Supports multiple time periods from minute charts to monthly charts, with accurate and reliable data.
Please select
Real-Time Kline
GET
/forex/kline
Request Parameters
regionenumRequired
GB
Market code
codestringRequired
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/kline?region=GB&code=EURUSD&kType=2&limit=10"
headers = {
"accept": "application/json"
"token": "Your Token"
}
response = requests.get(url, headers=headers)
print(response.text)
Query URL
GET
https://api.itick.org/forex/kline?region=GB&code=EURUSD&kType=2&limit=10
Response Result
{
"code": 0,
"msg": null,
"data": [
{
"tu": 316.57132,
"c": 1.08051,
"t": 1741239180000,
"v": 293,
"h": 1.08053,
"l": 1.0803,
"o": 1.0803
}
]
}- Real-Time DepthForex Market
Real-time order book for major global forex currency pairs, including multi-level buy and sell prices and order volumes for major currency pairs such as EUR, GBP, JPY, CHF. Data is updated in real-time, showing complete market liquidity depth.
- Forex MarketBatch Real-Time Tick
Batch real-time Tick data for major global forex currency pairs, including transaction flow data for multiple currency pairs such as EUR, GBP, JPY, CHF. Data includes precise timestamps, transaction prices, trading volumes and buy/sell directions, with millisecond-level update accuracy.