Skip to main content
POST
Error

Body

application/json

Trade request

direction
string

Direction is either "buy" or "sell"

price
number

Price is the price you want to buy/sell at (between 0 and 1) (if not provided, will use the market price)

size
string

Size is the amount of USDC you want to spend (for buys) or the amount of shares you want to sell (for sells)

slippage
number

Slippage is the maximum slippage you're willing to accept (between 0 and 100)

token_id
string

TokenID is the ID of the outcome you want to trade

wallet_id
string

WalletID is the ID of the wallet you want to trade with

Response

OK

order_id
string

OrderID is the ID of the order that was created

status
string

Status is the status of the order