public override void Log(LogWriter logWriter, DBInputOutput.DBWriter dbWriter = null, int assetid = -1) { DateTime dTime = ServerTime.GetRealTime(); if (dbWriter != null) { dbWriter.InsertOrderLog(dTime, OrderId, "Failed", Cookie, Reason, assetid); } logWriter.WriteLine(dTime.ToString(DateTimeFormat) + " | Order failed. Cookie: {0}; OrderId: {1}; Reason: {2}", Cookie, OrderId, Reason); }
public override void Log(LogWriter logWriter, DBInputOutput.DBWriter dbWriter = null, int assetid = -1) { DateTime dTime = ServerTime.GetRealTime(); if (dbWriter != null) { dbWriter.InsertOrderLog(dTime, OrderId, "CancelFailed", 0, "", assetid); } logWriter.WriteLine(dTime.ToString(DateTimeFormat) + " | Order cancel failed. OrderId: " + OrderId); }
public override void Log(LogWriter logWriter, DBInputOutput.DBWriter dbWriter = null, int assetid = -1) { DateTime dTime = ServerTime.GetRealTime(); if (dbWriter != null) { dbWriter.InsertOrderLog(dTime, OrderId, "UpdateOrder", Cookie, "", assetid, (int)State, (int)Action, (int)Type, Price, Amount, Stop, Filled); } logWriter.WriteLine(dTime.ToString(DateTimeFormat) + " | Update order. Symbol: {0}; State: {1}; Action: {2}; Type: {3}; Price: {4}; Amount: {5}; Stop: {6}; Filled: {7}; " + "Datetime: {8}; OrderId: {9}; Cookie: {10}", Symbol, State, Action, Type, Price, Amount, Stop, Filled, Datetime, OrderId, Cookie); }