Skip to content

Commit 260dfda

Browse files
committed
update examples/dsc.md
1 parent 5bb1141 commit 260dfda

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

examples/dsc.md

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
| Example | Description |
2-
|-------------|--------------------------------------------------------------------------------------------------------------------------|
3-
| [example43](./example43/main.cpp) | bybit mainnet spot infrastructure |
4-
| [example42](./example42/main.cpp) | bybit mainnet linear infrastructure |
1+
| Example | Description |
2+
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3+
| [example47](./example43/main.cpp) | subscribe to three Binance trading pairs that form a triangular arbitrage loop |
4+
| [example46](./example43/main.cpp) | configure triangular arbitrage loop |
5+
| [example45](./example43/main.cpp) | Prototype to extract the current funding rate for a ticker on Binance |
6+
| [example44](./example43/main.cpp) | improve deviation_and_mutual_information strategy |
7+
| [example43](./example43/main.cpp) | bybit mainnet spot infrastructure |
8+
| [example42](./example42/main.cpp) | bybit mainnet linear infrastructure |
59
| [example41](./example41/main.cpp) | run deviation and mutual information strategy on binance mainnet future infrastructure and Bybit mainnet linear infrastructure, utilizing Binance best bid and best ask prices |
6-
| [example40](./example40/main.cpp) | run deviation and mutual information strategy on random data |
7-
| [example39](./example39/main.cpp) | generate and decompose crypto hash keys |
8-
| [example38](./example38/main.cpp) | run a strategy on random data |
9-
| [example37](./example37/main.cpp) | run a strategy with binance mainnet futures infrastructure |
10-
| [example36](./example36/main.cpp) | run a strategy with binance mainnet spot infrastructure |
11-
| [example35](./example35/main.cpp) | agregate some classes to add data to local orderbook from binance spot mainnet exchange and get notify when best bid change or best ask change |
12-
| [example34](./example34/main.cpp) | agregate some classes to add data to local orderbook from binance spot mainnet exchange |
13-
| [example33](./example33/main.cpp) | agregate some classes to extract mainnet snapshot from binance |
14-
| [example32](./example32/main.cpp) | agregate some classes to subscribe on binance private channel |
15-
| [example31](./example31/main.cpp) | agregate some classes to add data to local orderbook from bybit spot mainnet exchange |
16-
| [example30](./example30/main.cpp) | agregate some classes to subscribe on binance testnet execution channel |
17-
| [example29](./example29/main.cpp) | place limit buy order with manual id on bybit |
18-
| [example28](./example28/main.cpp) | agregate some classes to subscribe on testnet execution bybit channel and testnet order bybit channel |
19-
| [example27](./example27/main.cpp) | agregate some classes to subscribe on mainnet execution bybit channel and testnet order bybit channel |
20-
| [example26](./example26/main.cpp) | usage apikey and secretkey for hmac_sha256 signer |
21-
| [example25](./example25/main.cpp) | agregate some classes to subscribe bybit mainnet execution channel |
10+
| [example40](./example40/main.cpp) | run deviation and mutual information strategy on random data |
11+
| [example39](./example39/main.cpp) | generate and decompose crypto hash keys |
12+
| [example38](./example38/main.cpp) | run a strategy on random data |
13+
| [example37](./example37/main.cpp) | run a strategy with binance mainnet futures infrastructure |
14+
| [example36](./example36/main.cpp) | run a strategy with binance mainnet spot infrastructure |
15+
| [example35](./example35/main.cpp) | agregate some classes to add data to local orderbook from binance spot mainnet exchange and get notify when best bid change or best ask change |
16+
| [example34](./example34/main.cpp) | agregate some classes to add data to local orderbook from binance spot mainnet exchange |
17+
| [example33](./example33/main.cpp) | agregate some classes to extract mainnet snapshot from binance |
18+
| [example32](./example32/main.cpp) | agregate some classes to subscribe on binance private channel |
19+
| [example31](./example31/main.cpp) | agregate some classes to add data to local orderbook from bybit spot mainnet exchange |
20+
| [example30](./example30/main.cpp) | agregate some classes to subscribe on binance testnet execution channel |
21+
| [example29](./example29/main.cpp) | place limit buy order with manual id on bybit |
22+
| [example28](./example28/main.cpp) | agregate some classes to subscribe on testnet execution bybit channel and testnet order bybit channel |
23+
| [example27](./example27/main.cpp) | agregate some classes to subscribe on mainnet execution bybit channel and testnet order bybit channel |
24+
| [example26](./example26/main.cpp) | usage apikey and secretkey for hmac_sha256 signer |
25+
| [example25](./example25/main.cpp) | agregate some classes to subscribe bybit mainnet execution channel |

examples/example47/main.cpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "aoe/bybit/infrastructure/infrastructure.h"
99
#include "aos/common/exchange_id.h"
1010
#include "aos/common/mem_pool.h"
11+
#include "aos/exit_waiter/user_exit_on_signal/waiter.h"
1112
#include "aos/logger/logger.h"
1213
#include "aos/logger/mylog.h"
1314
#include "aos/market_triplet_manager/market_triplet_manager.h"
@@ -16,7 +17,6 @@
1617
#include "aos/strategy_engine/i_strategy_engine.h"
1718
#include "aos/strategy_engine/strategy_engine.h"
1819
#include "aos/trading_pair/trading_pair.h"
19-
#include "aos/exit_waiter/user_exit_on_signal/waiter.h"
2020

2121
namespace str {
2222
struct Config {
@@ -155,14 +155,6 @@ int main(int, char**) {
155155
using HashT = uint64_t;
156156
using Price = double;
157157
fmtlog::setLogLevel(fmtlog::LogLevel::DBG);
158-
// --- механизм блокировки через future ---
159-
// std::promise<void> exit_promise;
160-
// std::future<void> exit_future = exit_promise.get_future();
161-
162-
// Поток, ожидающий пользовательский ввод
163-
// std::jthread input_thread(wait_for_user_input,
164-
// std::ref(exit_promise));
165-
// boost::asio::thread_pool thread_pool;
166158
LogPolling log_polling(thread_pool, std::chrono::microseconds(1));
167159
using Price = double;
168160
using Qty = double;
@@ -196,15 +188,14 @@ int main(int, char**) {
196188
binance_futures_main_net_infrastructure;
197189
binance_futures_main_net_infrastructure.emplace(thread_pool);
198190

199-
binance_futures_main_net_infrastructure->Register(
200-
aos::TradingPair::kETHBTC);
201191
binance_futures_main_net_infrastructure->Register(
202192
aos::TradingPair::kBTCUSDT);
193+
binance_futures_main_net_infrastructure->Register(
194+
aos::TradingPair::kETHBTC);
203195
binance_futures_main_net_infrastructure->Register(
204196
aos::TradingPair::kETHUSDT);
205197

206198
binance_futures_main_net_infrastructure->StartAsync();
207-
// exit_future.get(); // блокирующий вызов — будет ждать ENTER
208199
user_waiter.Wait();
209200
binance_futures_main_net_infrastructure->StopAsync();
210201
} catch (...) {

0 commit comments

Comments
 (0)