@@ -72,7 +72,7 @@ class Trader {
72
72
.def (" request_company_names" , &Trader::requestCompanyNames)
73
73
.def (" get_company_names" , &Trader::getCompanyNames)
74
74
.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 )
76
76
.def (" cancel_sample_prices_request" , &Trader::cancelSamplePricesRequest, py::arg (" symbols" ))
77
77
.def (" cancel_all_sample_prices_requests" , &Trader::cancelAllSamplePricesRequests)
78
78
.def (" get_sample_prices_size" , &Trader::getSamplePricesSize, py::arg (" symbol" ))
@@ -138,7 +138,7 @@ class Trader {
138
138
auto getCompanyName (const std::string& symbol) -> std::string;
139
139
140
140
// 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;
142
142
auto cancelSamplePricesRequest (const std::vector<std::string>& symbols) -> bool;
143
143
auto cancelAllSamplePricesRequests () -> bool;
144
144
auto getSamplePricesSize (const std::string& symbol) -> int;
0 commit comments