Skip to main content
GET
/
v1
/
prediction-market
/
markets
/
{ticker}
/
quote
Get Quote
curl --request GET \
  --url https://swap-api.flux.fun/v1/prediction-market/markets/{ticker}/quote \
  --header 'x-api-key: <api-key>'
{
  "fillable": true,
  "contracts": 100,
  "cost": 4500,
  "costDollars": "45.00",
  "fee": 150,
  "feeDollars": "1.50"
}

Authorizations

x-api-key
string
header
required

Path Parameters

ticker
string
required

The market ticker symbol

Query Parameters

action
enum<string>

Whether to buy or sell (default: buy)

Available options:
buy,
sell
contracts
number
required

Number of contracts to quote

side
enum<string>
required

Which side of the market (yes or no)

Available options:
yes,
no

Response

200 - application/json
fillable
boolean
required

Whether the quote is fillable

Example:

true

contracts
number
required

Number of contracts

Example:

100

cost
number
required

Cost in cents

Example:

4500

costDollars
string
required

Cost in dollars

Example:

"45.00"

fee
number
required

Fee in cents

Example:

150

feeDollars
string
required

Fee in dollars

Example:

"1.50"