Add method SymbolInfoSession()

This commit is contained in:
Konstantin Ivanov
2016-10-05 17:02:00 +03:00
parent 7aa2a1b691
commit 6b4adfaa97
8 changed files with 64 additions and 1 deletions
+6
View File
@@ -1422,6 +1422,12 @@ namespace MtApi
var commandParameters = new ArrayList { name, (int)prop_id };
return SendCommand<string>(MtCommandType.SymbolInfoString, commandParameters); ;
}
public MtSession SymbolInfoSession(string symbol, DayOfWeek dayOfWeek, uint index, SessionType type)
{
var responce = SendRequest<SessionResponce>(new SessionRequest { Symbol = symbol, DayOfWeek = dayOfWeek, SessionIndex = (int)index, SessionType = type });
return responce != null ? responce.Session : null;
}
#endregion
#region Private Methods