@@ -2,8 +2,8 @@ use algo::gridtrading;
22use chrono:: Utc ;
33use hftbacktest:: {
44 connector:: binancefutures:: { BinanceFutures , BinanceFuturesError , Endpoint } ,
5- live:: { Bot , BotError , LoggingRecorder } ,
6- prelude:: { ErrorKind , HashMapMarketDepth , Interface } ,
5+ live:: { LiveBot , BotError , LoggingRecorder } ,
6+ prelude:: { ErrorKind , HashMapMarketDepth , Bot } ,
77} ;
88use tracing:: { error, info} ;
99
@@ -13,7 +13,7 @@ const ORDER_PREFIX: &str = "prefix";
1313const API_KEY : & str = "apikey" ;
1414const SECRET : & str = "secret" ;
1515
16- fn prepare_live ( ) -> Bot < HashMapMarketDepth > {
16+ fn prepare_live ( ) -> LiveBot < HashMapMarketDepth > {
1717 let binance_futures = BinanceFutures :: builder ( )
1818 . endpoint ( Endpoint :: Testnet )
1919 . api_key ( API_KEY )
@@ -22,7 +22,7 @@ fn prepare_live() -> Bot<HashMapMarketDepth> {
2222 . build ( )
2323 . unwrap ( ) ;
2424
25- let mut hbt = Bot :: builder ( )
25+ let mut hbt = LiveBot :: builder ( )
2626 . register ( "binancefutures" , binance_futures)
2727 . add ( "binancefutures" , "SOLUSDT" , 0.001 , 1.0 )
2828 . error_handler ( |error| {
0 commit comments