Get Open Orders
Get all open (not filled or canceled) orders for a user by specified parameters.
Request
Method:
GET ./api/v2/openbook/open-orders/{market}
Parameters:
market
string
Smart contract address/symbol of the market.
address
string
OPTIONAL. Trading account address to be fetched. Leave blank for all accounts.
openOrdersAddress
string
OPTIONAL. Open orders address to be fetched.
contracts
string
OPTIONAL. Specify which future contract to fetch position details. Ex. "SOL_PERP"
. Default "ALL"
limit
number
OPTIONAL. The maximum number of orders to fetch. Use "0" for no limits. Default "0"
.
Note that only one of address
or openOrdersAddress
should be specified. If you specify an address
, all open orders addresses associated with your address and the specified market will be fetched, which can be a time-consuming lookup.
Request example:
Response:
Fields:
orders
See Orders below.
project
Name of the DEX project.
Orders:
orderID
Unique order ID
market
Market of the order.
side
Side of order: βBID
β or βASK
β
types
Types of order, βLIMIT
β, "IOC
", "POSTONLY
"
price
The price of the order.
size
Original size of the order.
remainingSize
Size of order not yet filled.
createdAt
Timestamp when the fill was created.
status
Order status
Example:
Last updated