self.get_quote#
- lumibot.strategies.strategy.Strategy.get_quote(self, asset: Asset, quote: Asset = None, exchange: str = None) Quote
Get a quote for the asset.
- Parameters:
asset (Asset object) – The asset for which the quote is needed.
quote (Asset object, optional) – The quote asset for cryptocurrency pairs.
exchange (str, optional) – The exchange to get the quote from.
- Returns:
A Quote object with the quote information, eg. bid, ask, etc.
- Return type:
Quote