private static void GetMatchResultsById() { var tradeClient = new OrderClient(Config.AccessKey, Config.SecretKey); _logger.Start(); var response = tradeClient.GetMatchResultsByIdAsync("137534048832590").Result; _logger.StopAndLog(); switch (response.status) { case "ok": { if (response.data != null) { foreach (var r in response.data) { AppLogger.Info($"Match result symbol: {r.symbol}, amount: {r.filledAmount}, fee: {r.filledFees}, state: {r.feeDeductState}"); } AppLogger.Info($"There are total {response.data.Length} match results"); } break; } case "error": { AppLogger.Info($"Get match result fail, error code: {response.errorCode}, error message: {response.errorMessage}"); break; } } }
private static void GetMatchResultsById() { var tradeClient = new OrderClient(Config.AccessKey, Config.SecretKey); var response = tradeClient.GetMatchResultsByIdAsync("63403286375").Result; switch (response.status) { case "ok": { if (response.data != null) { foreach (var r in response.data) { Console.WriteLine($"Match result symbol: {r.symbol}, amount: {r.filledAmount}, fee: {r.filledFees}"); } Console.WriteLine($"There are total {response.data.Length} match results"); } break; } case "error": { Console.WriteLine($"Get match result fail, error code: {response.errorCode}, error message: {response.errorMessage}"); break; } } }