Skip to content

Commit

Permalink
fix(exchanges): fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed May 12, 2024
1 parent 771fc06 commit c38b518
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/backtesting/src/exchange/memory-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type {
IAccountAsset,
IGetTradingFeeRatesRequest,
IGetTradingFeeRatesResponse,
ITradingPairSymbolRequest,
IGetCandlesticksRequest,
ICandlestick,
IGetMarketPriceRequest,
Expand All @@ -20,6 +19,8 @@ import type {
IWatchOrdersResponse,
IPlaceStopOrderRequest,
IPlaceStopOrderResponse,
IWatchCandlesRequest,
IWatchCandlesResponse,
} from "@opentrader/types";
import { ExchangeCode } from "@opentrader/types";
import type { MarketSimulator } from "../market-simulator";
Expand Down Expand Up @@ -172,7 +173,11 @@ export class MemoryExchange implements IExchange {
);
}

tradingPairSymbol(params: ITradingPairSymbolRequest) {
return `${params.baseCurrency}-${params.quoteCurrency}`;
async watchCandles(
_params?: IWatchCandlesRequest,
): Promise<IWatchCandlesResponse> {
throw new Error(
"Not implemented. Backtesting doesn't require this method.",
);
}
}

0 comments on commit c38b518

Please sign in to comment.