Пример #1
0
        public void GetPairOrders_Test()
        {
            // Arrange
            var pair = @"MICRO/ETH";

            // Act
            var orders = _svc.GetPairOrders(pair).Result;

            // Assert
            Assert.NotNull(orders);
        }
Пример #2
0
 /// <summary>
 /// Get recent orders
 /// </summary>
 /// <param name="pairId">Trading pair</param>
 /// <param name="records">Number of records to return</param>
 /// <returns>Collection of Order objects</returns>
 public static async Task <List <Order> > GetPairOrders(this IBilaxyDotNet service, int pairId)
 {
     return(await service.GetPairOrders(pairId, 100));
 }
Пример #3
0
        /// <summary>
        /// Get recent orders
        /// </summary>
        /// <param name="pair">Trading pair</param>
        /// <param name="records">Number of records to return</param>
        /// <returns>Collection of Order objects</returns>
        public static async Task <List <Order> > GetPairOrders(this IBilaxyDotNet service, string pair, int records)
        {
            var asset = await GetTradingPair(service, pair);

            return(await service.GetPairOrders(asset.AssetId, records));
        }