longtrade is an option trading application based on the longport API provided by Longbridge Securities.
- simple and efficient
- real-time price quotes
- Black-Scholes pricing calculator
- quick order placing
- Open up a margin account at longbridge.com.
- Apply for API keys at longport.
- 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.
- Clone this repository to your local machine. Place your keys according to the backend code.
- Backend. create a python environment, and install dependencies with
pip install -r requirements.txt. - Frontend. make sure node.js is installed.
cdtofrontend, and install dependencies withnpm install. - Start service. In terminal,
cdto this repo, run
./start.shto start the backend and the frontend services. Then go to http://localhost:5173/ to use the application.

