A React-based web application that displays PNL (Profit and Loss) information in a card format. This project provides a clean and modern interface for tracking trading performance.
- Modern React-based UI
- Responsive design
- PNL tracking and display
- Customizable card layout
Before you begin, ensure you have the following installed:
- Node.js (v14.0.0 or higher)
- npm (v6.0.0 or higher)
- Clone the repository:
git clone https://github.com/yourusername/arena-pnl.git
cd arena-pnl- Install dependencies:
npm install- Start the development server:
npm start-
Open your browser and navigate to
http://localhost:3000 -
To build for production:
npm run buildarena-pnl/
├── public/ # Static files
├── src/ # Source code
│ ├── App.js # Main application component
│ ├── PNLCard.js # PNL card component
│ └── index.js # Application entry point
├── package.json # Project dependencies and scripts
└── README.md # Project documentation
npm start- Runs the app in development modenpm test- Launches the test runnernpm run build- Builds the app for productionnpm run eject- Ejects from Create React App
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- React.js
- Create React App
To display data in the PNL card, you must manually input all required properties (props) when using the PNLCard component. Example:
<PNLCard
ticker="BTC"
highlightNumber="12345"
pnl="500"
invested="1000"
position="Long"
username="yourname"
linkText="arena.trade"
linkUrl="https://arena.trade"
/>Each prop must be filled in with the appropriate value for the card to display information correctly.
To display the ticker logo on the PNL card, you must provide your own image file named Ticker-Logo.png. Place this file in the src/ directory.
- The image should be a PNG file.
- The filename must be exactly
Ticker-Logo.png(case-sensitive).
If the file is missing or named incorrectly, the ticker logo will not display properly.