Trading
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.
The trading action to perform.
Successful response. Shape depends on action.
Transaction details for the withdrawal.
Bad request (missing fields, invalid parameters, insufficient balance, etc.).
Stack not found.
Conflict (rebalance already in progress).
Internal server error.
POST /api/txn.php?action=swap HTTP/1.1
Host: api.indexify.finance
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"stack_id": 1,
"amount": 1,
"cue": "fromUSDC"
}{
"order_id": "text"
}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.
The order action to perform. Defaults to details.
detailsPossible values: Successful response. Shape depends on action.
Bad request (missing order_id, invalid slippage, invalid action, etc.).
Order not found or not owned by the authenticated user.
Internal server error.
POST /api/orders.php HTTP/1.1
Host: api.indexify.finance
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"order_id": "text"
}{
"order": {
"order_id": "text",
"status": "PENDING",
"type": "fromUSDC",
"created_at": "text",
"partial_completion_action": "text"
},
"transactions": [
{
"order_id": "text",
"success": true,
"txn_hash": "text"
}
],
"transaction_count": 1
}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.
Pagination offset.
0Number of orders to return.
100Paginated list of user orders.
Invalid pagination parameters.
Internal server error.
POST /api/user_orders.php HTTP/1.1
Host: api.indexify.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"orders": [
{
"order_id": "text",
"stack_id": 1,
"type": "fromUSDC",
"status": "PENDING",
"created_at": "text",
"parent_order_id": "text",
"retry_attempt": 1,
"partial_completion_action": "text",
"stack_name": "text",
"stack_symbol": "text"
}
],
"pagination": {
"offset": 1,
"limit": 1,
"total_count": 1,
"has_more": true,
"has_previous": true,
"page": 1,
"per_page": 1,
"total_pages": 1
}
}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.
ID of the stack to query.
Pagination offset.
0Number of orders to return.
100Paginated list of outstanding partial orders.
Missing or invalid stack_id, invalid pagination parameters.
Stack not found.
Internal server error.
POST /api/stack_partial_orders.php?stack_id=1 HTTP/1.1
Host: api.indexify.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"stack": {
"id": 1,
"stack_name": "text",
"stack_token_name": "text"
},
"outstanding_partial_orders": [
{
"order_id": "text",
"user_id": 1,
"stack_id": 1,
"type": "text",
"status": "text",
"usdc_amount": 1,
"creator_fee": 1,
"platform_fee": 1,
"expected_amount": 1,
"created_at": "text",
"parent_order_id": "text",
"retry_attempt": 1,
"partial_completion_action": "text",
"username": "text"
}
],
"pagination": {
"offset": 1,
"limit": 1,
"total_count": 1,
"has_more": true,
"has_previous": true,
"page": 1,
"per_page": 1,
"total_pages": 1
}
}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.
The history action to perform.
listPossible values: Pagination offset (action=list only).
0Number of transactions to return (action=list only).
20Filter by transaction type (action=list only).
Filter by transaction status (action=list only).
Filter by stack ID (action=list only). Cannot be combined with token_address.
Filter by token address (action=list only). Cannot be combined with stack_id.
Order ID to look up (action=detail only, required for detail).
Successful response. Shape depends on action.
Bad request (invalid filters, missing order_id for detail, conflicting filters).
Transaction not found (action=detail).
Method not allowed (only GET is accepted).
GET /api/transaction_history.php HTTP/1.1
Host: api.indexify.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"transactions": [
{
"order_id": "text",
"stack_id": 1,
"transaction_type": "buy",
"status": "PENDING",
"usdc_amount": 1,
"expected_amount": 1,
"sell_percentage": 1,
"slippage": 1,
"creator_fee": 1,
"platform_fee": 1,
"created_at": "text",
"updated_at": "text",
"parent_order_id": "text",
"retry_attempt": 1,
"partial_completion_action": "text",
"is_company_stack": true,
"asset": {
"type": "text",
"name": "text",
"slug": "text",
"symbol": "text",
"address": "text",
"image_url": "text",
"archived": true
},
"tokens": [
{}
],
"transaction_hash": "text",
"from_wallet": "text",
"to_wallet": "text",
"block_slot": 1
}
],
"pagination": {
"offset": 1,
"limit": 1,
"total_count": 1,
"has_more": true,
"has_previous": true,
"page": 1,
"total_pages": 1
}
}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.
The fee action to perform.
Successful response. Shape depends on action.
Bad request (missing amount, invalid stack ID, amount below minimum).
Internal server error.
POST /api/fee.php?action=calculate HTTP/1.1
Host: api.indexify.finance
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"amount": 1,
"stack_id": 1
}{
"fee_display": "text",
"estimated_blockchain_fees_saved": "text"
}Last updated

