Prepare: buy a stock
buy_stockUnsigned transactions for a plain spot buy: the wallet's USDG buys a stock token on Uniswap, through the stock's own pools (the ones Borro's short desk trades on), and the token arrives in the wallet. No loan, no leverage, no Borro contract; supply lends it afterwards if it should earn lending fees. Exact in: all the USDG is spent and at least the quote less slip_bps arrives, or nothing is spent. Borro's fee, the same as the site's Buy tab takes, comes out of the USDG inside the swap (fee_usdg and fee_bps in the quote). Exact approvals first when they are missing: USDG to Permit2 (Uniswap's approval contract), then Permit2's allowance for Uniswap's Universal Router, which lapses after 30 minutes. Priced now; simulated from the wallet in order.
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": {
"wallet": "<wallet>",
"symbol": "<symbol>",
"usdg": "<usdg>"
},
"name": "buy_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usdg | Yes | USDG to spend, all of it, in whole units as a decimal string, like "1.5" | |
| symbol | Yes | A stock on Borro by its ticker, like NVDA or AAPL (markets lists every one) | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign | |
| slip_bps | No | Most the price may move against the quote, in hundredths of a percent (default 50, 0.5%) |