Options Data
data class OptionsData(val underlyingSymbol: String, val expirationDates: List<Long>, val strikes: List<Double>, val hasMiniOptions: Boolean, val underlyingQuote: UnderlyingQuote?, val optionsChain: OptionsChain)(source)
Options API 조회 결과
Yahoo Finance Options API를 통해 조회한 옵션 체인 데이터를 나타냅니다.
사용 예시:
// 기본 조회 (가장 가까운 만기일)
val options = ufc.options("AAPL")
// 특정 만기일 조회
val expiration = 1704326400L // 2024-01-03
val options = ufc.options("AAPL", expiration)
// ATM 옵션 찾기
val (atmCall, atmPut) = options.findAtTheMoneyOptions()
// 가장 가까운 행사가 찾기
val targetStrike = 150.0
val nearestStrike = options.findNearestStrike(targetStrike)Content copied to clipboard
Constructors
Link copied to clipboard
constructor(underlyingSymbol: String, expirationDates: List<Long>, strikes: List<Double>, hasMiniOptions: Boolean, underlyingQuote: UnderlyingQuote?, optionsChain: OptionsChain)