public async Task get_market_history() { var args = new GetMarketHistoryArgs { Start = new DateTime(2017, 4, 2), BucketSeconds = 100, End = new DateTime(2017, 6, 2) }; var resp = await Api.GetMarketHistoryAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void get_market_history() { var args = new GetMarketHistoryArgs() { Start = new DateTime(2017, 4, 2), BucketSeconds = 100, End = new DateTime(2017, 6, 2), }; var resp = Api.GetMarketHistory(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.MarketHistoryApi, "get_market_history", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: get_market_history /// /// </summary> /// <param name="args">API type: get_market_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_market_history_return</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public JsonRpcResponse <GetMarketHistoryReturn> GetMarketHistory(GetMarketHistoryArgs args, CancellationToken token) { return(CustomGetRequest <GetMarketHistoryReturn>(KnownApiNames.MarketHistoryApi, "get_market_history", args, token)); }