public async Task list_limit_orders() { var args = new ListLimitOrdersArgs { Start = new object[0], Limit = 3, Order = SortOrderType.ByAccount }; var resp = await Api.ListLimitOrdersAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void list_limit_orders() { var args = new ListLimitOrdersArgs() { Start = new object[0], Limit = 3, Order = SortOrderType.ByAccount }; var resp = Api.ListLimitOrders(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "list_limit_orders", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
//////////// // Market // //////////// /// <summary> /// API name: list_limit_orders /// /// </summary> /// <param name="args">API type: list_limit_orders_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: list_limit_orders_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <ListLimitOrdersReturn> > ListLimitOrders(ListLimitOrdersArgs args, CancellationToken token) { return(CustomGetRequest <ListLimitOrdersReturn>(KnownApiNames.DatabaseApi, "list_limit_orders", args, token)); }