Prepare: open a pair
open_pairUnsigned transactions for a pair trade: buy and lend the long stock in your name (it earns lending fees while held), then short the other, approvals first. 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>",
"long": "<long>",
"short": "<short>",
"long_amount": "<long_amount>",
"short_amount": "<short_amount>"
},
"name": "open_pair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| long | Yes | A stock on Borro by its ticker, like NVDA or AAPL (markets lists every one) | |
| short | 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 | |
| deposit | No | USDG held against the short beyond the sale (optional), in whole units as a decimal string, like "1.5" | |
| long_amount | Yes | Long stock to buy, in whole units as a decimal string, like "1.5" | |
| short_amount | Yes | Stock to short, in whole units as a decimal string, like "1.5" |