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.7.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.7-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: payoffgraph_juttu-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 a7560cec1e82943b2904bc9f839ea7811e9939bfd87a1f14f3e80a28a838c51a
MD5 c7de10fb6af9cb07b4db3c4ee8b54519
BLAKE2b-256 a4292d538951b9abcbaf1fbfcf056bc6714f8d8556f48a9065df8cff8a401a4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for payoffgraph_juttu-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 460f89f3e3de2c60d4d16b8f74050666fc31f8af11c1ebf80dfc6f0d56706063
MD5 60020231a05e07b8ceeadec2414273ef
BLAKE2b-256 74aca132744142db10e800938ccb83d959475e4841b961e16b44f35334ea229a

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