A Python client for connecting to Lightspeed's WebSocket API
Project description
Lightspeed Connect
A Python client for the Lightspeed Connect trading API.
- Supports placing and managing orders via WebSocket.
- Built for speed, extensibility, and clarity.
- Compatible with equities and options.
⚠️ Disclaimer
This library is unofficial and not affiliated with Lightspeed Financial Services Group LLC.
Use at your own risk.
📦 Installation
pip install lightspeed-connect
🚀 Quickstart Example
from lightspeed_connect import LightspeedClient, OrderSingle, Side, OrderType
# Initialize the client
client = LightspeedClient(
url="wss://api-cert.lightspeed.com/v1/ws", # Use certification or production endpoint
api_key="your_api_key"
)
# Connect
client.connect()
# Create an order
order = OrderSingle(
symbol="GOOGL",
side=Side.BUY,
order_qty=10,
order_type=OrderType.LIMIT,
price=2700.00
)
# Send the order
client.send_order(order)
🛠️ Features
- ✅ WebSocket-based connection
- ✅ Submit
OrderSingletypes - ✅ Extendable for multileg and cancels
- ✅ Full UUID support
- ✅ Lightweight and dependency-minimal
📄 License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lightspeed_connect-0.1.0.tar.gz.
File metadata
- Download URL: lightspeed_connect-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.3 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736426365dce686e28ab8b0382dfcb6fff6afdeaf848a23eb743c4db8dbb32f6
|
|
| MD5 |
f6dce3c330bb39cd7e360ba234c24831
|
|
| BLAKE2b-256 |
2fcc523cbd28b06989e337a834470a6ada3a54815541da98533fda761cbe95ef
|
File details
Details for the file lightspeed_connect-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lightspeed_connect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.3 Darwin/24.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3124359f18235f189ad80b40ba23c2d7ebf22f81f7ced92a3cac1e2104de4ad5
|
|
| MD5 |
434ee9f78f158e355ac8714dbebe0cc6
|
|
| BLAKE2b-256 |
7200e48fb5dcb74742d8911814120a0178fec6e702990b68fdcf5581d00571d3
|