Skip to Content
Indexify
Trading

List outstanding partial orders for a stack

POST
/api/stack_partial_orders.php

Returns a paginated list of the authenticated user's outstanding partial orders (status=PARTIAL, partial_completion_action=pending) for a given stack.

Authorization

ApiKeyAuth
headerX-API-KEY<token>

API key with the ix_ prefix. You can generate an API Key by navigating to Settings -> API Key in the web app. Pass it in the X-API-KEY header on every request.

Query Parameters

stack_id*integer

ID of the stack to query.

offset?integer

Pagination offset.

Range0 <= value
Default0
limit?integer

Number of orders to return.

Range1 <= value <= 100
Default100

Response Body

Paginated list of outstanding partial orders.

application/json
  1. response
stack?
outstanding_partial_orders?array<>
pagination?
Example Request
curl -X POST 'https://api.indexify.finance/api/stack_partial_orders.php?stack_id=0'
Example Response
{  "stack": {    "id": 0,    "stack_name": "string",    "stack_token_name": "string"  },  "outstanding_partial_orders": [    {      "order_id": "string",      "user_id": 0,      "stack_id": 0,      "type": "string",      "status": "string",      "usdc_amount": 0,      "creator_fee": 0,      "platform_fee": 0,      "expected_amount": 0,      "created_at": "string",      "parent_order_id": "string",      "retry_attempt": 0,      "partial_completion_action": "string",      "username": "string"    }  ],  "pagination": {    "offset": 0,    "limit": 0,    "total_count": 0,    "has_more": true,    "has_previous": true,    "page": 0,    "per_page": 0,    "total_pages": 0  }}