Skip to content

Commit

Permalink
changed function names and init
Browse files Browse the repository at this point in the history
  • Loading branch information
hashABCD committed Mar 18, 2021
1 parent 56ed0a6 commit a597943
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
opstrat is a Python library for visualizing options.

## Latest Version
0.0.15
0.0.18

## Installation

Expand Down
7 changes: 6 additions & 1 deletion opstrat/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
from opstrat.basic import *
__version__ = "0.0.18"
__author__ = "Abhijith Chandradas"

from .basic_multi import *
from .basic_single import *
from .yf import *
2 changes: 1 addition & 1 deletion opstrat/basic_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'b': 'Long',
's': 'Short'}

def option_plotter(spot_range=20, spot=100,
def multi_plotter(spot_range=20, spot=100,
op_list=[{'op_type':'c','strike':110,'tr_type':'s','op_pr':2},
{'op_type':'p','strike':95,'tr_type':'s','op_pr':6}]):
"""
Expand Down
2 changes: 1 addition & 1 deletion opstrat/basic_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'b': 'Long',
's': 'Short'}

def option_plotter(op_type='c',spot=725, spot_range=5,strike=720,tr_type='b',op_pr=10):
def single_plotter(op_type='c',spot=725, spot_range=5,strike=720,tr_type='b',op_pr=10):
"""
Plots a basic option payoff diagram for a single option
Parameters
Expand Down
2 changes: 1 addition & 1 deletion opstrat/yf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'b': 'Long',
's': 'Short'}

def option_plotter(ticker='msft',exp='default',spot_range=10,
def yf_plotter(ticker='msft',exp='default',spot_range=10,
op_list=[{'op_type':'c','strike':250,'tr_type':'b'},
{'op_type':'p','strike':225,'tr_type':'b'}]):

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
long_description = open('README.md').read()
'''

VERSION = '0.0.15'
VERSION = '0.0.18'
DESCRIPTION = 'Option stategy visualizer'
LONG_DESCRIPTION = DESCRIPTION
URL = 'https://github.com/abhijith-git/opstrat'
Expand Down

0 comments on commit a597943

Please sign in to comment.