# Fund limits

The API  retrieves detailed financial limits associated with a specified source. It provides insights into various types of limits and balances, offering comprehensive information relevant to financial management and analysis.

**Endpoint**

{% code title="Base URL" overflow="wrap" fullWidth="false" %}

```
https://connects.torusdigital.com/api/v1/funds/
```

{% endcode %}

#### Header Parameters <a href="#header-parameters" id="header-parameters"></a>

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

#### **Request Parameter**

<table><thead><tr><th width="122">Name</th><th width="94">Value</th><th width="157">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td>source</td><td>N</td><td>Y</td><td>Source of the request (e.g., "N")</td></tr></tbody></table>

#### **Request**

{% tabs %}
{% tab title="curl" %}
{% code title="cURL" overflow="wrap" %}

```javascript
curl --location 'https://connects.torusdigital.com/api/v1/funds/' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
    "source": "N"
}'
```

{% endcode %}
{% endtab %}

{% tab title="Java" %}
{% code title="Java-Unirest" fullWidth="false" %}

```java
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/funds/")
  .header("Authorization", "Bearer {{token}}")
  .header("Content-Type", "application/json")
  .body("{\n    \"source\": \"N\"\n}")
  .asString();
```

{% endcode %}
{% endtab %}

{% tab title="Go" %}
{% code title="Go-Native" overflow="wrap" fullWidth="true" %}

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://connects.torusdigital.com/api/v1/funds/"
  method := "POST"
  payload := strings.NewReader(`{
    "source": "N"
  }`)

  client := &http.Client{}
  req, err := http.NewRequest(method, url, payload)
  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "Bearer {{token}}")
  req.Header.Add("Content-Type", "application/json")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code title="JavaScript-jQuery" overflow="wrap" %}

```javascript
var settings = {
  "url": "https://connects.torusdigital.com/api/v1/funds/",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer {{token}}",
    "Content-Type": "application/json"
  },
  "data": JSON.stringify({
    "source": "N"
  }),
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
```

{% endcode %}
{% endtab %}
{% endtabs %}

**Response**

{% tabs %}
{% tab title="200" %}
{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```json
{
    "data": [
        {
            "adhoc_limit": 9999999999,
            "amount_utilized": 19082.53,
            "available_balance": 1070511.46,
            "bank_clear_balance": 0,
            "bank_unclear_balance": 0,
            "collaterals": 0,
            "gross_holding_value": 0,
            "limit_sod": 100000.6,
            "limit_type": "CAPITAL",
            "mtm_combined": 0,
            "opt_premium": 0,
            "opt_premium_com": 0,
            "pay_out_amt": 1401,
            "realised_profits": -4.61,
            "receivables": 0,
            "segment": "A",
            "sod_unclear_bal": 0,
            "total_balance": 1989593.99,
            "withdrawal_balance": 599.6
        }
    ],
    "message": "Success",
    "status": "success"
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

&#x20;   **Response Parameter**

| Parameter              | Description            |
| ---------------------- | ---------------------- |
| limit\_type            | Limit Type             |
| limit\_sod             | Limit at start of day  |
| adhoc\_limit           | Adhoc Limit            |
| receivables            | Receivables            |
| collaterals            | Collateral Limit       |
| realised\_profits      | Realized Profit amount |
| amount\_utilized       | Amount Utilized        |
| total\_balance         | Sum of all             |
| available\_balance     | Available Balance      |
| Segment                | Segment                |
| pay\_out\_amt          | Pay Out Amount         |
| bank\_clear\_balance   | Bank Clear Balance     |
| bank\_unclear\_balance | Bank Unclear Balance   |
| withdrawal\_balance    | Withdrawable Balance   |


---

# 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://heytorus.gitbook.io/torus-digital-open-api/funds/fund-limits.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.
