Skip to content

Commit 464df36

Browse files
committed
fix
1 parent b3f5ea1 commit 464df36

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

demo/openapi_cpp_test/openapi_cpp_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ class TestQuoteClient {
185185
symbols[1] = value::string(U("JD"));
186186
//ucout << U("symbols ") << symbols << endl;
187187
// value result = quote_client->get_kline(symbols, U("day"), -1, -1, U("br"), 5);
188-
vector<Kline> result = quote_client->get_kline(symbols, "day", -1, -1, 5);
189-
cout << result.at(0).to_string() << endl;
188+
vector<Kline> result = quote_client->get_kline(symbols, U("day"), -1, -1, 5);
189+
ucout << result.at(0).to_string() << endl;
190190
}
191191

192192
static void test_get_quote_stock_trade(std::shared_ptr<QuoteClient> quote_client) {

include/tigerapi/model.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//#include <any>
1010
#include <string>
1111
#include <cpprest/json.h>
12+
#include <cpprest/details/basic_types.h>
1213
#include "win32.h"
1314

1415
using namespace std;
@@ -514,7 +515,7 @@ namespace TIGER_API {
514515
utility::string_t strike;
515516

516517
utility::string_t to_string() {
517-
return U("Kline of " + symbol + U(" ") + std::to_string(items.size()) + U(" items"));
518+
return U("Kline of ") + symbol;
518519
}
519520
};
520521

@@ -606,7 +607,7 @@ namespace TIGER_API {
606607
}
607608

608609
utility::string_t to_string() {
609-
return U("RealtimeQuote<" + symbol + U("> ") + std::to_string(latest_price));
610+
return U("RealtimeQuote<") + symbol + U("> ");
610611
}
611612
};
612613

0 commit comments

Comments
 (0)