You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let start = SystemTime::now();let future_market = binance::futures::market::FuturesMarket::new(None,None);whiletrue{match future_market.get_trades("BTCBUSD"){Ok(_) => {println!("FETCH DONE, Duration from start {}s",SystemTime::now().duration_since(start).unwrap().as_secs());
std::thread::sleep(Duration::from_millis(100));continue;}Err(e) => {println!("{:?}, Duration from start {}s",
e,SystemTime::now().duration_since(start).unwrap().as_secs());
std::thread::sleep(Duration::from_millis(100));continue;}}}
after about 20s ~ 50s from start, the function keep gives Timeout error, detailed error is
FETCHDONE,Duration from start 21s
FETCHDONE,Duration from start 21s
FETCHDONE,Duration from start 21s
FETCHDONE,Duration from start 21s
FETCHDONE,Duration from start 21s
FETCHDONE,Duration from start 21s
FETCHDONE,Duration from start 22s
Error(ReqError(reqwest::Error{kind:Request,url:Url{scheme:"https",cannot_be_a_base:false,username:"",password:None,host:Some(Domain("fapi.binance.com")),port:None,path:"/fapi/v1/trades",query:Some("symbol=BTCBUSD"),fragment:None},source:TimedOut}),State{next_error:None,backtrace:InternalBacktrace}),Duration from start 52s
Error(ReqError(reqwest::Error{kind:Request,url:Url{scheme:"https",cannot_be_a_base:false,username:"",password:None,host:Some(Domain("fapi.binance.com")),port:None,path:"/fapi/v1/trades",query:Some("symbol=BTCBUSD"),fragment:None},source:TimedOut}),State{next_error:None,backtrace:InternalBacktrace}),Duration from start 82s
If I restart the program the code succeeds to fetch again so it doesn't seem to be rate limit related problem.
Thank you, Appreciate your works.
The text was updated successfully, but these errors were encountered:
Hi,
I'm having error with
FutureMarket.get_trades
.below is reproduce code
after about 20s ~ 50s from start, the function keep gives Timeout error, detailed error is
If I restart the program the code succeeds to fetch again so it doesn't seem to be rate limit related problem.
Thank you, Appreciate your works.
The text was updated successfully, but these errors were encountered: