-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In LiveBot, eventReceiver always timeout #131
Comments
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( The following endpoint is what
|
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 GitHub<#131 (comment)>, or unsubscribe<https://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:
hftbacktest/hftbacktest/src/live/bot.rs
Lines 444 to 446 in c7767c8
Any idea?
Here is my code:
As a result, the println!() only prints NaN.
The text was updated successfully, but these errors were encountered: