Welcome to the MyTradingView! This project is a Next.js application designed to help you analyze stock options efficiently. It offers a comprehensive set of features for exploring and making decisions about stock options.
- In-depth stock option analysis
- View the profit for any option symbol, including total and annual returns, to determine which option offers the best return.
- Put call ratio for any symbol
- Delta hedging exposure view for any symbol
- Gamma hedging exposure view for any symbol
- Integration with external trading APIs (tradier) for reading option data
- Responsive and intuitive user interface
Before you get started, ensure you have the following installed:
- Node.js (LTS version recommended)
- PostgreSQL database (free cloud instance is available through supabase)
- Prisma CLI
To get started with development, follow these steps:
-
Clone the Repository
git clone https://github.com/mnsrulz/mytradingview.git cd mytradingview
-
Install Dependencies
npm install
-
Configure Environment Variables
Create a
.env
file in the root directory of the project and add the following environment variables:POSTGRES_PRISMA_URL=your_postgres_database_url AUTH_SECRET=test123 NEXTAUTH_URL=https://p63xdw4l-3000.use.devtunnels.ms/ TRADIER_TOKEN=your_tradier_api_token TRADIER_BASE_URI=https://sandbox.tradier.com/ WATCHLIST_UPDATE_FREQUENCY_MS=1000
-
Set Up the Database
Initialize the Prisma database:
npx prisma migrate dev
-
Start the Development Server
npm run dev
Your application should now be running at
http://localhost:3000
.
- Staging Environment: https://stage--mztrading.netlify.app/ Use admin as password.
- Production Environment: https://mztrading.netlify.app/
To deploy the application, follow these steps:
-
Build the Application
npm run build
-
Deploy to Your Preferred Platform
Follow the deployment instructions provided by your hosting provider. For example, if using Netlify:
netlify deploy --prod
We welcome contributions to the project! If you have suggestions or improvements, please follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your branch and create a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or support, please open an issue on GitHub.
Thank you for using the MyTradingView! Happy trading! 🚀