POST /v1/transfers/quoteshows the fee, what arrives, the minimum and what you can send.POST /v1/transferscreates the transfer.POST /v1/transfers/{id}/executeauthorizes it. Lean then moves the cash.
trade and route scopes. Quoting and reading need
read. See Authentication.
1
Quote the transfer
A quote never moves cash, and it answers even when the amount is below the minimum or above
what is available, so you can show the numbers before you ask. Check
warnings before you
create the transfer.2
Create the transfer
client_transfer_id is your ID for the transfer. Sending the same body again returns the same
transfer, so a retry never moves cash twice. The same ID with a different body is
409 CONFLICT, and details.transfer_id names the original.The transfer starts as awaiting_authorization. A test transfer returns what to sign in
authorization:A live transfer has nothing for you to sign, so its
authorization is null. See
Live transfers.3
Execute the transfer
For a test transfer, sign each If the account has enabled trading in the Lean app, send
typed_data exactly as returned, then send the signatures in
the same order:{ "authorization": "delegated" }
instead and Lean signs with the account’s delegated signer. A live transfer takes
delegated only.The transfer moves to pending, then completed once the cash arrives. Sending the same
request again returns the transfer and moves nothing.Live transfers
A live transfer moves real cash through Relay. Lean signs every step with the account’s delegated signer, so the account must have enabled trading in the Lean app.fee_usdon the quote is Relay’s price at that moment, plus any fee the sending venue charges. Creating the transfer prices the route again, and the transfer keeps that fee.- The minimum is 2 USD. Relay may ask for more on some routes, and the quote then warns
BELOW_VENUE_MINIMUM. - An account moves one transfer at a time. While another live transfer is open, or a Hyperliquid
withdrawal or a transfer started in the Lean app is in progress, creating a live transfer is
refused with
409 CONFLICT. A transfer you created and have not executed counts as open until it is executed or expires. Test keys can hold several open transfers at once, so a client that opens transfers in parallel in test mode should still expect this409live. - A live transfer does not hold
amount_usdonfrom_venue. If the venue no longer has it when you execute, the transfer fails and nothing moves. - Each read of a
pendingtransfer checks Relay and the venues, and the status follows the cash. If a step fails after the cash left, Relay refunds it tofrom_venueandfailure_reasonsays so. If the cash has leftfrom_venuebut has neither arrived nor been refunded, the transfer stayspendingandfailure_reasonsays so. GET /v1/balancesandGET /v1/positionscover Kalshi, Polymarket, Polymarket US and Hyperliquid. Cash moved to Lighter and Lighter positions don’t appear there; check them in the Lean app.
Follow a transfer
GET /v1/transfers/{id} returns one transfer. GET /v1/transfers lists the key’s account’s
transfers, newest first. Pass limit (1 to 100) and the next_cursor from the previous page as
cursor to read further back.
Limits and refusals
A transfer counts against the per order and daily limits of the key and its account like an order, and a paused key or trading account can’t create or execute one. A quote still answers while paused. Executing checks the limits and allowed venues again, so a limit lowered or a venue removed after the transfer was created is refused with 422 and nothing moves. Only the key that created a transfer can execute it; any other key gets 404.In test mode
A test transfer moves simulated cash between the test balances. It costs a flat 0.10 USD, its minimum is 2 USD. Executing answerspending, and the next read or list shows it completed. Reset test mode
deletes the account’s test transfers along with its test orders.