GetExecutableOrders
Returns pending orders in a market that would be eligible to execute if the market traded at price. Useful for previewing available counterparty liquidity at a hypothetical price before submitting a trade.
An order counts as executable when it's a position-opening order on the LONG side with threshold_price >= price, a position-opening order on the SHORT side with threshold_price <= price, or a reduce-only order (a manual reduce, or a stop-loss/take-profit that has already triggered). Only PENDING, PARTIALLY_FILLED, and PARTIALLY_MERGED orders are considered.
Results are ordered by threshold_price descending, then timestamp descending.
Request
- Base URLhttps://api.fairground.fi
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Define the version of the Connect protocol. If omitted, use 1.
Define the timeout, in ms
Request body
Response
Success
Example response
{
"orders": [
{
"timestamp": "2023-01-15T01:30:15.01Z"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.