Rebalance BIDIRECTIONAL grid Creates BOTH buy and sell orders
fn rebalance(env: soroban_sdk::Env, current_price_stroops: i128) -> u32
Get grid configuration
fn get_config(env: soroban_sdk::Env) -> (u32, i128, i128)
Get current grid status
fn get_status(env: soroban_sdk::Env) -> GridState
Initialize bidirectional grid
fn initialize(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
xlm_reserve_stroops: i128,
) -> GridState
Get buy and sell counts
fn get_order_counts(env: soroban_sdk::Env) -> (u32, u32)