Perpetual contract rules
get_perp_contract_rulesRules and current funding for one perpetual futures contract on one exchange: mark price, size step, minimum size, price tick, maximum leverage, funding rate per interval and annualised. Use when a limit price or leverage must fit the venue; not needed for market orders (sizing and preview round for you). Not for comparing exchanges (use compare_perp_quotes_across_venues or compare_funding_rates_across_venues). Inputs: symbol (base coin, e.g. BTC), venue (without an account: hyperliquid only). Prices in USD per coin, sizes in the base coin, rates as fractions. Next: size_position_by_risk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | No | Venue: sandbox, hyperliquid, okx, bybit or binance. Omitted: the agent's only venue, else hyperliquid, else your only connected venue, else sandbox | hyperliquid |
| symbol | Yes | Base coin, e.g. BTC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | Venue name | |
| symbol | Yes | Base coin | |
| min_size | Yes | Smallest order, in the base coin (e.g. BTC), not USD | |
| size_step | Yes | Smallest size increment, in the base coin (e.g. BTC), not USD | |
| mark_price | Yes | Mark price, USD per coin | |
| price_tick | Yes | Smallest price increment, USD per coin | |
| deprecation | No | Present only while this tool is deprecated: replacement, removal_date, changelog | |
| funding_rate | Yes | Funding rate per interval, as a fraction (0.0001 = 0.01%); positive: longs pay | |
| max_leverage | Yes | Highest leverage the venue allows for this contract | |
| funding_annualized | Yes | funding_rate scaled to a year, as a fraction | |
| funding_interval_hours | Yes | Hours between funding payments |