Options by Symbol Realtime

Options by Symbol Realtime Java API Documentation

Returns a list of all securities that have options listed and are tradable on a US market exchange. Useful to retrieve the entire universe.

API Class:
OptionsApi
Instance Method:
getOptionsBySymbolRealtime()

Stock Price Code Example

Use my API Key
import com.intrinio.api.*;
import com.intrinio.models.*;
import com.intrinio.invoker.*;
import com.intrinio.invoker.auth.*;
import org.threeten.bp.*;
import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth auth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
auth.setApiKey("YOUR_API_KEY");
defaultClient.setAllowRetries(true);
OptionsApi optionsApi = new OptionsApi();
String symbol = "AAPL";
String type = "put";
BigDecimal strike = null;
BigDecimal strikeGreaterThan = null;
BigDecimal strikeLessThan = null;
String expiration = "2022-04-16";
String expirationAfter = "2022-01-01";
String expirationBefore = "2023-12-31";
String source = null;
Boolean includeRelatedSymbols = false;
ApiResponseOptionsRealtime result = optionsApi.getOptionsBySymbolRealtime(symbol, type, strike, strikeGreaterThan, strikeLessThan, expiration,
      expirationAfter, expirationBefore, source, includeRelatedSymbols);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
symbolStringThe option symbol, corresponding to the underlying security. 
typeStringThe option contract type.[optional] [enum: call, put]  
strikeBigDecimalThe strike price of the option contract. This will return options contracts with strike price equal to this price.[optional]  
strikeGreaterThanBigDecimalThe strike price of the option contract. This will return options contracts with strike prices greater than this price.[optional]  
strikeLessThanBigDecimalThe strike price of the option contract. This will return options contracts with strike prices less than this price.[optional]  
expirationStringThe expiration date of the option contract. This will return options contracts with expiration dates on this date.[optional]  
expirationAfterStringThe expiration date of the option contract. This will return options contracts with expiration dates after this date.[optional]  
expirationBeforeStringThe expiration date of the option contract. This will return options contracts with expiration dates before this date.[optional]  
sourceStringRealtime or 15-minute delayed contracts.[optional] [enum: realtime, delayed]  
includeRelatedSymbolsBooleanInclude related symbols that end in a 1 or 2 because of a corporate action.[optional]  


Return Type

object
ApiResponseOptionsRealtime

Properties

NameTypeDescription
optionsListA list of options contracts with the given symbol  
object
OptionRealtime

Properties

NameTypeDescription
codeStringThe Intrinio Code for the Option.  
tickerStringThe ticker symbol of the Security for the Option.  
expirationLocalDateThe date on which the Option expires. The Option becomes invalid after this date and cannot be exercised.  
strikeBigDecimalThe strike price is the fixed price at which a derivative can be exercised, and refers to the price of the derivative's underlying asset. In a call option, the strike price is the price at which the option holder can purchase the underlying security. For a put option, the strike price is the price at which the option holder can sell the underlying security.  
typeTypeEnumThe type of Option (put or call).