-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (23 loc) · 750 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (23 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright © 2025 Market Data Handler project
*
* This is the source code of the Market Data Handler project.
* It is licensed under the MIT License; you should have received a copy
* of the license in this archive (see LICENSE).
*
* Author: Abolfazl Abbasi
*
*/
#include <iostream>
#include "logger/logger.hpp"
#include "feed/binance_feed.hpp"
#include "io/io_executor_impl.hpp"
int main(int argc, char* argv[]) {
std::cout << "Market Data Handler project going to the moon 🚀!" << std::endl;
mdh::logger::init();
auto io_context = std::make_shared<mdh::io_executor_impl>(0);
mdh::binance_feed binance_feed{io_context};
binance_feed.subscribe("btcusdt",[](mdh::market_message msg){
});
return 0;
}