# otp.misc.get_onetick_version

### get_onetick_version()

Returns the string with the build name of OneTick.
Build string may have different format depending on OneTick version.

* **Return type:**
  [`Operation`](https://docs.pip.distribution.sol.onetick.com/api/operation/root.html.md#onetick.py.Operation)

#### NOTE
The version is returned from the server where the query executes.
Usually it's the same server where the database specified in [`otp.run`](https://docs.pip.distribution.sol.onetick.com/api/run.html.md#onetick.py.run) resides.

### Examples

```pycon
>>> data = otp.Tick(VERSION=otp.get_onetick_version())
>>> otp.run(data, symbols='US_COMP_SAMPLE::')
        Time                                      VERSION
0 2003-12-01  BUILD_rel_20250727_update2 (20250727120000)
```
