mk_test_ key and test funds before moving to production with a mk_live_ key.
The API uses /hedges endpoints to manage NDF positions and hedge_id to identify them.
Prerequisites
Create a key in Settings on the partner desk, then export it and the base URL. Use amk_test_ key to run this against the sandbox with test funds.
1. Check available liquidity
Fetch the markets available to your account. Each one shows its reference rate, available capacity per side and daily carry rate.2. Request a quote
Request an indicative quote for a market, side, notional and tenor. The quote returns an indicative execution price, carry over the tenor and the upfront cost (margin plus platform fee). Requesting a quote does not open a position or persist the quote.3. Submit a trade
Submit the market, side, notional and tenor. Execution is asynchronous: the call returns immediately withstatus: "submitted", an order_tx_hash and a hedge_id. The position is live once the order fills. Use a unique Idempotency-Key for each new trade and reuse it when retrying the same request. API-key submissions require a non-blank client_reference, your own deal or trade ID for reconciling the returned record with your system.
hedge_id to check execution status in the next step.
4. Confirm the fill
Poll the trade by itshedge_id until status becomes filled. The response then includes a fill_tx_hash and a struck_rate, the rate captured at fill. This usually takes a few seconds.
5. Monitor your position
Once filled, your live position shows up with its mark price, P&L, and accrued carry.6. Close the position
Close the position by market and side. Closing is also asynchronous. PollGET /positions until the position is no longer listed to confirm it has closed.
Next steps
Pricing and settlement
NDFs, tenor, carry, margin, and settlement.
Trade execution
Request a quote, submit a trade and confirm execution, with every field.
Monitor positions
Read P&L, carry and margin on a live NDF position.
API Reference
Every endpoint, with request and response schemas.

