Skip to main content

Get the most beautiful Payoff Chart using a single simple function

Project description

Get the most beautiful Payoff Chart using a single simple function

Installation

  • Make sure you have Python installed in your system.
  • Run Following command in the CMD.
 pip install payoffgraph-juttu

Usage

Import get_payoff

from payoffgraph_juttu import get_payoff

The only function you need to get the payoff graph

get_payoff(positions_list,x1,x2)

This is the only function you need to plot the graph

Parameters - positions_list, x1, x2

1. positions_list

position1=[strike,option_type,transaction_type,option_premium,quantity]

position2=[strike,option_type,transaction_type,option_premium,quantity]

position3=[strike,option_type,transaction_type,option_premium,quantity]

positions_list=[position1,position2,position3]

position_list is the list of all positions

Parameters

strike : int, float
Option Strike 

option_type : in the form {"CE","PE"}

transaction_type : in the form {"B","S"}
B: Buy 
S: Sell

option_premium : int, float
Option price

quantity : int
Quantity
Eg: (Nifty : 1Lot = 50 quantity, BankNifty: 1Lot = 25 quantity )

2. x1, x2

  x1, x2 are the start and end points on the x-axis. (Option strike range)

  For eg: If you consider Nifty you can use [x1,x2] = [spotprice-3000,spotprice+3000]

png

Here the graph starts from 14700 and ends at 20700 on the x-axis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

payoffgraph_juttu-0.0.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

payoffgraph_juttu-0.0.6-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file payoffgraph_juttu-0.0.6.tar.gz.

File metadata

  • Download URL: payoffgraph_juttu-0.0.6.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for payoffgraph_juttu-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8124e1e5b5de78cc51a6610a62775008214f063c376c65a3d99dd1fd8f05e2e4
MD5 454374b97e778014961470a4b98805c2
BLAKE2b-256 e790c4e2f1c3845e47c6f534dfa53efbaea8f6b59cb3d5a6843fd0288acd61d8

See more details on using hashes here.

File details

Details for the file payoffgraph_juttu-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for payoffgraph_juttu-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9f3e7f016c569ffc13cb73fa4850e2844be4e8a1638b80d9dc7f69f13480decf
MD5 9ecf0ccbc6913f02c4501e77b920e669
BLAKE2b-256 bd4e7a66b3953c537ee4f8bf9f102559f52f3f397aa49d75846eafc583cf81a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page