Function getOpenOrder

  • Retrieves the open order with the specified ID on the given chain.

    Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          id: string;
          options?: DefaultOptions;
      }
      • chainId: CHAIN_IDS
      • id: string
      • Optional options?: DefaultOptions

    Returns Promise<OpenOrder>

    Promise resolving to the open order object, or undefined if not found.

    Example

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

    const openOrder = await getOpenOrder({
    chainId: 421614,
    id: '46223845323662364279893361453861711542636620039907198451770258805035840307200'
    })