> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/functions/ticker.md).

# ticker()

ticker() returns the price of the latest trade for a pair on an exchange, by default the bot's own pair and exchange.

Current market price of latest trade on exchange.

## `ticker`(*symbol*: *Optional*\[*str*], *exchange*: *Optional*\[*int*|*str*]) -> *decimal*

Returns last price for `symbol` on `exchange` .

**Parameters:**

\*\*symbol : ***str***, \*\****default 'base-counter'***

Use token symbols in the 'symbol-symbol' format. Example: `'ETH-USDT'`,`'base-USDT'`,`’ETH-counter’`. If `symbol` is empty - uses current symbol for bot. Shortcuts `base` and `counter` could be used.

\*\*exchange : ***int|str***, \*\****default bot's exchange***

If `exchange` is empty - uses current exchange for bot’s account. Exchanges names and indexes could be found in Exchange list.

\*\*Returns: \*\****Decimal***

<details>

<summary>Example:</summary>

Returns the last price for current bot's symbol and exchange.

```
ticker()
```

***

Returns the last price from Bybit for current bot's symbol. Exchange Names.

```
ticker('base-counter','bybit')
```

***

Returns Bybit's last price for current bot's symbol. Exchange ID.

```
ticker('base-counter',23)
```

***

Returns Binance's last price for current bot's base in ETH. Exchange Names.

```
ticker('base-ETH','binance')
```

***

Returns Gate's last price for ETH in USDT.

```
ticker('ETH-USDT','gateio')
```

***

Converts current bot's Base in ETH price to price in USDT.

```
ticker('base-ETH')*ticker('ETH-USDT','bybit')
```

</details>
