Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        ////////////
        // 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));
        }