Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

A Lean API key, sent as Authorization: Bearer <key>. A test key (lean_sk_test_...) simulates orders and fills with no money; a live key (lean_sk_live_...) trades for real within the key's limits. Every successful response says which mode answered in data.livemode.

Body

application/json
from_venue
enum<string>
required

The venue the cash leaves.

Available options:
polymarket,
hyperliquid
to_venue
enum<string>
required

The venue the cash arrives on, credited to this trading account’s own balance there.

Available options:
polymarket,
hyperliquid
amount_usd
string
required

How much leaves from_venue, in dollars, with at most 6 decimal places.

Response

The quote

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required