Closed lli839 closed 3 months ago
The Timeout error just indicates that there is no market feed during the given elapsed duration. Currently, the Connector doesn't have a feature to retrieve a market depth snapshot, so no bid/ask data is retrieved until the market is updated.
The Timeout error just indicates that there is no market feed during the given elapsed duration. Currently, the Connector doesn't have a feature to retrieve a market depth snapshot, so no bid/ask data is retrieved until the market is updated.
hi @nkaz001 , thanks for the reply. The code keeps running for couple of minutes. It always returns time out error. Is it normal?
I ran your code on the testnet(Endpoint::Testnet
), and it works as expected. Perhaps the Endpoint::Public
might be incorrect. Could you try testing it by manually inputting the endpoints
The following endpoint is what Endpoint::Public
refers to.
let binance_futures = BinanceFutures::builder()
.api_url("https://fapi.binance.com")
.stream_url("wss://fstream.binance.com")
.api_key(API_KEY)
.secret(SECRET)
.order_prefix(ORDER_PREFIX)
.build()
.unwrap();
hmm, the strange thing is that if putting a testnet, the code works fine. Even though I replaced Public with the exact URLs you mentioned above, the event receiver still returns timeout error.
From: nkaz001 @.> Sent: Monday, August 26, 2024 7:56 PM To: nkaz001/hftbacktest @.> Cc: lli839 @.>; Author @.> Subject: Re: [nkaz001/hftbacktest] In LiveBot, eventReceiver always timeout (Issue #131)
I ran your code on the testnet(Endpoint::Testnet), and it works as expected. Perhaps the Endpoint::Public might be incorrect. Could you try testing it by manually inputting the endpoints
The following endpoint is what Endpoint::Public refers to.
let binance_futures = BinanceFutures::builder() .api_url("https://fapi.binance.com") .stream_url("wss://fstream.binance.com") .api_key(API_KEY) .secret(SECRET) .order_prefix(ORDER_PREFIX) .build() .unwrap();
— Reply to this email directly, view it on GitHubhttps://github.com/nkaz001/hftbacktest/issues/131#issuecomment-2310027460, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYZ5CAH4SLA4SHWMB2B4OZLZTMJWRAVCNFSM6AAAAABNDQBY7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGAZDONBWGA. You are receiving this because you authored the thread.Message ID: @.***>
I couldn't open the file. Please let me know which part needs to be fixed or PR.
Version: 2.0.0
Hi, I'm writing simple code to listen live events. However, this line in bot.rs always get a timeout error: https://github.com/nkaz001/hftbacktest/blob/c7767c86a47d4e82121aa9504ecca8a6fd82249e/hftbacktest/src/live/bot.rs#L444-L446
Any idea?
Here is my code:
As a result, the println!() only prints NaN.