public class OptionCalcUtils extends Object
| 构造器和说明 |
|---|
OptionCalcUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static OptionFundamentals |
calcOptionIndex(Right optionType,
double underlying,
double strike,
double riskFreeRate,
double dividendRate,
double impliedVolatility,
java.time.LocalDate settlementDate,
java.time.LocalDate expirationDate) |
static OptionFundamentals |
getOptionFundamentals(TigerHttpClient client,
String symbol,
String right,
String strike,
String expiry)
Get option fundamental information(include option greek values)
|
static OptionFundamentals |
getOptionFundamentals(TigerHttpClient client,
String symbol,
String right,
String strike,
String expiry,
String underlyingSymbol)
Get option fundamental information(include option greek values)
|
public static OptionFundamentals getOptionFundamentals(TigerHttpClient client, String symbol, String right, String strike, String expiry) throws Exception
client - TigerHttpClientsymbol - Stock coderight - CALL or PUTstrike - strike priceexpiry - Expiration date(yyyy-MM-dd)Exception - runtime exceptionpublic static OptionFundamentals getOptionFundamentals(TigerHttpClient client, String symbol, String right, String strike, String expiry, String underlyingSymbol) throws Exception
client - TigerHttpClientsymbol - Stock coderight - CALL or PUTstrike - strike priceexpiry - Expiration date(yyyy-MM-dd)underlyingSymbol - underlying symbol(if null, If empty, defaults to the same value as 'symbol')Exception - runtime exceptionpublic static OptionFundamentals calcOptionIndex(Right optionType, double underlying, double strike, double riskFreeRate, double dividendRate, double impliedVolatility, java.time.LocalDate settlementDate, java.time.LocalDate expirationDate)
Copyright © 2024. All rights reserved.