Skip to content

Discover New Orders

Endpoint Information

Endpoint: GET /api/v1/orders/available

Description: Get all available pending orders as a backup method for WebSocket order push

Authentication: API Key credential authentication

Query Parameters

None

Response Parameters

Returns an array of orders, each containing the following fields:

FieldTypeDescription
idstringOrder ID (UUID)
makerstringOrder creator address
principalstringRecipient address
is_buybooleanWhether buy order
tickerstringStock symbol
exchangeintExchange ID
assetstringAsset token address
pricestringPrice (wei unit)
quantitystringQuantity (wei unit)
incentivestringIncentive amount (wei unit)
deadlineintDeadline (Unix timestamp)
nonceintAnti-replay nonce
signaturestringOrder signature
order_hashstringOrder hash
statusstringOrder status (fixed as "pending")
filled_quantitystringFilled quantity (wei unit)
notesstringNotes (optional)
created_atstringCreation time (ISO 8601 format)
updated_atstringUpdate time (ISO 8601 format)

Request Example

bash
curl -X GET "/api/v1/orders/available" \
     -H "X-API-Key: YOUR_API_KEY" \
     -H "Content-Type: application/json"

Response Example

json
{
    "code": 0,
    "data": [
        {
            "id": "550e8400-e29b-41d4-a716-446655440000",
            "maker": "0x1234567890123456789012345678901234567890",
            "principal": "0x1234567890123456789012345678901234567890",
            "is_buy": true,
            "ticker": "AAPL",
            "exchange": 0,
            "asset": "0x09671802Cc9Bbf6402f2e7a07b220Aa7b43D8c91",
            "price": "150250000000000000000",
            "quantity": "10000000000000000000",
            "incentive": "100000000000000000",
            "deadline": 1735660800,
            "nonce": 1,
            "signature": "0xabcdef123456...",
            "order_hash": "0x123456abcdef...",
            "status": "pending",
            "filled_quantity": "0",
            "notes": null,
            "created_at": "2025-01-17T03:00:24Z",
            "updated_at": "2025-01-17T03:00:24Z"
        }
    ]
}

Notes

  • This endpoint returns all orders with pending status
  • Recommend using WebSocket for order push as primary method, use this endpoint as backup polling method
  • Polling interval should be no less than 5 seconds to avoid excessive server load
  • The returned order list may be large, filter as needed