Example #1
0
        public async Task get_trade_history()
        {
            var args = new GetTradeHistoryArgs
            {
                Start = new DateTime(2017, 4, 2),
                End   = new DateTime(2017, 6, 2),
                Limit = 100
            };
            var resp = await Api.GetTradeHistoryAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Example #2
0
        public void get_trade_history()
        {
            var args = new GetTradeHistoryArgs()
            {
                Start = new DateTime(2017, 4, 2),
                End   = new DateTime(2017, 6, 2),
                Limit = 100
            };
            var resp = Api.GetTradeHistory(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.MarketHistoryApi, "get_trade_history", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
 /// <summary>
 /// API name: get_trade_history
 ///
 /// </summary>
 /// <param name="args">API type: get_trade_history_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: get_trade_history_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public JsonRpcResponse <GetTradeHistoryReturn> GetTradeHistory(GetTradeHistoryArgs args, CancellationToken token)
 {
     return(CustomGetRequest <GetTradeHistoryReturn>(KnownApiNames.MarketHistoryApi, "get_trade_history", args, token));
 }