Skip to content

Commit

Permalink
[EN-7587] Implement FetchDailyCandles sample
Browse files Browse the repository at this point in the history
Tools: set default properties.
  • Loading branch information
AnatolyKalin committed Jun 17, 2024
1 parent 6d8b0e8 commit 8525150
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/Tools/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ using namespace dxfcpp::literals;

int main(int argc, char *argv[]) {
try {
System::setProperty(DXEndpoint::DXFEED_WILDCARD_ENABLE_PROPERTY, "true");
// Enable experimental feature.
System::setProperty("dxfeed.experimental.dxlink.enable", "true");
// Set scheme for dxLink.
System::setProperty("scheme", "ext:opt:sysprops,resource:dxlink.xml");

const auto usage = tools::HelpTool::generateToolHelpScreen<tools::Tools>();

std::vector<std::string> args{};
Expand Down Expand Up @@ -97,7 +103,7 @@ int main(int argc, char *argv[]) {
} catch (const GraalException &e) {
std::cerr << e.what() << '\n';
std::cerr << e.getStackTrace() << '\n';
} catch (const std::runtime_error& e) {
} catch (const std::runtime_error &e) {
std::cerr << e.what() << '\n';
} catch (...) {
std::cerr << "Error!\n";
Expand Down

0 comments on commit 8525150

Please sign in to comment.