API ReferenceChangelog
Log In
API Reference

Endpoint for submitting orders in a market.

Body Params

Order create input data

string
required

Specifies if this is a buy or sell order.

int64

If type = market and action = buy, buy_max_cost represents the maximum cents that can be spent to acquire a position.

string
required
int32
required

Number of contracts to be bought or sold.

int64

Expiration time of the order, in unix seconds.

If this is not supplied, the order won't expire until explicitly cancelled.
This is also known as Good 'Till Cancelled (GTC).

If the time is in the past, the order will attempt to partially or completely fill
and the remaining unfilled quantity will be cancelled. This is also known as Immediate-or-Cancel (IOC).

If the time is in the future, the remaining unfilled quantity order will expire
at the specified time.

int64

Submitting price of the No side of the trade, in cents.
Exactly one of yes_price and no_price must be passed. If both prices are passed, return 400.

boolean

If this flag is set to true, an order will be rejected if it crosses the spread and executes.

int32

SellPositionFloor will not let you flip position for a market order if set to 0.

string
required

Specifies if this is a 'yes' or 'no' order.

string
required

The ticker of the market the order will be placed in.

string
required

Specifies if this is a "market" or a "limit" order.
Note that either the Yes Price or the No Price must be provided for limit orders.

int64

Submitting price of the Yes side of the trade, in cents.
Exactly one of yes_price and no_price must be passed. If both prices are passed, return 400.

Response

Language
Choose an example:
application/json