Aggregation Tasks

Get Aggregation Task

  • Method: GET

  • Endpoint: /api/v1/crypto/aggregation-tasks/:id

  • Headers:

    • Cookie: The session cookie value.

    • csrf_token: The CSRF token obtained after login.

  • Path Variables:

    • id: (string) The identifier of the aggregation task.

Description:

This endpoint is used to retrieve the status and context of an asynchronous aggregation task by its unique identifier. It provides the current status of the task, including whether it has been completed, is still in progress, or has encountered any errors.

Example with curl:

curl -X GET "http://example.com/api/v1/crypto/aggregation-tasks/1" \
     -H "Cookie: session_cookie_value"  \
     -H "csrf_token: your_csrf_token_here"

Example Response Payload:

{
    "data": {
        "id": "1",
        "type": "CANDLES_DISCRETE_AGGREGATION",
        "status": "COMPLETED",
        "context": {
            "symbols": ["BTC/USDT"],
            "exchangeNames": ["Binance", "Bybit", "OKX"],
            "rangeDateStart": "2024-04-01 08:38:37",
            "rangeDateEnd": "2024-04-01 23:38:34",
            "timeframeMinutes": 60
        },
        "error": null,
        "createdAt": "2024-04-04T08:30:10.141Z",
        "updatedAt": "2024-04-04T08:30:10.333Z"
    },
    "status": 1
}

Last updated