Official documentation for WhiteBIT's REST and WebSocket APIs, built with Mintlify.
Before you begin, make sure the following tools are installed on your machine:
| Tool | Minimum Version | Installation |
|---|---|---|
| Node.js | v18+ | Download or use nvm |
| npm | v9+ (ships with Node.js) | Included with Node.js |
| Mintlify CLI | latest | npm install -g mintlify@latest |
| Redocly CLI | latest | npm install -g @redocly/cli@latest |
| AsyncAPI CLI | latest | npm install -g @asyncapi/cli |
Verify your setup:
node --version # Should print v18.x or higher
npm --version # Should print 9.x or higher
mint --version # Mintlify CLI
redocly --version # Redocly CLI
asyncapi --version # AsyncAPI CLIGet the documentation running locally in 2 minutes:
# Install Mintlify CLI (if not already installed)
npm install -g mintlify@latest
# Start dev server
mint dev
# Open http://localhost:3000Run the docs portal in a container without installing any tools locally (requires Docker):
# Build and start
docker compose up --build
# Open http://localhost:3000The volume mount in docker-compose.yml syncs local file changes into the container in real time, so edits are reflected without restarting.
To run without live editing (static copy baked into the image):
docker build -t whitebit-docs .
docker run -p 3000:3000 whitebit-docsNote: On first start,
npx mint devdownloads the Mintlify client fromreleases.mintlify.com. Network access is required.
See CONTRIBUTING.md for:
- Git workflow and branching strategy
- Commit message format
- Pull request process
- Review checklists for tech writers, DevRel engineers, and developers
mintlify-docs/
├── openapi/ # OpenAPI specifications (REST APIs)
│ ├── public/ # Public endpoints (no auth)
│ └── private/ # Private endpoints (require auth)
├── asyncapi/ # AsyncAPI specifications (WebSocket)
│ ├── public/ # Public channels
│ └── private/ # Private channels
├── api-reference/ # REST API docs (market-data, spot-trading, collateral-trading,
│ # convert, account-wallet, sub-accounts, authentication, oauth)
├── websocket/ # WebSocket docs (overview, market-streams, account-streams)
├── platform/ # Platform feature docs (webhook, colocation, self-trade-prevention,
│ # oauth conceptual overview)
└── docs.json # Navigation configuration
For technical questions:
- Check existing similar endpoints in the codebase
- Search OpenAPI/AsyncAPI specifications
For style questions:
- Ask tech writer team lead
- Check glossary for terminology
For API accuracy questions:
- Ask backend engineering team
- Check staging environment responses
- Review internal API specifications
For process questions:
- Review CONTRIBUTING.md
- Ask DevRel team lead
- Check PR review checklists
Always validate your changes before creating a PR:
# OpenAPI validation
npx @redocly/cli lint openapi/**/*.yaml
# AsyncAPI validation
find asyncapi -name "*.yaml" -exec asyncapi validate {} \;
# Test in dev server
mint dev