FUTURESCME contracts

Hypernova isn’t one of our Premier firms

We track its help center for transparency, but it isn’t on our price list or in our rankings. Here are the top 3 perps firms we do recommend.

See all Power Rankings →
1Vest#1 in the perps Power Rankings
Claim
2My Funded Perps#2 in the perps Power Rankings
Claim
3Breakout Prop#3 in the perps Power Rankings
Claim

Hypernova · Rule version history

Closing and cancelling

Every copy of this Hypernova help center article we have archived, newest first. Open a version to see what changed in it, or pick any two to compare them.

1 version archived since Dec 5, 2026 · Read the live article ↗

CompareA: Version -againstB: Version 1Pick A and B on any two versions below.
Track a ruleType a word and see every version where the lines mentioning it changed.
Fetches the article and compares it with Version 1.
VersionArchivedLinesWhat changedCompare
▸Version 1December 5, 2026, 10:20 AMCurrent New page published.

First archived version.

Closing and cancelling
Source: https://hypernova.xyz/docs/api/cancel-orders
ClosePosition, CloseAllPositions, CancelOrder and CancelAllOrders - flatten a position or clear an account's orders, on their own rate-limit budget.
All four need a write key and draw on the exit rate limit, a budget of their own that placements cannot use up.
ClosePosition
ClosePosition · Body: { "accountId": "…", "positionId": "…", "clientOrderId": "…", "maxSlippageBps": "50" }, with the last two optional
Closes one position at market.
It takes its symbol and side from the position and closes the size the position holds when the close executes, so it needs no quantity and a fill landing in between can neither leave it closing a stale size nor turn the position around.
FieldTypeDescription
orderIdstringThe close's order id; your clientOrderId if you sent one.
statusOrderStatusSuch as ORDER_STATUS_FILLED.
closedQuantity optional | decimal | The size the booked fills closed, less than the position when the visible book could not take it all. Left out when nothing filled, and on a retry while the first fill is still being booked.
- maxSlippageBps caps how far from the best bid or ask the close may fill. A close past it answers failed_precondition and closes nothing. Leave it out to close at whatever the book offers.
- A retry with the first clientOrderId replays the first close, even once the position is gone, and never closes a remainder. The same clientOrderId on a different position, or on an order that was not this close, answers failed_precondition.
- To close whatever remains, send ClosePosition again without a clientOrderId or with a new one.
- A position that is already closed, or that the account does not hold, answers failed_precondition, kind POSITION_ALREADY_CLOSED. That is how a close that lost a race to a take-profit, a stop-loss or another close answers.
- A leg of a pair trade answers failed_precondition: close the pair in the app, or the account with CloseAllPositions.
CloseAllPositions
CloseAllPositions · Body: { "accountId": "…" } · Response: {}
Closes every open position at market, each by its own market order at the size it holds when that order executes; the orders appear in ListOrderHistory, and a pair trade is closed as a pair.
- It is never slippage-capped, so a flatten never refuses on price. There is no symbol or side filter.
- Every call is a new flatten, so a retry closes whatever is still open, and an account with nothing open answers success.
- A flatten that could not close everything, because a market had no usable book or too little depth, closes all it can and answers failed_precondition. Call it again, then check GetAccountSnapshot.
- It does not cancel open orders, and a resting order that opens a position can fill after it. To take an account flat, follow the recipe below.
Flattening an account in an emergency
1. Call CancelAllOrders twice with only accountId. The second call catches orders that became open during the first, but one can still become open during the second.
2. Call CloseAllPositions with the same accountId. Only success counts: on failed_precondition repeat from step 1, and on unavailable or a timeout retry this step with backoff.
3. Call GetAccountSnapshot. The account is flat only when step 2 answered success and the snapshot carries a balance with positions empty. If positions is not empty, repeat from step 1.
A snapshot with no balance proves nothing: when our live copy of the account cannot be read, GetAccountSnapshot can answer positions: [] while a position is still open, and CloseAllPositions answers unavailable. Read it again until it carries a balance.
Every step is safe to repeat.
[!WARNING]
The recipe cannot keep the account flat on its own. Pair trades and TWAP orders are placed only from the app, ListOpenOrders does not show their legs or scheduled slices, and no API call cancels them, so a pair's leg or a TWAP's next slice can open a position afterwards. Cancel their parents in the app.
CancelOrder
CancelOrder · Body: { "accountId": "…", "orderId": "…" } · Response: {}
- Safe to retry: an order that is already cancelled, or was rejected, also answers 200 {}.
- An order that has filled answers failed_precondition, kind ORDER_ALREADY_FILLED: a lost race, not a bad request.
- A TWAP slice still scheduled for a later release, or one leg of a pair trade, answers failed_precondition; those are cancelled through their parent, and a released slice is an ordinary open order.
- An order that does not belong to the account answers not_found.
CancelAllOrders
CancelAllOrders · Body: { "accountId": "…", "symbol": "BTC", "side": "ORDER_SIDE_SELL" }, with symbol and side optional · Response: { "cancelledOrderIds": ["…"] }
Cancels every open order matching the filter, with no limit on how many, so it reaches orders past the newest 1,000 that ListOpenOrders returns.
- An order that becomes open while the call runs, such as a take-profit or stop-loss created by a fill at the same moment, is not cancelled, so in an emergency call it twice.
- A cancelled order cannot fill afterwards. A second call cancels whatever is still open, and an account with nothing open answers an empty list.
- Pair-trade legs stay open, and so do TWAP slices still scheduled for a later release; both are cancelled through their parent in the app.

SHA-256 7d746d90189d937629b92d0a9f9f70aa988859afaacfa103c378e9a5a042746f

Scroll to Top