Skip to content

Commit

Permalink
[TA] can now use real time time frame if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume De Saint Martin authored and GuillaumeDSM committed Aug 11, 2021
1 parent 858dea5 commit d01c40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octobot_evaluators/evaluators/TA_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ async def start(self, bot_id: str) -> bool:
import octobot_trading.api as exchange_api
exchange_id = exchange_api.get_exchange_id_from_matrix_id(self.exchange_name, self.matrix_id)
time_frame_filter = [tf.value
for tf in exchange_api.get_exchange_time_frames_without_real_time(
self.exchange_name, exchange_id)]
for tf in exchange_api.get_exchange_available_required_time_frames(
self.exchange_name, exchange_id)]
if len(time_frame_filter) == 1:
time_frame_filter = time_frame_filter[0]
await exchanges_channel.get_chan(channels_name.OctoBotTradingChannelsName.OHLCV_CHANNEL.value, exchange_id).\
Expand Down
2 changes: 1 addition & 1 deletion octobot_evaluators/octobot_channel_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def _handle_creation(bot_id, action, data):
bot_id=bot_id,
symbols_by_crypto_currencies=exchange_configuration.symbols_by_crypto_currencies,
symbols=exchange_configuration.symbols,
time_frames=exchange_configuration.time_frames_without_real_time,
time_frames=exchange_configuration.available_required_time_frames,
real_time_time_frames=exchange_configuration.real_time_time_frames
)
await channel_instances.get_chan_at_id(channels_name.OctoBotChannelsName.OCTOBOT_CHANNEL.value,
Expand Down

0 comments on commit d01c40a

Please sign in to comment.