Skip to content

Perpetual Futures Trading

Trade perpetual futures through Suwappu's HyperLiquid integration. Open leveraged long and short positions on 10 major crypto assets.

Available Markets

MarketMax Leverage
BTC-USD20x
ETH-USD20x
SOL-USD20x
ARB-USD20x
AVAX-USD20x
DOGE-USD20x
MATIC-USD20x
OP-USD20x
SUI-USD20x
APT-USD20x

Step 1: Browse Markets

Check current prices, funding rates, and open interest:

-kw">curl https://api.suwappu.bot/v1/agent/perps/markets \

-H -str">"Authorization: Bearer suwappu_sk_YOUR_KEY"

Step 2: Get a Quote

Before opening a position, get a quote to see entry price, liquidation price, and required margin:

-kw">curl -X POST https://api.suwappu.bot/v1/agent/perps/quote \

-H -str">"Authorization: Bearer suwappu_sk_YOUR_KEY" \

-H -str">"Content-Type: application/json" \

-d -str">'{

-str">"market": -str">"ETH-USD",

-str">"side": -str">"long",

-str">"size": -str">"0.5",

-str">"leverage": 10

}'

Key fields in the response:

  • entryPrice — the price at entry
  • liquidationPrice — price at which the position gets liquidated
  • margin — required collateral
  • fee — trading fee

Step 3: Check Positions

Monitor your open positions:

-kw">curl https://api.suwappu.bot/v1/agent/perps/positions \

-H -str">"Authorization: Bearer suwappu_sk_YOUR_KEY"

TypeScript Example

const client = new Suwappu({ apiKey: process.env.SUWAPPU_KEY })

class=class="hl-str">"hl-comment">// Browse markets
const markets = await fetch(class="hl-str">'https:class=class="hl-str">"hl-comment">//api.suwappu.bot/v1/agent/perps/markets', {

headers: { Authorization: Bearer ${apiKey} }

}).then(r => r.json())

console.log(markets.markets.map(m => ${m.symbol}: $${m.markPrice}))

class=class="hl-str">"hl-comment">// Get a quote for 0.5 ETH long at 10x const quote = await fetch(class="hl-str">'https:class=class="hl-str">"hl-comment">//api.suwappu.bot/v1/agent/perps/quote', {

method: class="hl-str">'POST',

headers: {

Authorization: Bearer ${apiKey},

class="hl-str">'Content-Type': class="hl-str">'application/json'

},

body: JSON.stringify({

market: class="hl-str">'ETH-USD',

side: class="hl-str">'long',

size: class="hl-str">'0.5',

leverage: 10

})

}).then(r => r.json())

console.log(Entry: $${quote.quote.entryPrice})

console.log(Liquidation: $${quote.quote.liquidationPrice})

console.log(Margin required: $${quote.quote.margin})

Telegram Bot

Use /perps in the Telegram bot for an interactive trading interface with market selection, side, amount, leverage, and confirmation steps.