Skip to main content
GET
/
v1
/
orders
List orders
curl --request GET \
  --url https://api.foresight.now/v1/orders \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "order_hash": "<string>",
      "condition_id": "<string>",
      "chain_id": 56,
      "price": "<string>",
      "size": "<string>",
      "remaining_size": "<string>",
      "token_id": "<string>",
      "fee_rate_bps": 123,
      "expiration": "<string>",
      "book_added_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "next_cursor": "<string>",
  "has_more": true
}

Authorizations

Authorization
string
header
required

Privy-issued JWT. Required for L1 routes; accepted on L2 routes.

Query Parameters

condition_id
string
chain_id
integer
Example:

56

status
enum<string>
default:open

open = OPEN + PARTIALLY_FILLED. filled = MATCHED + FILLED. cancelled = CANCELLED + EXPIRED + MATCH_FAILED. all skips the filter.

Available options:
open,
filled,
cancelled,
all
cursor
string | null

Opaque cursor from the prior response's next_cursor.

limit
integer
default:20
Required range: 1 <= x <= 100

Response

OK

data
object[]
required
next_cursor
string | null
required
has_more
boolean
required