Skip to content

Commit 2b0aab8

Browse files
No release notes for this build
1 parent e3d6054 commit 2b0aab8

File tree

4 files changed

+41
-14
lines changed

4 files changed

+41
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To get an API key, [sign up here](https://intrinio.com/).
44

55
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://docs.intrinio.com/documentation/api_v2). If you need additional help in using the API, please visit the [Intrinio website](https://intrinio.com) and click on the chat icon in the lower right corner.
66

7-
- API version: 2.80.1
7+
- API version: 2.91.1
88
- Package version: 6.28.0
99

1010

docs/OptionsApi.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ Name | Type | Description | Notes
22452245

22462246
[//]: # (START_OVERVIEW)
22472247

2248-
> OptionSnapshotsResult getOptionsSnapshots(source, atDatetime)
2248+
> OptionSnapshotsResult getOptionsSnapshots(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice)
22492249
22502250
#### Option Prices Realtime Snapshot
22512251

@@ -2278,7 +2278,10 @@ public class Main {
22782278
OptionsApi optionsApi = new OptionsApi();
22792279
String source = null;
22802280
OffsetDateTime atDatetime = OffsetDateTime.now();
2281-
OptionSnapshotsResult result = optionsApi.getOptionsSnapshots(source, atDatetime);
2281+
Boolean withGreeks = null;
2282+
String stockPriceSource = null;
2283+
Boolean withUnderlyingPrice = null;
2284+
OptionSnapshotsResult result = optionsApi.getOptionsSnapshots(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice);
22822285
System.out.println(result);
22832286
}
22842287
}
@@ -2295,6 +2298,9 @@ Name | Type | Description | Notes
22952298
------------- | ------------- | ------------- | -------------
22962299
**source** | String| Realtime or 15-minute delayed contracts. | [optional] [enum: realtime, delayed]  
22972300
**atDatetime** | OffsetDateTime| The UTC date and time (with url-encoded spaces) the snapshot will cover. | [optional]  
2301+
**withGreeks** | Boolean| Whether to include Greek calculations fields when available. | [optional]  
2302+
**stockPriceSource** | String| Source for underlying price for calculating Greeks. | [optional] [enum: iex, nasdaq_basic, nasdaq_basic_last_sale]  
2303+
**withUnderlyingPrice** | Boolean| Whether to include the underlying price of the security in the file. | [optional]  
22982304
<br/>
22992305

23002306
[//]: # (END_PARAMETERS)

src/main/java/com/intrinio/api/OptionsApi.java

+28-10
Original file line numberDiff line numberDiff line change
@@ -3726,12 +3726,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
37263726
* Build call for getOptionsSnapshots
37273727
* @param source Realtime or 15-minute delayed contracts. (optional)
37283728
* @param atDatetime The UTC date and time (with url-encoded spaces) the snapshot will cover. (optional)
3729+
* @param withGreeks Whether to include Greek calculations fields when available. (optional)
3730+
* @param stockPriceSource Source for underlying price for calculating Greeks. (optional)
3731+
* @param withUnderlyingPrice Whether to include the underlying price of the security in the file. (optional)
37293732
* @param progressListener Progress listener
37303733
* @param progressRequestListener Progress request listener
37313734
* @return Call to execute
37323735
* @throws ApiException If fail to serialize the request body object
37333736
*/
3734-
public com.squareup.okhttp.Call getOptionsSnapshotsCall(String source, OffsetDateTime atDatetime, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3737+
public com.squareup.okhttp.Call getOptionsSnapshotsCall(String source, OffsetDateTime atDatetime, Boolean withGreeks, String stockPriceSource, Boolean withUnderlyingPrice, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
37353738
Object localVarPostBody = null;
37363739

37373740
// create path and map variables
@@ -3743,6 +3746,12 @@ public com.squareup.okhttp.Call getOptionsSnapshotsCall(String source, OffsetDat
37433746
localVarQueryParams.addAll(apiClient.parameterToPair("source", source));
37443747
if (atDatetime != null)
37453748
localVarQueryParams.addAll(apiClient.parameterToPair("at_datetime", atDatetime));
3749+
if (withGreeks != null)
3750+
localVarQueryParams.addAll(apiClient.parameterToPair("with_greeks", withGreeks));
3751+
if (stockPriceSource != null)
3752+
localVarQueryParams.addAll(apiClient.parameterToPair("stock_price_source", stockPriceSource));
3753+
if (withUnderlyingPrice != null)
3754+
localVarQueryParams.addAll(apiClient.parameterToPair("with_underlying_price", withUnderlyingPrice));
37463755

37473756
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
37483757

@@ -3777,10 +3786,10 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
37773786
}
37783787

37793788
@SuppressWarnings("rawtypes")
3780-
private com.squareup.okhttp.Call getOptionsSnapshotsValidateBeforeCall(String source, OffsetDateTime atDatetime, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
3789+
private com.squareup.okhttp.Call getOptionsSnapshotsValidateBeforeCall(String source, OffsetDateTime atDatetime, Boolean withGreeks, String stockPriceSource, Boolean withUnderlyingPrice, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
37813790

37823791

3783-
com.squareup.okhttp.Call call = getOptionsSnapshotsCall(source, atDatetime, progressListener, progressRequestListener);
3792+
com.squareup.okhttp.Call call = getOptionsSnapshotsCall(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice, progressListener, progressRequestListener);
37843793
return call;
37853794

37863795
}
@@ -3790,14 +3799,17 @@ private com.squareup.okhttp.Call getOptionsSnapshotsValidateBeforeCall(String so
37903799
* Returns all options snapshots for the queried interval with links to download.
37913800
* @param source Realtime or 15-minute delayed contracts. (optional)
37923801
* @param atDatetime The UTC date and time (with url-encoded spaces) the snapshot will cover. (optional)
3802+
* @param withGreeks Whether to include Greek calculations fields when available. (optional)
3803+
* @param stockPriceSource Source for underlying price for calculating Greeks. (optional)
3804+
* @param withUnderlyingPrice Whether to include the underlying price of the security in the file. (optional)
37933805
* @return OptionSnapshotsResult
37943806
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
37953807
* @throws NoSuchMethodException If fail to get specified method off of the main class
37963808
*/
3797-
public OptionSnapshotsResult getOptionsSnapshots(String source, OffsetDateTime atDatetime) throws ApiException, NoSuchMethodException {
3798-
Method targetMethod = OptionsApi.class.getMethod("getOptionsSnapshotsWithHttpInfo", String.class, OffsetDateTime.class);
3809+
public OptionSnapshotsResult getOptionsSnapshots(String source, OffsetDateTime atDatetime, Boolean withGreeks, String stockPriceSource, Boolean withUnderlyingPrice) throws ApiException, NoSuchMethodException {
3810+
Method targetMethod = OptionsApi.class.getMethod("getOptionsSnapshotsWithHttpInfo", String.class, OffsetDateTime.class, Boolean.class, String.class, Boolean.class);
37993811

3800-
Object[] apiCallArguments = { source, atDatetime };
3812+
Object[] apiCallArguments = { source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice };
38013813
ApiResponse<OptionSnapshotsResult> resp = apiClient.attemptApiCall(targetMethod, apiCallArguments);
38023814
return resp.getData();
38033815
}
@@ -3807,11 +3819,14 @@ public OptionSnapshotsResult getOptionsSnapshots(String source, OffsetDateTime a
38073819
* Returns all options snapshots for the queried interval with links to download.
38083820
* @param source Realtime or 15-minute delayed contracts. (optional)
38093821
* @param atDatetime The UTC date and time (with url-encoded spaces) the snapshot will cover. (optional)
3822+
* @param withGreeks Whether to include Greek calculations fields when available. (optional)
3823+
* @param stockPriceSource Source for underlying price for calculating Greeks. (optional)
3824+
* @param withUnderlyingPrice Whether to include the underlying price of the security in the file. (optional)
38103825
* @return ApiResponse&lt;OptionSnapshotsResult&gt;
38113826
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
38123827
*/
3813-
public ApiResponse<OptionSnapshotsResult> getOptionsSnapshotsWithHttpInfo(String source, OffsetDateTime atDatetime) throws ApiException {
3814-
com.squareup.okhttp.Call call = getOptionsSnapshotsValidateBeforeCall(source, atDatetime, null, null);
3828+
public ApiResponse<OptionSnapshotsResult> getOptionsSnapshotsWithHttpInfo(String source, OffsetDateTime atDatetime, Boolean withGreeks, String stockPriceSource, Boolean withUnderlyingPrice) throws ApiException {
3829+
com.squareup.okhttp.Call call = getOptionsSnapshotsValidateBeforeCall(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice, null, null);
38153830
Type localVarReturnType = new TypeToken<OptionSnapshotsResult>(){}.getType();
38163831
return apiClient.execute(call, localVarReturnType);
38173832
}
@@ -3821,11 +3836,14 @@ public ApiResponse<OptionSnapshotsResult> getOptionsSnapshotsWithHttpInfo(String
38213836
* Returns all options snapshots for the queried interval with links to download.
38223837
* @param source Realtime or 15-minute delayed contracts. (optional)
38233838
* @param atDatetime The UTC date and time (with url-encoded spaces) the snapshot will cover. (optional)
3839+
* @param withGreeks Whether to include Greek calculations fields when available. (optional)
3840+
* @param stockPriceSource Source for underlying price for calculating Greeks. (optional)
3841+
* @param withUnderlyingPrice Whether to include the underlying price of the security in the file. (optional)
38243842
* @param callback The callback to be executed when the API call finishes
38253843
* @return The request call
38263844
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
38273845
*/
3828-
public com.squareup.okhttp.Call getOptionsSnapshotsAsync(String source, OffsetDateTime atDatetime, final ApiCallback<OptionSnapshotsResult> callback) throws ApiException {
3846+
public com.squareup.okhttp.Call getOptionsSnapshotsAsync(String source, OffsetDateTime atDatetime, Boolean withGreeks, String stockPriceSource, Boolean withUnderlyingPrice, final ApiCallback<OptionSnapshotsResult> callback) throws ApiException {
38293847

38303848
ProgressResponseBody.ProgressListener progressListener = null;
38313849
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -3846,7 +3864,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
38463864
};
38473865
}
38483866

3849-
com.squareup.okhttp.Call call = getOptionsSnapshotsValidateBeforeCall(source, atDatetime, progressListener, progressRequestListener);
3867+
com.squareup.okhttp.Call call = getOptionsSnapshotsValidateBeforeCall(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice, progressListener, progressRequestListener);
38503868
Type localVarReturnType = new TypeToken<OptionSnapshotsResult>(){}.getType();
38513869
apiClient.executeAsync(call, localVarReturnType, callback);
38523870
return call;

src/test/java/com/intrinio/api/OptionsApiTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,10 @@ public void getOptionsPricesRealtimeByTickerTest() throws ApiException, NoSuchMe
547547
public void getOptionsSnapshotsTest() throws ApiException, NoSuchMethodException {
548548
String source = null;
549549
OffsetDateTime atDatetime = null;
550-
OptionSnapshotsResult response = api.getOptionsSnapshots(source, atDatetime);
550+
Boolean withGreeks = null;
551+
String stockPriceSource = null;
552+
Boolean withUnderlyingPrice = null;
553+
OptionSnapshotsResult response = api.getOptionsSnapshots(source, atDatetime, withGreeks, stockPriceSource, withUnderlyingPrice);
551554

552555
// TODO: test validations
553556
}

0 commit comments

Comments
 (0)