Skip to content

finlab-python/order_executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

217 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finlab.online

Multi-broker order execution framework for automated portfolio rebalancing. Part of the FinLab quantitative trading package.

Supported Brokers

Broker Module Realtime
Fugle brokers.fugle Yes
Sinopac (Shioaji) brokers.sinopac Yes
Fubon brokers.fubon Yes
Masterlink brokers.masterlink Yes
Schwab brokers.schwab No
Binance brokers.binance No
Pocket brokers.pocket No
E.SUN brokers.esun Yes (via Fugle)

Package Structure

finlab/online/
├── core/               # Abstract interfaces, position, executor, enums, realtime
├── brokers/            # Broker-specific Account implementations
├── dashboard.py        # Cloud-connected multi-strategy rebalancing engine
├── panel.py            # Jupyter notebook GUI for interactive order placement
└── tests/              # Unit and integration tests

Usage

from finlab.online import OrderExecutor, Position

# See https://doc.finlab.tw/details/order_api/ for full documentation.

Testing

# Unit tests (fast, mocked)
pytest tests/unit/ -v

# Integration tests (requires broker credentials)
pytest tests/integration/ -v -s

See tests/README.md for credential setup and details.

Contributing

Contributions are welcome. All changes must pass the existing test suite.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages