Skip to main content

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

📄 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightspeed_connect-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lightspeed_connect-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for lightspeed_connect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 736426365dce686e28ab8b0382dfcb6fff6afdeaf848a23eb743c4db8dbb32f6
MD5 f6dce3c330bb39cd7e360ba234c24831
BLAKE2b-256 2fcc523cbd28b06989e337a834470a6ada3a54815541da98533fda761cbe95ef

See more details on using hashes here.

File details

Details for the file lightspeed_connect-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lightspeed_connect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3124359f18235f189ad80b40ba23c2d7ebf22f81f7ced92a3cac1e2104de4ad5
MD5 434ee9f78f158e355ac8714dbebe0cc6
BLAKE2b-256 7200e48fb5dcb74742d8911814120a0178fec6e702990b68fdcf5581d00571d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page