Open an order
create_orderOpens a REAL order. Minimum: $3 USD equivalent (USDT and USDC amounts are checked here; partner routes can set a higher minimum, and the API then says so). This tool moves no money: it returns depositAddress and amountIn, and the user sends exactly that from their own wallet. Give status_link to the user so they can follow the order. Show the plan (asset, amount, destination, expected amountOut from get_quote) and get the user's yes first. There is no sandbox: do not call this in tests or as a check. With a Float API key, pass idempotencyKey (a new UUID per order; reuse it only to retry the same order). Without a key, Float attributes the order only if ref is set. Never ask the user for a key to use this tool.
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": {
"direction": "<direction>",
"amount": "<amount>",
"destination": "<destination>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | direction out: the asset the user receives. A symbol from list_assets. | |
| ref | No | Optional referral code for attribution. | |
| from | No | direction in: the asset the user sends. A symbol from list_assets. | |
| venue | No | Open at this partner, as returned by get_quote. Refused rather than swapped if it no longer quotes the pair. | |
| amount | Yes | Decimal string. in: amount of from. out: amount of CC. | |
| network | No | Chain of the non-CC asset, when the asset has several. Leave out for the default chain. | |
| rateType | No | float = market rate (recommended, and the default here). fixed = locked rate. | |
| direction | Yes | in: the user sends an asset and receives CC (Get CC). out: the user sends CC and receives an asset (Withdraw CC). Default in. | |
| destination | Yes | in (Get CC): the user's Canton party ID, name::1220... out (Withdraw CC): an address on the asset's chain. Cannot be changed later. | |
| refundParty | No | direction out only, recommended: the user's own Canton party. Automatic refunds of the CC go there. | |
| refundAddress | No | direction in only: the user's address on the source chain. Needed when get_quote says needsRefundAddress. | |
| idempotencyKey | No | Required with a Float API key: 1 to 255 visible characters, a new UUID per order. Refused without a key. | |
| destinationExtraId | No | direction out only: the payout address's destination tag or memo, when that chain needs one. |