Skip to content

Commit 22accb4

Browse files
committed
clean example 41
improve examples dsc
1 parent 1f23316 commit 22accb4

File tree

2 files changed

+21
-34
lines changed

2 files changed

+21
-34
lines changed

examples/dsc.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
| examples | Description |
2-
|:-----------|:------------:|
3-
| example43 | bybit mainnet spot infrastructure |
4-
| example42 | bybit mainnet linear infrastructure |
5-
| example40 | run deviation and mutual information strategy on random data |
6-
| example39 | generate and decompose crypto hash keys |
7-
| example38 | run a strategy on random data |
8-
| example37 | run a strategy with binance mainnet futures infrastructure |
9-
| example36 | run a strategy with binance mainnet spot infrastructure |
10-
| example35 | 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|
11-
| example34 | agregate some classes to add data to local orderbook from binance spot mainnet exchange |
12-
| example33 | agregate some classes to extract mainnet snapshot from binance |
13-
| example32 | agregate some classes to subscribe on binance private channel |
14-
| example31 | agregate some classes to add data to local orderbook from bybit spot mainnet exchange |
15-
| example30 | agregate some classes to subscribe on binance testnet execution channel |
16-
| example29 | place limit buy order with manual id on bybit |
17-
| example28 | agregate some classes to subscribe on testnet execution bybit channel and testnet order bybit channel |
18-
| example27 | agregate some classes to subscribe on mainnet execution bybit channel and testnet order bybit channel |
19-
| example26 | usage apikey and secretkey for hmac_sha256 signer |
20-
| example25 | agregate some classes to subscribe bybit mainnet execution channel |
1+
| Example | Description |
2+
|-------------|--------------------------------------------------------------------------------------------------------------------------|
3+
| [example43](./example43/main.cpp) | bybit mainnet spot infrastructure |
4+
| [example42](./example42/main.cpp) | bybit mainnet linear infrastructure |
5+
| [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 |

examples/example41/main.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ class StrategyWrapper {
6767
strategy_engine_.AddData(
6868
binance_futures_main_net_btc_usdt,
6969
new_best_bid.bid_price);
70-
// strategy_engine_.AddData(
71-
// binance_futures_main_net_btc_usdt,
72-
// 10);
7370
});
7471
bool
7572
status_set_cb_on_best_ask_change_with_binance_futures_mainnet_infra =
@@ -88,9 +85,6 @@ class StrategyWrapper {
8885
strategy_engine_.AddData(
8986
binance_futures_main_net_btc_usdt,
9087
new_best_ask.ask_price);
91-
// strategy_engine_.AddData(
92-
// binance_futures_main_net_btc_usdt,
93-
// 10);
9488
});
9589
bool status_set_cb_on_best_bid_change_with_bybit_linear_mainnet_infra =
9690
bybit_linear_mainnet_infra_.SetCallbackOnBestBidChange(
@@ -106,9 +100,6 @@ class StrategyWrapper {
106100
config_.trading_pair);
107101
strategy_engine_.AddData(bybit_linear_main_net_btc_usdt,
108102
new_best_bid.bid_price);
109-
// strategy_engine_.AddData(
110-
// bybit_linear_main_net_btc_usdt,
111-
// 10);
112103
});
113104
bool status_set_cb_on_best_ask_change_with_bybit_linear_mainnet_infra =
114105
bybit_linear_mainnet_infra_.SetCallbackOnBestAskChange(
@@ -124,9 +115,6 @@ class StrategyWrapper {
124115
config_.trading_pair);
125116
strategy_engine_.AddData(bybit_linear_main_net_btc_usdt,
126117
new_best_ask.ask_price);
127-
// strategy_engine_.AddData(
128-
// bybit_linear_main_net_btc_usdt,
129-
// 10);
130118
});
131119
strategy_init_success_ =
132120
status_set_cb_on_best_bid_change_with_binance_futures_mainnet_infra &&
@@ -194,8 +182,6 @@ int main(int, char**) {
194182
logi("Strategy not init successful");
195183
return 0;
196184
}
197-
int x = 0;
198-
// std::this_thread::sleep_for(std::chrono::seconds(100));
199185
} catch (...) {
200186
loge("error occured");
201187
}

0 commit comments

Comments
 (0)