Skip to content

Commit 5aa682c

Browse files
committed
moidfy stream
1 parent de8f161 commit 5aa682c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/tigerapi/model.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Order {
114114
double commission;
115115

116116
utility::string_t to_string() {
117-
std::stringstream ss;
117+
utility::stringstream_t ss;
118118
ss << U("Order(id=") << this->id << U(" status=") << this->status << U(" total_quantity: ") << this->total_quantity
119119
<< U(" limit_price: ") << this->limit_price << ")" << endl;
120120
return ss.str();
@@ -282,7 +282,7 @@ class Position {
282282

283283

284284
utility::string_t to_string() {
285-
std::stringstream ss;
285+
utility::stringstream_t ss;
286286
ss << U("Position(symbol=") << this->contract.symbol << U(" position=") << this->position << ")" << endl;
287287
return ss.str();
288288
};
@@ -423,7 +423,7 @@ class Segment {
423423
vector<CurrencyAsset> currency_assets;
424424

425425
utility::string_t to_string() {
426-
std::stringstream ss;
426+
utility::stringstream_t ss;
427427
ss << U("Segment(category=") << this->category << U(" currency=") << this->currency << ")" << endl;
428428
return ss.str();
429429
};
@@ -438,7 +438,7 @@ class PortfolioAccount {
438438
vector<Segment> segments;
439439

440440
utility::string_t to_string() {
441-
std::stringstream ss;
441+
utility::stringstream_t ss;
442442
ss << U("PortfolioAccount(account=") << this->account << U(" update_timestamp=") << this->update_timestamp << ")" << endl;
443443
return ss.str();
444444
};

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ utility::string_t get_device_id() {
210210
std::uniform_int_distribution<unsigned long long> dis;
211211
unsigned long long mac = dis(gen);
212212

213-
std::stringstream ss;
213+
utility::stringstream_t ss;
214214
ss << std::hex << std::setfill('0') << std::setw(12) << mac;
215215
utility::string_t str = ss.str();
216216
std::transform(str.begin(), str.end(), str.begin(), ::toupper);

0 commit comments

Comments
 (0)