@@ -3726,12 +3726,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
3726
3726
* Build call for getOptionsSnapshots
3727
3727
* @param source Realtime or 15-minute delayed contracts. (optional)
3728
3728
* @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)
3729
3732
* @param progressListener Progress listener
3730
3733
* @param progressRequestListener Progress request listener
3731
3734
* @return Call to execute
3732
3735
* @throws ApiException If fail to serialize the request body object
3733
3736
*/
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 {
3735
3738
Object localVarPostBody = null ;
3736
3739
3737
3740
// create path and map variables
@@ -3743,6 +3746,12 @@ public com.squareup.okhttp.Call getOptionsSnapshotsCall(String source, OffsetDat
3743
3746
localVarQueryParams .addAll (apiClient .parameterToPair ("source" , source ));
3744
3747
if (atDatetime != null )
3745
3748
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 ));
3746
3755
3747
3756
Map <String , String > localVarHeaderParams = new HashMap <String , String >();
3748
3757
@@ -3777,10 +3786,10 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
3777
3786
}
3778
3787
3779
3788
@ 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 {
3781
3790
3782
3791
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 );
3784
3793
return call ;
3785
3794
3786
3795
}
@@ -3790,14 +3799,17 @@ private com.squareup.okhttp.Call getOptionsSnapshotsValidateBeforeCall(String so
3790
3799
* Returns all options snapshots for the queried interval with links to download.
3791
3800
* @param source Realtime or 15-minute delayed contracts. (optional)
3792
3801
* @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)
3793
3805
* @return OptionSnapshotsResult
3794
3806
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3795
3807
* @throws NoSuchMethodException If fail to get specified method off of the main class
3796
3808
*/
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 );
3799
3811
3800
- Object [] apiCallArguments = { source , atDatetime };
3812
+ Object [] apiCallArguments = { source , atDatetime , withGreeks , stockPriceSource , withUnderlyingPrice };
3801
3813
ApiResponse <OptionSnapshotsResult > resp = apiClient .attemptApiCall (targetMethod , apiCallArguments );
3802
3814
return resp .getData ();
3803
3815
}
@@ -3807,11 +3819,14 @@ public OptionSnapshotsResult getOptionsSnapshots(String source, OffsetDateTime a
3807
3819
* Returns all options snapshots for the queried interval with links to download.
3808
3820
* @param source Realtime or 15-minute delayed contracts. (optional)
3809
3821
* @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)
3810
3825
* @return ApiResponse<OptionSnapshotsResult>
3811
3826
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
3812
3827
*/
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 );
3815
3830
Type localVarReturnType = new TypeToken <OptionSnapshotsResult >(){}.getType ();
3816
3831
return apiClient .execute (call , localVarReturnType );
3817
3832
}
@@ -3821,11 +3836,14 @@ public ApiResponse<OptionSnapshotsResult> getOptionsSnapshotsWithHttpInfo(String
3821
3836
* Returns all options snapshots for the queried interval with links to download.
3822
3837
* @param source Realtime or 15-minute delayed contracts. (optional)
3823
3838
* @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)
3824
3842
* @param callback The callback to be executed when the API call finishes
3825
3843
* @return The request call
3826
3844
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
3827
3845
*/
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 {
3829
3847
3830
3848
ProgressResponseBody .ProgressListener progressListener = null ;
3831
3849
ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
@@ -3846,7 +3864,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
3846
3864
};
3847
3865
}
3848
3866
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 );
3850
3868
Type localVarReturnType = new TypeToken <OptionSnapshotsResult >(){}.getType ();
3851
3869
apiClient .executeAsync (call , localVarReturnType , callback );
3852
3870
return call ;
0 commit comments