longtrade is an option trading system 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.
cd
tofrontend
, and install dependencies withnpm install
. - Start service. In terminal,
cd
to this repo, run
./serve.sh
to start backend service, open a separate terminal window and run
./app.sh
to start frontend service. Then go to http://localhost:5173/
to use the application.