tradingstrategy-ai / trade-executor

A Python framework for managing positions and trades in DeFi
https://tradingstrategy.ai
Other
107 stars 29 forks source link

utility methods for getting OHLCV methods #935

Closed AlexTheLion123 closed 5 months ago

AlexTheLion123 commented 6 months ago

Summary

Currently, we can get latest close price like so indicators.get_price(), and second latest as indicators.get_price(index=-2) etc. But it would be nice to have indicators.get_price_series(), also with ability to specify column e.g. indicators.get_price_series(column="low"), or indicators.get_price_series(column="volume"). This would be instead of universe.candles.get_single_pair_data(timestamp, sample_count=parameters.lookback_window)

Acceptance criteria

AlexTheLion123 commented 5 months ago

This already exists