Count the provider’s stablecoin as dollars
Every account holds a US dollar balance, and no account holds a stablecoin. You pay your traders yourself: trdrs holds and moves no money for your venue. A contract that settles in a stablecoin reaches the dollar balance one for one only where your risk policy says so. State itssettlement
term as stablecoin_parity and list the stablecoins you count as dollars:
assets takes USDC, USDT or both, into is your policy’s currency, and rate is 1, the only
rate your parity may state, because no source quotes another for you. A version that states another
rate or asset is refused when you store it. Profit, loss, funding and collateral then count in
dollars, posted to the cent, and the account never holds a stablecoin. Without the statement the
account refuses the contract as settlement_asset_unmodeled. A parity binds only accounts held to
your own policy.
List a Hyperliquid perpetual with contractVersion: "native-perpetual-oracle-funding-v2", the
version the contract reference lookup proposes for it. Publish the risk policy
with currency set to USD and its posting term stating US dollars in two decimals. A payout is
a debit you record on the account, and it never counts as a loss.
State the perpetual’s funding row on the price its contract funds on: the oracle price for
native-perpetual-oracle-funding-v2, and the mark price for native-perpetual-payoff-v1 and for a
listing that names no version. Publication checks each perpetual your policy names on the contract your
listing of it names, and before you list it on each contract you may list it on, so you can publish
and list in either order. It checks again when you issue an account, and a policy that states another
price for the contract you listed is refused with risk_terms_contradictory. To move a perpetual you
have listed to another contract version, activate the replacement listing once its accounts are flat,
then publish the policy version that states the new contract’s funding.
Margin a contract by the provider’s profile
Set the crypto derivative class’s margin to the provider’s profile:POST https://api.hyperliquid.xyz/info
with {"type": "meta"}) every minute and records each perpetual’s profile, its leverage tiers and
margin modes, when it changes and at least every hour. A contract trades under the newest profile,
which proves Hyperliquid’s terms for two hours after Hyperliquid stated them, the same for every
account. With profileDigest set, it trades only under that one profile: when Hyperliquid changes
its terms, new exposure on the contract is refused until you publish the new digest. Without a
fresh profile, new exposure is refused, and no flat rate stands in for it.
Publishing the policy does not wait for a profile: publication checks every other term the policy
states, and the paper book proves Hyperliquid’s terms when an order is placed. A contract margined by
Hyperliquid’s profile trades the contract that profile is observed on,
native-perpetual-oracle-funding-v2, so publication refuses the policy, as risk_terms_contradictory
with term derivative_margin, where your venue lists the perpetual on another version. Your own
notional_fraction rates remain yours to state instead, on the same listing.
Your active instruments read, GET /api/venues/{venueId}/instruments/active, states what to name for
each perpetual you list. Its contract is the contract version the listing trades, the price that
contract funds on (fundingRole) and the source that publishes it (fundingSource): state your
funding row on them. Its marginProfile is the provider’s profile as the paper book last observed
it: the providerId, network and accountModel to name in your margin row, the most leverage the
provider allows (maxLeverage, its first tier’s), the position size where that tier ends
(firstTierMaxNotional), every tier, the margin modes it offers, when it was observed and its
profileDigest. It is null until the paper book first observes the perpetual. onListedContract
is false where your listing trades a contract version the profile is not observed on, which a
policy margined by the profile can’t margin. A maxLeverage of your own above the provider’s allows
nothing more, and a fixed selection above it, or limits that leave no mode the provider offers,
are refused when an order is placed.
Name "accountModel": "standard" for Hyperliquid. It is the name the paper book stores Hyperliquid’s
terms under, not Hyperliquid’s mode of that name: the account the paper book models is a
Hyperliquid unified account,
whose single balance collateralizes every cross position in that asset.
For a Bybit USDT perpetual, name "providerId": "bybit", "network": "mainnet" and
"accountModel": "unified_trading". The paper book reads Bybit’s public market API every ten minutes
and records each registered USDT perpetual’s profile, its risk limit tiers and margin modes, when it
changes and at least every hour. Bybit sets leverage per instrument and the margin mode across its
unified trading account, as Set leverage and margin mode describes.
Your fill terms are your own: your venue’s conditions state the commission.
Your own limits, under firm, narrow the provider’s and never widen them. maxLeverage caps the
leverage and modes names the margin modes the account may use, each null for no limit of your
own. selection is either { "kind": "trader", "leverage": n }, where the trader chooses within the
limits and starts at n in the first mode the contract offers, cross before isolated, or
{ "kind": "fixed", "leverage": n, "marginMode": "cross" }, which holds every account to that one
setting. The account trades only the contracts a row names.
Set leverage and margin mode
The trader reads and sets them through the Trading API, as on any provider.GET /api/trading/symbol-config answers the leverage, the margin mode, the most leverage allowed,
the modes offered and whether a change is possible now. The most leverage allowed is the lower of
the provider’s highest leverage on the contract and your maxLeverage for it, and the modes offered
are the provider’s that your modes allow. Your backend reads the same answers for one of its
traders, as Trade with leverage shows.
PUT /api/trading/symbol-config sets the leverage and PUT /api/trading/margin-mode the margin
mode. Hyperliquid sets both per instrument, so a change reaches that instrument alone. A provider
that sets its margin mode across the account answers marginModeScope: "account": a change of it
reaches every instrument of that provider the account holds a setting for, never another provider’s,
and an instrument set later starts in that mode. A change is refused while what it reaches holds a
position, a working order or money still owed, and while the account is being liquidated.
Follow the collateral
The account’s balance sits in its one cross pool, which every provider’s cross positions on the account share. A cross position is margined by the whole pool. On Hyperliquid that pool backs the native perp dex and every perp dex of one collateral token, as a unified account’s balance does, so a loss on a cross position of one dex reduces what a cross position of another may use. An isolated position’s initial margin moves from the cross pool to its own isolated pool as its entry fills, and returns to the cross pool once the position is closed and nothing is owed on it. These moves never change the account’s balance. Working orders reserve the initial margin of the whole held and pending notional at the tier it reaches, less what the held position already requires, so a resting order never steps over a tier boundary. A reduce-only order reserves nothing.Open a position with a stop
On Hyperliquid and on Bybit a stop or stop-limit order can open a position. SendorderType stop with
triggerPrice, or stop_limit with triggerPrice and stopLimitPrice, as on any provider. While it rests the
order holds the margin of its own price.
Hyperliquid’s order types page offers
both and lists reduce only as a separate option. The paper book triggers the order on Hyperliquid’s mark price,
as Hyperliquid triggers its stops.
When you place or replace it, its trigger lies beyond the mid of Hyperliquid’s quote: above it for a buy and
below it for a sell. The order types page requires that of a stop market order’s trigger and states no side for
a stop limit order’s, and the take profit and stop loss page says an order placed to execute at once is an
error, so a stop-limit’s trigger is held to the same side.
Bybit’s create-order page takes a conditional
order as a market or a limit order with a trigger price. The paper book triggers it on the last trade price,
which Bybit’s help center
gives as the default, and when you place or replace it, its trigger lies beyond the last trade price: above it
for a buy, which triggers rising, and below it for a sell, which triggers falling, as the create-order page
and Bybit’s error codes require.
A trigger the price already stands at or past would fire as the order arrives, and the order is refused with
400 invalid_request, field body.triggerPrice and reason trigger_price_wrong_side. Where the price it is
judged by is missing, the order is refused as a market order is: market_data_unavailable for a Hyperliquid
quote that has not arrived or a Bybit instrument with no last trade price yet, market_data_stale for a
Hyperliquid quote older than the instrument accepts. A last trade price is never stale: a market that does not
trade sends none, so the last print stands until the next. Once triggered, a stop fills as a market order and a
stop-limit rests as a limit at its stopLimitPrice. A provider whose profile states no stop entry refuses one
with provider_order_type_unsupported.
Read how funding and liquidation work
Funding is charged hourly on Hyperliquid’s settled rate, on the position’s notional at Hyperliquid’s oracle price, as Hyperliquid’s funding page states; a positive rate is paid by longs. An isolated position’s funding is charged to its own pool. Maintenance margin follows Hyperliquid’s margin tiers: the notional at the mark price times the tier’s maintenance rate, less its maintenance deduction. The cross pool and each isolated pool are valued on their own, and a pool whose equity falls to its maintenance line is liquidated alone. A liquidated pool’s positions close whole, and a loss beyond an isolated pool’s margin is taken from the cross pool.Know the limits of the paper book
Hyperliquid’s portfolio margin, inverse contracts and independent tickets are refused. A builder-deployed (HIP-3) perpetual of a dex whose collateral is USDC, such asHYPERLIQUID:XYZ:TSLA, is a registered market you can chart, and Personal Demo lists and trades it as
Hyperliquid’s own account does. A Personal Demo is a Hyperliquid unified account: one balance and one
cross pool, which the native perpetuals and every such market that offers cross margin share, while a
market that offers isolated margin alone is margined in a pool of its own. Its margin is the profile its
dex’s metadata states, and its fee is the one Hyperliquid’s fee statement gives its own deployer fee
settings: at the base tier 0.003% to make and 0.009% to take where its metadata states growth mode, and
0.030% and 0.090% where it states none. Personal Demo also trades Bybit’s USDT perpetuals of its main
market and its Innovation Zone on Bybit’s profile of a unified trading account, each at Bybit’s VIP 0 fee of
its zone, and none of Bybit’s TradFi perpetuals. It trades Binance’s USDT perpetuals on the house’s tiers,
since Binance shows its tiers only to a signed-in account, as Trade with
leverage lists them; your paper accounts don’t take them. A builder-deployed market of a dex with any other collateral is
not registered. A perpetual settled in a token your risk policy does not count as dollars takes no
exposure and shares no pool. An open isolated position’s margin stays as it opened: you can’t add margin to it or remove
margin from it. Hyperliquid’s partial liquidation of large positions and its backstop liquidation
vault have no counterpart here. The paper book applies the contract’s rules; the exchange’s custody,
fill liquidity and fee tiers stay the exchange’s.