1 #ifndef OPERATIONSSERVICE_H
2 #define OPERATIONSSERVICE_H
4 #include "customservice.h"
5 #include <grpcpp/grpcpp.h>
6 #include "operations.grpc.pb.h"
7 #include "servicereply.h"
10 using namespace tinkoff::public_::invest::api::contract::v1;
26 Operations(std::shared_ptr<Channel> channel,
const std::string &token);
30 ServiceReply GetOperations(
const std::string &accountId, int64_t fromseconds, int32_t fromnanos, int64_t toseconds, int32_t tonanos, OperationState state,
const std::string &figi);
36 ServiceReply GetWithdrawLimits(
const std::string &accountId);
38 ServiceReply GetBrokerReport(
const std::string &accountId, int64_t fromseconds, int32_t fromnanos, int64_t toseconds, int32_t tonanos);
40 ServiceReply GetBrokerReport(
const std::string &taskId, int32_t page);
42 ServiceReply GetDividendsForeignIssuer(
const std::string &accountId, int64_t fromseconds, int32_t fromnanos, int64_t toseconds, int32_t tonanos);
44 ServiceReply GetDividendsForeignIssuer(
const std::string &taskId, int32_t page);
47 std::unique_ptr<OperationsService::Stub> m_operationsService;
51 #endif // OPERATIONSSERVICE_H