Skip to content

Commit bcaf0c0

Browse files
committed
Fix in request_sample_prices()
1 parent 439ff88 commit bcaf0c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/Trader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Trader {
7272
.def("request_company_names", &Trader::requestCompanyNames)
7373
.def("get_company_names", &Trader::getCompanyNames)
7474
.def("get_company_name", &Trader::getCompanyName, py::arg("symbol"))
75-
.def("request_sample_prices", &Trader::requestSamplePrices, py::arg("symbols"), py::arg("sampling_frequency") = 1, py::arg("sampling_window") = 31)
75+
.def("request_sample_prices", &Trader::requestSamplePrices, py::arg("symbols"), py::arg("sampling_frequency") = 1.0, py::arg("sampling_window") = 31)
7676
.def("cancel_sample_prices_request", &Trader::cancelSamplePricesRequest, py::arg("symbols"))
7777
.def("cancel_all_sample_prices_requests", &Trader::cancelAllSamplePricesRequests)
7878
.def("get_sample_prices_size", &Trader::getSamplePricesSize, py::arg("symbol"))
@@ -138,7 +138,7 @@ class Trader {
138138
auto getCompanyName(const std::string& symbol) -> std::string;
139139

140140
// sample prices
141-
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequency, unsigned int samplingWindow) -> bool;
141+
auto requestSamplePrices(std::vector<std::string> symbols, double samplingFrequencyS, int samplingWindow) -> bool;
142142
auto cancelSamplePricesRequest(const std::vector<std::string>& symbols) -> bool;
143143
auto cancelAllSamplePricesRequests() -> bool;
144144
auto getSamplePricesSize(const std::string& symbol) -> int;

src/Trader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ auto Trader::getCompanyName(const std::string& symbol) -> std::string
242242
return m_client->getCompanyName(symbol);
243243
}
244244

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

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

0 commit comments

Comments
 (0)