EZManager Docs

Get Started

  • Overview
  • Open a Position
  • Explore Pools

Position Operations

  • My Positions
  • Manage Position
  • History
  • Grouping and Sharing
  • Wallet Settings
  • Automation Settings
  • Interactive Automation Guide

Concepts

  • Midpoint Rebalance
  • Accounting and P&L
  • Dust Tracking
  • Valuation and Slippage

Protocol Details

  • Protocol and Bot Fees
  • Security and Governance
  • Emergency Response and Recovery
  • Contract Architecture
  • Timelock
  • Audits

Addresses

  • Allowed Pools
  • Contract Addresses

Developers

  • SDK Overview
  • SDK Method Reference

Community

  • Community

Developers

SDK Method Reference

Reference for the main EZManager SDK actions, read methods, and Python automation functions used by developers and AI agents.

Lifecycle actions

ActionJavaScript methodPython method
Open by ticksopenPositionopen_position
Open by percent rangeopenPositionByPctopen_position_by_pct
Open by price rangeopenPositionByPriceopen_position_by_price
Read opened position key from a receiptextractOpenedKeyFromReceiptextract_opened_key_from_receipt
Add collateraladdCollateraladd_collateral
Remove collateralremoveCollateralremove_collateral
Change range by tickschangeRangechange_range
Change range by percentchangeRangeByPctchange_range_by_pct
Change range by pricechangeRangeByPricechange_range_by_price
Collect feescollectFeesToUSDCcollect_fees_to_usdc
Compound feescompoundFeescompound_fees
Exit positionexitPositionexit_position
Allow botallowBotForPositionallow_bot_for_position
Withdraw dustwithdrawDustwithdraw_dust
Return NFTreturnNftreturn_nft

Core reads and utilities

CategoryJavaScript methodPython method
User position listingsgetUserPositionKeys, getUserPositionDetailsReadableget_user_position_keys, get_user_position_details_readable
Fees and spot amountspendingFees, spotAmountspending_fees, spot_amounts
Raw position readsgetPosition, getPositionDetailsget_position, get_position_details
Readable position readsgetPositionReadable, getPositionDetailsReadableget_position_readable, get_position_details_readable
Position pollingwaitForPositionwait_for_position
USDC helpersusdcDecimals, walletUsdcBalanceusdc_decimals, wallet_usdc_balance
DEX and pool resolutionresolveDexAdapter, getPoolAddressresolve_dex_adapter, get_pool_address
Receipt and error decodingdecodeReceiptEvents, decodeCustomErrordecode_receipt_events, decode_custom_error
Allowlist and pool statusisPoolAllowed, isPoolDeprecated, listAllowedPoolsis_pool_allowed, is_pool_deprecated, list_allowed_pools
USDC valuation readspositionValueUsdc, valuationUsdcposition_value_usdc, valuation_usdc
Low-level manager/core callscallManager, sendManager, callCore, sendCorecall_manager, send_manager, call_core, send_core

Python automation functions

FunctionWhat you use it forTypical use
run_strategy(...)Run a strategy file on an interval.Start your automated workflow.
read_snapshot(...)Read the position data your strategy uses.Check prices, range status, and pending fees.
execute_actions(...)Apply planned actions such as set range, compound, collect, or exit.Turn strategy decisions into real actions.
load_state(...) and save_state(...)Keep strategy state between runs.Track timers or other strategy memory.
usdc_to_raw(...)Convert a readable USDC amount into raw units.Use thresholds like $10 or $25 in a strategy.

Best starting points

  1. For standard SDK integration, start with openPosition, readPosition, listUserPositions, and endToEnd examples in the language folder you plan to use.
  2. For Python automation, start with python/strategies/example_strategy.py, add your position key, and keep EXECUTE = False for the first run.
  3. If you want to use another chain, change RPC_URL to an RPC endpoint for that network before running the examples or strategy.
  4. Use the read methods to confirm position state and pending fees before moving on to live lifecycle actions.

Execution defaults

Lifecycle writes default to 0.5% slippage when a method accepts slippage and none is supplied. For Python automation, keep EXECUTE = False until you have reviewed the planned actions.

Related guides

  • SDK Overview How to choose a language, switch chains, and get started with examples or automation.