# Quantura Forecasting and Time-Series Data (`quantura/my-actor`) Actor

Search markets and public datasets, download time-series history, request probabilistic forecasts and ask Scout through Quantura. Uses your own paid or trial Quantura API key. $0.01 per successful MCP request; Quantura hosted usage is billed separately.

- **URL**: https://apify.com/quantura/my-actor.md
- **Developed by:** [Tamzid Ullah](https://apify.com/quantura) (community)
- **Features:** Full permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 successful quantura mcp requests

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Quantura Forecasting and Time-Series Data

Run one operation against Quantura's native MCP endpoint in an isolated Apify
Actor. Search supported markets and public datasets, describe a series, download
history, discover models, create or inspect probabilistic forecasts, verify a
forecast, inspect your access or ask Scout. Available sources, tools and model
participation are determined by Quantura's live catalog and your account.

### Pricing and access

Intended Store price: **$0.01 per successful MCP request**, including listing
tools. Set this paid event in Apify's Publishing/Monetization settings before
running or publishing. The source JSON alone does not activate pricing. The
Actor refuses to run when pay-per-event monetization is absent or the run
budget cannot cover a request. Apify's displayed pricing is authoritative.

This fee does **not** include Quantura service credits. Tool execution requires
your own Quantura API key on a paid plan or active trial. Quantura's billing,
data licensing, account access and rate limits apply independently. No shared
seller/admin credential is installed. Do not place keys in tool arguments.

### Use

Start with `{"action":"list_tools"}` to obtain current tool names and schemas.
Then choose `call_tool`, fill `tool` and its JSON `arguments`, and enter your
personal key in the encrypted `apiKey` field. Example:

```json
{
  "action": "call_tool",
  "tool": "quantura_search_markets",
  "arguments": {"query": "weather"}
}
```

Enter the key separately in the Console's secret input. For API automation,
follow Apify's secret-input guidance; never place keys in URLs or public logs.
For forecast creation and Scout, enable `confirmEffects`. Forecast creation
also requires a stable `idempotency_key` in its arguments. Forecast jobs are
asynchronous: inspect the returned job with `quantura_get_forecast` in a later
run. One run never polls or secretly launches additional forecasts.

### Outputs and failure handling

`OUTPUT` in the private run key-value store and one dataset row contain the
action, tool and unmodified MCP result. Arguments and credentials are not
logged or copied into the output. Search and forecast content can be sensitive;
keep your run/storage private and manage retention in Apify.

Only the fixed HTTPS Quantura origin is contacted; redirects are refused,
responses are limited to 8 MiB and the network timeout is 60 seconds. There are
no automatic retries. A timeout can leave a mutation accepted by Quantura:
inspect the forecast/job or idempotency key before restarting. `OUTPUT` is
checkpointed before charging. If billing or storage fails afterward, inspect
that checkpoint rather than repeating a mutation. Do not resurrect a failed
mutation run without checking the upstream state.

### Development

Python 3.13; Apify SDK 4.1.0. Run `python -m unittest discover -s tests -v`
from this directory. CPU tests exercise the real validation, client and Actor
control flow using isolated HTTP/SDK boundaries. They do not prove Store
approval, checkout, paid forecasts or customer billing. Build the Dockerfile
on Apify and smoke-test the paid tool catalog before publishing.

The Actor is a normal run-based connector, not a permanently hosted MCP proxy.
For direct Streamable HTTP and OAuth use `https://quantura.studio/mcp`.

Docs: https://quantura.mintlify.app · Pricing: https://quantura.studio/pricing
· Terms: https://quantura.studio/terms · Privacy: https://quantura.studio/privacy

Original connector code is MIT-licensed (see LICENSE). Hosted services,
third-party datasets, model licenses and Quantura branding are not licensed by
that software grant. Forecasts are uncertain estimates, not investment advice
or promised returns.

# Actor input Schema

## `action` (type: `string`):

List tools or execute one tool. Each successful request is a paid event.

## `tool` (type: `string`):

Exact name from list_tools; leave empty for listing.

## `arguments` (type: `object`):

JSON arguments matching the live tool schema. Do not put credentials here.

## `apiKey` (type: `string`):

Your own paid or trial account key, required for tool execution. Never use a shared administrator key.

## `confirmEffects` (type: `boolean`):

Required for forecast creation and Scout. These can save data or use separately billed Quantura compute.

## Actor input object example

```json
{
  "action": "list_tools",
  "tool": "",
  "arguments": {},
  "confirmEffects": false
}
```

# Actor output Schema

## `results` (type: `string`):

The action, tool, unmodified MCP result and confirmed event-billing status.

## `checkpoint` (type: `string`):

OUTPUT is saved before charging. If billing fails, its pending status helps avoid repeating an accepted mutation.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("quantura/my-actor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("quantura/my-actor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call quantura/my-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,quantura/my-actor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0gkyEn5Lu6Gygo73x/builds/YaDKZpX5ztsLiKmfZ/openapi.json
