MarketlabMarketlabDocs

Market Lab v0.1.86

Write Python strategies across Elysium pools, bonding markets and Hyperliquid.

Elysium Python Scripting

Read Elysium market activity alongside Hyperliquid data and trade on both from one Python script.

What's Included

  • Read trades from Market Lab pools and bonding markets, including prices, exact amounts, fees and market state.
  • Use a market's contract address directly. Market Lab validates it on-chain; no market snapshot refresh is needed.
  • Buy and sell with ctx.swap, or add and remove pool liquidity with ctx.deposit and ctx.withdraw.
  • Follow transaction results through on_execution.

Available for Market Lab contracts on Elysium testnet. Read-only scripts need no wallet; trading uses a funded Elysium trading wallet. Elysium backtesting is not supported yet.

See Elysium Scripts for a first script and the trade fields it receives.

On this page