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.
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" |