@@ -589,15 +589,14 @@ def get_options_data(self, month=None, year=None, expiry=None):
589
589
590
590
Parameters
591
591
----------
592
- month: number, int, optional(default=None)
592
+ month : number, int, optional(default=None)
593
593
The month the options expire. This should be either 1 or 2
594
594
digits.
595
595
596
- year: number, int, optional(default=None)
596
+ year : number, int, optional(default=None)
597
597
The year the options expire. This should be a 4 digit int.
598
598
599
- expiry: Option expiry, date-like or convertible or list-like object
600
- that contains date-like or convertible objects, optional (default=None)
599
+ expiry : date-like or convertible or list-like object, optional (default=None)
601
600
The date (or dates) when options expire (defaults to current month)
602
601
603
602
Returns
@@ -723,15 +722,14 @@ def get_call_data(self, month=None, year=None, expiry=None):
723
722
724
723
Parameters
725
724
----------
726
- month: number, int, optional(default=None)
725
+ month : number, int, optional(default=None)
727
726
The month the options expire. This should be either 1 or 2
728
727
digits.
729
728
730
- year: number, int, optional(default=None)
729
+ year : number, int, optional(default=None)
731
730
The year the options expire. This should be a 4 digit int.
732
731
733
- expiry: Option expiry, date-like or convertible or list-like object
734
- that contains date-like or convertible objects, optional (default=None)
732
+ expiry : date-like or convertible or list-like object, optional (default=None)
735
733
The date (or dates) when options expire (defaults to current month)
736
734
737
735
Returns
@@ -785,15 +783,14 @@ def get_put_data(self, month=None, year=None, expiry=None):
785
783
786
784
Parameters
787
785
----------
788
- month: number, int, optional(default=None)
786
+ month : number, int, optional(default=None)
789
787
The month the options expire. This should be either 1 or 2
790
788
digits.
791
789
792
- year: number, int, optional(default=None)
790
+ year : number, int, optional(default=None)
793
791
The year the options expire. This should be a 4 digit int.
794
792
795
- expiry: Option expiry, date-like or convertible or list-like object
796
- that contains date-like or convertible objects, optional (default=None)
793
+ expiry : date-like or convertible or list-like object, optional (default=None)
797
794
The date (or dates) when options expire (defaults to current month)
798
795
799
796
Returns
@@ -849,25 +846,24 @@ def get_near_stock_price(self, above_below=2, call=True, put=False,
849
846
850
847
Parameters
851
848
----------
852
- above_below: number, int, optional (default=2)
849
+ above_below : number, int, optional (default=2)
853
850
The number of strike prices above and below the stock price that
854
851
should be taken
855
852
856
- call: bool
853
+ call : bool
857
854
Tells the function whether or not it should be using calls
858
855
859
- put: bool
856
+ put : bool
860
857
Tells the function weather or not it should be using puts
861
858
862
- month: number, int, optional(default=None)
859
+ month : number, int, optional(default=None)
863
860
The month the options expire. This should be either 1 or 2
864
861
digits.
865
862
866
- year: number, int, optional(default=None)
863
+ year : number, int, optional(default=None)
867
864
The year the options expire. This should be a 4 digit int.
868
865
869
- expiry: Option expiry, date-like or convertible or list-like object
870
- that contains date-like or convertible objects, optional (default=None)
866
+ expiry : date-like or convertible or list-like object, optional (default=None)
871
867
The date (or dates) when options expire (defaults to current month)
872
868
873
869
Returns
@@ -912,11 +908,14 @@ def _try_parse_dates(self, year, month, expiry):
912
908
913
909
Parameters
914
910
----------
915
- year: Calendar year, int
911
+ year : int
912
+ Calendar year
916
913
917
- month: Calendar month, int
914
+ month : int
915
+ Calendar month
918
916
919
- expiry: Expiry date, date-like or convertible, (preferred)
917
+ expiry : date-like or convertible, (preferred)
918
+ Expiry date
920
919
921
920
Returns
922
921
-------
@@ -977,21 +976,21 @@ def get_forward_data(self, months, call=True, put=False, near=False,
977
976
978
977
Parameters
979
978
----------
980
- months: number, int
979
+ months : number, int
981
980
How many months to go out in the collection of the data. This is
982
981
inclusive.
983
982
984
- call: bool, optional (default=True)
983
+ call : bool, optional (default=True)
985
984
Whether or not to collect data for call options
986
985
987
- put: bool, optional (default=False)
986
+ put : bool, optional (default=False)
988
987
Whether or not to collect data for put options.
989
988
990
- near: bool, optional (default=False)
989
+ near : bool, optional (default=False)
991
990
Whether this function should get only the data near the
992
991
current stock price. Uses Options.get_near_stock_price
993
992
994
- above_below: number, int, optional (default=2)
993
+ above_below : number, int, optional (default=2)
995
994
The number of strike prices above and below the stock price that
996
995
should be taken if the near option is set to True
997
996
@@ -1036,10 +1035,10 @@ def get_all_data(self, call=True, put=True):
1036
1035
1037
1036
Parameters
1038
1037
----------
1039
- call: bool, optional (default=True)
1038
+ call : bool, optional (default=True)
1040
1039
Whether or not to collect data for call options
1041
1040
1042
- put: bool, optional (default=True)
1041
+ put : bool, optional (default=True)
1043
1042
Whether or not to collect data for put options.
1044
1043
1045
1044
Returns
0 commit comments