hl_swap
Convert USDH, USDT0, or USDE spot stablecoins into USDC to back perpetual trades, requiring at least 0.99 USDC per coin and reporting actual amounts sold.
Instructions
Convert a stablecoin held on the spot side — USDH, USDT0 or USDE — into USDC, so it can back perp trades. Only those three coins, only into USDC, and never below 0.99 USDC per coin: if no buyer pays that much, nothing sells. This is not spot trading and cannot buy any other coin. Minimum 11 (at the 0.99 floor that clears the exchange minimum of $10). It can fill partly — report soldSz and usdcReceived, not the amount asked for. Counts against the owner-set daily limit; only what actually sold is charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"amount": "<amount>"
},
"name": "hl_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The stablecoin to convert into USDC. | |
| amount | Yes | How many coins to convert, e.g. 123.27. Minimum 11. |