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

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

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 )

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.5.tar.gz (3.9 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.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: payoffgraph_juttu-0.0.5.tar.gz
  • Upload date:
  • Size: 3.9 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.5.tar.gz
Algorithm Hash digest
SHA256 f84b8c1088404b156dc5b936e603754a006ee76a55cda0b3b12f3b351988a8c5
MD5 694be6b4df988abce33692c7f5d412cd
BLAKE2b-256 2d972f460e03dc8835bad278dbcde618e375ba4a1ae120f4019e157035e20078

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for payoffgraph_juttu-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eef2efa83d61f236cab295ec2c29a654095e0003bb27d2bdec15575ad88c8ae9
MD5 a5e54d198a1e5669760d1b6f497fa6ae
BLAKE2b-256 851d913741ae8d62bc255b8cf44bc31a2bb560550afeae721a30fb281773add3

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