TinkoffInvestSDK
operationsservice.h
1 #ifndef OPERATIONSSERVICE_H
2 #define OPERATIONSSERVICE_H
3 
4 #include "customservice.h"
5 #include <grpcpp/grpcpp.h>
6 #include "operations.grpc.pb.h"
7 #include "servicereply.h"
8 
9 using grpc::Channel;
10 using namespace tinkoff::public_::invest::api::contract::v1;
11 
23 {
24 
25 public:
26  Operations(std::shared_ptr<Channel> channel, const std::string &token);
27  ~Operations();
28 
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);
32  ServiceReply GetPortfolio(const std::string &accountId);
34  ServiceReply GetPositions(const std::string &accountId);
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);
45 
46 private:
47  std::unique_ptr<OperationsService::Stub> m_operationsService;
48 
49 };
50 
51 #endif // OPERATIONSSERVICE_H
Operations
Сервис операций по счету
Definition: operationsservice.h:22
CustomService
Родительский класс для всех сервисов
Definition: customservice.h:14
ServiceReply
Класс-обертка над proto-ответами сервисов
Definition: servicereply.h:17