Skip to main content
POST
Swap between stablecoins on the Hyperliquid spot market

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
string
required

Amount of tokenIn to swap, human-readable (e.g. "10.3").

tokenIn
enum<string>
required

Stablecoin to swap from.

Available options:
USDC,
USDH
tokenOut
enum<string>
required

Stablecoin to receive.

Available options:
USDC,
USDH

Response

200 - application/json
amountOut
string
required

Amount of tokenOut received.