---
title: Other methods
slug: other-methods
docTags: 
createdAt: 2024-09-23T13:15:39.409Z
---

## tonPrice

Returns TON price by days from public centralized API

Params:

1. `latest [bool]` - toggle mode (just 1 record for concrete date/all records for all dates)
2. `time [string]` - datetime in isoformat for which you want to get price (today if empty)



:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  tonPrice (latest: false){\n    time\n    value\n  }\n}"
}
```
:::

## getTPS

Returns average number of transactions per second for last minute

## getTPM

Return average number of transactions per minute for last 5 minutes

:::GraphiQL
```json
{
  "endpoint": "https://dton.co/graphql/",
  "query": "{\n  getTPS,\n  getTPM\n}"
}
```
:::

