Skip to main content

Module market

Module market 

Source

Enums§

NormalizedTradeSide

Functions§

normalize_buy_sell_from_input_mint
Normalize direction from the input mint when base/quote mints are known.
normalize_buy_sell_from_token_delta
Normalize a watched/base token balance delta into buy/sell direction.
sqrt_price_x64_to_price
Convert a Q64.64 sqrt price into a UI price.
vault_price_from_balances
Compute quote-token price per one base token from raw vault balances.