Metadata-Version: 2.4
Name: sequence-markets
Version: 0.5.5
Summary: Python SDK for Sequence Markets — the trading OS
Author-email: Sequence Markets <team@sequencemkts.com>
License: MIT
Project-URL: Homepage, https://sequencemkts.com
Project-URL: Documentation, https://docs.sequencemkts.com
Project-URL: Repository, https://github.com/Bai-Funds/execution-engine
Keywords: trading,crypto,execution,sor,sdk,api
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Typing :: Typed
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: stream
Requires-Dist: websockets>=12.0; extra == "stream"

# Sequence Markets Python SDK

Zero-dependency Python client for the [Sequence Markets](https://sequencemkts.com) execution engine.

## Install

```bash
pip install sequence-markets
```

## Quick Start

```python
from sequence_markets import Sequence

seq = Sequence("seq_live_...", "https://api.sequencemkts.com")

# See the market
quote = seq.quote("BTC-USD")
print(f"BTC: ${quote['nbbo']['mid']:,.2f}")

# Place an order (SOR routes across venues)
order = seq.buy("ETH-USD", 50, urgency="medium")

# Build a multi-leg graph
graph = seq.graph(
    nodes=[
        seq.node("spot", "ETH-USD", "buy", 200),
        seq.node("hedge", "ETH-PERP", "sell", 200, instrument_type="perp"),
    ],
    edges=[seq.edge("spot", "hedge", trigger="fill_pct", value=0.5)],
)

# Sandbox mode (simulated fills against real book)
order = seq.buy("BTC-USD", 0.001, sandbox=True)
```

## Features

- **Zero dependencies** — just Python stdlib (`urllib`, `json`)
- **Full product ladder** — connect, quote, trade, orchestrate, automate, monitor
- **Execution graphs** — TWAP, bracket orders, conditional hedges
- **40+ methods** — every REST API endpoint covered
- **Sandbox mode** — paper trading with live market data

## Documentation

[docs.sequencemkts.com/sdks/python](https://docs.sequencemkts.com/sdks/python/)
