Option Prices Realtime Snapshot

Option Prices Realtime Snapshot Java API Documentation

Returns all options snapshots for the queried interval with links to download.

API Class:
OptionsApi
Instance Method:
getOptionsSnapshots()

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 source = null;
OffsetDateTime atDatetime = OffsetDateTime.now();
Boolean withGreeks = null;
String stockPriceSource = null;
Boolean withUnderlyingPrice = null;
OptionSnapshotsResult result = optionsApi.getOptionsSnapshots(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
sourceStringRealtime or 15-minute delayed contracts.[optional] [enum: realtime, delayed]  
atDatetimeOffsetDateTimeThe UTC date and time (with url-encoded spaces) the snapshot will cover.[optional]  
withGreeksBooleanWhether to include Greek calculations fields when available.[optional]  
stockPriceSourceStringSource for underlying price for calculating Greeks.[optional] [enum: iex, nasdaq_basic, nasdaq_basic_last_sale]  
withUnderlyingPriceBooleanWhether to include the underlying price of the security in the file.[optional]  


Return Type

object
OptionSnapshotsResult

Properties

NameTypeDescription
snapshotsListList of all the snapshot groups comprising the queried result.  
object
OptionSnapshotGroup

Properties

NameTypeDescription
timeOffsetDateTimeThe UTC timestamp of this snapshot group.  
filesListList of all the snapshot parts of this group.