Build a limit order
build_limit_orderA limit order on 1inch's book: sell sell_amount of sell_token for at least buy_amount of buy_token, until it expires (default 7 days). Returns any transactions first needed (an ETH wrap, an approval for 1inch's protocol covering the wallet's open orders and this one) and the order's EIP-712 typedData: send the transactions, sign typedData with the wallet, then call place_limit_order. 1inch takes its fee from a fill; Scrooge takes none.
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": {
"sell_token": "<sell_token>",
"buy_token": "<buy_token>",
"sell_amount": "<sell_amount>",
"buy_amount": "<buy_amount>",
"wallet": "<wallet>"
},
"name": "build_limit_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | The wallet that makes the order and signs it | |
| buy_token | Yes | What is bought: a symbol (ETH, USDG, SCROOGE, NVDA…) or a contract address on Robinhood Chain | |
| buy_amount | Yes | The least bought for all of it, as a decimal number such as 0.5 | |
| sell_token | Yes | What is sold: a symbol (ETH, USDG, SCROOGE, NVDA…) or a contract address on Robinhood Chain | |
| sell_amount | Yes | How much is sold, as a decimal number such as 0.5 | |
| expires_in_hours | No | Optional: hours until it expires (default 168, a week) |