# Initiating an auction

A rebalancing auction is started when the basket publisher calls the `publishNewIndex` function on the basket contract.&#x20;

This function takes the following arguments:

<table data-header-hidden><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden></th></tr></thead><tbody><tr><td><code>_tokens</code></td><td>an array of token addresses</td><td></td><td></td></tr><tr><td><code>_weights</code></td><td>an array of weights. The weight is the amount of a given token for each </td><td></td><td></td></tr><tr><td><code>_minIbRatio</code></td><td>the minimum ibRatio that will be required after a successful rebalance</td><td></td><td></td></tr></tbody></table>

{% hint style="info" %}
The **ibRatio** (index to basket ratio) is a parameter that tracks the amount of each token in the basket over time.&#x20;

Number of tokens\[i] in 1 basket token = weights\[i] \* ibRatio

The ibRatio is 1 at basket creation.

The ibRatio will decrease when fees are collected.

The ibRatio can increase if rebalancing auctions are favorable to basket token holders\ <br>
{% endhint %}

The first time the publisher calls `publishNewIndex` , the new index will be queued for a 24 hour timelock. After the required time has elapsed, the publisher will be able to call `publishNewIndex` again to start the auction.


---

# 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://kuiper.gitbook.io/kuiper-docs/protocol/rebalancing-auctions/initiating-an-auction.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.
