示例#1
0
        public async Task <XCommasResponse <SmartTrade[]> > GetSmartTradesAsync(int limit = 50, int?offset = null, int?accountId = null, SmartTradeScope smartTradeScope = SmartTradeScope.All, string type = null)
        {
            var path = $"{BaseAddress}/ver1/smart_trades?limit={limit}&offset={offset}&account_id={accountId}&scope={smartTradeScope.GetEnumMemberAttrValue()}&type={type}";

            using (var request = XCommasRequest.Get(path).Sign(this))
            {
                return(await this.GetResponse <SmartTrade[]>(request).ConfigureAwait(false));
            }
        }
示例#2
0
 public XCommasResponse <SmartTrade[]> GetSmartTrades(int limit = 50, int?offset = null, int?accountId = null, SmartTradeScope smartTradeScope = SmartTradeScope.All, string type = null) => this.GetSmartTradesAsync(limit, offset, accountId, smartTradeScope, type).Result;