Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 327 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 327 Bytes

Web3 Osmosis

Quickstart

from osmosis.main import Osmosis


server = 'https://lcd.osmosis.zone'

conn = Osmosis(server)

# using pool_id 633, USDC.gr / OSMO

liquidity = conn.get_pool_liquidity(633)

t0 = list(liquidity.keys())[0]

t1 = list(liquidity.keys())[1]

spot_price = conn.get_spot_price(633,t0,t1)