mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-17 20:58:11 +00:00
PyMtApi5: implemented function ChartPeriod
This commit is contained in:
@@ -504,18 +504,26 @@ class Mt5ApiClient:
|
||||
def chart_first(self):
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartFirst)
|
||||
|
||||
# ChartNext
|
||||
def chart_next(self, chart_id):
|
||||
cmd_params = {"ChartId": chart_id}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartNext, cmd_params)
|
||||
|
||||
# ChartClose
|
||||
def chart_close(self, chart_id):
|
||||
cmd_params = {"ChartId": chart_id}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartClose, cmd_params)
|
||||
|
||||
# ChartSymbol
|
||||
def chart_symbol(self, chart_id):
|
||||
cmd_params = {"ChartId": chart_id}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartSymbol, cmd_params)
|
||||
|
||||
# ChartPeriod
|
||||
def chart_period(self, chart_id):
|
||||
cmd_params = {"ChartId": chart_id}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartPeriod, cmd_params)
|
||||
|
||||
# Private methods
|
||||
|
||||
def __event_thread_func(self):
|
||||
|
||||
Reference in New Issue
Block a user