コード例 #1
0
        private void ProcessPositionClose(JArray jArr)
        {
            ResponsePositions respPos = jArr.ToObject <ResponsePositions>();

            Log(String.Format("[POSITION CLOSE] <== {0}", respPos.ToString()));
            _client.UpdatePos(respPos);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void UpdatePos(ResponsePositions respPos)
        {
            string instrument = respPos.Symbol.Remove(0, 1);

            _posBoxCrypto.Update(instrument, Convert.ToDecimal(respPos.Amount), respPos.Status);
        }
コード例 #4
0
 public void  UpdatePos(ResponsePositions respPos)
 {
 }