mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-15 03:38:09 +00:00
PyMtApi5: implemented function CopyTime
This commit is contained in:
@@ -285,9 +285,14 @@ class Mt5ApiClient:
|
||||
return rates
|
||||
|
||||
# CopyTime
|
||||
def copy_time(self):
|
||||
# TODO
|
||||
pass
|
||||
def copy_time(self, symbol_name: str, timeframe: ENUM_TIMEFRAMES, start_pos: int, count: int):
|
||||
cmdParams = {
|
||||
"Symbol": symbol_name,
|
||||
"Timeframe": timeframe,
|
||||
"StartPos": start_pos,
|
||||
"Count": count,
|
||||
}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.CopyTime, cmdParams)
|
||||
|
||||
# Copy Open
|
||||
def copy_open(self):
|
||||
|
||||
Reference in New Issue
Block a user