Skip to main content

Infrastructure Economics Advisor: Measure Kyle's Lambda fairness gaps using Rust-accelerated calculations. Optimize trading strategy within broker latency constraints.

Project description

PnL Watchdog for Crypto Market Makers

PnL Watchdog is a read-only execution intelligence layer for market makers on crypto venues like Bybit.

It helps you answer one question fast: is my edge being eaten by microstructure friction?

Why it is useful

  • Measures execution friction (impact, slippage, toxicity proxies, order-flow quality)
  • Flags anomaly windows where fills degrade (latency/slippage outliers)
  • Gives user-scoped import + analytics from your own account history
  • Works with read-only exchange credentials (no trade/withdraw permissions required)

5-minute setup

  1. Start API:
uvicorn pnl_watchdog_lib.api.main:app --host 0.0.0.0 --port 8000
  1. Register your PnL Watchdog API key:
curl -X POST http://localhost:8000/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'
  1. Import Bybit read-only trade history:
curl -X POST http://localhost:8000/import/bybit \
  -H "Content-Type: application/json" \
  -H "X-API-Key: pnlw_your_key" \
  -d '{"api_key":"BYBIT_READ_KEY","api_secret":"BYBIT_READ_SECRET","market_type":"swap","lookback_days":7}'
  1. Get your execution stats:
curl -X GET http://localhost:8000/stats/pnl \
  -H "X-API-Key: pnlw_your_key"

Security model

  • Use exchange keys with read-only scope only.
  • PnL Watchdog API keys are stored hashed at rest.
  • Data is scoped per authenticated user.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pnl_core-0.7.1-cp310-cp310-macosx_11_0_arm64.whl (268.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file pnl_core-0.7.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pnl_core-0.7.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f812611f1e37b4661d46e839a78cf60dec6ae60090193cfb211b3f64a2e899ed
MD5 f1cb774d2555cc991ba2a792d1d56e8d
BLAKE2b-256 b70c9c335acd4846dff18d60b731a5fd402b8929306251e9346a99336df67a2f

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