# longtrade **Repository Path**: ganquanemail/longtrade ## Basic Information - **Project Name**: longtrade - **Description**: Option trading system based on longport API - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-08 - **Last Updated**: 2025-11-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # longtrade ![](/dark.png) ![](/light.png) longtrade is an option trading application based on the [longport API](https://open.longportapp.com/en/) provided by [Longbridge Securities](https://longbridge.com). ## Features - simple and efficient - real-time price quotes - Black-Scholes pricing calculator - quick order placing ## How to use 1. Open up a margin account at [longbridge.com](https://longbridge.com). 2. Apply for API keys at [longport](https://open.longportapp.com). 3. You also need to subscribe for OPRA real-time option data at around 22 HKD/month. You can place your order in the longbridge mobile app. 3. Clone this repository to your local machine. Place your keys according to the backend code. 4. **Backend.** create a python environment, and install dependencies with `pip install -r requirements.txt`. 5. **Frontend.** make sure [node.js](https://nodejs.org/en) is installed. `cd` to `frontend`, and install dependencies with `npm install`. 6. **Start service.** In terminal, `cd` to this repo, run ```shell ./start.sh ``` to start the backend and the frontend services. Then go to `http://localhost:5173/` to use the application.