CSPFinder is a tool to compare ROI of selling Cash Secure Put options between different tickers for different expiry dates.

Related tags

Utilities thetagang
Overview

CSPFinder

CSPFinder is a tool to compare ROI of selling Cash Secure Put options between different tickers for different expiry dates. It is intended to help open new cash secured put positions.

Commands

currently it just takes in path to a configuration file

./cspfinder -config ./config.json
*---------------------*---------*-------*----------------------*---------------*-----------------------*-------------------*---------*
|       SYMBOL        | STRIKE  |  BID  | TOTAL PREMIUM EARNED | EXPIRY DATE:  | TOTAL NO OF CONTRACTS | PERCENTAGE RETURN |  200MA  |
*---------------------*---------*-------*----------------------*---------------*-----------------------*-------------------*---------*
| AMD210924P00100000  | 100.00  | 0.75  | 2550.00              | 2021-09-24    | 34.00                 | 0.75              | 88.85   |
| PLTR210924P00022000 | 22.00   | 0.01  | 154.00               | 2021-09-24    | 154.00                | 0.05              | 23.63   |
| AMZN210924P03400000 | 3400.00 | 17.20 | 1720.00              | 2021-09-24    | 1.00                  | 0.51              | 3338.55 |
| TSLA210924P00650000 | 650.00  | 1.00  | 500.00               | 2021-09-24    | 5.00                  | 0.15              | 669.52  |
| GOOG210924P02700000 | 2700.00 | 8.00  | 800.00               | 2021-09-24    | 1.00                  | 0.24              | 2478.20 |
| AAPL210924P00145000 | 145.00  | 1.42  | 3266.00              | 2021-09-24    | 23.00                 | 0.96              | 135.45  |
*---------------------*---------*-------*----------------------*---------------*-----------------------*-------------------*---------*
*---------------------*---------*-------*----------------------*---------------*-----------------------*-------------------*---------*
|       SYMBOL        | STRIKE  |  BID  | TOTAL PREMIUM EARNED | EXPIRY DATE:  | TOTAL NO OF CONTRACTS | PERCENTAGE RETURN |  200MA  |
*---------------------*---------*-------*----------------------*---------------*-----------------------*-------------------*---------*
| AMD211001P00100000  | 100.00  | 1.39  | 4726.00              | 2021-10-01    | 34.00                 | 1.39              | 88.85   |
| PLTR211001P00022000 | 22.00   | 0.04  | 616.00               | 2021-10-01    | 154.00                | 0.18              | 23.63   |
| AMZN211001P03400000 | 3400.00 | 30.25 | 3025.00              | 2021-10-01    | 1.00                  | 0.89              | 3338.55 |
| TSLA211001P00650000 | 650.00  | 2.42  | 1210.00              | 2021-10-01    | 5.00                  | 0.36              | 669.52  |
| GOOG211001P02700000 | 2700.00 | 14.20 | 1420.00              | 2021-10-01    | 1.00                  | 0.42              | 2478.20 |
| AAPL211001P00145000 | 145.00  | 2.15  | 4945.00              | 2021-10-01    | 23.00                 | 1.45              | 135.45  |
*---------------------*---------*-------*----------------------*---------------*-----------------------*-------------------*---------*
*---------------------*--------*-------*----------------------*---------------*-----------------------*-------------------*--------*
|       SYMBOL        | STRIKE |  BID  | TOTAL PREMIUM EARNED | EXPIRY DATE:  | TOTAL NO OF CONTRACTS | PERCENTAGE RETURN | 200MA  |
*---------------------*--------*-------*----------------------*---------------*-----------------------*-------------------*--------*
| TSLA210924P00650000 | 650.00 | 1.00  | 500.00               | 2021-09-24    | 5.00                  | 0.15              | 669.52 |
| TSLA211001P00650000 | 650.00 | 2.42  | 1210.00              | 2021-10-01    | 5.00                  | 0.36              | 669.52 |
| TSLA211008P00650000 | 650.00 | 6.25  | 3125.00              | 2021-10-08    | 5.00                  | 0.92              | 669.52 |
| TSLA211015P00650000 | 650.00 | 8.15  | 4075.00              | 2021-10-15    | 5.00                  | 1.20              | 669.52 |
| TSLA211022P00650000 | 650.00 | 10.30 | 5150.00              | 2021-10-22    | 5.00                  | 1.51              | 669.52 |
| TSLA211119P00650000 | 650.00 | 20.90 | 10450.00             | 2021-11-19    | 5.00                  | 3.07              | 669.52 |
| TSLA211217P00650000 | 650.00 | 27.80 | 13900.00             | 2021-12-17    | 5.00                  | 4.09              | 669.52 |
| TSLA220121P00650000 | 650.00 | 37.20 | 18600.00             | 2022-01-21    | 5.00                  | 5.47              | 669.52 |
| TSLA220318P00650000 | 650.00 | 50.05 | 25025.00             | 2022-03-18    | 5.00                  | 7.36              | 669.52 |
*---------------------*--------*-------*----------------------*---------------*-----------------------*-------------------*--------*

Config.json

Configuration file to accept inputs for CSPFinder

  • symbolpricemap: a map of ticker symbol and the strike price to compare csp options. Ideally, this is the price you are comfortable getting assigned at, depending on your risk tolerance
  • totalcapital: total buying power in USD
  • outputformat:
    • groupbydate: groups options by expiry date
    • groupbysymbol: groups options by their symbol/ticker
You might also like...
efaceconv - Code generation tool for high performance conversion from interface{} to immutable type without allocations.

efaceconv High performance conversion from interface{} to immutable types without additional allocations This is tool for go generate and common lib (

GoWrap is a command line tool for generating decorators for Go interfaces

GoWrap GoWrap is a command line tool that generates decorators for Go interface types using simple templates. With GoWrap you can easily add metrics,

Perforator is a tool for recording performance metrics over subregions of a program using the Linux "perf" interface.

Perforator Perforator is a tool for recording performance metrics over subregions of a program (e.g., functions) using the Linux "perf" interface.

a tool for creating exploited media files for discord

Discord-Exploits A program for creating exploited media files for discord written in Go. Usage discord-exploits is a command line utility, meaning you

A full-featured license tool to check and fix license headers and resolve dependencies' licenses.
A full-featured license tool to check and fix license headers and resolve dependencies' licenses.

SkyWalking Eyes A full-featured license tool to check and fix license headers and resolve dependencies' licenses. Usage You can use License-Eye in Git

sigurls is a reconnaissance tool, it fetches URLs from AlienVault's OTX, Common Crawl, URLScan, Github and the Wayback Machine.

sigurls is a reconnaissance tool, it fetches URLs from AlienVault's OTX, Common Crawl, URLScan, Github and the Wayback Machine. DiSCLAIMER: fe

A tool and library for using structural regular expressions.

Structural Regular Expressions sregx is a package and tool for using structural regular expressions as described by Rob Pike (link).

TUI grep tool respect for IntelliJ
TUI grep tool respect for IntelliJ

ilse TUI grep tool respect for IntelliJ Requirements ripgrep for fast grep bat for beautiful preview Features support HeadMatch(FirstMatch), WordMatch

A tool to check problems about meta files of Unity
A tool to check problems about meta files of Unity

A tool to check problems about meta files of Unity on Git repositories, and also the tool can do limited autofix for meta files of auto-generated files.

Owner
Sreenidhi Sreesha
Sreenidhi Sreesha
Benchmarks to compare Go Generics

This is a collection of various sorts implemnted both as []int only and as const

Jacob Alberty 2 Dec 8, 2022
Wrap byte read options with uniform interface for io.Reader and byte slice

nibbler Nibble chunks from Reader streams and slice in a common way Overview This is a golang module that provides an interface for treating a Reader

null 0 Dec 23, 2021
checkspaces is a checker for spaces between // and directives.

checkspaces checks if there is a space between // and directives.

masibw 2 Dec 10, 2021
Slice conversion between primitive types

sliceconv Sliceconv implements conversions to and from string representations of primitive types on entire slices. The package supports types int, flo

Henry Sarabia 8 Sep 27, 2022
Go package to nicely calculate distance between coordinates using the Haversine formula.

go-haversine Heavily inspired by Umahmood's haversine, go-haversine provides a nice Go interface to calculate distance between coordinates using the h

Dametto Luca 2 Apr 2, 2022
A set of instrumentation features for collecting relevant tracing data as well as secure an application

Go Agent goagent provides a set of instrumentation features for collecting relevant tracing data as well as secure an application by blocking requests

null 0 Dec 21, 2021
ms - 'my story' creates a secure password string which can be memorized with a technique shared by Max.

On 23.12.21 20:22, Stefan Claas wrote: [...] > > Yes, I am aware of that, but how can one memorize a key when traveling > and not taking any devices

Stefan Claas 0 Dec 24, 2021
Print random bytes from a secure source to stdout.

Print random bytes from a secure source to stdout.

null 0 Feb 11, 2022
Creates Prometheus Metrics for PolicyReports and ClusterPolicyReports. It also sends PolicyReportResults to different Targets like Grafana Loki or Slack

PolicyReporter Motivation Kyverno ships with two types of validation. You can either enforce a rule or audit it. If you don't want to block developers

Frank Jogeleit 0 Aug 6, 2021
This project contains an example that showcases different features from the official Go Client for Elasticsearch

Elasticsearch for Gophers This project contains an example that showcases different features from the official Go Client for Elasticsearch that you ca

Ricardo Ferreira 19 Oct 12, 2022