Skip to content

Fix broken links in order-types page#21

Open
mintlify[bot] wants to merge 113 commits into
mainfrom
mintlify/fix-broken-links-1776643999
Open

Fix broken links in order-types page#21
mintlify[bot] wants to merge 113 commits into
mainfrom
mintlify/fix-broken-links-1776643999

Conversation

@mintlify

@mintlify mintlify Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixed 2 broken links in concepts/order-types.mdx (the "What's Next" card group):

Broken link Issue Fix
/products/spot/overview Page does not exist — no products/spot/ directory in the repo Changed to /api-reference/spot-trading/overview
/products/margin/overview Page does not exist — no products/margin/ directory in the repo Changed to /api-reference/collateral-trading/overview

Both mint validate and mint broken-links pass after the fix.

  Implements the AI System Improvement initiative (Phases A–D):

  Phase A — Governance:
  - Add ai/RULES.md: all binding rules (AI behavior, pipeline gates, commit
    protocol, validation, content rules, self-improvement policy)
  - Add ai/LESSONS.md: pattern-triggered accumulated lessons (empty scaffold)
  - Slim CLAUDE.md to 53 lines (was 23 rules inline); all rules migrated to
    ai/RULES.md; add Commands section, Skills table, Key Files table
  - Add AGENTS.md: agent-agnostic entry point for Kiro, Cursor, and others

  Phase B — Skills system:
  - Add ai/skills/ with 9 skill files (dev-ticket-pipeline, doc-review-pipeline,
    task-self-review, self-improvement, promote-learnings, generate-docs-from-spec,
    write-commit-message, create-initiative-spec, cleanup-after-pipeline)
  - Update ai/agent.md: section 3 adds ai/skills/, ai/specs/, governance files;
    section 5 replaces step-by-step pipelines with one-line skill references

  Phase C — Claude Code Skills (official format):
  - Add .claude/skills/ with 9 SKILL.md directories (official format, not
    legacy .claude/commands/); all use disable-model-invocation: true;
    write-commit-message uses dynamic git diff injection

  Phase D — Initiative spec:
  - Add ai/specs/ai-system-improvement/ and ai/specs/claude-skills-research/
    (spec-driven pipeline used throughout; all phases complete)
chore(ai): add skills layer, governance files, and Claude Code skills
fix(api): add missing mining pool rewards fields
fix(api): typo
api(docs): change payoutDestination example in mining rewards response
added missing-schemas or validation
…ages, add nav links

- Add GET /api/v1/public/kline (Market Data) — new MDX page and nav entry
- Fix collateral open positions endpoint path: /positions → /positions/open
  in openapi/private/http-trade-v4.yaml and open-positions.mdx
- Remove cancel-oco-order and cancel-oto-order pages, nav entries, and
  legacy redirects — endpoints no longer documented
- Add \"We are hiring\" and GitHub (type: github) links to navbar
- Add github social to footer socials
docs(api): add kline, fix positions endpoint, remove cancel OCO/OTO pages, add nav links
- Add guides/mcp-server.mdx — full setup guide for the whitebit-mcp
  trading server (115 tools); covers Claude Code, Cursor, Claude Desktop,
  Codex, and OpenClaw client configuration
- Add guides/cli.mdx — CLI reference with commands, authentication,
  examples, and coming-soon install notice (source only for now)
- Add guides/ai-faq.mdx — FAQ covering API key safety, supported clients,
  trading vs docs MCP disambiguation, automation, and safe account practices
- Revamp guides/use-with-ai.mdx — full hub page with 4-card grid,
  feature breakdown by category, and supported AI clients table
- Rename guides/ai-ide-setup.mdx → "Docs search via MCP"; add icon
- Rename guides/ai-context-menu.mdx → "Docs page AI menu"; add icon
- Update docs.json — rename group to "AI Hub", add 3 new pages to nav
docs(ai-hub): add AI Hub section with MCP server, CLI, and FAQ pages
…text

- Rename "WhiteBIT MCP server" to "WhiteBIT documentation MCP server" in
  the IDE quick connect table to distinguish from the trading MCP server
- Update frontmatter description to list actual supported tools (ChatGPT,
  Claude, Perplexity, Grok, Cursor, VS Code, Claude Desktop) instead of
  implying docs integrations exist for Claude Code / Codex / OpenClaw
- Remove duplicate "via MCP via MCP" link text in two places
fix(ai-context-menu): clarify MCP server name and fix duplicate link text
Stage to main
whitebit-robot and others added 27 commits April 8, 2026 12:19
Stage to main
…om AsyncAPI

Eliminate ~530 lines of hardcoded inline data across 17 WebSocket MDX
pages by extending generate-ws-data.mjs to extract two new data types
from AsyncAPI specs:

1. channelOperations — derives WsChannelOverview operations arrays from
   AsyncAPI operations + message summaries using convention-based
   grouping (Query/Subscribe/Unsubscribe patterns)

2. tupleFields — extracts positional array field documentation from
   schemas with x-field-name annotations (Candle, BookTickerUpdateData,
   DealsUpdate.params, plus 3 enum-style schemas)

Changes:
- Extend generate-ws-data.mjs with tuple extraction, channel operations
  derivation, and allOf schema resolution
- Create WsTupleTable.jsx component for rendering positional field tables
  with support for example values and enum label mappings
- Add x-field-name, x-example, x-enum-labels to 6 AsyncAPI schemas
- Align 18 AsyncAPI message summaries with MDX editorial text so
  generated output matches existing documentation
- Update all 17 channel MDX pages to import generated data
… WS data

Update AI infrastructure to reflect the new channelOperations and
tupleFields auto-generation pattern:

- websocket.md WS.1.5: document WsTupleTable, channelOperations import,
  four export types table, and "never hardcode operations" rule
- websocket-mdx-template.md: rewrite to use imported channelOperations,
  WsSubscribeSteps with generated examples, and WsTupleTable
- 06-adding-websocket-endpoints.md: update Step 2.5 and Step 3 imports
  and MDX example to match current codebase pattern
- ai-changelog.md: record both the generation changes and docs updates
docs(ai): update style guide, template, and how-to for auto-generated WS data
- Add default: false to rpi/postOnly/ioc params where inferable
- Add pagination <Note> blocks to 8 paginated endpoints
- Fix trade_timestamp described as milliseconds (actually seconds)
- Standardize timestamp descriptions to "Unix timestamp in seconds (UTC)"
- Rewrite passive voice in collateral postOnly description
…des sections

Create WsErrorCodes.jsx to render error codes via channelMeta instead of
hardcoded text. Extend the generator to export errorCodes in channelMeta
(defaults to "standard", supports x-error-codes arrays from AsyncAPI).
Update all 18 WS channel MDX pages to use the component. Update style
guide (WS.1.5, WS.9) and MDX template accordingly.
fix(api): add defaults, pagination notes, and timestamp fixes to specs
feat(websocket): add WsErrorCodes component and componentize error codes sections
…ow OpenAPI content

Introduces a client-side React component that relocates the related
resources section to the bottom of the page, after the auto-generated
OpenAPI endpoint details. Applied to all 52 OpenAPI endpoint pages
across spot-trading, collateral-trading, and market-data.
Stage to main
The endpoint had no response schema — the rendered docs page showed no
response fields. Wire the 200 response to FeeInfo via additionalProperties,
add crypto and fiat examples, enrich FeeInfo/FeeDetails/ProviderFeeDetails
schemas with descriptions and examples, and fix ProviderFeeDetails.flex
type from string to object.
- Add B2B canceled order history note to executed-history and order/history endpoints
- Document leverage discrete values (1,2,3,5,10,20,50,100), bracket system, and max_leverage cap
- Add hedge mode precondition: no open positions required to toggle
- Add leverage change warning: affects all open positions, may fail on insufficient funds
- Add CANCELED_TAKER_BAND status to order status schemas
- Add explicit order validation rules (precision, min/max constraints) to limit order endpoints
- Extract ActiveOrderStatus and OrderStatus into reusable components/schemas,
  replacing 11 inline duplicates with $ref references
- Session retrospective (Apr 4–11, 36 sessions): added 4 rules to §3.2
  (anti-duplication, content location, permission scope, auto-gen files)
- Learning consolidation: 25 → 13 entries (12 archived/promoted)
- Promoted SDK scope principle to §2.3
- Added Step 7 (task-learnings) to TCR as mandatory final step
- Added subscribeNote cross-check to TCR WebSocket self-challenge
… pages

- Add RestRateLimit.jsx snippet for per-endpoint rate limit notices
- Update WsRateLimits.jsx to link to the rate limits page instead of inlining values
- Update rate-limits.mdx with per-path-group limits and per-IP clarification
- Add RestRateLimit block and RelatedResources to REST endpoint pages
- Add RelatedResources and WebSocket Overview notes to all WS stream pages
- Refine OpenAPI field descriptions in http-v4.yaml (providers, limits, funding rate, change)
Documentation/stabilization
default rate lmitis value was added
Stage to main
…descriptions

WsTupleTable.formatDesc appends x-enum-labels values to the description,
so the inline "1=Margin call, 2=Liquidation" in the AsyncAPI description
field was rendering twice. Remove it from the YAML source and regenerate
the ws-data snippets. Also HTML-encodes a quote in book-ticker subscribeNote.
fix(ws): remove duplicate enum mapping from margin/borrow event_type descriptions
Stage to main
…r endpoints

Document the upcoming reduce-only order parameter across collateral trading
REST and WebSocket APIs. Add reduceOnly to request and response schemas for
6 creation endpoints, 3 query endpoints, and 2 WebSocket channels
(orders_pending, orders_executed). Add error code 116,
AUTO_CANCELED_REDUCE_ONLY order status, glossary entry, concept page section,
changelog entry, and "coming soon" notes on all affected pages.

Feature is not yet live — documentation published in advance for partner
integration planning.
docs(api): add reduceOnly parameter documentation for collateral order endpoints
Stage to main
Generated-By: mintlify-agent
@mintlify

mintlify Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
whitebit 🟢 Ready View Preview Apr 20, 2026, 12:14 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant