Function getOpenOrders

  • Retrieves open orders for the specified user on the given chain.

    Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          userAddress: `0x${string}`;
          options?: DefaultOptions;
      }
      • chainId: CHAIN_IDS
      • userAddress: `0x${string}`
      • Optional options?: DefaultOptions

    Returns Promise<OpenOrder[]>

    Promise resolving to an array of open orders.

    Example

    import { getOpenOrders } from '@clober/v2-sdk'

    const openOrders = await getOpenOrders({
    chainId: 421614,
    userAddress: '0x5F79EE8f8fA862E98201120d83c4eC39D9468D49'
    })