> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# calculateCompetitiveHashes()

```ts theme={null}
function calculateCompetitiveHashes(song, options?): CompetitiveHashes;
```

Calculates a song's competitive hashes from its document, reusing the parse its gameplay chart is resolved from.

## Parameters

| Parameter | Type |
| - | - |
| `song` | [`SongDocument`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongDocument) |
| `options?` | \{ `btracks?`: `boolean`; } |
| `options.btracks?` | `boolean` |

## Returns

[`CompetitiveHashes`](https://chart-spec.enchor.us/scan-chart/api/competitive/type-aliases/CompetitiveHashes)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.