GoDark Docs
GoDark is a dark pool for perpetual futures. Matching is off-chain. Collateral sits in a program-controlled vault on Solana. The book is a private CLOB with price–time priority. Orders are HPKE-encrypted in transit. Solana records checkpoints, not a public fill tape.
Full documentation as a single file: https://docs.godarkdex.com/llms-full.txt. Page index: https://docs.godarkdex.com/llms.txt.
Documentation
- Introduction: GoDark dark pool: CLOB, price–time priority, TEE sequencing, off-chain matching, on-chain custody
- Connect Wallet: Connect your Solana wallet to GoDark
- Deposit Funds: Deposit crypto assets to your trading wallet
- Trading Interface: Desktop layout modes, order panels, chart, and reference market data
- Programmatic Access: Programmatic trading via official SDKs; REST and SSE as a secondary option
- 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: Public delayed platform stats: overview and series
- 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: Trade ACK, custody, account, earn, and WS admit error catalog
- Rate Limits: API rate limiting
- System Status: Degraded mode, queued orders (202 / 1502), and matching engine pause (1503)
- Status: Live GoDark service status from status.godarkdex.com
- Announcements: GoDark product and platform announcements
- 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: Point an agent at the GoDark skills.md file
- 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
- Privacy & Encryption: Dark pool: no public tape, HPKE in transit, vault checkpoints
- Collateral Vault: Program-controlled Solana vault for trading collateral