Left Curve Software Stack
    Preparing search index...

    Type Alias DexQueryMsg

    DexQueryMsg:
        | { volumeByUser: { since: Option<Timestamp>; user: Username } }
        | { volume: { since: Option<Timestamp>; user: Address } }
        | { simulateSwapExactAmountOut: { output: Coin; route: SwapRoute } }
        | { simulateSwapExactAmountIn: { input: Coin; route: SwapRoute } }
        | { pair: { baseDenom: Denom; quoteDenom: Denom } }
        | { pairs: { limit: Option<number>; startAfter: Option<PairId> } }
        | { reserve: { baseDenom: Denom; quoteDenom: Denom } }
        | { reserves: { limit: Option<number>; startAfter: Option<PairId> } }
        | {
            simulateWithdrawLiquidity: {
                baseDenom: Denom;
                lpBurnAmount: string;
                quoteDenom: Denom;
            };
        }
        | { order: { orderId: OrderId } }
        | { orders: { limit: Option<number>; startAfter: Option<OrderId> } }
        | {
            ordersByPair: {
                baseDenom: Denom;
                limit: Option<number>;
                quoteDenom: Denom;
                startAfter: Option<OrderId>;
            };
        }
        | {
            ordersByUser: {
                limit?: Option<number>;
                startAfter?: Option<OrderId>;
                user: Address;
            };
        }
        | { paused: Record<never, never> }

    Type Declaration

    • { volumeByUser: { since: Option<Timestamp>; user: Username } }

      Returns the trading volume of a username since the specified timestamp.

    • { volume: { since: Option<Timestamp>; user: Address } }

      Returns the trading volume of a user address since the specified timestamp.

    • { simulateSwapExactAmountOut: { output: Coin; route: SwapRoute } }

      Simulate a swap with exact output.

    • { simulateSwapExactAmountIn: { input: Coin; route: SwapRoute } }

      Simulate a swap with exact input.

    • { pair: { baseDenom: Denom; quoteDenom: Denom } }

      Query the parameters of a single trading pair.

    • { pairs: { limit: Option<number>; startAfter: Option<PairId> } }

      Enumerate all trading pairs and their parameters.

    • { reserve: { baseDenom: Denom; quoteDenom: Denom } }

      Query the passive liquidity pool reserve of a single trading pair.

    • { reserves: { limit: Option<number>; startAfter: Option<PairId> } }

      Enumerate all passive liquidity pool reserves.

    • {
          simulateWithdrawLiquidity: {
              baseDenom: Denom;
              lpBurnAmount: string;
              quoteDenom: Denom;
          };
      }

      Simulate a liquidity withdrawal.

    • { order: { orderId: OrderId } }

      Query a single active order by ID.

    • { orders: { limit: Option<number>; startAfter: Option<OrderId> } }

      Enumerate active orders across all pairs and from users.

    • {
          ordersByPair: {
              baseDenom: Denom;
              limit: Option<number>;
              quoteDenom: Denom;
              startAfter: Option<OrderId>;
          };
      }

      Enumerate active orders in a single pair from all users.

    • {
          ordersByUser: {
              limit?: Option<number>;
              startAfter?: Option<OrderId>;
              user: Address;
          };
      }

      Enumerate active orders from a single user across all pairs.

    • { paused: Record<never, never> }

      Query whether the DEX is paused.