Skip to content

Option trading system based on longport API

License

Notifications You must be signed in to change notification settings

volagold/longtrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

longtrade

longtrade is an option trading application 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
./start.sh

to start the backend and the frontend services. Then go to http://localhost:5173/ to use the application.

Sponsor this project

  •