コード例 #1
0
ファイル: OneBrokerClient.cs プロジェクト: seb999/AlertTrader
        /// <summary>Creates a new instance of 1Broker API .NET's client service.</summary>
        /// <param name="apiToken">Your secret API token.</param>
        public OneBrokerClient(string apiToken)
        {
            ApiToken      = apiToken;
            RestWebClient = new RestWebClient(apiToken, Proxy);

            Account   = new ClientTools.Account(RestWebClient);
            Orders    = new ClientTools.Orders(RestWebClient);
            Positions = new ClientTools.Positions(RestWebClient);
            Markets   = new ClientTools.Markets(RestWebClient);
        }
コード例 #2
0
        /// <summary>Creates a new instance of 1Broker API .NET's client service.</summary>
        /// <param name="apiToken">Your secret API token.</param>
        public OneBrokerClient(string apiToken)
        {
            ApiToken = apiToken;
            RestWebClient = new RestWebClient(apiToken, Proxy);

            Account = new ClientTools.Account(RestWebClient);
            Orders = new ClientTools.Orders(RestWebClient);
            Positions = new ClientTools.Positions(RestWebClient);
            Markets = new ClientTools.Markets(RestWebClient);
        }