Build on the DARKLIGHT FX platform
An overview of the APIs behind DARKLIGHT FX: the Open API Bridge, the REST & Client API and webhooks. Full reference documentation is available to clients.
Sign in with the email and password provided by your account manager.
What you can integrate with
Open API Bridge
Account creation, trading groups, balance operations, and account and trade data from your MT5 server.
About the bridgeREST & Client API
Use back-office functions such as registration, KYC status and payment requests from your own website or app. Included on the Unlimited plan.
Webhooks
Receive events such as registrations, KYC decisions and transactions in your own systems.
Automation & integrationsFrom credentials to first request
Exact endpoints, request formats and error codes are in the client documentation. This is the general sequence.
Get documentation access
Your account manager issues sign-in details for api.thedarklight.in/docs.
Receive API credentials
We issue credentials for each system that will call the API. Store them server-side only.
Connect to a test environment
Point your integration at a demo MT5 server or demo groups first.
Subscribe to webhooks
Register the endpoints that should receive events, and verify incoming requests.
Go live
Switch credentials and endpoints to production after your team signs off.
Integration guidelines
Keep credentials server-side
Never place API or MT5 credentials in browser JavaScript or mobile app bundles.
Least privilege
Use separate credentials per system so access can be limited and revoked individually.
Idempotent money operations
Use your own unique references for balance operations so retries can't double-credit.
Handle failures
Retry transient errors with back-off and alert a person when an operation can't complete.
Log what you send
Keep your own request logs to reconcile with the back-office audit trail.
Test before production
Validate flows on demo groups before enabling them for live accounts.
Developer questions
Why is the API documentation behind a sign-in?
The reference covers operations that affect client accounts and balances, so we share it with clients and their developers rather than publicly.
How do I get access as a prospective client?
Book a demo or contact us; we can walk your developers through the API during evaluation.
Which plan includes the REST & Client API?
REST & Client API is included on the Unlimited plan. See pricing.