1 #ifndef MARKETDATASERVICE_H
2 #define MARKETDATASERVICE_H
4 #include "customservice.h"
5 #include <grpcpp/grpcpp.h>
6 #include "marketdata.grpc.pb.h"
7 #include "servicereply.h"
11 using namespace tinkoff::public_::invest::api::contract::v1;
26 MarketData(std::shared_ptr<Channel> channel,
const std::string &token);
30 ServiceReply GetCandles(
const std::string &figi, int64_t fromseconds, int32_t fromnanos, int64_t toseconds, int32_t tonanos, CandleInterval interval);
32 ServiceReply GetLastPrices(
const std::vector<std::string> &figis);
34 ServiceReply GetOrderBook(
const std::string &figi, int32_t depth);
38 ServiceReply GetLastTrades(
const std::string &figi, int64_t fromseconds, int32_t fromnanos, int64_t toseconds, int32_t tonanos);
41 std::unique_ptr<MarketDataService::Stub> m_marketDataService;
45 #endif // MARKETDATASERVICE_H