예제 #1
0
        /// <summary>
        /// События
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        public IList <EventResult> ListEvents(MarketFilter filter)
        {
            filter.IfNull(x => { throw new ArgumentException("filter"); });

            var request = new JsonRequest
            {
                Id     = 1,
                Method = LIST_EVENTS,
                Params = new { filter }
            };

            return(Invoke <IList <EventResult> >(request));
        }
예제 #2
0
        public IList <MarketTypeResult> ListMarketTypes(MarketFilter filter)
        {
            filter.IfNull(x => { throw new ArgumentException("filter"); });

            var request = new JsonRequest
            {
                Id     = 1,
                Method = LIST_MARKET_TYPES,
                Params = new { filter }
            };

            return(Invoke <IList <MarketTypeResult> >(request));
        }