Skip to content

Commit 39da600

Browse files
committed
fix get assets
1 parent 464df36 commit 39da600

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/openapi_cpp_test/openapi_cpp_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,15 @@ class TestTigerApi {
328328
static void test_get_positions(std::shared_ptr<TigerClient> tigerapi) {
329329
value obj = value::object(true);
330330
obj[U("market")] = value::string(U("US"));
331-
obj[P_ACCOUNT] = value::string(U("402901"));
331+
obj[P_ACCOUNT] = value::string(U("1111"));
332332
tigerapi->post(POSITIONS, obj);
333333
}
334334
};
335335

336336
int main()
337337
{
338338
/************************** set config **********************/
339-
ClientConfig config = ClientConfig(true);
339+
ClientConfig config = ClientConfig();
340340

341341
config.private_key = U("");
342342
config.tiger_id = U("");

src/trade_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace TIGER_API {
4646
obj[P_ACCOUNT] = get_account_param(account);
4747
obj[U("segment")] = segment;
4848
obj[U("market_value")] = market_value;
49-
return post(PRIME_ASSETS, obj);
49+
return post(ASSETS, obj);
5050
}
5151

5252
value TradeClient::get_account_param(const utility::string_t &account) {

0 commit comments

Comments
 (0)