尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗This is a Next.js project bootstrapped with create-next-app.
flowchart TD
Client["Client / app/page.tsx"]
Route["POST /api/analyze<br/>app/api/analyze/route.ts"]
Search["getInstrumentId<br/>Upstox instrument search"]
Chain["getOptions<br/>Upstox option chain"]
ATM["getAtmStrike<br/>find nearest strike"]
Strategies["Strategy calculators"]
Results["JSON response<br/>payoff tables and metadata"]
Upstox["Upstox API"]
Client -->|"company"| Route
Route --> Search
Search -->|"underlying key<br/>and expiry"| Upstox
Upstox -->|"option instruments"| Search
Route --> Chain
Chain -->|"underlying key + expiry"| Upstox
Upstox -->|"option chain"| Chain
Chain --> ATM
Chain --> Strategies
ATM --> Strategies
Strategies --> Results
Results --> Client
The backend flow is:
POST /api/analyze.getInstrumentId searches Upstox and selects the underlying instrument key and expiry.getOptions retrieves the option chain for that underlying and expiry.getAtmStrike identifies the strike closest to the underlying spot price.First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
DELETE /api/account removes the signed-in user's saved analyses. To also delete the Neon Auth login from the server, set NEON_API_KEY, NEON_PROJECT_ID and NEON_BRANCH_ID (the Neon admin API, DELETE /projects/{project_id}/branches/{branch_id}/auth/users/{id}). Without them the route still deletes the analyses and answers authUserDeleted: false; the mobile app then falls back to Neon Auth's own delete-user call.