Add temporary undefined action provider to existing exchanges.
This commit is contained in:
parent
39742da43e
commit
c113bd4f5c
@ -4,6 +4,7 @@ import { AlpacaQuoteProvider } from './quote';
|
||||
import { Exchange } from '../interface/exchange';
|
||||
import { PortfolioProvider } from '../interface/portfolio';
|
||||
import { QuoteProvider } from '../interface/quote';
|
||||
import { ActionProvider } from '../interface/actions';
|
||||
|
||||
/**
|
||||
* Exchange implementation for Alpaca.
|
||||
@ -24,6 +25,11 @@ export class AlpacaExchange implements Exchange {
|
||||
*/
|
||||
readonly quoteProvider: QuoteProvider;
|
||||
|
||||
/**
|
||||
* The action provider for the exchange.
|
||||
*/
|
||||
readonly actionProvider: ActionProvider;
|
||||
|
||||
/**
|
||||
* The name of the exchange.
|
||||
*/
|
||||
@ -45,6 +51,7 @@ export class AlpacaExchange implements Exchange {
|
||||
|
||||
this.portfolioProvider = new AlpacaPortfolioProvider(this.alpaca);
|
||||
this.quoteProvider = new AlpacaQuoteProvider(this.alpaca);
|
||||
this.actionProvider = undefined!;
|
||||
|
||||
this.name = 'Alpaca';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user