broker_quote_swap
Exchange one cryptocurrency for another between your Bit2Me pockets by generating a proforma quote. Provide the source pocket, destination pocket, and amount, then confirm the quote to complete the swap.
Instructions
STEP 1: Swap/exchange one cryptocurrency for another between pockets. Creates a proforma quote. Use wallet_get_pockets to find pocket IDs. REQUIRES subsequent confirmation with broker_confirm_quote. [PRIVATE]
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": {
"origin_pocket_id": "<origin_pocket_id>",
"destination_pocket_id": "<destination_pocket_id>",
"amount": "<amount>"
},
"name": "broker_quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt | No | Optional session token for authentication. API keys are recommended for most use cases. | |
| amount | Yes | Amount to swap from origin pocket (in origin cryptocurrency) | |
| idempotency_key | No | Stable key for this logical action (UUID recommended). Reuse the same value when retrying after a timeout so Bit2Me does not execute twice. Auto-generated if omitted. | |
| origin_pocket_id | Yes | Source pocket UUID containing cryptocurrency to swap (e.g., BTC pocket) | |
| destination_pocket_id | Yes | Target pocket UUID to receive different cryptocurrency (e.g., ETH pocket) |