Skip to content

Commit a51e5f3

Browse files
author
Dave Pettypiece
committed
added alignment timezone to candles
1 parent f13c82a commit a51e5f3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/instrument/candles.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def main():
8383
help="The end date for the candles to be fetched. Format is 'YYYY-MM-DD HH:MM:SS'"
8484
)
8585

86+
parser.add_argument(
87+
"--alignment-timezone",
88+
default=None,
89+
help="The timezone to used for aligning daily candles"
90+
)
91+
8692
args = parser.parse_args()
8793

8894
account_id = args.config.active_account
@@ -110,6 +116,9 @@ def main():
110116
if args.to_time is not None:
111117
kwargs["toTime"] = api.datetime_to_str(args.to_time)
112118

119+
if args.alignment_timezone is not None:
120+
kwargs["alignmentTimezone"] = args.alignment_timezone
121+
113122
price = "mid"
114123

115124
if args.mid:

0 commit comments

Comments
 (0)