The DojiFunded Trading API is a public REST interface for algorithmic trading. Customers generate API keys in the dashboard and use them to place orders, manage positions, and pull account state programmatically.Documentation Index
Fetch the complete documentation index at: https://docs.dojifunded.com/llms.txt
Use this file to discover all available pages before exploring further.
The legacy admin API for the copy-engine lives in a separate surface with different auth. This reference covers the customer-facing trading API only.
At a glance
| Base URL | https://engine.dojifunded.com/v1 |
| Auth | X-API-Key: doji_ak_… + X-API-Secret: doji_sk_… per request |
| Format | JSON in / JSON out |
| Rate limit | 1,200 req/min per key |
| Versioning | URL prefix /v1 |
| Key creation | Dashboard → Settings → Developer |
Use cases
Bots & algo traders
Submit market and limit orders, manage TP/SL, react to fills in real time.
Portfolio dashboards
Read positions, account summary, trade history, and funding payments.
Risk monitors
Poll breaches and violations, feed your own alerting and reporting stack.
Webhook integrations
Receive trade lifecycle pushes at a URL you register on the API key.
Sections
Authentication
Mint API keys, understand permission scopes, and authenticate every request.
Account endpoints
Account state, positions, trades, funding, breaches, and analytics.
Order endpoints
Place, cancel, and close orders across all order types and venues.
Market data
Public price, orderbook, trades, tickers, and symbol metadata — no auth needed.
Webhooks
Receive push notifications for order fills, position closes, and breaches.
Errors
HTTP error codes, risk violations, and operational guidelines.
Quick start
Jump straight to a working 30-line Node bot:Quickstart — bot in 30 lines
Place your first limit order in under 5 minutes.
Code locations
| Component | Path |
|---|---|
| API-key controller | doji-auth-backend/apps/wallet-service/src/apikeys/apikeys.controller.ts |
| API-key service | doji-auth-backend/apps/wallet-service/src/apikeys/apikeys.service.ts |
| API-key DB schema | doji-auth-backend/apps/wallet-service/src/common/schema/apikeys.ts |
| Trading routes (Rust/Axum) | doji-perp-engine/src/api/http.rs |
| Order handlers | doji-perp-engine/src/api/http/orders.rs |
| Account handlers | doji-perp-engine/src/api/http/accounts.rs |
| Market data handlers | doji-perp-engine/src/api/http/market_data.rs |
| Order/Side/TIF enums | doji-perp-engine/src/domain/order.rs |
| Frontend Developer page | doji-interface/src/components/settings/sections/DeveloperSection.tsx |
| Frontend API-keys client | doji-interface/src/lib/api-keys-client.ts + src/hooks/useApiKeys.ts |

