Paper and Demo Trading
Use the MyStocks sandbox and integration test tools to validate trading workflows without moving real money.
MyStocks calls its non-production environment Sandbox. It is the equivalent of a paper/demo environment for partner integration testing, but it has its own key prefix and base URL.
| Surface | Key | Base URL | Purpose |
|---|---|---|---|
| Sandbox environment | sk_sandbox_ | /api/sandbox/v1/partner | Isolated virtual accounts and accelerated trading workflows |
| Integration test tools | pk_live_ | /api/v1/partner/test-tools/* | Controlled test operations for approved live partners |
Do not confuse the two. The deprecated /sandbox/* paths are aliases for integration test tools and are not the Sandbox environment.
What to test
- account creation and auto-registration;
- deposits, withdrawals, and idempotent retries;
- KYC-required and frozen-account behavior;
- quote expiry and mismatched quote rejection;
- market, limit, stop, and cancellation lifecycles;
- insufficient funds and holdings errors;
- webhook signatures, duplicates, ordering, and retry leases;
- SSE reconnect and
Last-Event-IDreplay; - daily reconciliation and statement generation.
Sandbox trades may settle instantly and do not reproduce every production timing characteristic. Always run the go-live certification checks before requesting production access.
Was this page useful?
Your signal helps us tighten partner onboarding docs.
Last updated on