Documentation
GoDark is an institutional-grade dark pool DEX for perpetual futures on Solana. Orders match in a central limit order book run across an MPC committee, so no single operator holds the book, and settlement lands on Solana as encrypted commitments.
Full documentation as a single file: https://docs.godarkdex.com/llms-full.txt. Page index: https://docs.godarkdex.com/llms.txt.
Documentation
- Overview: Introduction to GoDark DEX
- Connect Wallet: Connect your Solana wallet to GoDark
- Deposit Funds: Deposit crypto assets to your trading account
- Trading Interface: Desktop layout modes, order panels, chart, and reference market data
- Programmatic Access: Access GoDark via API
- Authentication: OAuth2 client_credentials bearer token flow
- Base URLs: REST and WebSocket endpoint reference
- Encryption & Transport: ECDH session, AES-256-GCM framing, and protobuf AAD for WebSocket trading
- Get Instruments: List tradable instruments with tick size, step size, and fees
- Account Info: Balance, VIP tier, and account-level config in a single call (REST + WS op)
- Positions: Snapshot of open positions for the authenticated account
- VIP Tiers: Public fee schedule and per-account tier state
- Transparency: Proof of reserves, attestations, inclusion proofs, and aggregate market, operations, and node stats
- Settlement Status: Query settlement batch status
- Place Order: POST /orders — market, limit, peg
- Cancel Order: DELETE /orders/{orderId}
- Modify Order: PATCH /orders/{orderId}
- Get Order: GET /orders/{orderId}
- Mass Quote: Batch cancel-replace for market makers (Prime and Apex tiers)
- WebSocket Trading: Connect, login, and trade over a single multiplexed WebSocket
- Orders Channel: Snapshot + incremental order lifecycle updates
- Positions Channel: Snapshot + incremental position updates
- Order Types: market, limit, and peg
- Time in Force: GTC, GTT, IOC, FOK
- Execution Attributes: AON and minimum fill size
- Pegged Orders: peg type with mid / bid / ask reference
- Order Compatibility: Type × TIF × execution attribute matrix
- Trade Protection Rules: Trading protection mechanisms
- Error Codes: API error code reference
- Rate Limits: API rate limiting
- System Status: Degraded mode, queued orders (202 / 1502), and matching engine pause (1503)
- SDKs: Official GoDark client libraries for REST and WebSocket trading
- Python SDK: Encrypted Python client for the GoDark API
- Rust SDK: Encrypted Rust client for the GoDark API
- JavaScript / TypeScript SDK: Encrypted JavaScript and TypeScript client for the GoDark API
- C++ SDK: Encrypted C++17 client for the GoDark API
- Go SDK: Encrypted Go client for the GoDark API
- Java SDK: Encrypted Java client for the GoDark API
- Agent Access: Connect Cursor or any AI agent to GoDark via MCP and CLI
- Trade Flow: Order-to-settlement lifecycle
- Margin & Liquidation: Isolated margin, health tiers, partial liquidation ladder, and bad-debt backstop
- Settlement: On-chain settlement process
- Fee Structure: Maker-taker fee model
- MPC Committee Architecture: 5-party MPC committee for cryptographic order privacy using Shamir Secret Sharing
- Privacy & Encryption: MPC order privacy, gateway encryption, and dark-pool execution model
- Shielded Pool: Collateral privacy, shielded notes, settlement flow, and security controls