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
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
Margin available for new positions.
Margin locked by open positions.
Aggregate unrealized profit/loss across open positions.
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
ISO 8601 start timestamp (inclusive).
ISO 8601 end timestamp (inclusive).
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
Percentage of trades closed at a profit.
Average R-multiple per trade.
Gross profit divided by gross loss.
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.