Prerequisites
- A DojiFunded account with an active plan.
- An API key with
TRADEandREAD_ONLYpermissions - create one at Dashboard → Settings → Developer. - Your
account_idfrom the dashboard.
Set environment variables
The bot
What just happened
- Account summary - reads live equity and margin state before acting.
- Limit order - a
post_onlylimit buy that will only rest on the book, never take liquidity. client_id- a timestamp-based ID that makes the request idempotent. Safe to retry on failure.- Violation check - always inspect
violationsbefore assuming success.
Next steps
Orders
Explore all order types: stop, take-profit, reduce-only, and cross-venue.
Accounts
Pull positions, trade history, breaches, and analytics.
Webhooks
Replace polling with real-time push events for fills and position closes.
Errors
Handle risk violations, retries, and rate limits correctly.

