@@ -378,8 +378,24 @@ class TestQuoteClient {
378378 ucout << U (" result: " ) << result << endl;
379379 }
380380
381+ static void test_get_warrant_real_time_quote (std::shared_ptr<QuoteClient> quote_client) {
382+ value result = quote_client->get_warrant_real_time_quote (U (" 15792" ));
383+ ucout << U (" result: " ) << result << endl;
384+ }
385+
386+ static void test_get_warrant_filter (std::shared_ptr<QuoteClient> quote_client) {
387+ value result = quote_client->get_warrant_filter (" 00700" );
388+ ucout << U (" result: " ) << result << endl;
389+ }
390+
391+ static void test_get_kline_quota (std::shared_ptr<QuoteClient> quote_client) {
392+ value result = quote_client->get_kline_quota ();
393+ ucout << U (" result: " ) << result << endl;
394+ }
395+
396+
381397 static void test_quote (const std::shared_ptr<QuoteClient> quote_client) {
382- TestQuoteClient::test_get_quote_real_time (quote_client);
398+ TestQuoteClient::test_get_kline_quota (quote_client);
383399 }
384400};
385401
@@ -412,7 +428,7 @@ class TestTigerApi {
412428int main ()
413429{
414430 /* ************************* set config **********************/
415- ClientConfig config = ClientConfig ();
431+ ClientConfig config = ClientConfig (true );
416432 config.private_key = U (" " );
417433 config.tiger_id = U (" " );
418434 config.account = U (" " );
@@ -426,14 +442,14 @@ int main()
426442 /* *
427443 * ʹ�÷�װ�������ӿ� QuoteClient
428444 */
429- // std::shared_ptr<QuoteClient> quote_client = std::make_shared<QuoteClient>(config);
430- // TestQuoteClient::test_quote(quote_client);
445+ std::shared_ptr<QuoteClient> quote_client = std::make_shared<QuoteClient>(config);
446+ TestQuoteClient::test_quote (quote_client);
431447
432448 /* *
433449 * ʹ�÷�װ��Ľ��ӿ� TradeClient
434450 */
435- std::shared_ptr<TradeClient> trade_client = std::make_shared<TradeClient>(config);
436- TestTradeClient::test_trade (trade_client);
451+ // std::shared_ptr<TradeClient> trade_client = std::make_shared<TradeClient>(config);
452+ // TestTradeClient::test_trade(trade_client);
437453
438454 /* *
439455 * ֱ��ʹ��δ��װ�� TigerApi
0 commit comments