Skip to content

Commit

Permalink
feat: add tvl and fdv
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Apr 13, 2024
1 parent 2d9f6a7 commit 2674616
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions content/docs/apiEndpoints/blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,105 @@ https://api.pacviewer.com/v1/circulation_supply
```
{{< /tab >}}

{{< /tabs >}}

### Get Total Value Locked (TVL)
{{< hextra/hero-badge >}} {{< icon name="code" attributes="height=14" >}} Free, No Auth {{< /hextra/hero-badge >}}

Return Total Value Locked (TVL).

{{< callout type="info" >}}
**Total Value Locked (TVL) =** Staked x Price

{{< /callout >}}

```
https://api.pacviewer.com/v1/total_value_locked
```

{{< tabs items="Request, Response" >}}
{{< tab >}}
**Query Params**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|


**Headers**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

**Body**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

{{< /tab >}}
{{< tab >}}

**Status OK 200**

```json
{
"status": 200,
"message": "OK",
"data": {
"value": 439734.2503423898
}
}
```
{{< /tab >}}

{{< /tabs >}}


### Fully Diluted Valuation (FDV)
{{< hextra/hero-badge >}} {{< icon name="code" attributes="height=14" >}} Free, No Auth {{< /hextra/hero-badge >}}

Return Fully Diluted Valuation (FDV).

{{< callout type="info" >}}
**Fully Diluted Valuation (FDV) =** Staked + Circulating x Price

{{< /callout >}}

```
https://api.pacviewer.com/v1/fully_diluted_valuation
```

{{< tabs items="Request, Response" >}}
{{< tab >}}
**Query Params**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|


**Headers**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

**Body**

| Key | Description | Example |
|-----------------|----------------------------------------------------|---------|

{{< /tab >}}
{{< tab >}}

**Status OK 200**

```json
{
"status": 200,
"message": "OK",
"data": {
"value": 840257.9343933696
}
}
```
{{< /tab >}}

{{< /tabs >}}

0 comments on commit 2674616

Please sign in to comment.