$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "strategy": "cash_secured_put",
< "underlyingPrice": 100,
< "dte": 30,
< "impliedVolatility": 30,
< "riskFreeRate": 4,
< "contracts": 1,
< "label": "SPY Nov CSP",
< "putStrike": 95,
< "putPremium": 1.5,
< "stockCostBasis": 100,
< "callStrike": 105,
< "callPremium": 1.2,
< "priorPremiumsCollected": 0,
< "shortStrike": 105,
< "shortPremium": 2.5,
< "longStrike": 110,
< "longPremium": 1,
< "longPutStrike": 85,
< "longPutPremium": 0.5,
< "shortPutStrike": 90,
< "shortPutPremium": 1.2,
< "shortCallStrike": 110,
< "shortCallPremium": 1.1,
< "longCallStrike": 115,
< "longCallPremium": 0.4,
< "longCallDte": 365,
< "longCallImpliedVolatility": 28,
< "optionType": "put",
< "closeCost": 3,
< "newPremium": 3.5,
< "oldStrike": 95,
< "newStrike": 90,
< "originalPremium": 1.5,
< "calculations": []
<}
<EOF
$curl "https://api.apify.com/v2/actors/xprm-llc~options-strategy-calculator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'