Merge branch Add_sessions

This commit is contained in:
DW
2016-11-01 10:28:24 +02:00
8 changed files with 64 additions and 1 deletions
+6
View File
@@ -1443,6 +1443,12 @@ namespace MtApi
var commandParameters = new ArrayList { name, (int)propId };
return SendCommand<string>(MtCommandType.SymbolInfoString, commandParameters); ;
}
public MtSession SymbolInfoSession(string symbol, DayOfWeek dayOfWeek, uint index, SessionType type)
{
var responce = SendRequest<SessionResponse>(new SessionRequest { Symbol = symbol, DayOfWeek = dayOfWeek, SessionIndex = (int)index, SessionType = type });
return responce != null ? responce.Session : null;
}
#endregion
#region Private Methods