mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-10 01:11:04 +00:00
PyMtApi5: implemented function ChartPeriod
This commit is contained in:
@@ -69,6 +69,7 @@ class Mt5ApiApp:
|
||||
"ChartNext": self.process_chart_next,
|
||||
"ChartClose": self.process_chart_close,
|
||||
"ChartSymbol": self.process_chart_symbol,
|
||||
"ChartPeriod": self.process_chart_period,
|
||||
}
|
||||
|
||||
def on_disconnect(self, error_msg=None):
|
||||
@@ -510,6 +511,10 @@ class Mt5ApiApp:
|
||||
result = mtapi.chart_symbol(int(parameters))
|
||||
print(f"> ChartSymbol: response = {result}")
|
||||
|
||||
def process_chart_period(self, mtapi, parameters):
|
||||
result = mtapi.chart_period(int(parameters))
|
||||
print(f"> ChartPeriod: response = {result}")
|
||||
|
||||
def mtapi_command_thread(self, mtapi):
|
||||
while mtapi.is_connected():
|
||||
filename = "client.cmd"
|
||||
|
||||
Reference in New Issue
Block a user