Prepare a single-order modification by OID or CLOID for L1 signing
Prepare a single-order modification by OID or CLOID for L1 signing. Supply the full replacement order. Omit action.a unless true. Sign and submit unchanged using the returned submitPath. See /skills.md for signing rules. Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://chainhilt.ai/api/v1/perp/hyperliquid/order/modify/preview
| Category | Code and developer |
|---|---|
| Provider host | chainhilt.ai |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 13 from 3 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"action": {
"oid": 77738308,
"order": {
"a": 0,
"b": true,
"p": "60000",
"r": false,
"s": "0.01",
"t": {
"limit": {
"tif": "Alo"
}
}
},
"type": "modify"
},
"nonce": 1710000000000
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"accountAddress": {
"description": "Signing account's address, returned as response metadata; not part of the signed action.",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"action": {
"additionalProperties": false,
"description": "Modify action.",
"properties": {
"a": {
"const": true,
"description": "true sets always_place: place the replacement even if the cancel fails. Omit when false.",
"type": "boolean"
},
"oid": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"maxLength": 34,
"minLength": 34,
"pattern": "^0x[a-fA-F0-9]+$",
"type": "string"
}
],
"description": "Order to modify: numeric order ID or 128-bit hex CLOID."
},
"order": {
"additionalProperties": false,
"description": "Full replacement order.",
"properties": {
"a": {
"description": "Asset ID from /perp/hyperliquid/asset-id: perp index, or 10000 + spot index.",
"minimum": 0,
"type": "integer"
},
"b": {
"description": "true to buy, false to sell.",
"type": "boolean"
},
"c": {
"description": "Client order ID: 128-bit hex string, e.g. 0x1234567890abcdef1234567890abcdef.",
"maxLength": 34,
"minLength": 34,
"pattern": "^0x[a-fA-F0-9]+$",
"type": "string"
},
"p": {
"description": "Limit price as a decimal string.",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
"type": "string"
},
"r": {
"description": "true for reduce-only.",
"type": "boolean"
},
"s": {
"description": "Size as a decimal string, rounded to the asset's szDecimals.",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
"type": "string"
},
"t": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"limit": {
"additionalProperties": false,
"description": "Limit order.",
"properties": {
"tif": {
"description": "Alo (post only), Ioc (immediate or cancel) or Gtc (good til canceled).",
"enum": [
"Gtc",
"Alo",
"Ioc"
],
"type": "string"
}
},
"required": [
"tif"
],
"type": "object"
}
},
"required": [
"limit"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"trigger": {
"additionalProperties": false,
"description": "Trigger (take profit or stop loss) order.",
"properties": {
"isMarket": {
"description": "true to execute as a market order when triggered.",
"type": "boolean"
},
"tpsl": {
"description": "\"tp\" for take profit, \"sl\" for stop loss.",
"enum": [
"tp",
"sl"
],
"type": "string"
},
"triggerPx": {
"description": "Trigger price as a decimal string.",
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?$",
"type": "string"
}
},
"required": [
"isMarket",
"triggerPx",
"tpsl"
],
"type": "object"
}
},
"required": [
"trigger"
],