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.

All account endpoints require authentication and the READ_ONLY (or higher) permission scope.
BASE = https://engine.dojifunded.com/v1

Create account

POST /v1/accounts
Creates a trading account. One account per plan or challenge.

Get account

GET /v1/account/:account_id
Returns the account record: plan ID, state, balances, allowed venues, and risk configuration.
curl "$BASE/account/$ACC" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"

Account summary

GET /v1/account/:account_id/summary
Live snapshot of the account.
curl "$BASE/account/$ACC/summary" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"
Response fields
equity
number
Current account equity.
free_margin
number
Margin available for new positions.
used_margin
number
Margin locked by open positions.
unrealized_pnl
number
Aggregate unrealized profit/loss across open positions.
realized_pnl
number
Realized profit/loss for the current trading day.

Open positions

GET /v1/account/:account_id/positions
Returns all currently open positions.
curl "$BASE/account/$ACC/positions" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"
Each row includes: symbol, side, quantity, entry_price, mark_price, unrealized_pnl, leverage, venue.

Position history

GET /v1/account/:account_id/positions/history
Paginated list of closed positions.
curl "$BASE/account/$ACC/positions/history?limit=50&from=2025-01-01T00:00:00Z" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"
Query parameters
from
string
ISO 8601 start timestamp (inclusive).
to
string
ISO 8601 end timestamp (inclusive).
limit
number
Number of results to return (capped per endpoint).

Trade history

GET /v1/account/:account_id/trades
Paginated list of trade fills.
curl "$BASE/account/$ACC/trades?from=2025-01-01T00:00:00Z&limit=100" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"
Accepts the same from, to, and limit query parameters as position history.

Funding payments

GET /v1/account/:account_id/funding
Funding payments received and paid, broken down per asset class.
curl "$BASE/account/$ACC/funding" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"

Breaches

GET /v1/account/:account_id/breaches
Risk-rule breaches tracked against your plan — drawdown, daily loss, and similar limits.
curl "$BASE/account/$ACC/breaches" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"

Violations

GET /v1/account/:account_id/violations
Hard violations that trigger account termination.
curl "$BASE/account/$ACC/violations" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"

Analytics

GET /v1/account/:account_id/analytics
Aggregated performance metrics.
curl "$BASE/account/$ACC/analytics" \
  -H "X-API-Key: $KEY" \
  -H "X-API-Secret: $SECRET"
Response fields
win_rate
number
Percentage of trades closed at a profit.
avg_r
number
Average R-multiple per trade.
profit_factor
number
Gross profit divided by gross loss.
exposure_breakdown
object
Exposure per asset class and venue.

Open orders

GET /v1/account/:account_id/orders
Returns all working orders for the account. See Order endpoints for placing and cancelling orders.