Skip to content

Commit

Permalink
updated timeframe map
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahbjork committed May 2, 2023
1 parent 8b74de6 commit 515cd74
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified src/.DS_Store
Binary file not shown.
18 changes: 17 additions & 1 deletion src/auto_gpt_metatrader/trading.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,36 @@ def fetch_candlesticks(symbol, timeframe):
"1 minute": "1m",
"1 min": "1m",
"1min": "1m",
"M1": "1m",
"5 minutes": "5m",
"5 min": "5m",
"5min": "5m",
"M5": "1m",
"15 minutes": "15m",
"15 min": "15m",
"15min": "15m",
"M15": "15m",
"30 minutes": "30m",
"30 min": "30m",
"30min": "30m",
"M30": "30m",
"1 hour": "1h",
"1hour": "1h",
"1hr": "1h",
"H1": "1h",
"4 hours": "4h",
"4hours": "4h",
"4 hrs": "4h",
"H4": "4h",
"1 day": "1d",
"1day": "1d",
"D1": "1d",
"1 week": "1w",
"1 month": "1m"
"1week": "1w",
"W1": "1w",
"1 month": "1mn",
"1month": "1mn",
"MN": "1mn"
}
# Check if the user input matches any of the keys in the dictionary
if timeframe in timeframe_map:
Expand Down

0 comments on commit 515cd74

Please sign in to comment.