---
updatedAt: 2026-07-29T18:39:55.000Z
---

Fetch the complete documentation index at: https://docs.noves.fi/llms.txt. Use this file to discover all available pages before exploring further.

# Forecast daily CC traffic purchases

Returns daily traffic-purchase history and a forecast of up to 365 days when enough history is available.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "Canton Data App API",
    "description": "Self-hosted API for the Noves Canton Data App. Each deployment exposes this API from the customer environment; requests are permission-aware and resolved against the connected Canton participant.",
    "version": "v4"
  },
  "paths": {
    "/api/v2/dashboard/{party}/traffic/forecast": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Forecast daily CC traffic purchases",
        "description": "Returns daily traffic-purchase history and a forecast of up to 365 days when enough history is available.",
        "parameters": [
          {
            "name": "party",
            "in": "path",
            "description": "Canton party identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "forecastHorizon",
            "in": "query",
            "description": "Forecast days. Defaults to 30 and is limited to 1–365.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "description": "Timezone used to group results by day. Defaults to UTC.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Start of the requested period, included in results.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the requested period, excluded from results.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "jwt",
            "in": "header",
            "description": "Ledger API JWT used to resolve the caller's party permissions.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "jwt",
            "in": "query",
            "description": "Ledger API JWT alternative to the jwt header.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nodeId",
            "in": "query",
            "description": "Configured validator-node identifier; defaults to the deployment default.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nodeId",
            "in": "header",
            "description": "Configured validator-node identifier alternative to the nodeId query parameter.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CantonDataApp.Api.DashboardTrafficForecastResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CantonDataApp.Api.ApiErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CantonDataApp.Api.ApiErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CantonDataApp.Api.ApiErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CantonDataApp.Api.ApiErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CantonDataApp.Api.ApiErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service is still starting",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CantonDataApp.Database.StartupStatusResponse"
                    },
                    {
                      "$ref": "#/components/schemas/CantonDataApp.Api.QuarantinedNodeResponse"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CantonDataApp.Api.ApiErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardForecastPointResponse": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "nullable": true
          },
          "amountCc": {
            "type": "string",
            "nullable": true
          },
          "amountCcLower": {
            "type": "string",
            "nullable": true
          },
          "amountCcUpper": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardForecastResponse": {
        "type": "object",
        "properties": {
          "granularity": {
            "type": "string",
            "nullable": true
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CantonDataApp.Api.DashboardForecastPointResponse"
            },
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/CantonDataApp.Api.DashboardForecastSummaryResponse"
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardForecastSummaryResponse": {
        "type": "object",
        "properties": {
          "totalProjectedCc": {
            "type": "string",
            "nullable": true
          },
          "averageDailyCc": {
            "type": "string",
            "nullable": true
          },
          "trendDirection": {
            "type": "string",
            "nullable": true
          },
          "trendChangePercent": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardTrafficForecastResponse": {
        "type": "object",
        "properties": {
          "historical": {
            "$ref": "#/components/schemas/CantonDataApp.Api.DashboardTrafficHistoryResponse"
          },
          "forecast": {
            "$ref": "#/components/schemas/CantonDataApp.Api.DashboardForecastResponse"
          },
          "forecastUnavailableReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardTrafficHistoryPointResponse": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "nullable": true
          },
          "amountCc": {
            "type": "string",
            "nullable": true
          },
          "trafficUnits": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardTrafficHistoryResponse": {
        "type": "object",
        "properties": {
          "granularity": {
            "type": "string",
            "nullable": true
          },
          "series": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CantonDataApp.Api.DashboardTrafficHistoryPointResponse"
            },
            "nullable": true
          },
          "statistics": {
            "$ref": "#/components/schemas/CantonDataApp.Api.DashboardTrafficHistoryStatisticsResponse"
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.DashboardTrafficHistoryStatisticsResponse": {
        "type": "object",
        "properties": {
          "averageDailyCc": {
            "type": "string",
            "nullable": true
          },
          "totalCc": {
            "type": "string",
            "nullable": true
          },
          "trendSlope": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Api.QuarantinedNodeResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "nullable": true
          },
          "nodeId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "network": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Database.ReplayNodeStatus": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "nullable": true
          },
          "currentOffset": {
            "type": "integer",
            "format": "int64"
          },
          "targetOffset": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Database.StartupReplayResponse": {
        "type": "object",
        "properties": {
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CantonDataApp.Database.ReplayNodeStatus"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CantonDataApp.Database.StartupStatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "phase": {
            "type": "string",
            "nullable": true
          },
          "phaseNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPhases": {
            "type": "integer",
            "format": "int32"
          },
          "startedAt": {
            "type": "string",
            "nullable": true
          },
          "elapsedSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "schemaVersion": {
            "type": "string",
            "nullable": true
          },
          "targetSchemaVersion": {
            "type": "string",
            "nullable": true
          },
          "bootstrapSource": {
            "type": "string",
            "nullable": true
          },
          "bootstrapVersion": {
            "type": "string",
            "nullable": true
          },
          "pendingMigrations": {
            "type": "integer",
            "format": "int32"
          },
          "lastMigrationDurationMs": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "dataMigrations": {
            "type": "array",
            "items": {},
            "nullable": true
          },
          "replay": {
            "$ref": "#/components/schemas/CantonDataApp.Database.StartupReplayResponse"
          }
        },
        "additionalProperties": false
      },
      "Microsoft.AspNetCore.Mvc.ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      }
    }
  },
  "tags": [
    {
      "name": "Dashboard"
    }
  ]
}
```