verbs_examples.agents.uniswap_agent.tick_from_price#

tick_from_price(sqrt_price_x96: int, uniswap_fee: int) int[source]#

Get tick from price and fee

Parameters:
  • sqrt_price_x96 (int) – Square root of price times 296

  • uniswap_fee (int) – Uniswap fee. Possible values [100,500,3000,10000]

Returns:

int – Lower tick of input price