コード例 #1
0
ファイル: Routes.cs プロジェクト: psrodriguez/CIAPI.CS
        public Client(Uri uri, IRequestController requestController)
            : base(uri, requestController)
        {

            this. Authentication = new _Authentication(this);
            this. PriceHistory = new _PriceHistory(this);
            this. Market = new _Market(this);
            this. News = new _News(this);
            this. CFDMarkets = new _CFDMarkets(this);
            this. SpreadMarkets = new _SpreadMarkets(this);
            this. TradesAndOrders = new _TradesAndOrders(this);
            this. AccountInformation = new _AccountInformation(this);
            this. Messaging = new _Messaging(this);
            this. ExceptionHandling = new _ExceptionHandling(this);
        }            
コード例 #2
0
ファイル: Routes.cs プロジェクト: psrodriguez/CIAPI.CS
        public Client(Uri uri)
            : base(uri, new RequestController(TimeSpan.FromSeconds(0), 2, new RequestFactory(), new ErrorResponseDTOJsonExceptionFactory(), new ThrottedRequestQueue(TimeSpan.FromSeconds(5), 30, 10, "data"), new ThrottedRequestQueue(TimeSpan.FromSeconds(3), 1, 3, "trading"),new ThrottedRequestQueue(TimeSpan.FromSeconds(5), 30, 10, "default")) )
        {

            this. Authentication = new _Authentication(this);
            this. PriceHistory = new _PriceHistory(this);
            this. Market = new _Market(this);
            this. News = new _News(this);
            this. CFDMarkets = new _CFDMarkets(this);
            this. SpreadMarkets = new _SpreadMarkets(this);
            this. TradesAndOrders = new _TradesAndOrders(this);
            this. AccountInformation = new _AccountInformation(this);
            this. Messaging = new _Messaging(this);
            this. ExceptionHandling = new _ExceptionHandling(this);
        }