# Trade Efficiently - Introducing The API Tool

### What Is The Prodigy.Fi API Tool? <a href="#what-is-the-prodigy.fi-cli-tool" id="what-is-the-prodigy.fi-cli-tool"></a>

The Prodigy.Fi API is a programmatic interface that lets developers, traders, and protocols interact with Prodigy.Fi's structured yield vaults directly from the command line, without touching the UI.

Use it to deploy vaults at scale, subscribe to existing vaults, automate recurring strategies, and integrate Prodigy.Fi into your own systems.

#### What You Can Do <a href="#what-does-it-do" id="what-does-it-do"></a>

* **Create vaults:** Deploy structured yield vaults with custom parameters in bulk via a CSV configuration file.
* **Subscribe to vaults:** Subscribe to any active vault programmatically using a single terminal command.
* **Automate strategies:** Run batch vault creation and subscription logic inside trading bots or scheduled jobs.
* **Integrate with your stack:** Embed vault management into protocols, dashboards, or execution pipelines.

#### How It Works?

The API uses two configuration files:

| File                | Purpose                                                                          |
| ------------------- | -------------------------------------------------------------------------------- |
| `config.json`       | Wallet credentials, encrypted keystore, and network (RPC) settings               |
| `create-vaults.csv` | Vault parameters: token pair, direction, linked price, yield %, expiry, quantity |

Once configured, a single command deploys all vaults defined in your CSV, or subscribes you to a specified vault address on-chain.

#### Who Is It For? <a href="#who-is-it-for" id="who-is-it-for"></a>

* **Algorithmic traders & trading bots:** Automate vault creation or subscription as part of a broader execution strategy. Define your parameters in the CSV, trigger via cron or bot logic, and let the API handle on-chain interaction.
* **Market makers:** Deploy and refresh vaults frequently in response to market conditions, without manual UI interaction. Batch creation means you can update your entire position set in a single run.
* **Protocols integrating with Prodigy.Fi:** Embed vault management into your own platform. Use the API as a reference for how to interact with our contracts, or run it as a subprocess within your backend.
* **Power users:** If you trade frequently and manage multiple vaults, the API eliminates repetitive UI steps and lets you version-control your strategies.

***

### Quick Start <a href="#why-use-the-cli" id="why-use-the-cli"></a>

{% columns fullWidth="false" %}
{% column %}
{% content-ref url="/pages/8THZyCzUmc64H1aYt8LR" %}
[Vault Creation - API Guide](/structured-yields/build-with-prodigy.fi/trade-efficiently-introducing-the-api-tool/vault-creation-api-guide.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
{% content-ref url="/pages/hwEg9nqPmVyFcSmACuNK" %}
[Vault Subscription - API Guide](/structured-yields/build-with-prodigy.fi/trade-efficiently-introducing-the-api-tool/vault-subscription-api-guide.md)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}

**Repository:** [github.com/prodigyfi/dci-cli](https://github.com/prodigyfi/dci-cli)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://prodigyfi.gitbook.io/structured-yields/build-with-prodigy.fi/trade-efficiently-introducing-the-api-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
