Example #1
0
        //
        public async Task <string> GetActivePositions()
        //public string GetActivePositions()
        {
            var result = await Bitfinex.GetActivePositions();

            //var res = BitSqlOper.GetActivePositions();
            return(JsonConvert.SerializeObject(result));
        }
Example #2
0
        //获取activeposition的列表,并插入positioninfo表中
        public async void UpdatePositionInfo()
        {
            List <PositionInfo> positionInfoList = await bitfinxMethed.GetActivePositions();

            bitfinexSqlOper.AddActivePositions(positionInfoList);
        }