Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,6 @@ Spot assets (like ETH) need to have both the from and to route set to `spot`.
You can get all `asset_id`s by following the example below:
- `spot_get_order_books.py`

## Paper Trading (simulated, no API keys required)
Paper trading lets you simulate trades against real order book data without submitting transactions.

- `paper_trading_snapshot.py`
- fetches a one-time order book snapshot and simulates buy/sell trades
- prints fills, collateral, and trade history

- `paper_trading_live.py`
- subscribes to real-time order book updates via WebSocket
- simulates trades against continuously updated book state
- the paper client uses its own internal WebSocket listener (not `lighter.WsClient`)

- `paper_trading_health.py`
- opens positions across multiple markets
- compares conservative vs aggressive leverage on the same two-market portfolio
- inspects account health, margin usage, leverage, and liquidation prices

## Setup steps for mainnet
- deposit money on Lighter to create an account first
- change the URL to `mainnet.zklighter.elliot.ai`
Expand Down
168 changes: 0 additions & 168 deletions examples/paper-trading/paper_trading_health.py

This file was deleted.

64 changes: 0 additions & 64 deletions examples/paper-trading/paper_trading_live.py

This file was deleted.

55 changes: 0 additions & 55 deletions examples/paper-trading/paper_trading_snapshot.py

This file was deleted.

19 changes: 1 addition & 18 deletions lighter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,4 @@

# manual additions
from lighter.ws_client import WsClient
from lighter.signer_client import SignerClient, create_api_key
from lighter.paper_client import (
AccountTier,
InMemoryOrderBook,
MarketConfig,
OrderBookLevel,
PaperAccount,
PaperAccountHealth,
PaperClient,
PaperFill,
PaperHealthStatus,
PaperOrderRequest,
PaperOrderResult,
PaperOrderSide,
PaperOrderType,
PaperPosition,
PaperTrade,
)
from lighter.signer_client import SignerClient, create_api_key
34 changes: 0 additions & 34 deletions lighter/paper_client/__init__.py

This file was deleted.

Loading
Loading