@@ -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<OptionSnapshotsResult>
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 ;
0 commit comments