Compare quotes and costs across exchanges
compare_venue_pricesUse to choose where to trade one perpetual futures coin: bid, ask, spread, trading fee (your account's rate or the published one) and 7-day execution, per exchange. With side (and size_base or notional_usd): ranked by price plus taker fee plus a cost for poor execution; hold_hours adds funding, exit fee. cheapest_venue: cheapest overall; best_venue: cheapest you can trade on now (connected, allowed, enough margin); if they differ, say both. Not for one venue's depth (use get_order_book). No rebates. Next: preview_order with best_venue, or venue "best".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Optional: rank by the all-in price for this side (the price you would take plus the venue's taker fee) | |
| symbol | Yes | Base coin, e.g. BTC | |
| leverage | No | For the margin needed, e.g. 5 | |
| size_base | No | Optional, with side: size in the base coin, to see each venue's cost in USD and whether your free margin there covers it | |
| hold_hours | No | Optional, with side: how long you expect to hold, in hours; adds funding at today's rate and the exit fee, and ranks by that total cost | |
| notional_usd | No | Or the size in USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | When this comparison was made, ISO 8601 UTC | |
| symbol | Yes | Base coin | |
| venues | Yes | One entry per venue that lists the coin, in ranking order | |
| best_venue | No | With side: the cheapest all-in venue you can use (connected, allowed, enough margin); without an account, the cheapest overall; null if none | |
| neutrality | Yes | Commercial relationships that could affect the order (none) | |
| deprecation | No | Present only while this tool is deprecated: replacement, removal_date, changelog | |
| ranking_basis | Yes | How the list is ordered | |
| best_ask_venue | Yes | Fresh venue with the lowest ask (best to buy) | |
| best_bid_venue | Yes | Fresh venue with the highest bid (best to sell) | |
| cheapest_venue | No | With side: the cheapest all-in real venue, whether or not you can use it (fresh quotes only); null if none |