> 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/function/functions/ticker.md).

# Ticker

## <mark style="color:purple;">`ticker`</mark>(*symbol*: *Optional*\[*str*], *exchange*: *Optional*\[*int*|*str*]) -> *decimal*

Returns last price for <mark style="color:red;">`symbol`</mark> on <mark style="color:red;">`exchange`</mark> .

**Parameters:**

**symbol :&#x20;*****str*****,&#x20;*****default 'base-counter'***

Use token symbols in the 'symbol-symbol' format. Example: <mark style="color:red;">`'ETH-USDT'`</mark>,`'`[<mark style="color:blue;">`base`</mark>](/function/shortcuts/base.md)<mark style="color:red;">`-USDT'`</mark>,<mark style="color:red;">`’ETH-`</mark>[<mark style="color:blue;">`counter`</mark>](/function/shortcuts/counter.md)<mark style="color:red;">`’`</mark>. If <mark style="color:red;">`symbol`</mark> is empty - uses current symbol for bot. Shortcuts [`base`](/function/shortcuts/base.md) and [`counter`](/function/shortcuts/counter.md) could be used.

**exchange :&#x20;*****int|str*****,&#x20;*****default bot's exchange***

If <mark style="color:red;">`exchange`</mark> is empty - uses current exchange for bot’s account. Exchanges names and indexes could be found in [<mark style="color:blue;">Exchange list</mark>](/function/exchanges-list.md).

**Returns:&#x20;*****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. [<mark style="color:blue;">Exchange Names</mark>](/function/exchanges-list.md).

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

***

Returns Bybit's last price for current bot's symbol. [<mark style="color:blue;">Exchange ID</mark>](/function/exchanges-list.md).

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

***

Returns Binance's last price for current bot's base in ETH. [<mark style="color:blue;">Exchange Names</mark>](/function/exchanges-list.md).

```
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>
