Origami Documentation
User GuideFunction
  • User Guide
    • Create Project
    • Add accounts
    • API Key Creation
      • Hyperliquid
      • Binance
      • Bybit
      • OKX
      • Gate io
      • Mexc
      • HTX
      • Kucoin
      • BingX
      • Bitget
      • BitMart
    • Create Spot Bot
    • Create Futures Bot
    • Create Grid
  • Function
    • Required parameters
      • Buy Orders Count
      • Sell Orders Count
      • Execute Price
      • Execute Volume
    • Base logic
    • Optional parameters
      • Time Between Orders
      • Sleep After Seconds
      • Is Buy First
    • Functions
      • Ticker
      • Orderbook
      • Candles
      • VWAP
      • Amount Before Price
      • Amount Threshold Index
      • Symbol
      • Balance
      • Saved Balance
      • Group Balance
      • Mean
      • Median
      • Max
      • Min
      • Exp
      • Abs
      • Logn
      • Count
      • Random
      • Sum
      • Cached
      • Remove NaN
      • Is NaN
      • Var
    • Technical analysis
      • Relative Strenght Index
      • RSI to price
      • Average True Range
      • Bollinger Bands
      • Donchian Channel
      • Exponential Moving Average
      • Kaufman Efficiency Indicator
      • Kaufman's Adaptive Moving Average
      • Keltner Channels
      • Momentum Breakout Bands
      • Pivot Points
      • Percentage Price Oscillator
      • Percent B
      • Stop-and-Reverse
      • Stochastic Oscillator %K
      • Stochastic RSI
      • True Range
      • Triple Exponential Moving Average Oscillator
      • Volume Adjusted Moving Average
    • Structures
      • Balance
      • GroupBalance
      • Orderbook
      • OrderBookUnit
      • Symbol
      • Candle
    • Shortcuts
      • Base
      • Counter
    • Exchanges list
    • Pre-defined parameters
      • Order Pos
      • Side
Powered by GitBook
On this page
  1. Function
  2. Functions

Ticker

Current market price of latest trade on exchange.

PreviousFunctionsNextOrderbook

Last updated 3 months ago

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','-USDT',’ETH-’. If symbol is empty - uses current symbol for bot. Shortcuts and 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 .

Returns: Decimal

Example:

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

ticker()

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

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

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

ticker('base-counter',23)

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

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')
base
counter
base
counter
Exchange list
Exchange Names
Exchange ID
Exchange Names