Skip to main content
Use the Marks Partner API to check available liquidity, request pricing and submit your first non-deliverable forward (NDF) trade. Then confirm the fill, monitor your position and close it. Run this walkthrough in the sandbox with a 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 a mk_test_ key to run this against the sandbox with test funds.
See API conventions for authentication, the response envelope, idempotency and error handling.

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.
Quotes are not binding. Submitting a trade reprices against the live market; the confirmed rate is available after the order fills.

3. Submit a trade

Submit the market, side, notional and tenor. Execution is asynchronous: the call returns immediately with status: "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.
Save the returned hedge_id to check execution status in the next step.

4. Confirm the fill

Poll the trade by its hedge_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.
Poll every second or two. The status moves from submitted to filled once the on-chain order fills. If it ends up failed, no position was opened and any reserved collateral is released.

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. Poll GET /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.