{"_id":"@dalalstreet/max-pain","_rev":"1-a2ef4149c2226c9008df1d62ac14004b","name":"@dalalstreet/max-pain","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dalalstreet/max-pain","version":"1.0.0","description":"Calculate the max pain for an option chain","main":"index.js","scripts":{"test":"ava"},"keywords":["fintech","max pain","stock markets","options","trading","call options","put options"],"author":{"name":"callmekatootie","url":"https://github.com/callmekatootie"},"license":"MIT","homepage":"https://github.com/callmekatootie/max-pain#max-pain","repository":{"type":"git","url":"git+https://github.com/callmekatootie/max-pain.git"},"bugs":{"url":"https://github.com/callmekatootie/max-pain/issues"},"engines":{"node":">=12"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"ava":"^3.12.1","standard":"^14.3.4"},"gitHead":"8c48896dd6981a017d3ab87aa2f5b7b05487cef3","_id":"@dalalstreet/max-pain@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-t+/vcTjn0EMRE1t0wACvSZTeBR+oHBLtZkJQi+DXftEztofB3h5pRmsL0cnFiNi/gahI1/fJ0n3gSgP9LmNxOQ==","shasum":"03b320d69fddd1596f758a5d5f47053dd0637641","tarball":"https://registry.npmjs.org/@dalalstreet/max-pain/-/max-pain-1.0.0.tgz","fileCount":4,"unpackedSize":4290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWcc3CRA9TVsSAnZWagAAUjkP/3PCAwHlSQnYNnTF8HEm\nI1CdnEUMMPchTHEq9eiTaA7qqBZDzFH5U5ow7ZBjnf7z2bdV5xnPhwNkwcjy\nZELvNxKPPJyeL7FYkY+WDSczbDN+YJ3jZC3ZyzLLcqnQxi7k6jGYyA8R6/j9\nowiVHq8wd0l4e1Lxlfx4z40HvGmtk5QVTqr9AeY0BBONJB6F6fRAtVt1cPqs\n2Wz2xtYT/a/Rl5t9PfgfsGNgd2mcW9/t6YbBOYn5Ro09cyzAZskfn/004PP0\nv3aGg3U/Mw6Hu/jIVvaQGJSKzWhcf2c+rvhe9t3heaHKMiDmgsL4FmGtvFO6\nodVFzMGzr45U2NOwRekirdyUUybPXd9M6Kjbgi8Ky1cy3PieFc4j8quacnnf\nbgICLdk78+XTVeXTXobhhpJ1yaGn2X/OP6rnK8D1uWbp01UZQ6LME7Z61Kec\nfaCEEwd4IAC97KDY85Hjp7gD6xMgwT/QGz9dM+1VCSnQEvSLoQXTdxN8i31h\n6mV8b8h0G0FrxAzQmDzndCH7CWgxZMxAUSbRXI9iDZ4NCnbIgSM6DBAg0H+8\nKptD20vsfrWb8N64a2BYgzBjU/bVk06dM4PVFMWLwcfgmsZuygMCCPZU/wuk\norgtiiEuceXvdCKLBx6ih3J8G25zNv3QgTeGG7jNBQAB7MRtsmKO4wOQrKgY\nx+Sr\r\n=9Qpj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZkrHimPRrGYgVh1Fh6cMUR1xjr+GOssMP0iVNL/xjfwIgJdDiUbI1vpg3xV68B0uTORZynsNGBUogs6PnJ93fpcU="}]},"maintainers":[{"name":"callmekatootie","email":"callmekatootie@outlook.com"}],"_npmUser":{"name":"callmekatootie","email":"callmekatootie@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/max-pain_1.0.0_1599719222585_0.40112326722566194"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-10T06:27:02.316Z","1.0.0":"2020-09-10T06:27:02.690Z","modified":"2022-04-05T02:37:47.889Z"},"maintainers":[{"name":"callmekatootie","email":"callmekatootie@outlook.com"}],"description":"Calculate the max pain for an option chain","homepage":"https://github.com/callmekatootie/max-pain#max-pain","keywords":["fintech","max pain","stock markets","options","trading","call options","put options"],"repository":{"type":"git","url":"git+https://github.com/callmekatootie/max-pain.git"},"author":{"name":"callmekatootie","url":"https://github.com/callmekatootie"},"bugs":{"url":"https://github.com/callmekatootie/max-pain/issues"},"license":"MIT","readme":"# Max Pain\n\nCalculate the max pain for an option chain\n\n## Installation\n\nYou can install this module through `npm`:\n\n```bash\nnpm install @dalal-street/max-pain\n```\n\n## Usage\n\nAn example of how you can use this module:\n\n```javascript\nconst maxPain = require('@dalal-street/max-pain')\n\nconst optionChain = [\n  {\n    strikePrice: 7700,\n    C: {\n      openInterest: 1823400\n    },\n    P: {\n      openInterest: 5783025\n    }\n  },\n  {\n    strikePrice: 7800,\n    C: {\n      openInterest: 3448575\n    },\n    P: {\n      openInterest: 4864125\n    }\n  },\n  {\n    strikePrice: 7900,\n    C: {\n      openInterest: 5367450\n    },\n    P: {\n      openInterest: 2559375\n    }\n  }\n]\n\nmaxPain.calculate(optionChain)\n// => 7800\n// This is the strike at which we can say there is max pain for option buyers\n```\n","readmeFilename":"README.md"}