Interface ExchangesApiBeta

PFI Exchanges API

interface ExchangesApi {
    getClose(opts): Promise<undefined | Close>;
    getExchange(opts): Promise<undefined | Exchange>;
    getExchanges(opts?): Promise<Exchange[]>;
    getOrder(opts): Promise<undefined | Order>;
    getOrderStatuses(opts): Promise<OrderStatus[]>;
    getQuote(opts): Promise<undefined | Quote>;
    getRfq(opts): Promise<undefined | Rfq>;
}

Methods

  • Retrieve the Close reason if found

    Parameters

    • opts: {
          exchangeId: string;
      }
      • exchangeId: string

    Returns Promise<undefined | Close>

  • Retrieve a single exchange if found

    Parameters

    • opts: {
          id: string;
      }
      • id: string

    Returns Promise<undefined | Exchange>

  • Retrieve an Order if found

    Parameters

    • opts: {
          exchangeId: string;
      }
      • exchangeId: string

    Returns Promise<undefined | Order>

  • Retrieve the OrderStatuses if found

    Parameters

    • opts: {
          exchangeId: string;
      }
      • exchangeId: string

    Returns Promise<OrderStatus[]>

  • Retrieve a Quote if found

    Parameters

    • opts: {
          exchangeId: string;
      }
      • exchangeId: string

    Returns Promise<undefined | Quote>

  • Retrieve a RFQ if found

    Parameters

    • opts: {
          exchangeId: string;
      }
      • exchangeId: string

    Returns Promise<undefined | Rfq>