Options Data
Get real-time quotes, K-line, and minute data for CFFEX index options, SSE ETF options, and commodity options.
CFFEX Index Options
getIndexOptionSpot
Get CFFEX index option T-quotes (calls + puts).
const spot = await sdk.getIndexOptionSpot('io', 'io2504');
console.log(spot.calls); // Call contracts
console.log(spot.puts); // Put contracts2
3
Parameters:
| Parameter | Type | Description |
|---|---|---|
product | 'ho' | 'io' | 'mo' | Product code: ho(SSE 50), io(CSI 300), mo(CSI 1000) |
contract | string | Contract code, e.g. 'io2504' |
Returns: OptionTQuoteResult
interface OptionTQuoteResult {
calls: OptionTQuote[];
puts: OptionTQuote[];
}
interface OptionTQuote {
symbol: string; // Contract identifier
buyVolume: number; // Bid volume
buyPrice: number; // Bid price
price: number; // Last price
askPrice: number; // Ask price
askVolume: number; // Ask volume
openInterest: number; // Open interest
change: number; // Price change
strikePrice: number; // Strike price (null for puts)
}2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
getIndexOptionKline
Get CFFEX index option contract daily K-line.
const klines = await sdk.getIndexOptionKline('io2504C3600');Parameters:
| Parameter | Type | Description |
|---|---|---|
symbol | string | Contract code (with call/put identifier), e.g. 'io2504C3600' |
Returns: OptionKline[]
interface OptionKline {
date: string; // Date YYYY-MM-DD
open: number; // Open price
high: number; // High price
low: number; // Low price
close: number; // Close price
volume: number; // Volume
}2
3
4
5
6
7
8
getCFFEXOptionQuotes
Get all CFFEX option real-time quotes (Eastmoney data source).
const quotes = await sdk.getCFFEXOptionQuotes();
console.log(quotes[0].code); // 'MO2603-P-8200'2
Returns: CFFEXOptionQuote[]
interface CFFEXOptionQuote {
code: string; // Contract code
name: string; // Contract name
price: number; // Last price
change: number; // Price change
changePercent: number; // Change percent
volume: number; // Volume
amount: number; // Amount
openInterest: number; // Open interest
strikePrice: number; // Strike price
remainDays: number; // Days to expiry
dailyChange: number; // Daily change
prevSettle: number; // Previous settlement
open: number; // Open price
}2
3
4
5
6
7
8
9
10
11
12
13
14
15
SSE ETF Options
getETFOptionMonths
Get SSE ETF option expiration month list.
const info = await sdk.getETFOptionMonths('50ETF');
console.log(info.months); // ['2026-03', '2026-04', '2026-06']2
Parameters:
| Parameter | Type | Description |
|---|---|---|
cate | ETFOptionCate | Category: '50ETF', '300ETF', '500ETF', '科创50' |
Returns: ETFOptionMonth
interface ETFOptionMonth {
months: string[]; // Expiration months
stockId: string; // Underlying security code
cateId: string; // Current category ID
cateList: string[]; // Available categories
}2
3
4
5
6
getETFOptionExpireDay
Get SSE ETF option expiration date and remaining days.
const info = await sdk.getETFOptionExpireDay('50ETF', '2026-03');
console.log(info.expireDay); // '2026-03-25'
console.log(info.remainderDays); // 122
3
Parameters:
| Parameter | Type | Description |
|---|---|---|
cate | ETFOptionCate | Category |
month | string | Expiration month YYYY-MM |
Returns: ETFOptionExpireDay
getETFOptionMinute
Get SSE ETF option intraday minute data.
const minutes = await sdk.getETFOptionMinute('10009633');Parameters:
| Parameter | Type | Description |
|---|---|---|
code | string | Option code (numeric only) |
Returns: OptionMinute[]
interface OptionMinute {
time: string; // Time HH:mm:ss
date: string; // Date YYYY-MM-DD
price: number; // Price
volume: number; // Volume
openInterest: number; // Open interest
avgPrice: number; // Average price
}2
3
4
5
6
7
8
getETFOptionDailyKline
Get SSE ETF option historical daily K-line.
const klines = await sdk.getETFOptionDailyKline('10009633');Parameters:
| Parameter | Type | Description |
|---|---|---|
code | string | Option code (numeric only) |
Returns: OptionKline[]
getETFOption5DayMinute
Get SSE ETF option 5-day minute data.
const minutes = await sdk.getETFOption5DayMinute('10009633');Parameters:
| Parameter | Type | Description |
|---|---|---|
code | string | Option code (numeric only) |
Returns: OptionMinute[]
Commodity Options
getCommodityOptionSpot
Get commodity option T-quotes.
const spot = await sdk.getCommodityOptionSpot('au', 'au2506');
console.log(spot.calls); // Call contracts
console.log(spot.puts); // Put contracts2
3
Parameters:
| Parameter | Type | Description |
|---|---|---|
variety | string | Variety code, e.g. 'au', 'cu', 'SR', 'm' |
contract | string | Contract code, e.g. 'au2506' |
Supported commodity option varieties:
SHFE: au (gold), ag (silver), cu (copper), al (aluminum), zn (zinc), ru (rubber) INE: sc (crude oil) DCE: m (soybean meal), c (corn), i (iron ore), p (palm oil), pp, l, v, pg, y, a, b, eg, eb CZCE: SR (sugar), CF (cotton), TA, MA, RM, OI, PK, PF, SA, UR
Returns: OptionTQuoteResult
getCommodityOptionKline
Get commodity option contract daily K-line.
const klines = await sdk.getCommodityOptionKline('m2409C3200');Parameters:
| Parameter | Type | Description |
|---|---|---|
symbol | string | Contract code (with call/put identifier), e.g. 'm2409C3200' |
Returns: OptionKline[]
Ranking Data
getOptionLHB
Get option leaderboard.
const lhb = await sdk.getOptionLHB('510050', '2022-01-21');Parameters:
| Parameter | Type | Description |
|---|---|---|
symbol | string | Underlying code, e.g. '510050', '510300', '159919' |
date | string | Trading date YYYY-MM-DD |
Returns: OptionLHBItem[]
interface OptionLHBItem {
tradeType: string; // Trade type
date: string; // Trade date
symbol: string; // Underlying code
targetName: string; // Underlying name
memberName: string; // Member abbreviation
rank: number; // Rank
sellVolume: number; // Sell volume
buyVolume: number; // Buy volume
// ...more fields
}2
3
4
5
6
7
8
9
10
11