Buy at price
buy_at_pricePlan a buy of a stock token on Robinhood Chain for wallet that waits for a price: when the pool price goes trigger below or above price_usd, keyfo prepares a buy of usd or eth and a sign link. Nothing is bought or signed now. The plan starts after the wallet’s owner confirms it at https://keyfo.xyz/app. The price is the pool’s 5-minute median from at least 5 samples, and the level must hold for about 3 minutes. Only pools with at least $250000 of depth qualify, and no buy is prepared if the route costs more than 3% above the median. The owner then has 6 hours to sign. It is not a limit order: the buy goes at the market price when it is signed. One time by default; with repeat, it waits again after each buy. Limits as for scheduled buys: 5 plans per wallet, $500 per buy, $1000 a week.
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": {
"token": "<token>",
"wallet": "<wallet>",
"trigger": "<trigger>",
"price_usd": "<price_usd>"
},
"name": "buy_at_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eth | No | ETH to spend on the buy. Give usd or eth, not both. | |
| usd | No | Dollars of ETH to spend on the buy, at the ETH price when it is prepared. Up to 500. | |
| token | Yes | Ticker, like NVDA, or the token address. | |
| repeat | No | true waits for the price again after each buy. Default: false, one buy. | |
| wallet | Yes | The wallet that buys and signs. Its owner confirms the plan at https://keyfo.xyz/app. | |
| trigger | Yes | below or above: buy when the pool price drops below or rises above price_usd. | |
| price_usd | Yes | The price in dollars that starts the buy, like 160. |