Get Order Estimate
Smart Routing Order Estimate
Smart Routing Order Estimate
GET
https://api.sfox.com/v1/offer/:side
Get an estimated execution price for the specified quantity of a given asset using sFOX’s Smart Order Routing, as well as related information. Only use this as an estimate – execution is not guaranteed.
Path Parameters
Name | Type | Description |
---|---|---|
side* | String | Specifies your order side. Options: |
Query Parameters
Name | Type | Description |
---|---|---|
pair | String | The pair or product to trade in the format: (i.e. "btcusd", "ethbtc", "usdteth") Default = |
quantity* | Number | The base currency quantity to buy or sell. |
maxspend | Number | The quote currency amount to spend (side = buy) or receive (side = sell). |
routing_type | String | The sFOX order book used for the estimate Options: |
This response is an estimate, not a quote. Prices fluctuate often, therefore, it is possible that an order submitted after receiving this estimate will execute differently. Real-time order book and ticker data is available through SFOX’s Websocket API.
Response Body
VWAP, Price, Fees, and Total are in the quote currency (e.g. USD for a btcusd pair).
Key | Description | Example |
---|---|---|
| Estimated order limit price to specify when placing this order to receive the estimated fill price at the time of this request. (Quote Currency) | 19203.23787426 |
| If | 19202.05116807 |
| Estimated fees you would pay in quote currency terms for this order. Note: Authentication required to receive a fees estimate | 6.72071791 |
| If | 19208.77188598 |
| The base currency quantity applicable to the estimate. Equal to the | 1 |
| Estimated fill price you would receive at the time of this request. (Quote currency terms) | 19202.05116807 |
| Trading pair / symbol | "btcusd" |
| sFOX order book used for this estimate | "NetPrice" |
Example Request
Last updated