private void ProcessPositionClose(JArray jArr) { ResponsePositions respPos = jArr.ToObject <ResponsePositions>(); Log(String.Format("[POSITION CLOSE] <== {0}", respPos.ToString())); _client.UpdatePos(respPos); }
private void ProcessPositionNew(JArray jArr) { ResponsePositions respPos = jArr.ToObject <ResponsePositions>(); Log(String.Format("[POSITION NEW] <== {0}", respPos.ToString())); //2018-11-20 added _client.UpdatePos(respPos); }
public void UpdatePos(ResponsePositions respPos) { string instrument = respPos.Symbol.Remove(0, 1); _posBoxCrypto.Update(instrument, Convert.ToDecimal(respPos.Amount), respPos.Status); }
public void UpdatePos(ResponsePositions respPos) { }