Skip to content

Commit

Permalink
Fix in request_sample_prices()
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagowinkler committed May 10, 2020
1 parent 439ff88 commit bcaf0c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/Trader.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Trader {
.def("request_company_names", &Trader::requestCompanyNames)
.def("get_company_names", &Trader::getCompanyNames)
.def("get_company_name", &Trader::getCompanyName, py::arg("symbol"))
.def("request_sample_prices", &Trader::requestSamplePrices, py::arg("symbols"), py::arg("sampling_frequency") = 1, py::arg("sampling_window") = 31)
.def("request_sample_prices", &Trader::requestSamplePrices, py::arg("symbols"), py::arg("sampling_frequency") = 1.0, py::arg("sampling_window") = 31)
.def("cancel_sample_prices_request", &Trader::cancelSamplePricesRequest, py::arg("symbols"))
.def("cancel_all_sample_prices_requests", &Trader::cancelAllSamplePricesRequests)
.def("get_sample_prices_size", &Trader::getSamplePricesSize, py::arg("symbol"))
Expand Down Expand Up @@ -138,7 +138,7 @@ class Trader {
auto getCompanyName(const std::string& symbol) -> std::string;

// sample prices
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequency, unsigned int samplingWindow) -> bool;
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool;
auto cancelSamplePricesRequest(const std::vector<std::string>& symbols) -> bool;
auto cancelAllSamplePricesRequests() -> bool;
auto getSamplePricesSize(const std::string& symbol) -> int;
Expand Down
4 changes: 2 additions & 2 deletions src/Trader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ auto Trader::getCompanyName(const std::string& symbol) -> std::string
return m_client->getCompanyName(symbol);
}

auto Trader::requestSamplePrices(std::vector<std::string> symbols, double samplingFrequency, unsigned int samplingWindow) -> bool
auto Trader::requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool
{
return m_client->requestSamplePrices(symbols, samplingFrequency, samplingWindow);
return m_client->requestSamplePrices(symbols, samplingFrequencyS, samplingWindow);
}

auto Trader::cancelSamplePricesRequest(const std::vector<std::string>& symbols) -> bool
Expand Down

0 comments on commit bcaf0c0

Please sign in to comment.