Skip to main content
POST
Estimate market order (deprecated)

Authorizations

X-Api-Key
string
header
default:sb_test_your_key
required

API credential. Withdrawal quote and submit operations additionally require the documented Ed25519 timestamp, nonce, and signature headers.

Body

application/json

Pair, buy or sell side, and base-currency quantity as a decimal string. business_bps is an optional display spread.

Request for execution pricing with an optional partner presentation spread.

pair_id
string
required

Trading pair identifier.

Example:

"USD/NGN"

quantity
string
required

Quantity in base currency.

Example:

"100.00"

side
string
required

Order side: "buy" consumes asks and "sell" consumes bids.

Example:

"buy"

business_bps
integer<int32> | null

Optional partner spread applied to the estimated execution price for a client quote. This does not alter Stabyl execution or fees.

Required range: 0 <= x <= 10000
Example:

25

Response

Market-order estimate with executable quote

data
object
required

Existing estimate fields plus an account-owned, executable protected quote.

status
enum<string>
required
Available options:
success