Function overrideExchangeSchema

  • Overrides an existing exchange data source in the framework.

    This function partially updates a previously registered exchange with new configuration. Only the provided fields will be updated, other fields remain unchanged.

    Parameters

    • exchangeSchema: TExchangeSchema

      Partial exchange configuration object

      • exchangeName

        Unique exchange identifier (must exist)

      • getCandles

        Optional: Async function to fetch candle data

      • formatPrice

        Optional: Async function to format prices

      • formatQuantity

        Optional: Async function to format quantities

      • callbacks

        Optional: Callback for candle data events

    Returns Promise<IExchangeSchema>

    overrideExchange({
    exchangeName: "binance",
    formatPrice: async (symbol, price) => price.toFixed(4), // Only update price formatting
    });