예제 #1
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);
        }
예제 #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);
        }