Skip to main content

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 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.
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 URLhttps://engine.dojifunded.com/v1
AuthX-API-Key: doji_ak_… + X-API-Secret: doji_sk_… per request
FormatJSON in / JSON out
Rate limit1,200 req/min per key
VersioningURL prefix /v1
Key creationDashboard → 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

ComponentPath
API-key controllerdoji-auth-backend/apps/wallet-service/src/apikeys/apikeys.controller.ts
API-key servicedoji-auth-backend/apps/wallet-service/src/apikeys/apikeys.service.ts
API-key DB schemadoji-auth-backend/apps/wallet-service/src/common/schema/apikeys.ts
Trading routes (Rust/Axum)doji-perp-engine/src/api/http.rs
Order handlersdoji-perp-engine/src/api/http/orders.rs
Account handlersdoji-perp-engine/src/api/http/accounts.rs
Market data handlersdoji-perp-engine/src/api/http/market_data.rs
Order/Side/TIF enumsdoji-perp-engine/src/domain/order.rs
Frontend Developer pagedoji-interface/src/components/settings/sections/DeveloperSection.tsx
Frontend API-keys clientdoji-interface/src/lib/api-keys-client.ts + src/hooks/useApiKeys.ts