Skip to content

volagold/longtrade

Repository files navigation

longtrade

longtrade is an option trading system based on the longport API provided by Longbridge Securities.

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.
  2. Apply for API keys at longport.
  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.
  4. Clone this repository to your local machine. Place your keys according to the backend code.
  5. Backend. create a python environment, and install dependencies with pip install -r requirements.txt.
  6. Frontend. make sure node.js is installed. cd to frontend, and install dependencies with npm install.
  7. 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.