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 { Exchange } from '../interface/exchange';
|
||||||
import { PortfolioProvider } from '../interface/portfolio';
|
import { PortfolioProvider } from '../interface/portfolio';
|
||||||
import { QuoteProvider } from '../interface/quote';
|
import { QuoteProvider } from '../interface/quote';
|
||||||
|
import { ActionProvider } from '../interface/actions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exchange implementation for Alpaca.
|
* Exchange implementation for Alpaca.
|
||||||
@ -24,6 +25,11 @@ export class AlpacaExchange implements Exchange {
|
|||||||
*/
|
*/
|
||||||
readonly quoteProvider: QuoteProvider;
|
readonly quoteProvider: QuoteProvider;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The action provider for the exchange.
|
||||||
|
*/
|
||||||
|
readonly actionProvider: ActionProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the exchange.
|
* The name of the exchange.
|
||||||
*/
|
*/
|
||||||
@ -45,6 +51,7 @@ export class AlpacaExchange implements Exchange {
|
|||||||
|
|
||||||
this.portfolioProvider = new AlpacaPortfolioProvider(this.alpaca);
|
this.portfolioProvider = new AlpacaPortfolioProvider(this.alpaca);
|
||||||
this.quoteProvider = new AlpacaQuoteProvider(this.alpaca);
|
this.quoteProvider = new AlpacaQuoteProvider(this.alpaca);
|
||||||
|
this.actionProvider = undefined!;
|
||||||
|
|
||||||
this.name = 'Alpaca';
|
this.name = 'Alpaca';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user