Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Conversation

AbdAlftahSalem
Copy link

Add get_multiple_analysis_with_multiple_intervals. to get multi tickers with multi-frame in one request

@AbdAlftahSalem AbdAlftahSalem changed the title Dev get_multiple_analysis_with_multiple_intervals Jun 24, 2023
@AbdAlftahSalem AbdAlftahSalem deleted the dev branch June 24, 2023 19:36
@AbdAlftahSalem AbdAlftahSalem restored the dev branch June 24, 2023 19:36
"""
output_intervals = []
for interval in intervals:
if interval == "1m":
Copy link

@cdaviis cdaviis Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestion: might be a bit cleaner and slightly more readable if we use match-case syntax here instead of all these ifs and elifs.
i.e.

match interval:
    case '1m':
         # 1 Minute
         date_interval = '|1'
         output_intervals.append(data_interval)
    case '5m':
         ...

same for lines 587-632

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants