Contributing
QuantDesk welcomes strategy examples and integration samples from the community. The publicquant-desk-app/quantdesk-sdk repository is where those contributions live — specifically the examples/ workspace.
This guide shows you how to add a clean, mergeable example.
What we accept
- Strategy scripts — market making, arbitrage, risk monitoring, signal-driven entries.
- Integration samples — REST gateway usage, websocket consumption, on-chain account reads.
- Agent context recipes — feeding QuantDesk data into your own tooling.
Where your code goes
Add new work under the matching subdirectory inexamples/:
| Your contribution | Directory |
|---|---|
| Devnet / on-chain interaction | examples/devnet-testing/ |
| REST or market-data integration | examples/api-integration/ |
| Typed order flows | examples/typescript/ |
| Agent / AI context | examples/ai-integration/ |
Submission workflow
- Fork
quant-desk-app/quantdesk-sdkand create a branch (for exampleexample/mean-reversion-btc). - Add your example in the correct
examples/subdirectory, including:- the working script,
- a short
README.mdexplaining what it does and how to run it, - any required environment variables documented (never their values).
- Run the quality checks locally (below) until they pass.
- Open a pull request describing the strategy, its assumptions, and any external data it needs.
Code-quality rules
Every contribution must pass these before review. Pull requests that fail are sent back automatically.TypeScript linting
TypeScript examples are linted with the SDK’s ESLint config.any unless justified, and match the existing style. JavaScript samples should still be clean and readable.
Secret scanning (Gitleaks)
Never commit secrets. All contributions are scanned for leaked credentials with Gitleaks.- Use environment variables for keys, tokens, and RPC URLs — document the variable names, not the values.
- Do not hardcode wallet private keys, API bearer tokens, or provider secrets.
- A single detected secret blocks the merge until it is removed and rotated.
Runs out of the box
Reviewers will clone your branch and run it. Make sure:- dependencies install cleanly (
pnpm install), - the example runs with only the documented environment variables set,
- and the
README.mdsteps actually reproduce the result.
Review and merge
A maintainer reviews for correctness, safety, and clarity. Once linting and secret scanning are green and the example runs, your contribution is merged into the publicexamples/ workspace.
Related
- SDK architecture tour — how the repo is laid out
- Developer quickstart — get a gateway talking first
- Building on QuantDesk — on-chain trading tutorial