/// <summary> /// Get open orders /// </summary> /// <param name="pair">Trading pair</param> /// <param name="fromDate">From date</param> /// <returns>Collection of Order objects</returns> public static async Task <List <Order> > GetOpenOrders(this IBilaxyDotNet service, string pair, DateTime fromDate) { var asset = await GetTradingPair(service, pair); var unixTime = dtHelper.LocalToUnixTime(fromDate); return(await service.GetOrders(asset.AssetId, unixTime, OrderType.Pending)); }
public void GetOrders_Test() { // Arrange var pair = "ETHBTC"; // Act var orders = _svc.GetOrders(pair).Result; // Assert Assert.NotNull(orders); }
/// <summary> /// Get open orders /// </summary> /// <param name="pair">Trading pair</param> /// <param name="fromDate">From date</param> /// <returns>Collection of Order objects</returns> public static async Task <List <Order> > GetOpenOrders(this IBilaxyDotNet service, string pair, long fromDate) { var asset = await GetTradingPair(service, pair); return(await service.GetOrders(asset.AssetId, fromDate, OrderType.Pending)); }
/// <summary> /// Get open orders /// </summary> /// <param name="pairId">Trading pair id</param> /// <param name="fromDate">From date</param> /// <returns>Collection of Order objects</returns> public static async Task <List <Order> > GetOpenOrders(this IBilaxyDotNet service, int pairId, long fromDate) { return(await service.GetOrders(pairId, fromDate, OrderType.Pending)); }
/// <summary> /// Get open orders /// </summary> /// <param name="pairId">Trading pair id</param> /// <param name="fromDate">From date</param> /// <returns>Collection of Order objects</returns> public static async Task <List <Order> > GetOpenOrders(this IBilaxyDotNet service, int pairId, DateTime fromDate) { var unixTime = dtHelper.LocalToUnixTime(fromDate); return(await service.GetOrders(pairId, unixTime, OrderType.Pending)); }
/// <summary> /// Get open orders /// </summary> /// <param name="pair">Trading pair</param> /// <param name="orderType">OrderType</param> /// <returns>Collection of Order objects</returns> public static async Task <List <Order> > GetOrders(this IBilaxyDotNet service, string pair, OrderType orderType) { var asset = await GetTradingPair(service, pair); return(await service.GetOrders(asset.AssetId, 0, orderType)); }
/// <summary> /// Get open orders /// </summary> /// <param name="pairId">Trading pair id</param> /// <returns>Collection of Order objects</returns> public static async Task <List <Order> > GetOrders(this IBilaxyDotNet service, int pairId) { return(await service.GetOrders(pairId, 0, OrderType.AllOrders)); }