Beispiel #1
0
        public async Task DefaultFactoryTest()
        {
            DefaultFactory factory       = new DefaultFactory("ec89b162d4a9922c8fa40769c2453d8b-cc1fb522857d46a08a90ef09730343a6", AccountType.practice, 4905675);
            RateEndpoints  rateEndpoints = factory.GetEndpoint <RateEndpoints>();

            Assert.IsNotNull(rateEndpoints);

            List <Price> prices = await rateEndpoints.GetPrices("EUR_USD");

            Assert.IsNotNull(prices);
            Assert.IsTrue(prices.Count > 0);
        }
 public RateEndpointsTest()
 {
     _rateEndpoints = new RateEndpoints("59026b50358c8f948391ab5110ad42b4-6e8cc7fbbc6879c170bfa65d8a0b136b", AccountType.practice, 4905675);
 }
Beispiel #3
0
 static void Main(string[] args)
 {
     RateEndpoints          rateEndpoints = new RateEndpoints("ec89b162d4a9922c8fa40769c2453d8b-cc1fb522857d46a08a90ef09730343a6", AccountType.practice, 4905675);
     List <InstrumentModel> result        = rateEndpoints.GetInstruments().Result;
 }