Skip to main content
Fix
Affiliate challenge standings include isolated margin accounts.Endpoints: GET /affiliate-challenges/{challenge_id}/owner-leaderboard.CIC standings use qualifying perpetual futures taker volume for the score and prize pool. Opening and closing fills count for quantities held at least one minute, matched oldest first. Entrants need $300,000 of qualifying volume for a ranked payout estimate. The owner response’s maker and taker split continues to report raw volume.
Breaking Change
Wallet-only builder key issuance can require 2FA in QFEX.Endpoints: POST /builder/web3/api-key.For accounts with a verified second factor, wallet-only key creation or replacement can return HTTP 403 with a message to complete 2FA in QFEX.Migration: When the endpoint returns the 2FA requirement, direct the user to QFEX Developer Settings to verify 2FA and create an API key with the permissions the integration needs. For programmatic withdrawals, select Withdraw to approved crypto addresses. We recommend that builders migrate to QFEX OAuth for user-approved, revocable app access and short-lived access tokens that can be refreshed.
New Endpoint
Builders can read their attributed volume by user and inspect individual fills.Endpoints: GET /builder/user-volume, GET /builder/fills.Authenticate with a builder primary-account API key with view_balance. Both endpoints report recorded builder-owner attribution. Volume and fill notional are exact USD decimal strings, and pagination uses a fixed snapshot.
API Update
Fetch balance and equity with API keys scoped to a single account.Endpoints: GET /user/subaccounts/balance, GET /user/subaccounts/equity.Both endpoints can now be called with an API key that has view_balance permission for only one account. Only that account’s balance or equity is returned. API keys with access to all accounts and subaccount_ops permission continue to receive balances or equities for all accounts.
API Update
Affiliate competition standings support global enrollment and host removals.Endpoints: GET /affiliate-challenges/owned, GET /affiliate-challenges/{challenge_id}/owner-leaderboard.Challenge responses include is_global. Global competitions rank signed-in users who opt in. Referral-only competitions retain their direct-referral eligibility. Removed entrants are excluded from standings, prize pool calculations, and payouts.
Fix
Return the withdrawable balance when an older balance snapshot is current.Endpoints: GET /user/withdrawable-balance.The endpoint can now calculate the amount from a current balance snapshot that does not include a precomputed withdrawable balance. Missing or stale snapshots still return HTTP 503.
API Update
Confirm leverage changes in Kafka before returning success.Endpoints: POST /user/leverage.If confirmation takes too long, the request returns HTTP 503 and the change may still complete. Check the current leverage before retrying. New exposure and isolated collateral removals for the position are blocked until confirmation.
New Endpoint
Publish the endpoint for setting a symbol to cross or isolated margin.Endpoints: POST /user/margin-mode.Send the symbol and margin_mode for the authenticated account. API keys require the execute_orders permission. Close the position and cancel open orders for the symbol before switching modes. Switching to cross margin also requires removing any isolated collateral for the symbol and a market that supports cross margin for your account.
New Endpoint
Check the withdrawable balance of your primary account.Endpoints: GET /user/withdrawable-balance.The response includes the maximum withdrawal amount in USD and the balance snapshot timestamp in as_of. API keys require View Balance permission and primary account scope. If a current snapshot is unavailable, the endpoint returns HTTP 503 and clients can retry. Withdrawal submission checks the current balance again.
API Update
Staff can disable affiliate trading challenges.Endpoints: GET /affiliate-challenges/owned, GET /affiliate-challenges/{challenge_id}/owner-leaderboard.Disabled challenges are omitted from the owned challenges list and their leaderboard returns 404. Re-enabling a challenge restores access for eligible users and preserves the existing settings and enrollment.
API Update
Multiple affiliates can share a trading challenge leaderboard.Endpoints: GET /affiliate-challenges/owned, GET /affiliate-challenges/{challenge_id}/owner-leaderboard.Each configured affiliate can list the shared challenge and fetch its merged referral standings and prize pool. Responses include additional_affiliate_user_ids alongside the existing primary affiliate_user_id.
New Endpoint
Publish default-account leverage tiers, position notional caps and margin-mode availability through a dedicated public leverage endpoint.Endpoints: GET /leverage.GET /leverage accepts an optional ticker filter and publishes only the configured default margin group’s schedule. Each symbol includes risk_limits_available and margin_mode. When available, max_leverage, max_position_notional, max_position_notional_at_max_leverage, position_limit_currency, risk_limits_scope and leverage_tiers describe exact leverage-dependent limits. Position notionals are precise decimal strings in quote-currency units and include same-side open-order exposure. Unavailable or invalid margin data omits numeric risk fields. Custom groups and account overrides remain private. GET /refdata and its legacy default_max_leverage behavior are unchanged.
New Endpoint
Affiliates can retrieve their own challenge standings for website display.Endpoints: GET /affiliate-challenges/owned, GET /affiliate-challenges/{challenge_id}/owner-leaderboard.Authenticated affiliates can list their challenges and fetch each competition’s configuration, prize pool, payout distribution, and participant standings. Each participant includes username, maker volume, taker volume, PnL, score, and projected payout. The routes require an HMAC API key with view_balance permission; the detail route rejects keys that do not belong to the challenge owner. Website publishers must protect their own viewer access.
Fix
Reference data now populates underlier_price and price_change_24h.Endpoints: GET /refdata.underlier_price returns the latest available underlier price. price_change_24h returns the rolling 24-hour percentage change in mark price using minute-resolution history, rounded to eight decimal places. Mark prices are refreshed at most once every 30 seconds. Missing or invalid prices and unavailable history remain empty strings, and reference metadata remains available if the price lookup fails.
New Endpoint
Public reference-market holiday calendar.Endpoints: GET /market-holidays.Returns holidays from a generated snapshot of the Entimos Slack calendar for inclusive date ranges up to 366 days, with an optional market filter. Includes coverage windows and incomplete markets so missing schedules are explicit. These dates are not QFEX trading halts or instrument-specific session times.
Docs Update
Link public market hours, holidays, and earnings and economic calendars.Endpoints: GET /refdata, GET /calendar.Clarify that symbol market hours are available in refdata without authentication and cross-link the public calendar endpoints in their operation descriptions.
Breaking Change
Publish API version 2026-10-30 with source-free earnings metadata.Endpoints: GET /calendar.The latest API contract is now 2026-10-30. Calendar earnings metadata omits source, sources, source_name and source_url keys, including nested release-time attribution. Financial results, release timing and economic events are unchanged. The 2026-10-29 contract preserves its original response.Migration: Pin api_version=2026-10-29 to keep earnings attribution. Omitted api_version, latest and 2026-10-30 select the new response. Clients using earnings sources must pin the previous version or stop relying on those fields.
New Endpoint
Public earnings and economic calendar endpoint.Endpoints: GET /calendar.Returns earnings and economic events for an inclusive from/to date range of up to 93 days without authentication. Economic events include the last successful sync timestamp and stale status. Missing financial results and release times remain null. Invalid ranges are rejected and upstream failures return 503. CloudFront caching is capped at five minutes and varies only by api_version, from and to query parameters, with hostname and CORS-origin separation.
Trade WebSocket documentation correction
Corrected the Balances and Positions references and Trade Playground schema: both channels have a 60-second periodic refresh plus event-driven updates.Documented immediate cached snapshots on subscription and coalesced updates when placing or cancelling orders changes reserved margin. Clarified that subscribers receive balance_response and per-symbol position_response snapshots, and removed the obsolete v4 envelopes from the Trade schema. This corrects the documentation; it does not announce a protocol change.
New Endpoint
Select a dated REST API contract with the api_version query parameter.Omitting api_version or using latest selects the latest contract. The first published contract is 2026-10-29. Unsupported, empty, or repeated versions return HTTP 400. Qfex-Api-Version reports the selected contract. OpenAPI exports accept the same selector, and documentation and schema links have stable dated metadata URLs.
Breaking Change
Builder wallet messages accept a website domain and default to qfex.com.Endpoints: GET /builder/web3/message.The optional domain query parameter accepts non-QFEX hostnames and sets the message domain and HTTPS URI. If the domain is not provided the default website uri in the message is www.qfex.com. Browser access still requires the website origin in the API CORS configuration. Registration requires the generated URI in the Supabase Auth Redirect URLs allowlist.Migration: Pass domain=www.qfex.com to retain the previous message domain, or supply your website hostname without a scheme, path, port, or credentials.
Private-order API reference
Private orders now use one optional JSON boolean, dark, defaulting to false. For LIMIT GTC and ALO GTC, true makes resting quantity private. For LIMIT IOC, LIMIT FOK and MARKET IOC/FOK, it selects only private passive liquidity. Private FOK fills completely or cancels without fills. There is no displayed-BBO comparison, quote requirement or displayed fallback.Individual trade publication depends only on the passive order: displayed passives publish; private passives do not. A private GTC can produce public entry fills and private passive fills after resting. Funding, marks, candles, volume and authenticated execution records still include all activity.Order responses and active-order queries return dark: true for private instructions and omit default false. Modifications preserve the flag. The earlier draft fields visibility and liquidity_pool are retired and ignored in add-order requests; migrate those requests to dark. Private-order entry must be enabled by the exchange before dark: true requests are accepted.See Private-order API, Add order, Order responses and Private flag.
New Endpoint
Isolated positions now expose cash collateral separately from equity.Endpoints: GET /user/positions.Isolated positions include isolated_collateral, which excludes unrealised PnL and includes settled fees, funding and realised PnL. Their existing margin field continues to report equity including unrealised PnL.
New Endpoint
Symbol reference data now includes isolated_only.Endpoints: GET /refdata.Each symbol returns an explicit boolean indicating whether it requires isolated margin. Flagged symbols require isolated route registration before trading. Existing cross exposure can still be cancelled or closed with reduce-only orders.
Market Data Update
market_stats wildcard subscriptions (symbols: ["*"]) now receive all-symbol snapshots every 10 seconds. Named-symbol subscriptions continue to update once per second. An initial snapshot is sent on subscription when data is available.The Market Stats reference and MDS Playground schema now document funding rates, rolling 24-hour traded quantity, and rolling 24-hour USD notional volume.
API Update
Initial invitation qualification now uses lifetime personal trading volume.Endpoints: POST /user/invitation-codes/job, GET /user/referrals/notional-volume.Creators receive their initial five invitations after reaching $100,000 of all-time personal trading volume, including subaccounts, rather than volume in the last 14 days. The qualification responses add self_lifetime_notional_volume; existing self_notional_volume remains the 14-day value. Referred volume does not count toward initial qualification. Existing grants and recurring invitation rules are unchanged.
Docs Update
REST API release notes now follow production deployments.Public REST API changes now appear in the REST API changelog after the corresponding API revision is available in production. The reference is rebuilt from the production OpenAPI document with each tracked release.
Breaking Change
Builder Web3 signed messages now link to the QFEX Client Agreement.Endpoints: GET /builder/web3/message, POST /builder/web3/api-key.The legal consent statement includes https://docs.qfex.com/legal/client-agreement beside the Client Agreement. Key issuance requires the updated statement, including this link.Migration: Request and sign a fresh message from GET /builder/web3/message. Submit that string unchanged to POST /builder/web3/api-key; messages without the agreement link are rejected.
Breaking Change
Builder Web3 registration now includes legal consent and an Arbitrum withdrawal address.Endpoints: GET /builder/web3/message, POST /builder/web3/api-key.The signed message now authorizes a trading API key and includes acceptance of the QFEX Client Agreement, Privacy Policy, and Cookie Policy. Messages without this consent are rejected. Successful key issuance records the acceptance date and registers the verified wallet address on ARBITRUM_ONE without duplicating an existing address.Migration: Request a fresh message from GET /builder/web3/message and sign the returned string unchanged before submitting it to POST /builder/web3/api-key. Clients that construct messages themselves must include the updated consent statement.
Breaking Change
modify_order now requires the reduce_only field. It must match the order being modified, as a modify cannot change reduce-only.Requests that omit it are rejected with InvalidJSONFormat, and a value that does not match the resting order is rejected with CANNOT_MODIFY_NO_SUCH_ORDER.See here for further details
Docs Update
Added builder codes: create and view a code over REST, then attach it on the Trade WebSocket auth message as params.builder_code. Public balances expose credited share as builder_rewards.See here and here for further details
Docs Update
Added default_max_leverage field to refdata response.See here for further details
Docs Update
Added funding scaling documentation. The final funding rate is now documented as scaled by 1/100, and the funding stream reflects the post-scaling value.See here, here, and here for further details
Docs Update
Added the fills channel and fill response payload documentation.See here for further details
Docs Update
Updated trades response to include execution_type.See here for further details
Docs Update
Updated order response to include trade_id. This is used for order responses with a status of FILLED, it provides the unique trade id of that fill.See here for further details
Docs Update
Updated get_user_trades endpoint to support more filtering.See here for further details
Docs Update
Updated stop order response type. Type is now STOP_LOSS and TAKE_PROFIT. Stop orders are shown in the orders key in get_orders_responseSee here and here for further details
Docs Update
Added documentation for stop orders.See here, here and here for further details
Docs Update
Added Close Position request.See here for further detailsThis is only intended for use in the frontend as a quick way to close a position.
Docs Update
Added HMAC-SHA256 authentication requirements for the trade WebSocket, including refreshed client samples.See here for further detailsDocumented the new cancel-on-disconnect channel with end-to-end examples for Python, Node.js, Go, and Java.See here for further details
v0.0.10
You must now include order type in a modify orderSee here for further details.
v0.0.10
You must now subscribe to order responses.See here for further details.