Skip to main content

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 OrderSingle types
  • ✅ Extendable for multileg and cancels
  • ✅ Full UUID support
  • ✅ Lightweight and dependency-minimal

📄 License

This project is licensed under the MIT License.

Metadata

Release files for lightspeed-connect 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lightspeed-connect 0.1.0
File Size Uploaded Provenance
lightspeed_connect-0.1.0.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lightspeed-connect 0.1.0
File Interpreter ABI Platform
lightspeed_connect-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / lightspeed_connect-0.1.0.tar.gz

Download URL lightspeed_connect-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
736426365dce686e28ab8b0382dfcb6fff6afdeaf848a23eb743c4db8dbb32f6
BLAKE2b-256 checksum
How to use checksums
2fcc523cbd28b06989e337a834470a6ada3a54815541da98533fda761cbe95ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.3 Darwin/24.4.0

Release files / lightspeed_connect-0.1.0-py3-none-any.whl

Download URL lightspeed_connect-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3124359f18235f189ad80b40ba23c2d7ebf22f81f7ced92a3cac1e2104de4ad5
BLAKE2b-256 checksum
How to use checksums
7200e48fb5dcb74742d8911814120a0178fec6e702990b68fdcf5581d00571d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.3 Darwin/24.4.0

Security for lightspeed-connect 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page