Forex API · Forex
US Dollar / Offshore Chinese Yuan (USDCNH) Forex API - Real-Time Quotes & Historical Data
Access real-time forex quotes, OHLCV historical data and WebSocket streams for US Dollar / Offshore Chinese Yuan (USDCNH) on Forex. Free API key included.
- Real-time quote for USDCNH on Forex
- OHLCV historical K-line data from 1-min to monthly
- WebSocket streaming for real-time price updates
- Free API key to start - simple REST & WebSocket access
import requests
import pandas as pd
# kType = bar interval (1 = 1-minute ... 10 = monthly, see docs)
url = "https://api.itick.org/forex/kline"
params = {"region": "GB", "code": "USDCNH", "kType": 8, "limit": 500}
headers = {"accept": "application/json", "token": "YOUR_API_TOKEN"}
bars = requests.get(url, params=params, headers=headers, timeout=10).json()["data"]
df = pd.DataFrame(bars).rename(columns={
"t": "time", "o": "open", "h": "high", "l": "low", "c": "close", "v": "volume"
})
df["time"] = pd.to_datetime(df["time"], unit="ms")
df.to_csv("USDCNH_ohlcv.csv", index=False)
print(df.tail())AboutUS Dollar / Offshore Chinese Yuan
USD/CNH represents the US dollar against the offshore Chinese yuan. It reflects market-based expectations of the yuan's value outside mainland China.
Hot Forex Products
Explore real-time quotes and historical data for more financial instruments across global markets.
API Access
Use the REST and WebSocket endpoints below with your API token.
https://api.itick.org/forex/quote?region=GB&code=USDCNHwss://api.itick.org/forexGet USD/CNH forex data with Python
Query real-time forex quotes and historical data for USD/CNH via REST API.
- Sign up and get your free API token
- Use the /forex/quote endpoint for real-time rates
- Use /forex/kline for historical bars
import requests
import pandas as pd
# kType = bar interval (1 = 1-minute ... 10 = monthly, see docs)
url = "https://api.itick.org/forex/kline"
params = {"region": "GB", "code": "USDCNH", "kType": 8, "limit": 500}
headers = {"accept": "application/json", "token": "YOUR_API_TOKEN"}
bars = requests.get(url, params=params, headers=headers, timeout=10).json()["data"]
df = pd.DataFrame(bars).rename(columns={
"t": "time", "o": "open", "h": "high", "l": "low", "c": "close", "v": "volume"
})
df["time"] = pd.to_datetime(df["time"], unit="ms")
df.to_csv("USDCNH_ohlcv.csv", index=False)
print(df.tail())FAQ: US Dollar / Offshore Chinese Yuan (USDCNH) Forex Data API
How do I get real-time US Dollar / Offshore Chinese Yuan (USDCNH) price data?
Sign up for a free iTick account, get your API token, and call the /forex/quote endpoint with region=GB&code=USDCNH. You can also subscribe via WebSocket for live streaming updates.
What data is available for US Dollar / Offshore Chinese Yuan (USDCNH)?
iTick provides real-time quotes (price, bid/ask, volume), OHLCV K-line bars from 1-minute to monthly, and tick-by-tick trade data for US Dollar / Offshore Chinese Yuan on Forex.
Is there a free plan for US Dollar / Offshore Chinese Yuan (USDCNH) data?
Yes. iTick offers a free plan that includes real-time quotes, historical K-line and tick data for personal use and evaluation. Paid plans add higher rate limits and commercial usage rights.
How do I access US Dollar / Offshore Chinese Yuan (USDCNH) historical data?
Use the /forex/kline endpoint with region=GB&code=USDCNH and choose your interval via the kType parameter (1=1min, 8=daily, etc.).
What is the latest price of US Dollar / Offshore Chinese Yuan (USDCNH)?
As of 2026-11-30 18:04:27 UTC, the latest price of US Dollar / Offshore Chinese Yuan (USDCNH) is 6.65 CNH.
Start building with USDCNH data today
Get a free API key and access real-time quotes, historical data and WebSocket streams in minutes.