MtApi5: Remove redundant classes (requests)

This commit is contained in:
Viacheslav Demydiuk
2024-02-23 18:10:48 +02:00
parent b9d99da7a8
commit 2871ddf07a
25 changed files with 18 additions and 276 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
using System.Collections;
using MtApi5.Requests;
using Newtonsoft.Json;
using MtClient;
using MtApi5.MtProtocol;
using MtApi5.MtProtocol.ICustomRequest;
namespace MtApi5
{
@@ -2965,7 +2965,7 @@ namespace MtApi5
{
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol }, { "Period", (int)period },
{ "Name", name }, { "Parameters", parameters },
{ "ParamsType", ICustomRequest.ParametersType.Double} };
{ "ParamsType", ParametersType.Double} };
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
}
@@ -2980,7 +2980,7 @@ namespace MtApi5
{
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol }, { "Period", (int)period },
{ "Name", name }, { "Parameters", parameters },
{ "ParamsType", ICustomRequest.ParametersType.Int } };
{ "ParamsType", ParametersType.Int } };
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
}
@@ -2995,7 +2995,7 @@ namespace MtApi5
{
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol }, { "Period", (int)period },
{ "Name", name }, { "Parameters", parameters },
{ "ParamsType", ICustomRequest.ParametersType.String } };
{ "ParamsType", ParametersType.String } };
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
}
@@ -3010,7 +3010,7 @@ namespace MtApi5
{
Dictionary<string, object> cmdParams = new() { { "Symbol", symbol }, { "Period", (int)period },
{ "Name", name }, { "Parameters", parameters },
{ "ParamsType", ICustomRequest.ParametersType.Boolean } };
{ "ParamsType", ParametersType.Boolean } };
return SendCommand<int>(ExecutorHandle, Mt5CommandType.iCustom, cmdParams);
}